/********************************************************************************
 * *
 * PROYECTO: HEAVYMACH INDUSTRIAL - ALQUILER DE EQUIPO Y MOVIMIENTO DE TIERRAS  *
 * VERSION: 1.2 (2026) - GLOBALIZED EDITION                                     *
 * ESTILO: PREMIUM INDUSTRIAL / BLUE & STEEL                                    *
 * *
 ********************************************************************************/

:root {
    /* Paleta Protagonista: Azules */
    --primary-blue: #0A2342;       /* Fondo Dark / Texto Light */
    --accent-blue: #1A5FB4;        /* Azul de acento */
    
    /* Tonos Plata / Acero / Superficies */
    --steel-silver: #E5E5E5;       /* Fondo Light / Texto Dark */
    --platinum: #E5E5E5;           /* Bordes y detalles */
    
    /* Tonos Oscuros y Base */
    --dark-bg: #0A2342;            
    --dark-accent: #112d4e;        
    --white: #FFFFFF;              
    --grey-text: #A0A5AB;          
    --overlay-blue: rgba(10, 35, 66, 0.85); 
    
    /* Tipografías */
    --body-font: 'Inter', sans-serif;
    --title-font: 'Oswald', sans-serif;
    
    /* Transiciones */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--body-font);
    background-color: var(--white);
    color: var(--primary-blue);
    overflow-x: hidden;
}

/* Clases de Utilidad Reutilizables */
.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 25px;
}

/* --- LÓGICA DE SECCIONES GLOBALIZADA --- */

.section-dark {
    background-color: var(--primary-blue);
    color: var(--steel-silver);
    padding: 120px 0;
}

.section-dark .premium-title {
    color: var(--white); /* Títulos resaltan en blanco sobre azul */
}

.section-dark .gold-line {
    background-color: var(--steel-silver);
}

.section-light {
    background-color: var(--steel-silver);
    color: var(--primary-blue);
    padding: 120px 0;
}

.section-light .premium-title {
    color: var(--primary-blue);
}

.section-light .gold-line {
    background-color: var(--primary-blue);
}

.bg-white {
    background-color: var(--white);
}

.gold-line {
    display: block;
    width: 50px;
    height: 3px;
    margin-bottom: 1.5rem;
}

.premium-title {
    font-family: var(--title-font);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/***********************************************************
 * BOTONES ESPECÍFICOS (HERO & GLOBAL)                     *
 ***********************************************************/

/* Reutilizamos la base premium que ya definimos */
.btn-gold, .btn-outline {
    display: inline-block;
    padding: 16px 40px;
    font-family: var(--title-font);
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    border: none;
    cursor: pointer;
    text-align: center;
}

/* --- BTN-GOLD (Acción Principal en Hero/Dark) --- */
.btn-gold {
    background-color: var(--steel-silver); /* Gris Acero sólido */
    color: var(--primary-blue);            /* Texto Azul Navy */
}

.btn-gold:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
    /* Se mantiene sólido, sin cambio de color */
}

/* --- BTN-OUTLINE (Acción Secundaria) --- */
/* Lo haremos sólido con el azul de acento para que no pierda fuerza industrial */
.btn-outline {
    background-color: var(--accent-blue); /* Azul Acento sólido */
    color: var(--white);
}

.btn-outline:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(26, 95, 180, 0.4);
    /* Se mantiene sólido */
}

/* Ajuste para dispositivos móviles (Ancho completo) */
@media (max-width: 768px) {
    .btn-gold, .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}

/***********************************************************
 * BOTONES DE TARJETAS (CARDS)                             *
 ***********************************************************/

/* Botón que actúa como pie de la tarjeta */
.service-card .btn-main {
    display: block;
    width: 100%;
    padding: 20px;
    background-color: var(--primary-blue); /* Azul Navy Sólido */
    color: var(--white);
    text-align: center;
    text-decoration: none;
    font-family: var(--title-font);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border: none;
    transition: var(--transition-smooth);
    margin-top: auto; /* Empuja el botón al final de la tarjeta */
}

