/* 
   Infinity Comunicación - Main Stylesheet
   Premium Web Builder & Brand Identity
*/

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

html {
    scroll-behavior: initial; /* Lenis handles this */
    font-size: 16px;
    background-color: #050505; /* Fondo oscuro sólido base para evitar flashes de luz en carga */
    color: var(--text-white);
}

@keyframes pageFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background-color: #050505; /* Asegura un lienzo oscuro instantáneo durante la carga de video */
    animation: pageFadeIn 0.6s ease-out forwards;
}

/* Background Video */
.bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    opacity: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
    border-radius: 8px;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 4rem;
}

.section-padding {
    padding: var(--section-padding);
}

.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Navbar */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: transparent;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 50px; /* Aire elegante en los extremos */
}

.nav-left, .nav-right {
    flex: 1; /* Permite que el centro esté realmente en el medio */
}

.nav-center {
    flex: 0 auto;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    justify-content: center;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
}

.brand-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none; /* Eliminar subrayado */
    border: none;         /* Eliminar bordes */
}

.brand-logo:hover, .brand-logo:focus {
    text-decoration: none;
    color: var(--text-white); /* Mantener blanco en hover para el logo */
}

.mobile-hero-logo-link {
    text-decoration: none;
    border: none;
    display: contents; /* No afecta el layout del logo interno */
}

.mobile-hero-logo {
    display: none; /* Mantener oculto si usamos el logo de la navbar centrado */
}

/* Base Hamburger Button (Hidden on Desktop) */
.menu-toggle {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 20px;
    cursor: pointer;
    z-index: 1001; /* Asegura que esté por encima del menú desplegado */
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--accent-cyan);
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: left center;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-menu a {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-white);
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-menu a:hover {
    color: var(--accent-cyan);
    transform: scale(1.1);
}

/* --- DROPDOWN SYSTEM --- */
.nav-item.has-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-link i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.nav-item.has-dropdown:hover .dropdown-link i {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: rgba(10, 12, 15, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(17, 92, 250, 0.2);
    border-radius: 14px;
    padding: 12px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    margin-top: 10px;
}

/* Línea de acento superior en el dropdown */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    right: 14px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
}

.nav-item.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
    display: block !important;
    padding: 10px 24px !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    transform: none !important;
    transition: all 0.3s ease !important;
    text-align: left;
}

.dropdown-menu a:hover {
    color: var(--accent-cyan) !important;
    background: rgba(17, 92, 250, 0.08);
    padding-left: 30px !important;
}

/* Dynamic Navbar Colors */
.navbar.text-dark .brand-logo,
.navbar.text-dark .nav-menu a {
    color: #000000;
}

.navbar.text-dark .nav-menu a:hover {
    color: var(--primary-blue);
}

/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    padding: 0 2rem;
    transition: color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--font-heading);
    font-weight: 300;
}

.slider-arrow:hover {
    color: var(--text-white);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.hero.theme-light .slider-arrow {
    color: rgba(0, 0, 0, 0.5);
}

.hero.theme-light .slider-arrow:hover {
    color: #000000;
}

/* Hero Slider Section */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-dark); /* Fallback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Capa oscura simple (overlay) para dar contraste */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 12, 15, 0.65); /* Oscurecido para máxima legibilidad pura */
    z-index: 0;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.slide h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s;
}

/* Slide Specific Styling */
.slide-1 h1, .slide-2 h1 {
    color: var(--text-white);
}

.slide-3 h1 {
    color: #000000;
}

.slide-3::before {
    background: rgba(255, 255, 255, 0.3); /* Overlay claro simple para slide 3 */
}

.slide-3 .btn-primary {
    background: #000000;
    color: var(--text-white);
    border-color: #000000;
}

.slide-2 .hero-content {
    max-width: 1000px;
}

.slide.active h1 {
    transform: translateY(0);
    opacity: 1;
}

.slide .btn-primary {
    margin-top: 1.5rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}

.slide.active .btn-primary {
    transform: translateY(0);
    opacity: 1;
}

.btn-primary {
    display: inline-block;
    padding: 15px 36px;
    background: var(--primary-blue);
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.3);
}



/* =====================
   Identity Section (Sobre Nosotros)
   ===================== */
