:root {
    --color-naranja: #F26F21;
    --color-azul: #145294;
    --color-negro: black;
}

/****************************************Generales******************************************/

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.hero-btn {
    background-color: var(--color-naranja);
    /* Color naranja */
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.hero-btn:hover {
    background-color: #ea580c;
    color: white;
}


/*********************************** NAVBAR **************************************************/


/* Navbar general con animación suave */

.navbar-transparent {
    background-color: white;
}

/* Navbar cuando se hace scroll */
.navbar-scrolled {
    background-color: white;
}

/* Estilo para el logo */
.navbar-logo img {
    width: auto;
    height: 50px;
    /* Tamaño normal */
    transition: all 0.3s ease;
    margin-right: 10px;
}

/* Logo más pequeño al hacer scroll */
.navbar-scrolled .navbar-logo img {
    width: auto;
    height: 40px;
}

/* Estilos de los enlaces del menú */
.navbar .nav-link {
    color: black !important;
    font-size: 1rem;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

/* Enlaces al hacer scroll (blancos y más pequeños) */
.navbar-scrolled .nav-link {
    color: black !important;
    font-size: 0.9rem;
    padding: 8px 10px;
}

/* Botón personalizado */

.btn-contactame {
    display: inline-block;
    padding: 10px 25px;
    margin-left: 15px;
    margin-top: 8px;
    background-color: var(--color-azul);
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    clip-path: polygon(10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}


/* Botón al hacer scroll (blanco con texto negro, más pequeño) */
.navbar-scrolled .btn-contactame {
    background-color: var(--color-azul);
    color: white;
    font-size: 0.9rem;
}

/* (Opcional) Cambio de color al pasar el mouse sobre el botón */
.btn-contactame:hover {
    background-color: var(--color-naranja);
    color: #fff;
}

@media (max-width: 990px) {
    .navbar-toggler i {
        color: white !important;
        border: none;
    }

    .navbar .nav-link {
        color: black !important;
    }

    .navbar-toggler {
        border: none;
    }

    .navbar-transparent {
        background-color: white;
    }
}

@media (min-width: 990px) {

    .navbar .nav-link {
        text-align: center;
    }
}

/**************************************** Ajustes Extras Navbar ********************************/
.nav-item .nav-link {
    font-size: 14px;
    margin-right: 10px;
}

.dropdown-item {
    font-size: 14px;
}

.enlaces-nav {
    position: relative;
    display: inline-block;
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    overflow: hidden;
    transition: color 0.3s ease;
    z-index: 1;
}

.enlaces-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05));
    /* degradado vertical */
    z-index: -1;
    transition: height 0.3s ease;
}

.enlaces-nav:hover::before {
    height: 100%;
}

.enlaces-nav.active {
    position: relative;
    color: var(--color-azul) !important;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 14px;
    transition: all 0.3s ease-in-out;
}

.enlaces-nav.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 60%;
    height: 2px;
    background-color: var(--color-azul);
    border-radius: 2px;
    transform: translateX(-50%);
}


.enlaces-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-azul);
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
    z-index: 2;
}

.enlaces-nav:hover{
    color: var(--color-azul) !important;
}

.enlaces-nav:hover::after {
    width: 60%;
    left: 50%;
}




/***************************************** HOME ******************************************************/


.hero-section {
    background-image: url('../imagenes/servicios-de-mantenimiento-y-reparacion.webp');
    /* Reemplaza con tu imagen */
    background-size: cover;
    background-position: center;
    padding: 150px 0;
    color: white;
    position: relative;
}

.hero-overlay {
    padding: 60px 10px;
}

.hero-overlay h1 {
    font-size: 2.8rem;
    font-weight: 700;
}



.cards-section {
    margin-top: -100px;
    /* Sobreposición */
    z-index: 2;
    position: relative;
}

.card-custom {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 60px 20px;
    text-align: center;
}

.card-custom i {
    font-size: 3rem;
    color: var(--color-azul);
    /* Azul fuerte */
    margin-bottom: 15px;
}

/*************************************** Seccion 1  *****************************************/
.image-with-offset {
    position: relative;
    display: inline-block;
}

.image-with-offset::before {
    content: "";
    position: absolute;
    top: 40px;
    left: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-azul);
    z-index: -1;
    border-radius: 8px;
}

