/* =========================================
   1. RESET BÁSICO & VARIABLES
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box; /* FUNDAMENTAL: Evita que el padding ensanche los elementos */
}

:root {
    /* PALETA DE COLORES */
    --bg-deep: #0B3037;  
    --bg-accent: #134E5E; 
    --text-mint: #B8D8D0; 
    --glass-bg: rgba(19, 78, 94, 0.3);
}

/* =========================================
   2. CONFIGURACIÓN DEL BODY
   ========================================= */
.deep-teal-body {
    background-color: var(--bg-deep);
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: var(--text-mint);
    overflow-x: hidden; /* Evita scroll lateral en toda la web */
}

/* =========================================
   3. HERO SECTION (CONTENEDOR PRINCIPAL)
   ========================================= */
.hero-section {
    position: relative; 
    min-height: 130vh; /* Altura extra para forzar scroll hacia el Vault */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    z-index: 10;
    padding-top: 15vh; 
    overflow: hidden; 
}

/* --- CAPA DE RUIDO (SOLO EN EL HERO) --- */
.noise-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    
    /* Grano fino y elegante */
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="2.8" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="1"/%3E%3C/svg%3E');
    
    opacity: 0.12; 
    mix-blend-mode: soft-light;
    filter: contrast(120%);
    pointer-events: none;
    z-index: 0; 
}

/* --- FONDO AURA (DIV CON MÁSCARA) --- */
.hero-aura-background {
    position: absolute;
    bottom: 0;      
    left: 0; 
    width: 100%; 
    height: 80vh;   
    
    /* TU IMAGEN DE AURA */
    background-image: url('assets/images/aura.png'); 
    background-position: center bottom;
    background-size: cover;
    background-repeat: no-repeat;
    
    opacity: 0.6;
    z-index: 1; 
    pointer-events: none;
    mix-blend-mode: screen;

    /* Máscara para suavizar el corte superior */
    mask-image: linear-gradient(to top, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to top, black 60%, transparent 100%);
}

/* =========================================
   4. CONTENIDO DEL HERO
   ========================================= */
.hero-content {
    text-align: center;
    z-index: 20; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2%;
}

/* LOGO GIGANTE */
.giant-logo {
    width: 60vw; max-width: 900px; height: auto;
    filter: drop-shadow(0 0 30px rgba(184, 216, 208, 0.15));
}

/* TAGLINE */
.tagline {
    font-size: 0.85rem; letter-spacing: 0.6em; text-transform: uppercase;
    margin-top: 20px; opacity: 0.9;
}

/* =========================================
   MENÚ PASTILLA (GLOBAL / ESCRITORIO)
   ========================================= */
.hero-pill-nav {
    /* 1. POSICIONAMIENTO FLOTANTE */
    position: absolute; /* En escritorio es absoluto */
    top: 80vh; /* Ajusta esto para subir/bajar la pastilla en PC */
    
    /* 2. TRUCO DE CENTRADO SEGURO (Sin transform, para no romper el reveal) */
    left: 0; 
    right: 0; 
    margin-left: auto; 
    margin-right: auto;
    width: fit-content; /* Se adapta al ancho del contenido */
    
    /* 3. ESTILOS VISUALES */
    display: inline-flex; align-items: center; gap: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(184, 216, 208, 0.15);
    padding: 14px 50px; 
    border-radius: 100px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    
    z-index: 9999; /* ¡AHORA SÍ FUNCIONARÁ! */
    transition: all 0.3s ease;
}