.identity-section.theme-light {
    background: #F7F7F7; /* Fondo plata ultra claro */
    color: var(--text-dark);
    position: relative;
    padding: 120px 0;
    overflow: hidden; /* CRÍTICO: confina las auras dentro de la sección */
    isolation: isolate; /* Crea nuevo stacking context para mix-blend-mode */
}

/* =====================================================
   AURA NOSOTROS 5.0 — Arquitectura de Capas Definitiva
   Bug-fix crítico: aura-2 centraba con `transform` que el
   @keyframes sobreescribía. Solución: centrado por margin.
   Cada aura tiene su propio @keyframes con dirección única.
   ===================================================== */

/* BASE — Enterradas bajo el contenido, inamovibles del DOM de #nosotros */
#nosotros .aura-nosotros {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;                /* Bajo la capa del contenido */
    will-change: transform;
    filter: blur(140px);
    mix-blend-mode: normal;
}

/* AURA 1 — Azul Profundo, extremo IZQUIERDO
   left negativo la empuja fuera del área de texto */
#nosotros .aura-nosotros--1 {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(17, 92, 250, 0.65) 0%, transparent 65%);
    top: 0;
    left: -15%;                /* Extremo izquierdo — no toca el texto */
    animation: moveAura-left 4s ease-in-out infinite alternate;
    animation-delay: 0s;
}

/* AURA 3 — Violeta Tecnológico, extremo DERECHO */
#nosotros .aura-nosotros--3 {
    width: 750px;
    height: 750px;
    background: radial-gradient(circle, rgba(100, 66, 255, 0.60) 0%, transparent 65%);
    bottom: 0;
    right: -15%;               /* Extremo derecho — no toca el texto */
    animation: moveAura-right 4.5s ease-in-out infinite alternate;
    animation-delay: 3s;
}

/* CONTENIDO — Siempre encima de las auras */
#nosotros .container {
    position: relative;
    z-index: 10;
}

/* -------------------------------------------------------
   @keyframes — Dos rutas distintas, amplitud 150px.
   'alternate' maneja el retorno: no hay salto posible.
   0% → 100% → 0% → ... (inversión suave garantizada)
   ------------------------------------------------------- */

/* Izquierda: sube y entra ligeramente hacia el centro */
@keyframes moveAura-left {
    0%   { transform: translate(0px, 0px)    scale(1);    }
    100% { transform: translate(60px, -150px) scale(1.15); }
}

/* Derecha: baja y entra ligeramente hacia el centro */
@keyframes moveAura-right {
    0%   { transform: translate(0px, 0px)     scale(1);    }
    100% { transform: translate(-60px, 150px) scale(1.1);  }
}


.text-gradient-dark {
    background: linear-gradient(135deg, var(--primary-blue), #000000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1.5rem;
}

/* --- Layout Principal 3 columnas --- */
.identity-layout {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 3rem;
    align-items: center;
}

.identity-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Columna Izquierda: Textos --- */
.identity-text p {
    font-size: 1.05rem;
    color: rgba(0, 0, 0, 0.75); /* Alto contraste sobre blanco */
    line-height: 1.7;
    margin-bottom: 1rem;
}

.profile-wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 2rem;
}

.profile-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 10px 20px rgba(17, 92, 250, 0.15);
}

.profile-info h4 {
    margin-bottom: 0.2rem;
    font-size: 1.2rem;
    color: #000000;
}

.profile-info span {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* --- Orbe Central (Light Theme) --- */
.identity-orb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.identity-orb {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orb-pulse-light 6s ease-in-out infinite;
}

.identity-orb__core {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--text-white);
    border: 1px solid rgba(17, 92, 250, 0.2);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.05),
        inset 0 0 20px rgba(17, 92, 250, 0.05);
}

.identity-orb__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(17, 92, 250, 0.1);
}

.identity-orb__ring--1 {
    width: 180px;
    height: 180px;
    animation: ring-rotate 15s linear infinite;
    border-top-color: var(--primary-blue);
}

.identity-orb__ring--2 {
    width: 240px;
    height: 240px;
    animation: ring-rotate 25s linear infinite reverse;
    border-right-color: var(--accent-cyan);
}

@keyframes orb-pulse-light {
    0%, 100% { filter: drop-shadow(0 15px 30px rgba(17, 92, 250, 0.08)); }
    50%       { filter: drop-shadow(0 25px 50px rgba(17, 92, 250, 0.15)); }
}