.image-with-offset img {
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li::before {
    content: "✔";
    color: var(--color-azul);
    font-weight: bold;
    display: inline-block;
    width: 1.5em;
}

.feature-list li {
    margin-bottom: 10px;
}

/**************************************Carrusel Servicios *********************************************/

.servicios-section {
    position: relative;
    background-image: url('../imagenes/fondo-rectangulos.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 20px 10px 80px 20px;
    color: white;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}



.carousel-container {
    padding: 1rem 0;
    position: relative;
}

.cards-track {
    display: flex;
    transition: transform 0.5s ease-out;
    will-change: transform;
    padding: 10px 0;
}

.cartas-servicios {
    flex: 0 0 calc(33.333% - 20px);
    height: 380px;
    margin: 0 10px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.cartas-servicios:hover {
    transform: translateY(-2px);
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.card-link:hover {
    color: black;
}

.card-img-container {
    position: relative;
    overflow: hidden;
    height: 180px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 80%);
}


.card-img-top {
    height: 180px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.card-text {
    font-size: 0.9rem;
    color: #6c757d;
}


.cards-viewport {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.iconos-colores {
    color: var(--color-naranja);
}

.saber-mas-link {

    font-size: 15px;
    color: rgb(111, 111, 111);
}

/* Responsive */
@media (max-width: 992px) {
    .card {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .card {
        flex: 0 0 calc(100% - 20px);
        height: 320px;
    }
}

@media (max-width: 480px) {
    .cartas-servicios{
        height: 400px;
    }
}

/* Prevenir selección de texto durante el arrastre */
.no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/************************************** Home Video ********************************************/
.video-hero-section {
    margin-top: 100px;
    height: 85vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/fondo-video-Yukme.webp') center center / cover no-repeat;
    pointer-events: none;
}

.video-hero-section h2 {
    font-size: 3.5rem;
}

.feature-icon {
    color: var(--color-naranja);
    font-weight: 700;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.feature-card:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

@media (max-width: 768px) {
    .video-hero-section {
        height: 160vh;
    }

    .video-hero-section h2 {
        font-size: 2rem;
    }

    .video-hero-section p {
        font-size: 1rem;
    }
}

/*************************************** Seccion Final Home ***********************************************/

.circulo-icons {
    background-color: rgba(26, 58, 143, 0.1);
    color: var(--color-naranja) !important;
}

.text-warning {
    color: var(--color-naranja) !important;
}

.icon-square {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-whatsapp {
    border-color: var(--color-azul);
    color: var(--color-azul);
    padding: 14px 24px;
    border-radius: 10px;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.btn-whatsapp:hover {
    background-color: rgba(26, 58, 143, 0.05);
}



/*********************************************** SERVICIOS *********************************************/

.servicios-hero-banner {
    position: relative;
    width: 100%;
    max-height: 320px;
    margin-top: 50px;
    overflow: hidden;
}

.servicios-main-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center center;
    max-height: 600px;
}


.servicios-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    color: white;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    /* oscurece ligeramente */
}

.servicios-main-heading {
    background-color: rgba(242, 110, 33, 0.85);
    padding: 0.8rem 1.5rem;
    font-size: 2.1rem;
    font-weight: bold;
    border-radius: 5px;
    display: inline-block;
    margin: 0;
    text-align: center;
}

@media (max-width: 480px) {
        
    .servicios-hero-banner{
        min-height: 180px;
        background-image: url('../imagenes/servicios-diseno-hidraulico-yuken.webp')
    }
    .servicios-main-image {
        opacity: 0;
    }
        
    .servicios-main-heading {
        font-size: 1.5rem;
    }
}

/**************************************** RESEÑAS ********************************************/

.review-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.review-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #145294;
    padding: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.review-rating {
    font-size: 0.7rem;
}

.review-text {
    font-style: italic;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1.5rem;
}

.review-divider {
    height: 2px;
    width: 50px;
    background: linear-gradient(to right, transparent, #007bff, transparent);
    margin: 0 auto;
}

.review-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

@media (max-width: 480px) {
    .review-img {
        width: 90px;
        height: 90px;
        padding: 3px;
    }

    .review-img img {
        width: 100%;
        height: auto;
    }
}

/************************************** FOOTER ****************************************************************/
.linea-footer {
    display: inline-block;
    border-bottom: 1px solid black;
    padding-bottom: 5px;
    margin-bottom: 10px;
    width: 40px;
}

.linea-larga-footer {
    display: inline-block;
    border-bottom: 1px solid black;
    width: 100%;
}

.footer {
    background-color: #f8f8f8;
    color: black !important;
}

.footer .social-icons a {

    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.footer .footer-bottom {
    background-color: #f7f7f7;

}

.footer .footer-bottom p {
    padding-bottom: 15px;
}

.footer a {
    color: black;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.parr-derechos {
    font-size: 12px;
}


/************************************** Icono flotante WhatsApp ************************************/

    .back-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: 0.25s ease;
    visibility: hidden;
    opacity: 0;
    z-index: 4;
}
.back-top-btn:hover{
    color: white;
    text-decoration: none;
}

.back-top-btn:is(:hover, :focus-visible) {
    box-shadow: 0px 3px 20px hsla(180, 90%, 43%, 0.2);
}

.back-top-btn.active {
    visibility: visible;
    opacity: 1;
    transform: translateY(-10px);
}

.back-top-btn:before,
.back-top-btn:after
{
    content:"";
    position: absolute;
    top: 8px;
    left: 6px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0;
    animation: onda 1.7s infinite;
}

.back-top-btn:before{
    animation-delay: 1s;
}

.back-top-btn:after{
    animation-delay: 1.3s;
}

.back-top-btn i{
    position: relative;
    z-index: 2;
}

@keyframes onda {
    0% {
        transform: scale (1);
    }
    15% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(2);
    }
}

/**************************************** RESPONSIVE ***********************************************/

@media (max-width: 480px) {


    /*********** Footer **********/
    .footer h5 {
        font-size: 16px;
        text-align: center;
    }

    .footer p,
    .social-icons {
        text-align: center;
    }

    .linea-footer {
        width: 100%;
    }

    .footer li {
        padding-bottom: 5px;
        text-align: center;
    }

    .img-fluid {
        max-width: 250px;
    }

}