/* Hover */
.hero-pill-nav:hover {
    background: rgba(19, 78, 94, 0.5); transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

/* Enlaces */
.hero-pill-nav a {
    text-decoration: none; color: var(--text-mint);
    font-size: 0.75rem; font-weight: 800; letter-spacing: 2px;
    opacity: 0.6; transition: 0.3s; white-space: nowrap;
}
.hero-pill-nav a:hover, .hero-pill-nav a.active { opacity: 1; color: #fff; }
.separator { opacity: 0.3; }

/* =========================================
   AJUSTE MÓVIL (STICKY REAL)
   ========================================= */
@media (max-width: 768px) {
    .hero-pill-nav {
        position: fixed; /* Se pega a la pantalla */
        top: auto;       /* Ignora el top de escritorio */
        bottom: 30px;    /* Pegado abajo */
        
        /* Ajustes de tamaño móvil */
        width: fit-content;
        max-width: 90%;
        padding: 12px 30px; gap: 15px;
        
        /* Más visibilidad */
        background: rgba(11, 48, 55, 0.9);
        box-shadow: 0 10px 40px rgba(0,0,0,0.7);
        border: 1px solid rgba(184, 216, 208, 0.3);
    }
    
    .hero-pill-nav a { font-size: 0.65rem; letter-spacing: 1.5px; }
    
    /* Compensación de espacio en el Hero ya que la pastilla "se fue" */
    .services-ticker { margin-top: 100px; }
}

/* TICKER SERVICIOS */
.services-ticker {
    margin-top: 35px; width: 100%; max-width: 800px; overflow: hidden;
    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);
}
.ticker-track {
    display: flex; gap: 40px; width: max-content;
    animation: scrollTicker 30s linear infinite;
}
.ticker-track span {
    color: var(--text-mint); font-size: 0.65rem; text-transform: uppercase;
    letter-spacing: 2px; font-weight: 600; opacity: 0.5; white-space: nowrap;
}
@keyframes scrollTicker {
    0% { transform: translateX(0); } 100% { transform: translateX(-50%); }
}

/* =========================================
   5. VAULT SECTION (TARJETAS)
   ========================================= */
.vault-container {
    background-color: var(--bg-accent);
    width: 100%;
    min-height: 100vh;
    border-radius: 60px 60px 0 0;
    margin-top: -100px; /* Sube sobre el Hero */
    
    position: relative;
    z-index: 20; 
    
    padding: 120px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -50px 100px rgba(0,0,0,0.4);
    
    display: flex; justify-content: center;
}

.glass-grid-wrapper { width: 100%; max-width: 1200px; }

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px; width: 100%;
}

.glass-card {
    height: 450px; border-radius: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(184, 216, 208, 0.1);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    display: flex; justify-content: center; align-items: center; text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-content h3 { color: var(--text-mint); font-size: 1.5rem; margin-bottom: 10px; }
.card-content p { color: var(--text-mint); opacity: 0.6; letter-spacing: 2px; text-transform: uppercase; font-size: 0.8rem; }

.glass-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    background: rgba(19, 78, 94, 0.4);
    box-shadow: 0 50px 90px rgba(0, 0, 0, 0.4);
}

/* =========================================
   6. ANIMACIONES (REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(60px); 
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.giant-logo.reveal { transition-delay: 0.1s; }
.tagline.reveal { transition-delay: 0.3s; }
.hero-pill-nav.reveal { transition-delay: 0.5s; }
.services-ticker.reveal { transition-delay: 0.7s; }
.hero-aura-background.reveal { transition-delay: 0.8s; transition-duration: 2s; } 

.glass-card:nth-child(1) { transition-delay: 0.1s; }
.glass-card:nth-child(2) { transition-delay: 0.2s; }
.glass-card:nth-child(3) { transition-delay: 0.3s; }
.glass-card:nth-child(4) { transition-delay: 0.4s; }
.glass-card:nth-child(5) { transition-delay: 0.5s; }
.glass-card:nth-child(6) { transition-delay: 0.6s; }


/* =========================================
   7. RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    
    /* LOGO MÁS GRANDE */
    .giant-logo { width: 60vw;
    margin-top: 20%; }
    .tagline {
    font-size: 0.55rem; letter-spacing: 0.6em; text-transform: uppercase;
    margin-top: 20px; opacity: 0.9;
}
    
    /* MENÚ STICKY INFERIOR (CORREGIDO PARA NO CORTARSE) */
    .hero-pill-nav {
        position: fixed; 
        bottom: 30px; 
        

        
        /* Dimensiones Ajustables */
        width: fit-content; /* Se adapta al contenido (Work Lab Hablemos) */
        min-width: 280px;   /* Mínimo para que no sea muy chica */
        max-width: 90%;     /* Tope para que no toque bordes */
        
        margin-top: 0; 
        justify-content: center; 
        gap: 15px; 
        padding: 12px 25px; /* Padding seguro */
        
        background: rgba(11, 48, 55, 0.85); 
        backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 10px 40px rgba(0,0,0,0.6);
        z-index: 1000;
        
        /* Asegura que no se corte contenido */
        white-space: nowrap; 
    }
    
    .hero-pill-nav a { font-size: 0.65rem; letter-spacing: 1.5px; }

    /* ESPACIADO TICKER */
    .services-ticker { 
        max-width: 90%; 
        margin-top: 80px; 
        margin-bottom: 20px;
    }

    /* AJUSTES ALTURA Y AURA */
    .hero-section { min-height: 110vh; padding-top: 20vh; }
    .hero-aura-background { height: 60vh; opacity: 0.5; }
    
    /* VAULT MÓVIL */
    .vault-container { margin-top: -50px; border-radius: 40px 40px 0 0; }
}/* =========================================
 /* =========================================
   ESTILOS DE LAS TARJETAS DE CLIENTE
   ========================================= */

