/* =============================================
   HERO SECTION - Estilos del Hero/Banner Principal
   ============================================= */

   .hero {
    margin-top: 60px;
    min-height: calc(70vh - 60px);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(0, 40, 86, 0.4) 0%, rgba(21, 113, 112, 0.4) 100%),
                url('../img/backgrounds/Captura de pantalla 2025-09-01 180155.png') center bottom/cover;
    background-attachment: fixed;
    background-position: center bottom;
    overflow: hidden;
    padding: 0;
}

/* Overlay oscuro */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.7),
        rgba(0, 40, 86, 0.5)
    );
    z-index: 1;
}

/* Contenedor del contenido */
.hero-content {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 30px;
    z-index: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto del hero */
.hero-text {
    max-width: 700px;
    text-align: center;
    padding: 10px;
}

/* Subtítulo */
.hero-subtitle {
    color: var(--soft-aqua);
    font-family: var(--font-primary);
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Título principal */
.hero-text h1 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    line-height: 1.2;
    color: var(--blanco);
    margin-bottom: 10px;
    font-weight: 500;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    font-family: var(--font-secondary);
}

/* Texto destacado */
.hero-text h1 .accent-text {
    color: var(--soft-aqua);
    position: relative;
}

/* Descripción */
.hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    line-height: 1.6;
    font-weight: 200;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.4s forwards;
}

/* Botones */
.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeInUp 1.4s ease 0.6s forwards;
    flex-wrap: wrap;
    justify-content: center;
}

/* Contenedor inferior */
.bottom-container {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 3;
}

/* Trust Bar */
.trust-bar {
    position: relative;
    background: rgba(0, 40, 86, 0.5);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-top: 2px solid var(--soft-aqua);
    z-index: 3;
}

.trust-bar-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.trust-bar-item {
    text-align: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.trust-bar-item:nth-child(1) { animation-delay: 0.8s; }
.trust-bar-item:nth-child(2) { animation-delay: 1s; }
.trust-bar-item:nth-child(3) { animation-delay: 1.2s; }
.trust-bar-item:nth-child(4) { animation-delay: 1.4s; }

.trust-bar-number {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--blanco);  /* Blanco sobre fondo azul para contraste */
    font-weight: 600;
    margin-bottom: 5px;
    font-family: var(--font-secondary);
}

.trust-bar-label {
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: clamp(0.7rem, 1.5vw, 0.8rem);
    font-weight: 400;
}

.trust-bar-desc {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    margin-top: 3px;
    display: none;
}

/* Mini Carrusel de Clientes */
.mini-clients-carousel {
    background: var(--royal-blue);
    padding: 10px 0;
    border-top: 2px solid var(--soft-aqua);
    border-bottom: 2px solid var(--soft-aqua);
    position: relative;
    overflow: hidden;
    display: block;
}

.mini-clients-track {
    display: flex;
    animation: scrollMiniClients 25s linear infinite;
    gap: 40px;
    padding: 0 20px;
}

@keyframes scrollMiniClients {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.mini-client-item {
    min-width: 120px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(100%) brightness(0.8);
    transition: all var(--transition-fast);
}

.mini-client-item:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.mini-client-item img {
    max-width: 100px;
    max-height: 40px;
    object-fit: contain;
}

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1200px) {
    .trust-bar-grid {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
        margin-top: 50px;
    }
    
    .hero-content {
        padding: 40px 20px;
    }
    
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        align-items: center;
        width: 100%;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
        max-width: 280px;
    }
    
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .trust-bar {
        padding: 15px;
    }
    
    .trust-bar-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        flex-direction: column !important;
    }

    .hero-content {
        flex-direction: column !important;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column !important;
    }

    .trust-bar-grid {
        grid-template-columns: 1fr !important;
    }

    .mini-clients-track {
        flex-direction: row !important; /* Keep horizontal for carousel */
    }

    .mini-client-item {
        min-width: 80px;
    }
}