/* Hover Sólido: En lugar de cambiar color, usamos brillo o elevación */
.service-card .btn-main:hover {
    background-color: var(--accent-blue); /* Cambio a azul de acento al interactuar */
    color: var(--white);
    letter-spacing: 2px; /* Efecto sutil de expansión industrial */
}

/* Variante si prefieres el botón con margen dentro de la info (como en tu HTML) */
.service-info .btn-main {
    display: inline-block;
    width: auto;
    padding: 14px 30px;
    margin-top: 15px;
    /* Esto sobreescribe el comportamiento de bloque si el botón está dentro de .service-info */
}

/***********************************************************
 * HEADER & NAVEGACIÓN
 ***********************************************************/
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: auto; /* Mantenido para evitar desbordes por padding */
    height: 90px;
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    background-color: transparent;
}

.header-active {
    background-color: var(--primary-blue);
    height: 75px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 5%; /* Padding de seguridad */
}

/* Ajustes para el Logo con Imagen */
.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80px; /* Tamaño inicial del logo */
    width: auto;
    transition: var(--transition-smooth);
    object-fit: contain;
}

/* El logo se reduce cuando el header se activa */
.header-active .logo-img {
    height: 70px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition-smooth);
}

.nav-links a:hover { color: var(--accent-blue); }

.nav-links a:not(.nav-cta) {
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-blue);
    transition: var(--transition-smooth);
}

.nav-links a:not(.nav-cta):hover::after {
    width: 100%;
}

/* Ajuste: Mayor especificidad para evitar !important */
.nav-links .nav-cta {
    background-color: var(--accent-blue);
    color: var(--white);
    padding: 12px 25px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

.nav-links .nav-cta:hover {
    background-color: var(--white);
    color: var(--primary-blue);
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition-smooth);
    background-color: var(--white);
}

/***********************************************************
 * RESPONSIVE: HEADER
 ***********************************************************/
@media (max-width: 992px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--primary-blue);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }

    .logo-img {
        height: 45px; /* Logo más pequeño en móvil */
    }
}

/***********************************************************
 * HERO SECTION (VIDEO INDUSTRIAL EDITION)
 ***********************************************************/
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--primary-blue); 
    overflow: hidden; /* Mantiene el video y overlay dentro de los límites */
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 700px;
}

/* VELO ELEGANTE PARA EL TÍTULO */
.hero-content .premium-title {
    margin-bottom: 1.2rem;
    display: block;
    /* Creamos un degradado sutil que solo vive detrás del texto */
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0.4) 60%, 
        transparent 100%
    );
    padding: 10px 25px;
    /* El truco: un borde izquierdo que le da el toque premium */
    border-left: 4px solid var(--accent-blue);
    width: fit-content; /* El fondo se ajusta al largo del título */
}

/* VELO ELEGANTE PARA EL SUBTÍTULO */
.hero-content .hero-subtitle {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 650px;
    padding: 10px 25px;
    /* Degradado más suave para el párrafo */
    background: linear-gradient(
        to right, 
        rgba(0, 0, 0, 0.5) 0%, 
        transparent 100%
    );
    width: fit-content;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center; 
}

/* AJUSTE DE SIMETRÍA TOTAL (BLINDADO) */
.hero-actions .btn-gold, 
.hero-actions .btn-outline {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    
    /* Forzamos dimensiones idénticas */
    width: 220px;          /* En lugar de min-width, usamos width fijo para pruebas */
    height: 55px;         /* Altura fija para garantizar igualdad absoluta */
    
    padding: 0;           /* Eliminamos el padding para que no influya */
    margin: 0;
    
    font-size: 0.9rem;
    line-height: 1;       /* Evita que el interlineado mueva el texto */
    vertical-align: middle;
}

.hero-actions .btn-outline {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.hero-actions .btn-gold {
    background-color: var(--accent-blue);
    border: 2px solid var(--accent-blue); /* Añadimos borde al gold para que midan lo mismo */
    color: var(--white);
}

/***********************************************************
 * RESPONSIVE (HEADER & HERO)
 ***********************************************************/
@media (max-width: 768px) {
    .hamburger { display: block; }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--primary-blue);
        width: 100%;
        height: 100vh;
        transition: 0.3s;
        justify-content: center;
        visibility: hidden; /* Oculta totalmente el menú cuando no está activo */
    }

    .nav-links.active { 
        left: 0; 
        visibility: visible;
    }

    .nav-links li { margin: 25px 0; }
    .nav-links a { font-size: 1.5rem; }

    .hero-content { text-align: center; padding: 0 15px; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    /* En móvil ambos ocupan el mismo ancho máximo */
    .hero-actions .btn-gold, 
    .hero-actions .btn-outline {
        width: 100%;
        max-width: 300px;
    }
}