/* --- Columna Derecha: Premium Dark Card --- */
.identity-card.premium-dark {
    background: var(--bg-dark); /* Fondo oscuro */
    border: 1px solid rgba(17, 92, 250, 0.3);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 0 40px rgba(17, 92, 250, 0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.identity-card.premium-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
}

.identity-card.premium-dark:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 60px rgba(17, 92, 250, 0.1);
    border-color: rgba(0, 204, 255, 0.5);
}

.identity-card__icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    display: inline-block;
}

.identity-card.premium-dark h3 {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.identity-card.premium-dark p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Services Section */
/* =====================
   Services Section — selector de alta especificidad para evitar conflictos
   ===================== */
section#servicios,
.services-section {
    background-color: var(--bg-dark);
    padding: 140px 0 120px 0;
    position: relative;
    overflow: hidden;
    /* contain:paint crea stacking context Y recorta todo lo que salga del borde */
    contain: paint;
    isolation: isolate;
}

.coming-soon-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* El container de contenido va SOBRE los destellos */
section#servicios > .container,
.services-section > .container {
    position: relative;
    z-index: 10;
}

/* =====================================================
   AURA SERVICIOS 1.0 — Alto Contraste sobre Fondo Negro
   Selectores prefijados con #servicios: aislamiento total.
   mix-blend-mode: screen → azul sobre negro = luz pura vibrante.
   ===================================================== */

/* BASE — Glow de alta energía, confinado dentro del contenedor */
#servicios .aura-servicios {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    will-change: transform;
    filter: blur(110px);
    mix-blend-mode: screen;
}

/* AURA 1 — Azul Primario, extremo superior-izquierdo */
#servicios .aura-servicios--1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(17, 92, 250, 0.85) 0%, transparent 65%);
    top: -10%;
    left: -10%;
    animation: svcAura-left 5s ease-in-out infinite alternate;
    animation-delay: 0s;
}

/* AURA 3 — Violeta Tecnológico, extremo inferior-derecho */
#servicios .aura-servicios--3 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(100, 66, 255, 0.80) 0%, transparent 65%);
    bottom: -10%;
    right: -10%;
    animation: svcAura-right 6s ease-in-out infinite alternate;
    animation-delay: 3s;
}

/* Tres trayectorias únicas — 'alternate' garantiza retorno sin saltos */
@keyframes svcAura-left {
    0%   { transform: translate(0px, 0px)    scale(1);    }
    100% { transform: translate(80px, 120px) scale(1.18); }
}
@keyframes svcAura-right {
    0%   { transform: translate(0px, 0px)      scale(1);    }
    100% { transform: translate(-80px, -120px) scale(1.12); }
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 1rem;
}

.section-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Layout Principal 3 columnas --- */
.services-layout {
    display: grid;
    grid-template-columns: 1fr 280px 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2rem;
}

.services-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* --- Service Cards --- */
.service-card {
    background: rgba(17, 92, 250, 0.04);
    border: 1px solid rgba(17, 92, 250, 0.15);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    position: relative;
    transition: 
        background 0.4s ease, 
        border-color 0.4s ease, 
        box-shadow 0.4s ease,
        opacity 0.4s ease; /* Excluimos transform para evitar conflicto con Parallax JS */
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    background: rgba(17, 92, 250, 0.08);
    border-color: rgba(0, 204, 255, 0.35);
    box-shadow: 0 12px 40px rgba(17, 92, 250, 0.15);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card__num {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.8;
}

.service-card__icon {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 0.6rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.88rem;
    line-height: 1.65;
    margin: 0;
}

/* --- Orbe Central --- */
.services-orb-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-orb {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: orb-pulse 5s ease-in-out infinite;
}

.services-orb__core {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(17, 92, 250, 0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 204, 255, 0.25);
    box-shadow:
        0 0 40px rgba(17, 92, 250, 0.3),
        inset 0 0 20px rgba(0, 204, 255, 0.1);
}

.services-orb__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.services-orb__ring--1 {
    width: 180px;
    height: 180px;
    animation: ring-rotate 12s linear infinite;
    border-color: rgba(17, 92, 250, 0.3);
    border-top-color: var(--accent-cyan);
}

.services-orb__ring--2 {
    width: 240px;
    height: 240px;
    animation: ring-rotate 20s linear infinite reverse;
    border-color: rgba(17, 92, 250, 0.15);
    border-right-color: rgba(0, 204, 255, 0.4);
}

/* --- Fila Inferior --- */
.services-lower {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* --- CTA Doble --- */
.services-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-top: 4rem;
}

.btn-secondary {
    display: inline-block;
    padding: 15px 36px;
    background: transparent;
    color: var(--text-white);
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(17, 92, 250, 0.6);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(17, 92, 250, 0.15);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 204, 255, 0.2);
}