/* =========================================
   ESTILOS DE TARJETAS PRO (ALINEADAS + ESCALABLES)
   ========================================= */

a.glass-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    /* Alineación vertical: pone el contenido en el centro óptico */
    justify-content: flex-start; 
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 20px; /* Espacio interno consistente */
}

/* 1. LA CAJA CONTENEDORA (EL "ESCENARIO" FIJO) */
.logo-box {
    /* ALTURA FIJA: Esto es lo que alinea los textos horizontalmente.
       No importa si el logo es alto o bajo, la caja siempre mide 120px. */
    height: 120px; 
    width: 100%; /* Ocupa todo el ancho disponible */
    
    /* Centrado absoluto del logo dentro de su escenario */
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-bottom: 30px; /* Separación fija con el texto */
    position: relative;
}

/* 2. LA MÁSCARA MINT (LOGO ESCALABLE) */
.mint-mask-logo {
    /* Tamaño base del logo dentro de la caja */
    width: 160px; 
    height: 100%; /* Usa toda la altura de la caja si es necesario */
    
    background-color: var(--text-mint);
    
    mask-image: var(--logo-url);
    -webkit-mask-image: var(--logo-url);
    
    /* 'contain' asegura que el logo se vea entero siempre */
    mask-size: contain; 
    -webkit-mask-size: contain;
    
    mask-repeat: no-repeat; -webkit-mask-repeat: no-repeat;
    mask-position: center; -webkit-mask-position: center;
    
    /* LA MAGIA: Usamos la variable --scale para ajustar tamaño individualmente */
    /* Por defecto es 1 (100%) */
    transform: scale(var(--scale, 1)); 
    
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* TIPOGRAFÍA (ALINEADA) */
.card-content {
    width: 100%;
    text-align: center;
    /* Aseguramos que el texto crezca hacia abajo desde el mismo punto */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-content h3 {
    color: var(--text-mint); 
    font-size: 1.2rem; 
    letter-spacing: 2px;
    text-transform: uppercase; 
    margin: 0 0 10px 0; /* Margen fijo abajo del título */
    font-weight: 800;
    line-height: 1.2;
    
    /* Si el título es muy largo (2 líneas), reservamos altura para que no desalinee lo de abajo */
    min-height: 2.4rem; 
    display: flex;
    align-items: center; /* Centrado vertical si es 1 sola línea */
    justify-content: center;
}

.card-content p {
    color: var(--text-mint); 
    font-size: 0.7rem; 
    opacity: 0.6;
    font-weight: 600; 
    letter-spacing: 1.5px; 
    margin: 0;
}

/* CTA HOVER */
.card-cta {
    margin-top: 25px; 
    font-size: 0.75rem; color: #fff; font-weight: 700;
    letter-spacing: 2px; opacity: 0; transform: translateY(10px);
    transition: all 0.3s ease; text-transform: uppercase;
    
    /* Decoración */
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50px;
}

/* INTERACCIÓN HOVER */
.glass-card:hover .mint-mask-logo {
    /* Al hacer hover, crece un 10% EXTRA sobre su escala base */
    transform: scale(calc(var(--scale, 1) * 1.1)); 
    filter: drop-shadow(0 0 15px rgba(184, 216, 208, 0.6));
}

.glass-card:hover .card-cta {
    opacity: 1; transform: translateY(0);
    background: rgba(255,255,255,0.1);
}