/***********************************************************
 * SECCIÓN NOSOTROS - ALQUILERYEXCAVACIONPVSA
 ***********************************************************/

.about.section-dark {
    padding: 120px 0;
    overflow: hidden; /* Evita desbordamientos por animaciones AOS */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    margin-top: 50px;
    align-items: center;
}

/* Tipografía de Realce */
.text-highlight {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 500;
    border-left: 3px solid var(--accent-blue); /* Detalle visual de potencia */
    padding-left: 20px;
}

.about-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
    color: var(--steel-silver); /* Mejor lectura sobre fondo oscuro */
}

/* Lista Técnica (Iconos FontAwesome) */
.about-list {
    list-style: none;
    margin-top: 2.5rem;
    padding: 0;
}

.about-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.about-list li i {
    color: var(--accent-blue); /* Color consistente con la marca */
    font-size: 1.1rem;
}

/* Contenedor de Estadísticas */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.03); /* Más moderno que un color plano */
    padding: 35px;
    border-bottom: 4px solid var(--steel-silver);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px); /* Efecto cristal premium */
}

.stat-card:hover {
    transform: translateX(10px); /* Efecto lateral en lugar de subir */
    border-bottom-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.07);
}

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--title-font);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--steel-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 600;
}

/***********************************************************
 * MEDIA QUERIES: OPTIMIZACIÓN MÓVIL
 ***********************************************************/

@media (max-width: 1024px) {
    .about-grid {
        gap: 40px;
        grid-template-columns: 1.1fr 0.9fr;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .about.section-dark {
        padding: 80px 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .text-highlight {
        border-left: none;
        border-top: 2px solid var(--accent-blue);
        padding-left: 0;
        padding-top: 20px;
    }

    .about-list {
        display: inline-block;
        text-align: left;
    }

    .about-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en tablets */
        gap: 15px;
    }

    .stat-card {
        padding: 30px 15px;
    }

    .stat-card:hover {
        transform: translateY(-5px); /* Cambio de dirección en móvil */
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr; /* Una columna en teléfonos */
    }

    .stat-number {
        font-size: 2.8rem;
    }

    .premium-title {
        font-size: 2rem;
    }
}

/***********************************************************
 * SECCIÓN SERVICIOS - ALQUILERYEXCAVACIONPVSA
 ***********************************************************/

.services.section-light {
    padding: 120px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--platinum);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Asegura que todas las cards midan lo mismo */
    position: relative;
    overflow: hidden;
    will-change: transform, box-shadow;
}

/* Hover: Elevación Industrial */
.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(10, 35, 66, 0.15);
    border-color: var(--accent-blue);
}

.service-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: var(--primary-blue); /* Fallback para carga de imagen */
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.1);
}

/* Número indicador */
.service-icon-box {
    position: absolute;
    bottom: 0;
    left: 0;
    background: var(--primary-blue);
    color: var(--white);
    font-family: var(--title-font);
    font-size: 1.2rem;
    padding: 12px 24px;
    font-weight: 700;
    z-index: 2;
    transition: background-color 0.3s ease;
}

.service-card:hover .service-icon-box {
    background-color: var(--accent-blue);
}

.service-info {
    padding: 35px 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-left: 5px solid var(--accent-blue);
    position: relative;
}

/* Línea decorativa inferior que se expande al hover */
.service-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background-color: var(--steel-silver);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-info::after {
    width: 100%;
}

