/* =========================================
   VARIABLES & RESET (DARK MODE PRO)
   ========================================= */
:root {
    /* Paleta Dark Mode */
    --bg-main: #050505;       /* Negro casi puro */
    --bg-secondary: #0f0f0f;  /* Gris muy oscuro para secciones */
    --bg-card: #141414;       /* Fondo de tarjetas */
    
    --primary-red: #FF3A46;   /* Rojo un poco más brillante para resaltar en negro */
    --primary-glow: rgba(255, 58, 70, 0.5); /* Color del resplandor */
    
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    
    /* Tipografía */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Espaciado */
    --spacing-section: 120px; /* Más aire para mayor elegancia */
    --spacing-medium: 50px;
    --spacing-small: 24px;

    /* Bordes y Efectos */
    --border-radius: 12px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px rgba(255, 58, 70, 0.15); /* Resplandor sutil base */
    --shadow-hover: 0 0 35px rgba(255, 58, 70, 0.3); /* Resplandor fuerte hover */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Scrollbar Personalizado Dark */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-main); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-red); }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.7;
    background-color: var(--bg-main);
    overflow-x: hidden;
}

/* =========================================
   TIPOGRAFÍA & EFECTOS DE TEXTO
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em; /* Kerning moderno */
}

h1 { 
    font-size: clamp(2.8rem, 6vw, 4.5rem); 
    font-weight: 800; 
    margin-bottom: var(--spacing-small);
    /* Efecto Gradiente en Texto */
    background: linear-gradient(to right, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: var(--spacing-small); }

p.lead-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-medium);
    max-width: 650px;
}

.section-subtitle {
    color: var(--primary-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(255, 58, 70, 0.1); /* Fondo sutil rojo */
    padding: 6px 12px;
    border-radius: 4px;
    border: 1px solid rgba(255, 58, 70, 0.2);
}

/* =========================================
   COMPONENTES
   ========================================= */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
section { padding: var(--spacing-section) 0; position: relative; }

/* Fondos */
.bg-light-gray { background-color: var(--bg-secondary); } /* Ahora es gris oscuro */
.bg-dark { background-color: #000000; } /* Footer más oscuro */

.text-center { text-align: center; }
.mt-medium { margin-top: var(--spacing-medium); }
.mb-small { margin-bottom: var(--spacing-small); }

/* --- BOTONES CON GLOW --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 16px 32px;
    font-family: var(--font-heading); font-weight: 700;
    text-decoration: none; border-radius: 50px; /* Botones redondeados modernos */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent; gap: 10px; cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rojo Neón */
.btn-red { 
    background-color: var(--primary-red); 
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 58, 70, 0.4); 
}
.btn-red:hover { 
    background-color: #ff5c66; 
    box-shadow: 0 0 30px rgba(255, 58, 70, 0.7); 
    transform: translateY(-3px);
}

/* Blanco Fantasma (Reemplaza al negro antiguo) */
.btn-black { 
    background-color: transparent; 
    color: var(--text-main); 
    border-color: rgba(255,255,255,0.3);
    backdrop-filter: blur(5px);
}
.btn-black:hover { 
    background-color: var(--text-main); 
    color: #000; 
    border-color: var(--text-main);
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: translateY(-3px);
}

/* Outline Styles */
.btn-black-outline { border-color: rgba(255,255,255,0.3); color: var(--text-main); }
.btn-black-outline:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); }

