/* css/style.css - GRUPOSIT 2026: FINAL STATIC (SIN ANIMACIÓN DE TEXTO) */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #020617;
    --primary-teal: #2DD4BF;
    --accent-blue: #3b82f6;
    
    /* Configuración Cristal */
    --glass-bg: rgba(20, 25, 40, 0.6); 
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.3);
    --glass-blur: 24px;       
    --neon-glow: 0 0 30px rgba(45, 212, 191, 0.15);
}

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-dark);
    color: #e2e8f0;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

/* --- 1. FONDO VIVO (AMBIENTE) --- */
.ambient-bg {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 10% 20%, rgba(45, 212, 191, 0.1), transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.1), transparent 40%);
    background-color: var(--bg-dark);
    pointer-events: none;
}

/* --- 2. NAVBAR (CORRECTO PARA MÓVILES Y ESCRITORIO) --- */
header { pointer-events: none; transition: padding 0.3s ease; }

.nav-island {
    pointer-events: auto;
    background: rgba(2, 6, 23, 0.6); 
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px; 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    
    /* Layout Base (Móvil) */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.5rem; 
    
    max-width: 1200px;
    width: 95%; 
}

/* Estilos solo para Escritorio (> 1024px) */
@media (min-width: 1024px) {
    .nav-island {
        padding: 0.75rem 2rem; 
    }

    .nav-island nav {
        display: flex;
        gap: 2rem;
        align-items: center;
    }
    
    .nav-island nav > :not([hidden]) ~ :not([hidden]) {
        margin-left: 0; 
    }
}

/* Ajuste Laptops Pequeñas (1024px - 1150px) */
@media (min-width: 1024px) and (max-width: 1150px) {
    .nav-island nav { gap: 1rem; }
    .nav-island nav a { font-size: 0.8rem; }
    .nav-island .btn-neon { padding: 0.5rem 1rem; font-size: 0.75rem; }
}

/* --- 3. PANELES DE CRISTAL --- */
.glass-panel {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    
    border: 1px solid var(--glass-border);
    border-top: 1px solid var(--glass-highlight);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-panel:hover {
    border-color: rgba(45, 212, 191, 0.5);
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
    background: linear-gradient(145deg, rgba(45, 212, 191, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
}

/* --- 4. TIPOGRAFÍA UNIFICADA (SIN ANIMACIÓN) --- */
.section-header { text-align: center; margin-bottom: 4rem; }

.section-eyebrow {
    display: inline-block; font-size: 0.75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--primary-teal);
    margin-bottom: 0.75rem;
}

/* Título H1 */
.hero-title {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem); 
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: white;
    margin-bottom: 1.5rem;
}

/* Título H2 */
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

/* --- AQUÍ ESTÁ EL CAMBIO: GRADIENTE ESTATICO --- */
.text-gradient {
    /* Gradiente fijo de Turquesa a Azul */
    background: linear-gradient(to right, #2DD4BF 20%, #3b82f6 80%);
    
    /* Recorte para que pinte solo el texto */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    display: inline-block;
    
    /* Mantenemos el brillo exterior (Drop Shadow) */
    filter: drop-shadow(0 0 25px rgba(45, 212, 191, 0.4));
    
    /* Eliminada la animación 'shine' */
}

/* --- 5. COMPONENTES: TESTIMONIOS --- */
.testimonial-card-v2 {
    padding: 2.5rem;
    display: flex; flex-direction: column; gap: 1.5rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.testimonial-card-v2:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--neon-glow);
    transform: translateY(-5px);
}

.testimonial-bg-quote {
    position: absolute; top: -10px; right: 20px;
    font-size: 8rem; color: rgba(255, 255, 255, 0.03);
    font-family: serif; line-height: 1; pointer-events: none; z-index: 0;
}

.testimonial-text {
    font-style: italic; color: #e2e8f0; line-height: 1.7; flex-grow: 1;
    position: relative; z-index: 10;
}

.author-block {
    display: flex; align-items: center; gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    position: relative; z-index: 10;
}

.author-icon {
    width: 3rem; height: 3rem;
    background: rgba(45, 212, 191, 0.1);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-teal); font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(45, 212, 191, 0.1);
}