.service-info h3 {
    font-family: var(--title-font);
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-info p {
    color: var(--primary-blue);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1; /* Empuja el botón siempre al final */
}

/* Estilo de Botón Integrado */
.service-card .btn-main {
    text-align: center;
    width: 100%;
    padding: 18px 0;
    display: block;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/***********************************************************
 * RESPONSIVO: SERVICIOS
 ***********************************************************/

@media (max-width: 1024px) {
    .services-grid { 
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .services.section-light { 
        padding: 80px 0; 
    }
    
    .services-grid { 
        grid-template-columns: 1fr; 
        margin-top: 40px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
    
    .service-img-wrapper { 
        height: 220px; 
    }

    .service-info {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .service-info h3 {
        font-size: 1.3rem;
    }
}

/***********************************************************
 * SECCIÓN POR QUÉ ELEGIRNOS - ALQUILERYEXCAVACIONPVSA
 ***********************************************************/

.why-us.section-dark {
    padding: 120px 0;
    background-color: var(--primary-blue); /* Navy profundo */
    position: relative;
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.why-item {
    text-align: center;
    padding: 20px;
    transition: var(--transition-smooth);
}

.why-icon {
    width: 80px;
    height: 80px;
    background-color: var(--dark-accent);
    margin: 0 auto 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--accent-blue);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Efecto Diamond-Turn: El cuadro gira pero el icono se mantiene */
.why-item:hover .why-icon {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: rotate(45deg);
    border-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 115, 207, 0.4); /* Resplandor de marca */
}

.why-icon i {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-item:hover .why-icon i {
    transform: rotate(-45deg); /* Contrarresta el giro del contenedor */
}

.why-item h3 {
    font-family: var(--title-font);
    color: var(--white);
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.why-item p {
    color: var(--steel-silver);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/***********************************************************
 * RESPONSIVE: WHY-US OPTIMIZADO
 ***********************************************************/

@media (max-width: 1024px) {
    .why-us.section-dark {
        padding: 100px 0;
    }

    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px 30px;
    }
}

@media (max-width: 768px) {
    .why-item p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .why.section-dark {
        padding: 80px 0;
    }

    .why-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .why-icon {
        width: 75px;
        height: 75px;
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .why-item h3 {
        font-size: 1.1rem;
    }
}

/***********************************************************
 * SECCIÓN MARCAS (CARRUSEL INFINITO - COLOR NATURAL)
 ***********************************************************/
.brands.section-light {
    padding: 100px 0;
    background-color: var(--steel-silver); /* Forzamos el fondo blanco de tu variable */
    border-bottom: 1px solid var(--platinum);
    overflow: hidden;
    --item-width: 430px; /* Base para el cálculo de la animación */
}

/* Contenedor con desvanecimiento lateral para suavizar la entrada/salida */
.brands-wrapper {
    width: 100%;
    margin-top: 50px;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brands-track {
    display: flex;
    /* Cálculo dinámico: 12 elementos (6 originales + 6 duplicados) */
    width: calc(var(--item-width) * 12); 
    animation: scrollInfinite 35s linear infinite;
    gap: 80px; 
    align-items: center;
    will-change: transform;
}

@keyframes scrollInfinite {
    0% { transform: translateX(0); }
    /* Desplazamiento exacto de la mitad del track para bucle perfecto */
    100% { transform: translateX(calc(var(--item-width) * -6)); } 
}

/* Pausa al hover para que el usuario pueda identificar las marcas */
.brands-wrapper:hover .brands-track {
    animation-play-state: paused;
}

.brand-logo {
    width: 350px; 
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo img {
    width: 100%;
    max-width: 280px; 
    height: auto;
    max-height: 100px; 
    object-fit: contain;
    /* Mantenemos el color natural con brillo completo */
    filter: none; 
    opacity: 1;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Efecto de elevación sutil al pasar el mouse */
.brand-logo:hover img {
    transform: scale(1.08);
}

/***********************************************************
 * RESPONSIVE: MARCAS EN MÓVIL (TAMAÑO IMPACTANTE)
 ***********************************************************/
@media (max-width: 768px) {
    .brands.section-light {
        padding: 80px 0;
        --item-width: 330px; /* Ajuste proporcional para pantallas pequeñas */
    }
    
    .brands-track {
        animation-duration: 25s; /* Velocidad ajustada para móvil */
        gap: 50px;
        width: calc(var(--item-width) * 12);
    }
    
    @keyframes scrollInfinite {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(var(--item-width) * -6)); }
    }

    .brand-logo {
        width: 280px; 
    }

    .brand-logo img {
        max-width: 190px; 
        max-height: 70px;
    }
}

/* Accesibilidad: Detener animación si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce) {
    .brands-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        gap: 40px;
    }
}


/***********************************************************
 * SECCIÓN NOSOTROS (SPLIT LAYOUT) - ALQUILERYEXCAVACIONPVSA
 ***********************************************************/
.about-split {
    padding: 120px 0;
    background-color: var(--steel-silver);
}

.split-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

/* Estilos Lado Información */
.split-info .premium-title {
    font-size: 3rem;
    margin-bottom: 25px;
    line-height: 1.1;
}

.split-description {
    color: var(--primary-blue);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 35px;
}

.split-stats {
    display: flex;
    gap: 50px;
    margin-bottom: 45px;
    padding-top: 20px;
    border-top: 1px solid rgba(10, 35, 66, 0.1);
}

.stat-num {
    display: block;
    font-family: var(--title-font);
    font-size: 2.2rem;
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    color: var(--accent-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
}

/* Restauración del Botón Original (Sólido) */
.btn-outline {
    display: inline-block;
    padding: 18px 35px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s ease;
    border: none;
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    color: var(--white);
}

/* Estilos Lado Tarjetas */
.split-cards {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.mini-card {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    padding: 40px;
    text-decoration: none;
    overflow: hidden;
    border: 1px solid var(--platinum);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Imagen sin filtros */
.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    filter: none; /* Color natural */
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Overlay sutil solo para lectura de texto (sin velo azul completo) */
.mini-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(10, 35, 66, 0.85) 0%, transparent 100%);
    opacity: 1;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.mini-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.mini-content h3 {
    font-family: var(--title-font);
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.mini-link {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--accent-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Hover de las tarjetas mini */
.mini-card:hover {
    transform: translateX(15px);
    border-color: var(--accent-blue);
    box-shadow: -10px 10px 30px rgba(10, 35, 66, 0.1);
}

.mini-card:hover .card-img {
    transform: scale(1.15);
}

/* Efecto de hover que refuerza el contraste sin ensuciar la imagen */
.mini-card:hover .mini-overlay {
    background: linear-gradient(90deg, var(--primary-blue) 0%, rgba(0, 115, 207, 0.2) 100%);
}

/***********************************************************
 * RESPONSIVE: SPLIT SECTION OPTIMIZADO
 ***********************************************************/
@media (max-width: 1024px) {
    .split-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .split-info .premium-title { font-size: 2.8rem; text-align: center; }
    .split-description { text-align: center; }
    .split-stats { justify-content: center; }
    .split-info { text-align: center; }

    .mini-card {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .split-info .premium-title { font-size: 2.2rem; }
    .split-stats { gap: 30px; }
    .stat-num { font-size: 1.8rem; }
    .mini-card { height: 180px; padding: 25px; }
    .mini-content h3 { font-size: 1.3rem; }
}

/***********************************************************
 * SECCIÓN UBICACIÓN (COLUMNAS - DARK EDITION)
 ***********************************************************/
.location-section.section-dark {
    padding: 120px 0;
    background-color: var(--primary-blue); /* Navy profundo */
}

/* Encabezado según estructura aprobada */
.location-intro {
    margin-bottom: 70px;
}

.location-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Mapa ligeramente más ancho */
    gap: 80px;
    align-items: center;
}

/* Lado de Información */
.info-group {
    margin-bottom: 35px;
}

.info-group h3 {
    font-family: var(--title-font);
    font-size: 1.3rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.info-group p {
    color: var(--steel-silver);
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-group p strong {
    color: var(--white);
    font-weight: 600;
}

/* Enlaces de contacto dentro de la ubicación */
.loc-link {
    color: var(--steel-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.loc-link:hover {
    color: var(--accent-blue);
}

/* Lado del Mapa */
.location-map {
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(0.2) contrast(1.1) invert(0.05); /* Toque industrial al mapa */
    transition: var(--transition-smooth);
}

.location-map:hover iframe {
    filter: grayscale(0) contrast(1);
}

/* Botón de Ruta Dorado */
.btn-gold {
    display: inline-block;
    padding: 18px 35px;
    background-color: var(--accent-blue); /* Ajustado a tu paleta azul premium */
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    margin-top: 15px;
}

.btn-gold:hover {
    background-color: var(--white);
    color: var(--primary-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/***********************************************************
 * RESPONSIVE: LOCATION DARK OPTIMIZADO
 ***********************************************************/
@media (max-width: 1024px) {
    .location-container {
        gap: 50px;
    }
}

@media (max-width: 992px) {
    .location-section.section-dark {
        padding: 80px 0;
    }

    .location-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .location-map {
        height: 400px;
        order: 2; /* Mapa debajo de la info en móviles */
    }

    .location-content {
        order: 1;
    }

    .info-group p {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .location-map {
        height: 300px;
    }
    
    .info-group h3 {
        font-size: 1.15rem;
    }
}

/***********************************************************
 * FOOTER (INDUSTRIAL CLOSURE) - ALQUILERYEXCAVACIONPVSA
 ***********************************************************/
.main-footer {
    background-color: #051221; /* Deep Navy Industrial */
    padding: 100px 0 40px;
    border-top: 3px solid var(--accent-blue);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

/* Columna Marca */
.footer-brand .logo {
    margin-bottom: 25px;
}

.brand-description {
    color: var(--steel-silver);
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 0.95rem;
    max-width: 400px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* ELIMINA LÍNEA DEBAJO DEL ICONO */
    text-decoration: none; 
}

.footer-social a:hover {
    background-color: var(--accent-blue);
    color: var(--white);
    transform: translateY(-5px);
    border-color: var(--accent-blue);
    /* ASEGURA QUE NO APAREZCA EN HOVER */
    text-decoration: none; 
}

/* Títulos de columnas */
.main-footer h3 {
    font-family: var(--title-font);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 35px;
    color: var(--white);
    font-weight: 700;
}

/* Navegación y Contacto */
.footer-nav ul, 
.footer-contact ul {
    list-style: none;
    padding: 0;
}

.footer-nav li, 
.contact-info li { 
    margin-bottom: 18px; 
}

.footer-nav a, 
.contact-info a {
    color: var(--steel-silver);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-nav a:hover, 
.contact-info a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--steel-silver);
}

.contact-info i { 
    color: var(--accent-blue); 
    margin-top: 5px;
    /* DOBLE SEGURIDAD PARA EL ICONO */
    text-decoration: none; 
}

/* Badge de Certificación */
.footer-badge {
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 115, 207, 0.1);
    border-left: 4px solid var(--accent-blue);
}

.footer-badge i {
    color: var(--accent-blue);
    font-size: 1.2rem;
}

.footer-badge span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Bottom Bar */
.footer-bottom {
    padding-top: 35px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    margin-left: 25px;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/***********************************************************
 * RESPONSIVE: FOOTER
 ***********************************************************/
@media (max-width: 992px) {
    .main-footer { padding: 80px 0 40px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .brand-description { margin: 0 auto 30px; }
    .footer-social, .footer-badge { justify-content: center; }
    
    .footer-nav a:hover { padding-left: 0; }
    
    .contact-info li { justify-content: center; }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .footer-legal a { margin: 0 12px; }
}


/* ================================================================
   WIDGET: WHATSAPP FLOATING BUTTON (STATIC BUTTON - PULSE ONLY)
   ================================================================
*/

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Cambio: Solo transición de color, eliminamos el 'all' para evitar escalas accidentales */
    transition: background-color 0.3s ease;
    pointer-events: auto;
}

.whatsapp-float:hover {
    /* Ajuste: Eliminado el scale(1.1), el botón se queda quieto */
    background-color: #20ba5a; 
    color: #FFF;
    text-decoration: none;
}

/* Efecto de Pulso (Círculo independiente) */
.pulse-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    /* El z-index -1 lo mantiene detrás del logo de WhatsApp */
    z-index: -1;
    will-change: transform, opacity;
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        /* El aro crece pero el botón padre se mantiene en scale(1) */
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 25px;
        right: 25px; 
        font-size: 25px;
    }
}