.btn-red-outline { border-color: var(--primary-red); color: var(--primary-red); }
.btn-red-outline:hover { background-color: var(--primary-red); color: #fff; box-shadow: 0 0 20px rgba(255, 58, 70, 0.4); }

.btn-white-outline:hover { background-color: var(--text-main); color: #000 !important; box-shadow: 0 0 20px rgba(255,255,255,0.5); }

.btn-large { padding: 20px 40px; font-size: 1rem; }
.btn-sm { padding: 10px 24px; font-size: 0.8rem; }

/* =========================================
   HEADER GLASSMORPHISM
   ========================================= */
.site-header {
    padding: 20px 0; position: sticky; top: 0;
    background: rgba(5, 5, 5, 0.8); /* Fondo semi-transparente oscuro */
    backdrop-filter: blur(15px); /* Desenfoque fuerte */
    z-index: 100; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-weight: 800; font-size: 1.6rem; color: var(--text-main); }
.logo .dot { color: var(--primary-red); text-shadow: 0 0 10px var(--primary-red); }

/* Nav */
.desktop-nav a:not(.btn) {
    text-decoration: none; color: var(--text-muted); font-weight: 600;
    margin-left: 30px; font-family: var(--font-heading); font-size: 0.9rem; position: relative;
    transition: color 0.3s;
}
.desktop-nav a:not(.btn):hover { color: var(--text-main); }
.desktop-nav a:not(.btn)::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -5px; left: 0; background-color: var(--primary-red); 
    box-shadow: 0 0 10px var(--primary-red); transition: width 0.3s ease;
}
.desktop-nav a:not(.btn):hover::after { width: 100%; }

/* Mobile Menu Dark */
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.8rem; color: var(--text-main); cursor: pointer; z-index: 102; }
.mobile-nav-overlay {
    position: fixed; top: 0; right: 0; width: 100%; height: 100vh;
    background-color: rgba(0,0,0,0.8); z-index: 101; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.mobile-nav-content {
    position: absolute; top: 0; right: 0; width: 85%; max-width: 320px; height: 100%;
    background-color: #111; border-left: 1px solid rgba(255,255,255,0.1);
    padding: 80px 30px; display: flex; flex-direction: column; gap: 30px;
    transform: translateX(100%); transition: transform 0.3s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-nav-overlay.active { opacity: 1; pointer-events: all; }
.mobile-nav-overlay.active .mobile-nav-content { transform: translateX(0); }
.close-menu-btn { position: absolute; top: 25px; right: 25px; background: none; border: none; font-size: 2rem; color: var(--text-muted); cursor: pointer; }
.mobile-link { font-family: var(--font-heading); font-size: 1.4rem; color: var(--text-main); text-decoration: none; font-weight: 700; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 15px; }

/* =========================================
   SECCIONES & TARJETAS
   ========================================= */

/* HERO - Efecto de máscara para que la imagen se funda con el negro */
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-img { 
    width: 100%; 
    border-radius: var(--border-radius); 
    /* Máscara de gradiente para fundir bordes */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    filter: brightness(0.9) contrast(1.1); /* Ajuste para look cinemático */
}
.hero-ctas { display: flex; gap: 20px; flex-wrap: wrap; }

/* About Images */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img { width: 100%; border-radius: var(--border-radius); filter: grayscale(100%); transition: filter 0.5s; }
.about-img:hover { filter: grayscale(0%); }

/* TARJETAS (Pillars & Services) - Estilo Cyberpunk suave */
.pillars-grid, .services-grid { display: grid; gap: 30px; margin-top: var(--spacing-medium); }
.pillars-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.services-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.pillar-card, .service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    border: var(--border-subtle);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Efecto Hover: Borde brillante y subida */
.pillar-card:hover, .service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-red);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5); /* Sombra profunda */
}

/* Glow interno sutil al hover */
.pillar-card::before, .service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 58, 70, 0.1), transparent 70%);
    opacity: 0; transition: opacity 0.4s;
}
.pillar-card:hover::before, .service-card:hover::before { opacity: 1; }

.pillar-icon, .service-icon {
    font-size: 2.5rem; color: var(--text-main); margin-bottom: 25px; display: block;
    transition: all 0.3s ease; text-shadow: 0 0 0 rgba(255,255,255,0);
}
.pillar-card:hover .pillar-icon, .service-card:hover .service-icon {
    color: var(--primary-red);
    text-shadow: 0 0 15px var(--primary-red); /* Icono brilla */
    transform: scale(1.1);
}