/* --- Animaciones del Orbe --- */
@keyframes orb-pulse {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(17, 92, 250, 0.4)); }
    50%       { filter: drop-shadow(0 0 60px rgba(0, 204, 255, 0.6)); }
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}



/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 0 2rem;
    background: var(--bg-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-links ul li a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-layout, .identity-layout {
        grid-template-columns: 1fr 220px 1fr;
        gap: 1.5rem;
    }
    .services-orb, .identity-orb {
        width: 200px;
        height: 200px;
    }
    .services-orb__ring--1, .identity-orb__ring--1 { width: 140px; height: 140px; }
    .services-orb__ring--2, .identity-orb__ring--2 { width: 190px; height: 190px; }
    .services-orb__core, .identity-orb__core { width: 100px; height: 100px; }
}

@media (max-width: 768px) {

    /* =====================================================
       MOBILE UI/UX OPTIMIZER — HOME / HERO (Eje Central)
       ===================================================== */

    /* Ocultar logo del header asimétrico */
    .nav-left .brand-logo {
        display: none;
    }

    /* Mostrar y centrar Logo Dedicado en el Hero */
    .mobile-hero-logo {
        display: block;
        position: absolute;
        top: 60px; /* Separación del top */
        left: 50%;
        transform: translateX(-50%);
        width: 120px; /* Tamaño solicitado */
        z-index: 20; /* Siempre por encima de las slides */
    }

    /* Centrado Absoluto de las "Cortinas" de Texto */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 0 24px; /* Punto 1 de Skill: Safe Zones */
        width: 100%;
        margin-top: 40px; /* Espacio para que no choque con el logo */
    }

    /* Refuerzo de Contraste para Legibilidad Móvil */
    .slide::before {
        background: rgba(10, 12, 15, 0.75); /* Más oscuro que desktop para legibilidad total */
    }

    /* Eliminar velo en Slide 3 para revelar fondo limpio */
    .slide-3::before {
        background: transparent !important;
    }

    .slide-3 h1 {
        color: #000000 !important; /* Asegurar negro puro sobre fondo blanco */
    }

    /* =====================================================
       MOBILE UI/UX OPTIMIZER — Protocolo #servicios
       5 Puntos aplicados según skill mobile-ui-optimizer
       ===================================================== */

    /* --- PUNTO 1: Safe Zones — Contenedor General --- */
    .container {
        padding: 0 24px; /* Texto nunca toca el borde físico */
    }

    /* --- PUNTO 1 + 2: Sección #servicios — Padding reducido vs. Desktop --- */
    section#servicios,
    .services-section {
        padding: 80px 0 64px 0; /* Reducido de 140px/120px → scroll más corto */
    }

    /* --- PUNTO 2: Header de sección — Texto centrado y proporcionado --- */
    .section-header {
        text-align: center;
        margin-bottom: 2.5rem; /* Reducido de 5rem */
    }

    /* --- PUNTO 3: Tipografía del encabezado de servicios --- */
    .section-header h2 {
        font-size: clamp(1.75rem, 8vw, 2.25rem); /* No ocupa 3 líneas */
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1rem;      /* Mínimo 16px (Punto 3) */
        line-height: 1.6;     /* Punto 3: Respiro tipográfico */
        padding: 0;           /* Safe zone ya la maneja .container */
    }

    /* --- GRID 2×N: Layout de tarjetas — 2 por fila, scroll a la mitad --- */
    .services-layout {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 tarjetas por fila */
        gap: 14px;
        align-items: stretch; /* Fuerza a que todas las cajas de una fila midan lo mismo */
    }

    /* --- PUNTO 2: Ocultar Orbe (elemento decorativo no esencial en móvil) --- */
    .services-orb-wrap {
        display: none;
    }

    /* --- CENTRADO ABSOLUTO + Altura Unificada para Simetría --- */
    .service-card {
        padding: 1.25rem 0.875rem;
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        align-items: center;       /* Centra horizontalmente */
        justify-content: flex-start; /* Alinea al inicio pero con altura total */
        text-align: center;
        height: 100%;              /* Ocupa el alto del grid cell */
        min-height: 240px;         /* Base mínima para evitar cajas colapsadas */
    }

    .service-card h3 {
        font-size: 0.95rem;       /* Legible a 2 col en pantalla ~375px */
        font-weight: 600;
        margin-bottom: 0.35rem;
        line-height: 1.3;
    }

    .service-card p {
        font-size: 0.85rem;       /* 2 col exige compacidad; mínimo cómodo */
        line-height: 1.55;
        margin: 0;
    }

    .service-card__icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .service-card__num {
        font-size: 0.7rem;
        margin-bottom: 0.4rem;
    }

    /* --- GRID 2×1: Fila inferior de servicios — 2 por fila también --- */
    .services-lower {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        margin-top: 14px;
        align-items: stretch; /* Simetría en la fila inferior */
    }

    /* --- Auras: Visibles pero fijas en el centro del fondo negro --- */
    #servicios .aura-servicios {
        opacity: 0.4;       /* Reducida para que no tape el texto en 2 col */
        filter: blur(80px); /* Más difuminada — elegante, no agresiva */
    }

    /* Aura izquierda: centrada hacia la esquina superior-izq */
    #servicios .aura-servicios--1 {
        width: 280px;
        height: 280px;
        top: 5%;
        left: -8%;
    }

    /* Aura derecha: centrada hacia la esquina inferior-der */
    #servicios .aura-servicios--3 {
        width: 280px;
        height: 280px;
        bottom: 5%;
        right: -8%;
    }

    /* --- PUNTO 1 + 4: CTA — Centrado, columna y touch targets ≥ 48px --- */
    .services-cta {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 2.5rem;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        min-height: 48px;          /* Punto 4: Touch Target mínimo */
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 24px;
    }

    /* --- GENERAL: Footer, Nav y Reveal --- */
    .footer {
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr; /* Cambiado a 1 columna para un centrado perfecto en pantalla */
        gap: 2.5rem;
        justify-items: center;
    }

    .footer-brand {
        grid-column: 1 / -1; /* Branding ocupa todo el ancho */
        margin-bottom: 0.5rem;
    }

    .footer-brand p {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.6;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links h4 {
        font-weight: 700; /* Mayor peso visual */
        margin-bottom: 0.85rem;
        font-size: 1rem;
        color: var(--text-white);
    }

    .footer-links ul li {
        margin-bottom: 0.5rem; /* Compactar "cajitas" de texto */
    }

    .footer-links ul li a {
        font-size: 0.85rem;
    }

    /* --- LOGO CENTRADO (Misión 1) --- */
    .navbar {
        padding: 10px 0; /* Pegado al borde superior */
    }
    .navbar .container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        padding: 0 20px;
    }

    .nav-left {
        position: relative;
        justify-content: center;
        margin-top: 0;
        z-index: 1002;
    }

    .nav-right {
        position: absolute;
        right: 20px;
        top: 12px; /* Centrado vertical con el logo */
        flex: none;
    }

    .nav-center {
        display: contents; /* Permite que .nav-menu (fixed) sea visible aunque el contenedor padre no tenga layout */
    }

    /* --- FLECHAS DEL SLIDER (Misión 2) --- */
    .slider-arrow {
        font-size: 24px !important;
        color: rgba(255, 255, 255, 0.5) !important;
        padding: 0 15px !important;
    }

    .slider-arrow.prev {
        left: 5px !important;
    }

    .slider-arrow.next {
        right: 5px !important;
    }

    /* --- BOTÓN DE ACCIÓN (Misión 3) --- */
    .slide .btn-primary {
        transform: translateY(-10px) !important; /* Posición inicial de animación */
        opacity: 0;
    }

    .slide.active .btn-primary {
        transform: translateY(-40px) !important; /* Posición final (subido 40px) */
        opacity: 1;
    }

    /* --- MENÚ MÓVIL (Misión 4) --- */
    .menu-toggle {
        display: flex;
        width: 28px;
        height: 18px;
        position: relative;
        z-index: 1100; /* Por encima de .nav-menu (1000) */
    }

    /* Transformación de barras a "X" */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        width: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }

    .nav-menu {
        /* Convirtiendo los links en un Overlay de pantalla completa */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(6, 8, 12, 0.97); /* Fondo casi opaco: letras blancas siempre visibles */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        z-index: 1000;
        
        /* Animación de entrada fluida */
        transform: translateX(100%);
        opacity: 0;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none; /* Evita clicks fantasmas cuando está oculto */
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* -------------------------------------------------------
       LEGIBILIDAD FIJA DEL MENÚ MÓVIL
       Color blanco forzado con !important para sobreescribir
       cualquier clase dinámica (.text-dark) que las cortinas
       del hero activen sobre la navbar.
       ------------------------------------------------------- */
    .nav-menu a {
        font-size: 1.75rem;
        font-weight: 600;
        letter-spacing: 1px;
        color: #ffffff !important; /* Siempre blanco, sin importar la slide activa */
        transition: color 0.3s ease, transform 0.3s ease;
    }

    /* Dropdown en Móvil (Acordeón) */
    .nav-item.has-dropdown {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-item.has-dropdown .dropdown-menu {
        position: static !important;
        transform: none !important;
        left: 0 !important;
        top: 0 !important;
        opacity: 1;
        visibility: visible;
        background: transparent;
        border: none;
        backdrop-filter: none;
        box-shadow: none;
        padding: 0;
        min-width: unset;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrado simétrico solicitado */
        gap: 0.8rem;
        margin-top: 1rem;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
    }

    .nav-item.has-dropdown:hover .dropdown-menu,
    .nav-item.has-dropdown.active .dropdown-menu {
        max-height: 300px;
        margin-bottom: 1.5rem;
    }

    .nav-item.has-dropdown .dropdown-menu a {
        font-size: 1.4rem !important;
        opacity: 0.7;
        padding: 8px 0 !important; /* Eliminada la indentación */
        text-align: center;
        width: 100%;
    }

    .nav-item.has-dropdown .dropdown-menu a:hover {
        opacity: 1;
        transform: scale(1.05) !important; /* Zoom sutil en lugar de traslación */
    }

    /* Hover / tap: azul vibrante de la marca */
    .nav-menu a:hover,
    .nav-menu a:active {
        color: var(--accent-cyan) !important;
        transform: scale(1.08);
    }

    /* Neutralizar el override de .text-dark dentro del overlay */
    .navbar.text-dark .nav-menu a {
        color: #ffffff !important;
    }

    .navbar.text-dark .nav-menu a:hover,
    .navbar.text-dark .nav-menu a:active {
        color: var(--accent-cyan) !important;
    }

    /* --- SECCIÓN NOSOTROS: Centrado Simétrico --- */
    .identity-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .identity-text h2 {
        margin-left: auto;
        margin-right: auto;
    }

    .identity-text p {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    /* Centrado del bloque de perfil */
    .profile-wrap {
        justify-content: center;
        flex-direction: column; /* Apilado vertical para mejor equilibrio */
        text-align: center;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .profile-info {
        text-align: center;
    }

    /* Tarjeta de trabajos centrada */
    .identity-card.premium-dark {
        margin: 0 auto;
        width: 100%;
    }

    .services-orb-wrap, .identity-orb-wrap {
        display: none;
    }
}


/* ============================================================
   Camera Scroll Sequence — Canvas Animation Section
   ============================================================ */

#camera-scroll-section {
    height: 150vh;
    width: 100vw;
    position: relative;
    background-color: #000;
    margin: 0;
    padding: 0;
}

.camera-sticky-container {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

#camera-canvas {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.camera-overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 90%;
}

.camera-overlay-eyebrow {
    font-family: var(--font-body, 'Inter', sans-serif);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-cyan, #00ccff);
    opacity: 0.8;
    margin: 0;
}

.camera-overlay-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow:
        0 0 60px rgba(0, 204, 255, 0.4),
        0 2px 40px rgba(0, 0, 0, 0.8);
}

.camera-overlay-title em {
    font-style: italic;
    background: linear-gradient(135deg, #00ccff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.camera-overlay-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ccff, transparent);
    animation: lineGlow 2s ease-in-out infinite;
}

@keyframes lineGlow {
    0%, 100% { opacity: 0.5; width: 60px; }
    50%       { opacity: 1;   width: 100px; }
}

@media (max-width: 768px) {
    #camera-scroll-section {
        height: 150vh;
    }
    .camera-overlay-title {
        font-size: clamp(2.2rem, 10vw, 3.5rem);
    }
    .camera-overlay-eyebrow {
        font-size: 0.7rem;
        letter-spacing: 0.2em;
    }
}