/* --- 6. COMPONENTES: PROYECTOS --- */
.project-card-immersive {
    position: relative; height: 420px; 
    border-radius: 1.5rem; overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: all 0.4s ease; display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-card-immersive img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.7s ease;
}

.project-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, var(--bg-dark) 10%, rgba(2, 6, 23, 0.5) 60%, transparent 100%);
    z-index: 1;
}

.project-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 2rem; z-index: 2;
}

.project-card-immersive:hover {
    border-color: var(--primary-teal);
    box-shadow: var(--neon-glow);
}
.project-card-immersive:hover img { transform: scale(1.1); }

/* --- 7. SERVICIOS & UTILS --- */
.service-card { display: flex; flex-direction: column; height: 100%; padding: 2.5rem; }
.service-icon {
    width: 4rem; height: 4rem;
    background: rgba(45, 212, 191, 0.05); border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 1rem; display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: var(--primary-teal); margin-bottom: 2rem;
    transition: all 0.3s ease;
}
.service-card:hover .service-icon {
    background: var(--primary-teal); color: #000; transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}
.service-link {
    margin-top: auto; color: var(--primary-teal); font-size: 0.9rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.05em; display: flex; align-items: center;
    gap: 0.5rem; transition: gap 0.3s ease;
}
.service-card:hover .service-link { gap: 1rem; color: white; }

.glass-footer {
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
}

.btn-neon {
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(45, 212, 191, 0.1); color: var(--primary-teal);
    border: 1px solid var(--primary-teal); border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease;
}
.btn-neon:hover {
    background: var(--primary-teal); color: #000; box-shadow: 0 0 20px rgba(45, 212, 191, 0.5);
}

/* ANIMACIONES */
.reveal-on-scroll {
    opacity: 1; transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.js-loaded .reveal-on-scroll { opacity: 0; transform: translateY(30px); }
.js-loaded .reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fadeInHero { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.animate-hero { animation: fadeInHero 1s ease-out forwards; }

/* MENÚ MÓVIL (LIQUID GLASS) */
#mobile-menu {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top center;
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
    pointer-events: none;
    visibility: hidden;
    backdrop-filter: blur(0px);
}

#mobile-menu.menu-open {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
    visibility: visible;
    backdrop-filter: blur(20px);
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

#mobile-menu.menu-open a { opacity: 0; animation: slideIn 0.4s forwards; }
#mobile-menu.menu-open a:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.menu-open a:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.menu-open a:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.menu-open a:nth-child(4) { animation-delay: 0.25s; }
#mobile-menu.menu-open a:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ESTILOS PROYECTOS "TECH BLUEPRINT" (VERSIÓN COMPACTA) --- */

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* Menos espacio entre tarjetas */
}

.tech-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(2, 6, 23, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.25rem; /* Bordes un poco menos redondeados */
    padding: 1.75rem; /* Mucho menos relleno (antes 2.5rem) */
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px; /* Altura reducida (antes 380px) */
}

.tech-card:hover {
    transform: translateY(-5px); /* Movimiento más sutil */
    border-color: var(--primary-teal);
    box-shadow: 0 15px 30px -10px rgba(45, 212, 191, 0.15);
}

/* Número de fondo más discreto */
.tech-bg-number {
    position: absolute;
    top: -15px;
    right: -5px;
    font-size: 7rem; /* Reducido de 10rem a 7rem */
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    z-index: 0;
    transition: all 0.4s ease;
    font-family: sans-serif;
}

.tech-card:hover .tech-bg-number {
    color: rgba(45, 212, 191, 0.05);
    transform: scale(1.05);
}

.tech-content {
    position: relative;
    z-index: 1;
}

/* Iconos más pequeños */
.tech-icon-box {
    width: 2.8rem;  /* Reducido */
    height: 2.8rem; /* Reducido */
    background: rgba(45, 212, 191, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem; /* Icono más pequeño */
    color: var(--primary-teal);
    margin-bottom: 1rem; /* Menos margen */
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.tech-line {
    width: 30px;
    height: 2px;
    background: var(--primary-teal);
    margin: 1rem 0; /* Menos margen */
    opacity: 0.5;
    transition: width 0.3s ease;
}

.tech-card:hover .tech-line {
    width: 100%;
    opacity: 1;
}