.service-card h4 { font-size: 1.3rem; margin-bottom: 15px; }
.service-card p, .pillar-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline (Process) */
.timeline-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: var(--spacing-section); position: relative; }
.timeline-grid::before { 
    content: ''; position: absolute; top: 40px; left: 0; width: 100%; height: 1px; 
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent); /* Línea degradada */
    opacity: 0.5;
    z-index: 0; 
}
.process-step { position: relative; z-index: 1; background: var(--bg-secondary); padding: 20px; border: 1px solid rgba(255,255,255,0.05); border-radius: 12px; }
.step-number {
    font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; 
    color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); 
    display: block; margin-bottom: 15px; line-height: 1; transition: all 0.3s;
}
.process-step:hover .step-number { -webkit-text-stroke: 1px var(--primary-red); text-shadow: 0 0 20px rgba(255,58,70,0.5); }

/* Team Cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-top: var(--spacing-medium); }
.team-card { text-align: left; }
.team-photo-frame {
    height: 350px; overflow: hidden; border-radius: var(--border-radius); margin-bottom: 20px;
    background-color: #222; position: relative;
}
.team-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: grayscale(100%); }
.team-card:hover .team-photo { transform: scale(1.1); filter: grayscale(0%); }
/* Overlay rojo en foto al hover */
.team-photo-frame::after {
    content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,58,70,0.4), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.team-card:hover .team-photo-frame::after { opacity: 1; }

.team-card h4 { font-size: 1.2rem; margin-bottom: 5px; }
.team-role { color: var(--primary-red); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Clients Logos - Blanco puro con brillo */
.logos-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 60px; opacity: 0.6; }
.client-logo { filter: grayscale(100%) brightness(10); /* Logos totalmente blancos */ max-height: 40px; transition: all 0.3s; }
.client-logo:hover { opacity: 1; filter: grayscale(100%) brightness(10) drop-shadow(0 0 8px rgba(255,255,255,0.8)); }

/* =========================================
   PARALLAX REFINADO
   ========================================= */
.parallax-breaker {
    min-height: 500px; display: flex; align-items: center; justify-content: center;
    position: relative; background-attachment: fixed; background-position: center;
    background-repeat: no-repeat; background-size: cover; text-align: center; overflow: hidden;
}
/* Overlay degradado más dramático */
.parallax-breaker::before { 
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(to bottom, var(--bg-main), rgba(0,0,0,0.4), var(--bg-main)); 
    z-index: 1; 
}

/* Footer & Final CTA */
.final-cta-section { position: relative; overflow: hidden; }
.final-cta-section::before { /* Efecto de luz de fondo */
    content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,58,70,0.15), transparent 70%);
    z-index: 0; pointer-events: none;
}
.site-footer { padding: 40px 0; background: #000; color: #555; border-top: 1px solid #1a1a1a; font-size: 0.85rem; }

/* =========================================
   ANIMACIONES (SCROLL REVEAL)
   ========================================= */
.reveal { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

.reveal-stagger { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal-stagger.active { opacity: 1; transform: translateY(0); }
.reveal-stagger.active:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger.active:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger.active:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.active:nth-child(4) { transition-delay: 0.4s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    :root { --spacing-section: 80px; }
    .hero-grid, .about-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-ctas { justify-content: center; }
    .lead-text { margin-left: auto; margin-right: auto; }
    .timeline-grid { grid-template-columns: 1fr; gap: 40px; }
    .timeline-grid::before { width: 1px; height: 100%; top: 0; left: 50%; transform: translateX(-50%); background: linear-gradient(to bottom, transparent, var(--primary-red), transparent); }
    .parallax-breaker { background-attachment: scroll; }
}

/* =========================================
   NUEVA SECCIÓN CLIENTES (Imagen Única)
   ========================================= */

.clients-image-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    overflow: hidden;
}

.clients-full-banner {
    width: 100%;
    max-width: 1000px; /* Limita el ancho máximo para que no se vea gigante en desktop */
    height: auto;
    object-fit: contain;
    
    /* Estilos para integración Dark Mode */
    opacity: 0.7; 
    filter: grayscale(100%); /* Hace los logos blanco y negro por defecto para elegancia */
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Efecto al pasar el mouse: recupera color y brilla */
.clients-full-banner:hover {
    opacity: 1;
    filter: grayscale(0%) drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
    transform: scale(1.02);
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .clients-full-banner {
        opacity: 0.9; /* Más visible en móvil sin hover */
        max-width: 100%;
    }
}

