/* ==========================================================================
   SISTEMA DE DISEÑO & ESTILOS MODERNOS - INDES GROUP
   ========================================================================== */

/* Variables CSS - Colores HSL y Tokens de Diseño */
:root {
    /* Paleta Principal Dark Mode — Azul pizarra satinado profundo */
    --bg-dark-deep: #1a1f2c; /* Azul grisáceo suave, menos "duro" que el negro */
    --bg-dark-card: rgba(30, 37, 50, 0.65);
    --bg-dark-card-hover: rgba(40, 50, 68, 0.80);
    --border-light: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    /* Acentos y Gradientes atenuados (Rojo Rubí Mate Sofisticado) */
    --color-red-primary: #a7202f;
    --color-red-dark: #7a121d;
    --grad-red: linear-gradient(135deg, #a7202f, #6d0f19);
    --grad-blue: linear-gradient(135deg, #0087a3, #005a7a);
    --grad-orange: linear-gradient(135deg, #b83375, #a32e2e);
    --grad-green: linear-gradient(135deg, #0c6e65, #229950);
    --grad-purple: linear-gradient(135deg, #5c1b9c, #2b008a);
    
    /* Colores Específicos para Productos */
    --color-memberness: #6f42c1;
    --color-giie: #00acc1;
    
    /* Textos y Accesibilidad WCAG AA */
    --text-white: #ffffff;
    --text-silver: #bbbfcb;
    --text-muted: #8a99ad; /* Optimizado de #747b86 a #8a99ad para cumplir WCAG AA (>4.5:1 en oscuro) */
    --color-red-text: #ff607f; /* Rojo coral brillante de alta visibilidad para texto en modo oscuro (cumple WCAG AA >4.5:1) */
    
    /* Tipografía */
    --font-headings: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Efectos */
    --shadow-soft: 0 12px 35px -12px rgba(0, 0, 0, 0.8);
    --shadow-glow-red: 0 0 16px rgba(167, 32, 47, 0.12);
    --glass-blur: blur(20px);
    
    /* Transiciones */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* Logo Wrapper (cápsula de cristal para fondo oscuro) */
    --bg-logo: rgba(255, 255, 255, 0.93);
    --border-logo: rgba(255, 255, 255, 0.25);
    --border-logo-divider: rgba(0, 0, 0, 0.18);
    --text-logo-group: #3a4660;
    --text-logo-tagline: var(--color-red-primary);
    --shadow-logo: 0 2px 16px rgba(0,0,0,0.28);

    /* Header variables (scroll) - Más contrastados con gris para destacar del fondo */
    --bg-header: rgba(6, 7, 10, 0.82); /* Gris negro obsidiana ultra elegante y oscuro */
    --bg-header-scrolled: rgba(3, 4, 6, 0.95); /* Obsidiana extremadamente sólido y profundo */
    --border-header: rgba(255, 255, 255, 0.05); /* Borde translúcido ultra fino */
    --border-header-scrolled: rgba(255, 255, 255, 0.08);
    --bg-mobile-menu: rgba(6, 7, 10, 0.97);
    --shadow-header: 0 10px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    --shadow-header-scrolled: 0 16px 48px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --aura-opacity: 0.18; /* Más atmósfera y "onda" */

    /* Modal background */
    --bg-modal: rgba(20, 26, 38, 0.96);

    /* Cobertura del ecosistema: se integra con el fondo del sitio ya que la imagen tiene screen */
    --bg-ecosystem-cover: var(--bg-dark-deep);

    /* Background del Footer - Color gris obsidiana que combina con el Header */
    --bg-footer: #0c0d12;
}

/* Variables del Modo Claro - Totalmente de-celestizadas en elegantes tonos grises */
:root.theme-light {
    --bg-dark-deep: #f5f5f7; /* Blanco pizarra neutro estilo Apple (remueve fondo celeste) */
    --bg-dark-card: rgba(255, 255, 255, 0.80);
    --bg-dark-card-hover: rgba(255, 255, 255, 0.96);
    --border-light: rgba(15, 23, 42, 0.08);
    --border-hover: rgba(15, 23, 42, 0.18);
    
    /* Textos invertidos para alto contraste en claro */
    --text-white: #0f172a;
    --text-silver: #334155;
    --text-muted: #4b5563; /* Optimizado de #64748b a #4b5563 para garantizar contraste >6:1 sobre #f5f5f7 */
    --color-red-text: var(--color-red-primary); /* Usa el rojo corporativo original (#a7202f), de excelente contraste en claro */
    
    /* Efectos suavizados para fondo claro */
    --shadow-soft: 0 12px 35px -12px rgba(15, 23, 42, 0.12);
    --shadow-glow-red: 0 0 16px rgba(167, 32, 47, 0.08);

    /* Logo Wrapper: transparente en modo claro */
    --bg-logo: transparent;
    --border-logo: rgba(0, 0, 0, 0.12);
    --border-logo-divider: rgba(0, 0, 0, 0.15);
    --text-logo-group: #475569;
    --text-logo-tagline: var(--color-red-primary);
    --shadow-logo: none;

    /* Header variables (scroll) en modo claro - Gris sofisticado libre de celeste */
    --bg-header: rgba(243, 244, 246, 0.85); /* Gris muy claro neutro y translúcido */
    --bg-header-scrolled: rgba(228, 228, 231, 0.96); /* Gris de scroll neutro y definido para destacar */
    --border-header: rgba(15, 23, 42, 0.08); /* Borde sutil */
    --border-header-scrolled: rgba(15, 23, 42, 0.12);
    --bg-mobile-menu: rgba(244, 244, 246, 0.98); /* Gris móvil neutro esmerilado */
    --shadow-header: 0 8px 32px rgba(15, 23, 42, 0.05);
    --shadow-header-scrolled: 0 12px 40px rgba(15, 23, 42, 0.08);
    --aura-opacity: 0.08;

    /* Modal background en modo claro */
    --bg-modal: rgba(255, 255, 255, 0.98);

    /* Cobertura del ecosistema: color del fondo de la imagen original (#010817) */
    --bg-ecosystem-cover: #010817;

    /* Background del Footer en modo claro - Color gris neutro elegante que combina con el Header */
    --bg-footer: #e4e4e7;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark-deep);
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark-deep);
    color: var(--text-silver);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    color: var(--text-white);
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   EFECTOS DE ILUMINACIÓN DE FONDO (AURAS)
   ========================================================================== */
.bg-aura {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: var(--aura-opacity);
    z-index: -1;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.aura-1 {
    width: 350px;
    height: 350px;
    background-color: var(--color-red-text);
    top: 5%;
    right: -10%;
    animation: pulse-aura 15s infinite alternate;
}

.aura-2 {
    width: 450px;
    height: 450px;
    background-color: #006b90; /* Se ajustó a un tono más apagado y coherente */
    top: 40%;
    left: -15%;
    animation: pulse-aura 20s infinite alternate-reverse;
}

.aura-3 {
    width: 300px;
    height: 300px;
    background-color: #511b8c; /* Morado/Violeta atenuado */
    bottom: 10%;
    right: 5%;
}

@keyframes pulse-aura {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.04;
    }
    100% {
        transform: translate(40px, -20px) scale(1.1);
        opacity: 0.07;
    }
}

/* ==========================================================================
   HEADER & NAVEGACIÓN
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    background-color: var(--bg-header);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-header);
    box-shadow: var(--shadow-header);
    transition: background-color var(--transition-fast), border-color var(--transition-fast), padding var(--transition-fast), box-shadow var(--transition-fast);
}

/* Borde de neón animado ultra premium para inyectar "onda" a la cabecera */
.main-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 92, 245, 0.4) 15%, 
        rgba(219, 70, 239, 0.6) 35%, 
        rgba(255, 51, 102, 0.6) 65%, 
        rgba(138, 92, 245, 0.4) 85%, 
        transparent
    );
    background-size: 200% 100%;
    animation: borderGlowFlow 8s linear infinite;
    z-index: 10;
    opacity: 0.8;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.main-header.scrolled::after {
    height: 2px;
    opacity: 0.95;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 92, 245, 0.65) 15%, 
        rgba(219, 70, 239, 0.85) 35%, 
        rgba(255, 51, 102, 0.85) 65%, 
        rgba(138, 92, 245, 0.65) 85%, 
        transparent
    );
    background-size: 200% 100%;
}

:root.theme-light .main-header::after {
    opacity: 0.35;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(138, 92, 245, 0.25) 15%, 
        rgba(219, 70, 239, 0.4) 35%, 
        rgba(255, 51, 102, 0.4) 65%, 
        rgba(138, 92, 245, 0.25) 85%, 
        transparent
    );
    background-size: 200% 100%;
}

@keyframes borderGlowFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.main-header.scrolled {
    padding: 10px 0;
    background-color: var(--bg-header-scrolled);
    border-bottom: 1px solid var(--border-header-scrolled);
    box-shadow: var(--shadow-header-scrolled);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Logo directo sobre la barra de navegación */
.logo-img-nav {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

/* En modo oscuro: mantener los colores originales pero asegurar visibilidad con un sutil glow de fondo */
:root:not(.theme-light) .logo-img-nav {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
}

.logo-text-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1.5px solid var(--border-logo-divider);
    padding-left: 10px;
}

.logo-group-vertical {
    display: flex;
    flex-direction: column;
    line-height: 0.8;
    gap: 0;
}

.logo-group-vertical span {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    font-size: 0.44rem;
    color: var(--text-logo-group);
    letter-spacing: 0.3px;
    display: block;
}

.logo-tagline {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 900;
    font-size: 0.68rem;
    color: var(--text-logo-tagline);
    letter-spacing: 0px;
    line-height: 1.1;
    max-width: 64px;
    display: inline-block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.brand-sub {
    font-family: var(--font-headings);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 4.5px;
    margin-top: 2px;
}

.desktop-nav ul {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-silver);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-red);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-white);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* BOTONES MODERNOS */
.btn-primary-header {
    background: var(--grad-red);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(191, 28, 47, 0.15); /* Se atenuó la sombra */
}

.btn-primary-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(191, 28, 47, 0.3); /* Se atenuó la sombra */
}

.btn-primary {
    background: var(--grad-red);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow-red);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(191, 28, 47, 0.35); /* Se atenuó la sombra */
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    transform: translate(-30%, -30%);
    pointer-events: none;
}

.btn-glow:hover::after {
    opacity: 1;
}

.btn-secondary {
    border: 1.5px solid var(--border-light);
    color: var(--text-white);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

/* Botón "Solicitar Asesoría" (Gris Premium Sólido en ambos modos) */
#hero-btn-contact {
    background: #374151; /* Gris oscuro premium */
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

#hero-btn-contact:hover {
    background: #4b5563; /* Gris más claro en hover */
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

:root.theme-light #hero-btn-contact {
    background: #e4e4e7; /* Gris claro zinc-200 */
    color: #18181b !important; /* Gris oscuro zinc-900 */
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

:root.theme-light #hero-btn-contact:hover {
    background: #d4d4d8; /* Gris zinc-300 en hover */
    color: #09090b !important;
    border-color: rgba(0, 0, 0, 0.15);
}

.btn-block {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* BOTÓN DE MENÚ MÓVIL */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* MENÚ MÓVIL (CRISTAL ADAPTABLE) */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-mobile-menu);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border-light);
    z-index: 999;
    padding: 100px 24px 24px;
    transition: var(--transition-smooth);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-headings);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-silver);
    display: block;
    padding: 8px 0;
}

.mobile-link:hover {
    color: var(--text-white);
    padding-left: 8px;
}

.btn-mobile-contact {
    background: var(--grad-red);
    color: #ffffff;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    padding: 120px 0 100px;
    position: relative;
    overflow: hidden;
}

/* Rejilla tecnológica ultra moderna (Grid Overlay) para añadir profundidad y "onda" */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center top;
    mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black, transparent);
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 50%, black, transparent);
    pointer-events: none;
    z-index: 0;
}

:root.theme-light .hero-section::before {
    background-image: 
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
}

/* Imagen del Ecosistema como fondo atmosférico */
.hero-ecosystem-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-bg-img {
    max-width: none;
    width: auto;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.22;
    /* No mask – image itself should have transparent background */
}

/* En modo oscuro la imagen puede verse con más intensidad */
:root:not(.theme-light) .hero-bg-img {
    opacity: 0.35;
}

.hero-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr; /* Más espacio para el gráfico con movilidad */
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 1;
    max-width: 1300px; /* Más espacio para el gráfico interactivo */
    margin: 0 auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-tech {
    background: rgba(167, 32, 47, 0.08);
    color: var(--color-red-text);
    border: 1px solid rgba(167, 32, 47, 0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 2.9rem; /* Letras del título un poco más pequeñas como solicitó Laura */
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-title span {
    background: var(--grad-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-silver);
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* GRÁFICO DEL HERO (MOCKUP PREMIUM DE PLATAFORMA) */
.hero-graphic {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ==========================================================================
   ECOSISTEMA INTERACTIVO Y ANIMADO (LEMNISCATA VECTORIAL)
   ========================================================================== */
.ecosystem-interactive {
    position: relative;
    width: 100%;
    max-width: 860px; /* Gráfico de movilidad más grande como solicitó Laura */
    aspect-ratio: 2 / 1;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ecosystem-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Pistas del Infinito */
.loop-track-bg {
    stroke: rgba(255, 255, 255, 0.04);
    transition: stroke var(--transition-smooth);
}

:root.theme-light .loop-track-bg {
    stroke: rgba(15, 23, 42, 0.04);
}

/* Pista brillante segmentada y animada que fluye continuamente para mayor "onda" */
.loop-track {
    stroke-dasharray: 60, 200; /* Segmentación brillante */
    animation: trackPulse 10s linear infinite;
}

@keyframes trackPulse {
    0% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -260; } /* Desplazamiento fluido continuo */
}

/* Nodos Interactivos (Tarjetas de Cristal con Resplandor) */
.eco-node {
    position: absolute;
    background: rgba(18, 22, 33, 0.75);
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: all var(--transition-smooth);
    z-index: 5;
    max-width: 220px;
}

:root.theme-light .eco-node {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.eco-node h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--text-white);
}

.eco-node p {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.25;
}

.eco-node .node-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform var(--transition-fast);
}

/* Nodo Izquierdo: Memberness */
.node-memberness {
    left: -2%;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid var(--color-memberness);
    box-shadow: 0 8px 24px rgba(138, 92, 245, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.node-memberness .node-icon {
    background: var(--color-memberness);
    box-shadow: 0 0 15px rgba(111, 66, 193, 0.35);
}

.node-memberness:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 32px rgba(138, 92, 245, 0.35), 0 0 20px rgba(138, 92, 245, 0.25);
    border-color: #d946ef;
    background: rgba(22, 28, 42, 0.9);
}

:root.theme-light .node-memberness {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--color-memberness);
}

:root.theme-light .node-memberness:hover {
    border-color: #d946ef;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(138, 92, 245, 0.25), 0 0 20px rgba(138, 92, 245, 0.15);
}

.node-memberness:hover .node-icon {
    transform: rotate(-10deg) scale(1.15);
}

/* Nodo Derecho: Campus Virtual */
.node-campus {
    right: -2%;
    top: 50%;
    transform: translateY(-50%);
    border-right: 4px solid var(--color-red-primary);
    box-shadow: 0 8px 24px rgba(255, 51, 102, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.node-campus .node-icon {
    background: var(--color-red-primary);
    box-shadow: 0 0 15px rgba(167, 32, 47, 0.35);
}

.node-campus:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 14px 32px rgba(255, 51, 102, 0.35), 0 0 20px rgba(255, 51, 102, 0.25);
    border-color: #ff3355;
    background: rgba(22, 28, 42, 0.9);
}

:root.theme-light .node-campus {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-right: 4px solid var(--color-red-primary);
}

:root.theme-light .node-campus:hover {
    border-color: #ff3355;
    background: #ffffff;
    box-shadow: 0 14px 32px rgba(255, 51, 102, 0.25), 0 0 20px rgba(255, 51, 102, 0.15);
}

.node-campus:hover .node-icon {
    transform: rotate(10deg) scale(1.15);
}

/* Nodo Central: Núcleo de Sincronización (Radar de ciencia ficción) */
.node-center {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
    z-index: 6;
}

/* Anillo exterior discontinuo que gira como un radar tecnológico */
.node-center::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(217, 70, 239, 0.4);
    animation: spinClockwise 15s linear infinite;
    pointer-events: none;
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

:root.theme-light .node-center {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(15, 23, 42, 0.06);
}

:root.theme-light .node-center::before {
    border: 1px dashed rgba(138, 92, 245, 0.4);
}

.center-pulse {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a5cf5, #ff3366);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    animation: rotatePulse 6s linear infinite;
}

@keyframes rotatePulse {
    0% { transform: rotate(0deg) scale(1); box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4); }
    50% { transform: rotate(180deg) scale(1.1); box-shadow: 0 0 15px 4px rgba(217, 70, 239, 0.2); }
    100% { transform: rotate(360deg) scale(1); box-shadow: 0 0 0 0 rgba(217, 70, 239, 0.4); }
}

/* Animación y Flujo de Partículas en CSS */
.flow-particle {
    offset-path: path('M 300 150 C 200 50, 100 50, 100 150 C 100 250, 200 250, 300 150 C 400 50, 500 50, 500 150 C 500 250, 400 250, 300 150');
    animation: particleFlow 6s linear infinite;
    fill: #ffffff;
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.8));
}

.flow-particle.p1 {
    animation-duration: 5s;
}

.flow-particle.p2 {
    animation-duration: 7s;
    animation-delay: -2s;
    fill: #d946ef;
    filter: drop-shadow(0 0 5px rgba(217, 70, 239, 0.8));
}

.flow-particle.p3 {
    animation-duration: 6s;
    animation-delay: -4s;
    fill: #8a5cf5;
    filter: drop-shadow(0 0 5px rgba(138, 92, 245, 0.8));
}

@keyframes particleFlow {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

/* Etiquetas de Flujo */
.flow-label {
    position: absolute;
    z-index: 4;
}

.flow-label.label-top {
    left: 50%;
    top: 12%;
    transform: translate(-50%, -50%);
}

.flow-label.label-bottom {
    left: 50%;
    bottom: 12%;
    transform: translate(-50%, 50%);
}

.label-badge {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    color: var(--text-silver);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    white-space: nowrap;
}

:root.theme-light .label-badge {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(15, 23, 42, 0.06);
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05);
}

/* Adaptación Responsiva para Pantallas Medianas y Móviles */
@media (max-width: 768px) {
    .eco-node {
        padding: 8px 12px;
        max-width: 170px;
    }
    .eco-node h4 {
        font-size: 0.85rem;
    }
    .eco-node p {
        font-size: 0.65rem;
    }
}

@media (max-width: 576px) {
    .eco-node p {
        display: none; /* Oculta descripción en pantallas muy pequeñas para evitar encabalgamiento */
    }
    .eco-node {
        padding: 6px 10px;
        max-width: 120px;
        border-radius: 12px;
    }
    .eco-node h4 {
        font-size: 0.75rem;
    }
    .eco-node .node-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    .node-memberness {
        left: -1%;
    }
    .node-campus {
        right: -1%;
    }
    .label-badge {
        font-size: 0.62rem;
        padding: 4px 8px;
    }
    .flow-label.label-top {
        top: 16%;
    }
    .flow-label.label-bottom {
        bottom: 16%;
    }
}

/* Ecosistema INDES */
.ecosystem-img-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    border-radius: 24px;
    transition: all var(--transition-smooth);
}

:root.theme-light .ecosystem-img-wrapper {
    background: #010817; /* Se funde perfectamente con el fondo de la imagen original */
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 30px 60px -15px rgba(1, 8, 23, 0.35),
        inset 0 1px 2px rgba(255, 255, 255, 0.15);
}

.ecosystem-img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    /* Máscara radial elíptica ultra suave para fundir de forma impecable los bordes de la imagen */
    mask-image: radial-gradient(ellipse 98% 95% at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: radial-gradient(ellipse 98% 95% at center, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

:root:not(.theme-light) .ecosystem-img {
    filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 30px rgba(167, 32, 47, 0.18));
    /* En modo oscuro, el fondo negro desaparece y la ilustración flota sobre la página */
    mix-blend-mode: screen;
}

/* Cobertura elegante para ocultar el texto 'Dashboard Central' */
.ecosystem-center-cover {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    height: 52%;
    background: var(--bg-ecosystem-cover);
    border-radius: 50%;
    filter: blur(8px);
    pointer-events: none;
    z-index: 2;
    transition: background var(--transition-smooth);
}

.graphic-card {
    width: 100%;
    max-width: 440px;
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 2;
    transition: transform var(--transition-smooth);
}

.graphic-card:hover {
    transform: translateY(-5px) rotate(1deg);
}

.card-header-bar {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}

.card-header-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.card-header-bar .dot.red { background-color: #ff5f56; }
.card-header-bar .dot.yellow { background-color: #ffbd2e; }
.card-header-bar .dot.green { background-color: #27c93f; }

.bar-title {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
    margin-left: auto;
}

.card-body-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.graphic-element.main-chart {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar-student {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--grad-red);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1.2rem;
}

.student-text {
    display: flex;
    flex-direction: column;
}

.lbl-stud {
    font-weight: 600;
    color: var(--text-white);
    font-size: 0.95rem;
}

.lbl-prog {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.progress-ring-mock {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid rgba(167, 32, 47, 0.1);
    border-top-color: var(--color-red-text);
    margin-left: auto;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.flex-grid-mock {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.mock-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    padding: 12px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-item i { font-size: 1rem; }
.red-icon { color: var(--color-red-text); }
.green-icon { color: #38ef7d; }
.blue-icon { color: #00b4db; }

/* BADGES FLOTANTES (3D DEEPTH) */
.floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    transition: transform var(--transition-fast);
}

.floating-badge i {
    font-size: 1.2rem;
    color: var(--color-red-text);
}

.floating-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
}

.badge-1 {
    top: 10%;
    left: -5%;
    animation: float-badge 6s ease-in-out infinite;
    z-index: 3;
}

.badge-2 {
    bottom: 5%;
    right: -5%;
    animation: float-badge 8s ease-in-out infinite alternate;
    z-index: 3;
}

@keyframes float-badge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   SECCIONES GENERALES & CABECERAS
   ========================================================================== */
.solutions-section,
.products-section,
.why-choose-us,
.team-section,
.contact-section {
    padding: 100px 0;
    position: relative;
}

section[id] {
    scroll-margin-top: 90px; /* Altura de la cabecera fija + margen de respiro visual */
}

.section-header {
    margin-bottom: 60px;
}

.section-subtitle {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-red-text);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

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

/* ==========================================================================
   BENTO GRID (DISEÑO GRID MODERNO)
   ========================================================================== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

/* CARDS BENTO GENERAL */
.bento-card {
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-dark-card-hover);
    box-shadow: var(--shadow-soft);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--x, 0) var(--y, 0), rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-icon-header {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 28px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
}

/* Clases de colores de iconos */
.text-red { color: var(--color-red-text); box-shadow: 0 0 20px rgba(255, 51, 75, 0.15); }
.text-orange { color: #f857a6; box-shadow: 0 0 20px rgba(248, 87, 166, 0.15); }
.text-green { color: #38ef7d; box-shadow: 0 0 20px rgba(56, 239, 125, 0.15); }
.text-blue { color: #00b4db; box-shadow: 0 0 20px rgba(0, 180, 219, 0.15); }
.text-purple { color: #8a2be2; box-shadow: 0 0 20px rgba(138, 43, 226, 0.15); }

.bento-card .card-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.bento-card .card-text {
    font-size: 0.95rem;
    color: var(--text-silver);
    margin-bottom: 24px;
}

/* Viñetas Especiales */
.feature-bullets-list {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-bullets-list li {
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-white);
}

.feature-bullets-list li i {
    color: var(--color-red-text);
    margin-top: 3px;
    font-size: 0.9rem;
}

.feature-bullets-list.compact li i {
    color: var(--text-silver);
}

/* Distribución de Tamaños Bento */
.card-large {
    grid-column: span 2;
}

.card-medium {
    grid-column: span 1;
}

.card-small {
    grid-column: span 1;
}

/* CTA de Asesoría de Soluciones */
.solutions-cta-box {
    margin-top: 48px;
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 32px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.solutions-cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at 0% 0%, rgba(167, 32, 47, 0.05), transparent 45%);
    pointer-events: none;
    z-index: 1;
}

.solutions-cta-box:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    background: var(--bg-dark-card-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

:root.theme-light .solutions-cta-box:hover {
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.06);
}

.solutions-cta-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.solutions-cta-title {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
    line-height: 1.3;
}

.solutions-cta-desc {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.5;
}

.solutions-cta-action {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

@media (max-width: 992px) {
    .solutions-cta-box {
        padding: 32px;
    }
}

@media (max-width: 768px) {
    .solutions-cta-box {
        flex-direction: column;
        text-align: center;
        gap: 24px;
        padding: 32px 24px;
    }
    .solutions-cta-content {
        max-width: 100%;
    }
    .solutions-cta-action {
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .solutions-cta-action a {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   PRODUCTOS (TARJETAS DE PRESENTACIÓN DE MUESTRA)
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.product-showcase-card {
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.product-showcase-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 3;
}

.product-visual {
    height: 220px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.glow-radial {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.08; /* Suavizado de 0.15 a 0.08 */
    z-index: 1;
}

.red-glow { background-color: var(--color-red-text); }
.blue-glow { background-color: #00b4db; }

.product-icon {
    font-size: 5rem;
    color: var(--color-red-text);
    filter: drop-shadow(0 0 15px rgba(167, 32, 47, 0.25));
    z-index: 2;
    transition: transform var(--transition-smooth);
}

.product-icon-blue {
    font-size: 5rem;
    color: #00b4db;
    filter: drop-shadow(0 0 15px rgba(0, 180, 219, 0.4));
    z-index: 2;
    transition: transform var(--transition-smooth);
}

.product-showcase-card:hover .product-icon,
.product-showcase-card:hover .product-icon-blue,
.product-showcase-card:hover .memberness-logo-svg,
.product-showcase-card:hover .giie-logo-svg {
    transform: scale(1.08) rotate(3deg);
}

.product-brand-tag {
    position: absolute;
    bottom: 15px;
    left: 24px;
    font-family: var(--font-headings);
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255,255,255,0.08);
    letter-spacing: 2px;
}

.product-info {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-title {
    font-size: 1.75rem;
    margin-bottom: 6px;
}

.product-type {
    font-size: 0.85rem;
    color: var(--color-red-text);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: inline-block;
}

.product-desc {
    color: var(--text-silver);
    font-size: 0.95rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.btn-product-trigger {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================================================== */
.why-choose-us {
    background: rgba(255, 255, 255, 0.01);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.why-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-box {
    position: relative;
    display: flex;
    flex-direction: column;
    background: rgba(30, 37, 50, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 20px 22px;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-color);
    opacity: 0.95;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.stat-box:hover::before {
    height: 6px;
}

.stat-box.stat-trajectory {
    --accent-color: linear-gradient(90deg, #ff3355, #ff607f);
    --color-icon: #ff607f;
}

.stat-box.stat-solutions {
    --accent-color: linear-gradient(90deg, #00acc1, #00d4ec);
    --color-icon: #00acc1;
}

.stat-box.stat-support {
    --accent-color: linear-gradient(90deg, #8a5cf5, #d946ef);
    --color-icon: #d946ef;
}

:root.theme-light .stat-box {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.03);
}

:root.theme-light .stat-box:hover {
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.07);
}

:root.theme-light .stat-box.stat-trajectory {
    --color-icon: #a7202f;
}
:root.theme-light .stat-box.stat-solutions {
    --color-icon: #00acc1;
}
:root.theme-light .stat-box.stat-support {
    --color-icon: #6f42c1;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stat-num {
    font-family: var(--font-headings);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-white); /* Pure white in dark mode for outstanding contrast */
    line-height: 1.1;
    margin-bottom: 0;
}

:root.theme-light .stat-num {
    color: #000000; /* Pure black in light mode */
}

.stat-icon {
    font-size: 1.25rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-icon);
    transition: transform var(--transition-smooth), background-color var(--transition-smooth);
}

:root.theme-light .stat-icon {
    background: rgba(0, 0, 0, 0.03);
}

.stat-box:hover .stat-icon {
    transform: scale(1.1) rotate(8deg);
    background: rgba(255, 255, 255, 0.09);
}

:root.theme-light .stat-box:hover .stat-icon {
    background: rgba(0, 0, 0, 0.06);
}

.stat-lbl {
    font-size: 0.85rem;
    color: var(--text-silver);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.1px;
}

:root.theme-light .stat-lbl {
    color: #4b5563;
}

/* Manifiesto de Compromiso Humano (Estilo Spotlight Glow Interactivo) */
/* Manifiesto de Compromiso Humano (Estilo Tarjeta Limpia Sin Chat) */
.trust-clean-card {
    margin-top: 32px;
    position: relative;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    overflow: hidden;
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.trust-clean-card:hover {
    transform: translateY(-4px);
    border-color: rgba(167, 32, 47, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(167, 32, 47, 0.08);
}

.clean-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-light);
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: #38ef7d;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.pulsing-green {
    box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 239, 125, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(56, 239, 125, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(56, 239, 125, 0);
    }
}

.status-text {
    font-size: 0.78rem;
    font-weight: 700;
    color: #38ef7d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.human-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(167, 32, 47, 0.1);
    color: var(--color-red-text);
    border: 1px solid rgba(167, 32, 47, 0.22);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.clean-card-body {
    padding: 32px;
}

.clean-card-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    font-family: var(--font-headings);
    line-height: 1.35;
}

.clean-card-text {
    font-size: 1.02rem;
    color: var(--text-silver);
    line-height: 1.65;
    margin-bottom: 18px;
}

.clean-card-text:last-of-type {
    margin-bottom: 28px;
}

.clean-card-features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.feature-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--text-silver);
    font-weight: 600;
    transition: transform var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.feature-badge i {
    color: var(--color-red-text);
    font-size: 0.95rem;
}

.feature-badge:hover {
    transform: translateY(-2px);
    border-color: rgba(167, 32, 47, 0.35);
    background: rgba(167, 32, 47, 0.05);
}

/* Modo Claro Adaptativo */
:root.theme-light .trust-clean-card {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.03);
}

:root.theme-light .trust-clean-card:hover {
    border-color: rgba(167, 32, 47, 0.2);
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06), 0 0 20px rgba(167, 32, 47, 0.03);
}

:root.theme-light .clean-card-header {
    background: rgba(0, 0, 0, 0.01);
    border-bottom-color: rgba(15, 23, 42, 0.08);
}

:root.theme-light .status-text {
    color: #10b981;
}

:root.theme-light .status-dot {
    background-color: #10b981;
}

:root.theme-light .human-badge {
    background: rgba(167, 32, 47, 0.06);
    color: var(--color-red-primary);
    border-color: rgba(167, 32, 47, 0.16);
}

:root.theme-light .clean-card-title {
    color: #0f172a;
}

:root.theme-light .clean-card-text {
    color: #334155;
}

:root.theme-light .feature-badge {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.06);
    color: #334155;
}

:root.theme-light .feature-badge:hover {
    background: rgba(167, 32, 47, 0.04);
    border-color: rgba(167, 32, 47, 0.16);
}

@media (max-width: 576px) {
    .stats-row {
        gap: 10px;
        margin-top: 24px;
    }
    .stat-box {
        padding: 14px 10px;
        border-radius: 14px;
        text-align: left;
        align-items: stretch;
    }
    .stat-header {
        margin-bottom: 8px;
    }
    .stat-num {
        font-size: 1.9rem;
    }
    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    .stat-lbl {
        font-size: 0.76rem;
    }
    .trust-clean-card {
        margin-top: 24px;
        border-radius: 16px;
    }
    .clean-card-header {
        padding: 12px 16px;
    }
    .clean-card-body {
        padding: 20px;
    }
    .clean-card-title {
        font-size: 1.45rem;
        margin-bottom: 14px;
    }
    .clean-card-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    .clean-card-features {
        gap: 10px;
        margin-top: 20px;
    }
    .feature-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.why-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.why-item-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    gap: 20px;
    transition: var(--transition-smooth);
}

.why-item-card:hover {
    transform: translateX(8px);
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(167, 32, 47, 0.2);
}

.why-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(167, 32, 47, 0.06);
    border: 1px solid rgba(167, 32, 47, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red-text);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.why-item-txt h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.why-item-txt p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SECCIÓN EQUIPO (LAURA Y DIEGO)
   ========================================================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 48px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-soft);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-red-text);
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
    border-color: var(--color-red-text);
    color: var(--text-white);
    background: var(--grad-red);
    box-shadow: var(--shadow-glow-red);
}

.team-name {
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--color-red-text);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    display: inline-block;
}

.team-bio {
    font-size: 0.95rem;
    color: var(--text-silver);
    margin-bottom: 28px;
    line-height: 1.6;
}

.team-email-link {
    font-size: 0.95rem;
    color: var(--text-white);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}

.team-email-link:hover {
    background: rgba(167, 32, 47, 0.04);
    border-color: var(--color-red-text);
    color: var(--color-red-text);
}

/* ==========================================================================
   SECCIÓN DE CONTACTO & FORMULARIO
   ========================================================================== */
.contact-box-container {
    background: var(--bg-dark-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-light);
    border-radius: 32px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    box-shadow: var(--shadow-soft);
}

.contact-details {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 0;
}

.contact-box-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-box-desc {
    color: var(--text-silver);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-red-text);
    font-size: 1.05rem;
}

.info-txt span {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-txt a,
.info-txt p {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-white);
}

.info-txt a:hover {
    color: var(--color-red-text);
}

/* Redes Sociales en Contacto y Footer */
.contact-socials-block {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.social-icon-btn:hover {
    transform: translateY(-4px);
    color: #ffffff !important;
}

/* Colores predeterminados de cada empresa en el formulario de contacto (Outline/Glassmorphic de base, Relleno en Hover) */
.social-icon-btn.linkedin {
    color: #0077b5 !important;
    border: 1px solid rgba(0, 119, 181, 0.4);
    background-color: rgba(0, 119, 181, 0.04);
}
.social-icon-btn.linkedin:hover {
    color: #ffffff !important;
    background-color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 6px 20px rgba(0, 119, 181, 0.5);
}

.social-icon-btn.instagram {
    color: #dc2743 !important;
    border: 1px solid rgba(220, 39, 67, 0.4);
    background-color: rgba(220, 39, 67, 0.04);
}
.social-icon-btn.instagram:hover {
    color: #ffffff !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(220, 39, 67, 0.5);
}

.social-icon-btn.facebook {
    color: #1877f2 !important;
    border: 1px solid rgba(24, 119, 242, 0.4);
    background-color: rgba(24, 119, 242, 0.04);
}
.social-icon-btn.facebook:hover {
    color: #ffffff !important;
    background-color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

/* Redes Sociales en el Footer */
.footer-social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-2px);
    color: #ffffff !important;
}

/* Colores predeterminados en el footer (Outline/Glassmorphic de base, Relleno en Hover) */
.footer-social-link.linkedin {
    color: #0077b5 !important;
    border: 1px solid rgba(0, 119, 181, 0.35);
    background-color: rgba(0, 119, 181, 0.03);
}
.footer-social-link.linkedin:hover {
    color: #ffffff !important;
    background-color: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 4px 15px rgba(0, 119, 181, 0.45);
}

.footer-social-link.instagram {
    color: #dc2743 !important;
    border: 1px solid rgba(220, 39, 67, 0.35);
    background-color: rgba(220, 39, 67, 0.03);
}
.footer-social-link.instagram:hover {
    color: #ffffff !important;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(220, 39, 67, 0.45);
}

.footer-social-link.facebook {
    color: #1877f2 !important;
    border: 1px solid rgba(24, 119, 242, 0.35);
    background-color: rgba(24, 119, 242, 0.03);
}
.footer-social-link.facebook:hover {
    color: #ffffff !important;
    background-color: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.45);
}

/* FORMULARIO */
.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
}

.modern-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-white);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background-color: var(--bg-dark-deep);
    color: var(--text-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-red-text);
    background: rgba(167, 32, 47, 0.015);
    box-shadow: 0 0 15px rgba(167, 32, 47, 0.08);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
    border-top: 1px solid var(--border-light);
    background-color: var(--bg-footer);
    padding: 80px 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.brand-moto {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 280px;
}

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

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--color-red-text);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px 0;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    gap: 20px;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--text-white);
}

/* ==========================================================================
   VENTANAS MODALES INTERACTIVAS (GLASSMORMIPHISM)
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(7, 9, 12, 0.6);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
    padding: 20px;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    background: var(--bg-modal);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    padding: 40px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform var(--transition-smooth);
    overflow-y: auto;
    max-height: 90vh;
}

.modal-backdrop.active .modal-card {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--grad-red);
    box-shadow: var(--shadow-glow-red);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 20px;
}

.modal-icon-header {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-white);
}

.modal-icon-header.bg-red { background: var(--grad-red); box-shadow: var(--shadow-glow-red); }
.modal-icon-header.bg-blue { background: var(--grad-blue); box-shadow: 0 0 20px rgba(0, 180, 219, 0.3); }

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
}

.modal-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-desc-p {
    font-size: 1.05rem;
    color: var(--text-silver);
    margin-bottom: 24px;
    line-height: 1.6;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.modal-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.modal-features-list li {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.modal-features-list li i {
    color: var(--color-red-text);
    margin-top: 4px;
    font-size: 1rem;
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.wa-tooltip {
    position: absolute;
    right: 76px;
    background: #11161d;
    backdrop-filter: var(--glass-blur);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-soft);
}

.whatsapp-float-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   ANIMACIONES DE ENTRADA & SCROLL REVEAL
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   MEDIA QUERIES (DISEÑO RESPONSIVO MOBILE-FIRST)
   ========================================================================== */
@media (max-width: 1024px) {
    html { font-size: 15px; }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-large {
        grid-column: span 2;
    }
    
    .why-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-box-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .btn-primary-header {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.2rem; /* Título un poco más pequeño también en móvil para mantener la armonía */
    }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large, .card-medium, .card-small {
        grid-column: span 1;
    }
    
    .bento-card {
        padding: 30px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float-btn {
        width: 52px;
        height: 52px;
        font-size: 1.8rem;
        right: 16px;
        bottom: 16px;
    }

    /* Focus Section — 1 columna en móvil */
    .focus-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .focus-image-container {
        max-height: none;
        overflow: visible;
    }

    .focus-title {
        font-size: 1.65rem;
    }

    /* Hero graphic en móvil */
    .ecosystem-img-wrapper {
        max-width: 100%;
        margin: 24px auto 0;
    }

    .ecosystem-img {
        max-height: 320px;
    }

    /* Logo wrapper en móvil */
    .logo-tagline {
        display: none;
    }
}

/* ==========================================================================
   FASE 3: COMPONENTES INTERACTIVOS Y SECCIONES PREMIUM
   ========================================================================== */

/* 1. Botón Selector de Tema Claro/Oscuro */
.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    color: var(--text-white);
    font-size: 1.15rem;
    transition: var(--transition-fast);
    cursor: pointer;
}
.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}
:root.theme-light .theme-toggle-btn {
    background: rgba(15, 23, 42, 0.05);
    color: #0f172a;
}
:root.theme-light .theme-toggle-btn:hover {
    background: rgba(15, 23, 42, 0.1);
}

/* 2. Carrusel Deslizante de Clientes */
.clients-section {
    padding: 40px 0 60px 0;
    overflow: hidden;
    position: relative;
}
/* Fade masks muy sutiles en los extremos: solo 40px para no cortar los logos */
.clients-section::before, .clients-section::after {
    content: "";
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.clients-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark-deep), transparent);
}
.clients-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark-deep), transparent);
}
.clients-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
.clients-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-red-text);
    margin-bottom: 10px;
}
.clients-subtitle {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 580px;
    margin: 0 auto 44px;
    line-height: 1.65;
    opacity: 0.85;
}
/* El viewport ocupa todo el ancho de la pantalla (rompe el container) */
.carousel-viewport {
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.carousel-track {
    display: flex;
    gap: 80px;
    width: max-content;
    padding: 8px 40px;
    animation: infiniteScroll 50s linear infinite;
}
.carousel-track:hover {
    animation-play-state: paused;
}
.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    opacity: 0.7;
    filter: grayscale(1) brightness(0.75);
    transition: var(--transition-fast);
    white-space: nowrap;
    cursor: default;
}
.client-logo-item:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1);
    transform: translateY(-3px);
}
/* Icono FontAwesome de cada cliente */
.client-icon {
    font-size: 1.5rem;
    color: var(--text-silver);
}
/* Nombre de cliente en variante icon-text */
.client-name {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-headings);
    color: var(--text-silver);
}
/* Nombre estilizado con fuente/color corporativo propio */
.client-text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}
@keyframes infiniteScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* (3. Hero — imagen ecosistema integrada como fondo atmosférico — ver .hero-ecosystem-bg en Hero Section) */
.pulse-glow {
    animation: flowPulse 3s infinite ease-in-out;
}
.animate-flow-dash {
    stroke-dasharray: 12, 12;
    animation: flowDash 25s linear infinite;
}
@keyframes flowPulse {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(167, 32, 47, 0.25)); }
    50% { filter: drop-shadow(0 0 20px rgba(167, 32, 47, 0.55)); }
}
@keyframes flowDash {
    0% { stroke-dashoffset: 500; }
    100% { stroke-dashoffset: 0; }
}

/* 4. Calculadora Interactiva de Campus */
.calculator-section {
    padding: 100px 0;
    position: relative;
}
.calculator-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 40px;
}
@media (max-width: 992px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }
}
.calculator-ctrl-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: var(--glass-blur);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: var(--transition-fast);
}
.calculator-ctrl-card:hover {
    border-color: var(--border-hover);
}
.slider-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.slider-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}
.slider-value-badge {
    background: var(--grad-red);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(167, 32, 47, 0.25);
}
.calculator-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    transition: background 0.3s;
    cursor: pointer;
}
:root.theme-light .calculator-slider {
    background: rgba(15, 23, 42, 0.1);
}
.calculator-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-red-primary);
    box-shadow: 0 0 12px rgba(167, 32, 47, 0.5);
    border: 2px solid #fff;
    cursor: pointer;
    transition: transform 0.15s;
}
.calculator-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.features-grid-calc {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 576px) {
    .features-grid-calc {
        grid-template-columns: 1fr;
    }
}
.calc-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    font-size: 0.95rem;
    color: var(--text-silver);
}
:root.theme-light .calc-feature-item {
    background: rgba(15, 23, 42, 0.02);
}
.calc-feature-item i {
    color: var(--color-red-text);
    font-size: 1.1rem;
}
.calculator-result-card {
    background: linear-gradient(135deg, rgba(22, 28, 38, 0.8), rgba(10, 12, 16, 0.95));
    border: 2px solid var(--color-red-primary);
    border-radius: 20px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: var(--shadow-glow-red);
    position: relative;
    overflow: hidden;
}
:root.theme-light .calculator-result-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(241, 245, 249, 0.95));
    border-color: var(--color-red-text);
}
.calc-plan-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-red-text);
    letter-spacing: 2px;
    text-transform: uppercase;
}
.calc-plan-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-white);
}
.calc-plan-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-white);
    margin: 10px 0;
}
.calc-plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SECCIÓN FOCALIZACIÓN — "Tu Única Tarea: Enseñar y Crear"
   ========================================================================== */
.focus-section {
    padding: 100px 0;
    position: relative;
}

.focus-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

/* Imagen Enmarcada (Sin bordes rígidos, adaptado para fundirse con el fondo) */
.focus-image-container {
    position: relative;
    border-radius: 24px;
    overflow: visible; /* Permite que las tarjetas floten libremente sin recortarse */
    background: transparent;
    border: none;
    box-shadow: none;
    transition: transform var(--transition-smooth);
}

.focus-image-container:hover {
    transform: translateY(-6px);
    box-shadow: none;
}

.focus-img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 22px;
    transition: transform var(--transition-smooth);
}

.focus-image-container:hover .focus-img {
    transform: scale(1.02);
}

/* Columna derecha */
.focus-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.focus-text-header {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.focus-title {
    font-size: 2.1rem;
    font-weight: 800;
    line-height: 1.22;
    color: var(--text-white);
}

.focus-title span {
    background: var(--grad-red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.focus-desc {
    font-size: 1.05rem;
    color: var(--text-silver);
    line-height: 1.65;
}

/* Tarjetas de Beneficios */
.focus-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.focus-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: border-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.focus-card:hover {
    border-color: var(--border-hover);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.focus-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.focus-card-icon.red {
    background: rgba(167, 32, 47, 0.12);
    color: var(--color-red-text);
    border: 1px solid rgba(167, 32, 47, 0.18);
}

.focus-card-icon.purple {
    background: rgba(111, 66, 193, 0.12);
    color: var(--color-memberness);
    border: 1px solid rgba(111, 66, 193, 0.18);
}

.focus-card-icon.blue {
    background: rgba(0, 172, 193, 0.10);
    color: var(--color-giie);
    border: 1px solid rgba(0, 172, 193, 0.16);
}

.focus-card-info {
    flex: 1;
}

.focus-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 6px;
}

.focus-card-text {
    font-size: 0.92rem;
    color: var(--text-silver);
    line-height: 1.6;
}

/* ==========================================================================
   GRÁFICO INTERACTIVO DE SINERGIA (TU TAREA / NUESTRA TAREA)
   ========================================================================== */
.focus-interactive {
    position: relative;
    width: 100%;
    max-width: 550px;
    aspect-ratio: 5 / 4;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(30, 37, 50, 0.3);
    border: none;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
    overflow: visible;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

:root.theme-light .focus-interactive {
    background: rgba(224, 226, 229, 0.7);
    border: none;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.focus-interactive:hover {
    transform: translateY(-6px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.65);
}

:root.theme-light .focus-interactive:hover {
    box-shadow: 0 35px 70px rgba(15, 23, 42, 0.18);
}

.focus-interactive-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* Animaciones de Órbitas */
.orbit-rotate-clockwise {
    transform-origin: 170px 200px;
    animation: spinClockwise 25s linear infinite;
}

.orbit-rotate-counter {
    transform-origin: 380px 200px;
    animation: spinCounterClockwise 25s linear infinite;
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    0% { transform: rotate(360deg); }
    100% { transform: rotate(0deg); }
}

/* Partículas animadas en caminos (path) usando offset-path */
.focus-particle {
    pointer-events: none;
    filter: url(#focus-glow);
}

.focus-particle.p-creator {
    offset-path: path("M 170 200 m -80, 0 a 80,80 0 1,0 160,0 a 80,80 0 1,0 -160,0");
    animation: moveParticle 8s linear infinite;
}

.focus-particle.p-operator {
    offset-path: path("M 380 200 m -80, 0 a 80,80 0 1,0 160,0 a 80,80 0 1,0 -160,0");
    animation: moveParticle 8s linear infinite reverse;
}

.focus-particle.p-bridge-1 {
    offset-path: path("M 170 120 C 240 100, 310 100, 380 120");
    animation: moveParticleBridge 5s linear infinite;
}

.focus-particle.p-bridge-2 {
    offset-path: path("M 380 280 C 310 300, 240 300, 170 280");
    animation: moveParticleBridge 5s linear infinite 2.5s;
}

@keyframes moveParticle {
    0% { offset-distance: 0%; }
    100% { offset-distance: 100%; }
}

@keyframes moveParticleBridge {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* Nodos HTML flotando sobre el SVG */
.focus-interactive-node {
    position: absolute;
    background: rgba(18, 22, 33, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-smooth);
    z-index: 5;
    pointer-events: auto;
}

:root.theme-light .focus-interactive-node {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

:root.theme-light .focus-interactive-node.node-creator {
    border-left: 4px solid #a7202f;
}

:root.theme-light .focus-interactive-node.node-operator {
    border-right: 4px solid #00a8cc;
}

.focus-interactive-node h5 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-white);
    white-space: nowrap;
    line-height: 1.2;
}

:root.theme-light .focus-interactive-node h5 {
    color: #0f172a;
}

.focus-interactive-node .label-role {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.8px;
    display: block;
    margin-top: 2px;
}

:root.theme-light .focus-interactive-node .label-role {
    color: #64748b;
}

.focus-interactive-node .node-icon-bg {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Colores de Iconos */
.node-icon-bg.red-pulse {
    background: #a7202f; /* Deep burgundy/red */
    box-shadow: 0 0 12px rgba(167, 32, 47, 0.3);
}

.node-icon-bg.blue-pulse {
    background: #00a8cc; /* Sleek blue */
    box-shadow: 0 0 12px rgba(0, 168, 204, 0.3);
}

/* Posiciones de los nodos */
.focus-interactive-node.node-creator {
    left: -5%;
    top: 20%;
    border-left: 4px solid #a7202f;
    animation: floatCardLeft 6s infinite ease-in-out;
}

.focus-interactive-node.node-operator {
    right: -5%;
    bottom: 20%;
    border-right: 4px solid #00a8cc;
    animation: floatCardRight 6s infinite ease-in-out alternate;
}

@keyframes floatCardLeft {
    0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
    50% { transform: translateY(-10px) rotate(0.5deg); }
}

@keyframes floatCardRight {
    0%, 100% { transform: translateY(0px) rotate(0.5deg); }
    50% { transform: translateY(-12px) rotate(-0.5deg); }
}

/* Hovers de los nodos */
.focus-interactive-node:hover {
    transform: translateY(-4px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.focus-interactive-node.node-creator:hover {
    border-color: #ff3355;
    box-shadow: 0 15px 35px rgba(255, 51, 85, 0.25);
}

.focus-interactive-node.node-operator:hover {
    border-color: #00b4db;
    box-shadow: 0 15px 35px rgba(0, 180, 219, 0.25);
}

/* Nodo Central Sinergia */
.focus-interactive-node.node-sync,
:root.theme-light .focus-interactive-node.node-sync {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    pointer-events: none;
    z-index: 6;
    animation: pulseCenterNode 4s infinite ease-in-out;
}

.node-sync .sync-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d946ef, #8a5cf5, #00b4db);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    box-shadow: 0 0 20px rgba(138, 92, 245, 0.6);
}

.node-sync .middle-sync-icon {
    font-size: 1.3rem;
    animation: spinClockwise 8s linear infinite;
}

.node-sync .middle-label {
    font-size: 0.75rem;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

:root:not(.theme-light) .node-sync .middle-label {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes pulseCenterNode {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

/* Reducción elegante de espacio entre soluciones, filosofía y productos */
#soluciones.solutions-section {
    padding-bottom: 50px;
}
#filosofia.focus-section {
    padding-top: 50px;
    padding-bottom: 50px;
}
#productos.products-section {
    padding-top: 50px;
    padding-bottom: 40px; /* Ajustado a 40px para dar un poco más de espacio */
}

/* Desplazamiento del gráfico de Sinergia un poco más abajo en escritorio para centrarlo visualmente */
@media (min-width: 769px) {
    #filosofia .focus-interactive {
        margin-top: 40px;
    }
}

/* Espacio elegante y remoción de línea divisoria superior en Trayectoria */
#elegirnos.why-choose-us {
    border-top: none; /* Quita la línea que divide productos de trayectoria */
    padding-top: 40px; /* Ajustado a 40px para dar un poco más de espacio */
    padding-bottom: 50px;
}

/* Título de Trayectoria y Confianza en negro puro para Modo Claro (el subtítulo queda en rojo corporativo) */
:root.theme-light #elegirnos .section-title {
    color: #000000 !important;
}

/* Reducción de espacio y agregado de línea divisoria inferior en Preguntas Frecuentes */
#preguntas-frecuentes.faq-section {
    padding-top: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border-light); /* Agrega la línea divisoria con contacto */
}

/* Reducción de espacio superior en Contacto */
#contacto.contact-section {
    padding-top: 50px;
}

/* Adaptabilidad Responsiva */
@media (max-width: 768px) {
    .focus-interactive-node.node-creator {
        left: 3%;
        top: 15%;
    }
    .focus-interactive-node.node-operator {
        right: 3%;
        bottom: 15%;
    }
}

@media (max-width: 576px) {
    .focus-interactive {
        aspect-ratio: 1.1 / 1;
        max-width: 100%;
        padding: 10px;
        border-radius: 18px;
    }
    .focus-interactive-node {
        padding: 8px 12px;
        gap: 8px;
        border-radius: 12px;
    }
    .focus-interactive-node.node-creator {
        left: 2%;
        top: 12%;
    }
    .focus-interactive-node.node-operator {
        right: 2%;
        bottom: 12%;
    }
    .focus-interactive-node h5 {
        font-size: 0.75rem;
    }
    .focus-interactive-node .label-role {
        font-size: 0.58rem;
    }
    .focus-interactive-node .node-icon-bg {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
        border-radius: 6px;
    }
    .node-sync .sync-circle {
        width: 42px;
        height: 42px;
    }
    .node-sync .middle-sync-icon {
        font-size: 1.1rem;
    }
    .node-sync .middle-label {
        font-size: 0.65rem;
    }
}

/* 5. Preguntas Frecuentes Accordion FAQ */
.faq-section {
    padding: 100px 0;
    position: relative;
}
.faq-container {
    max-width: 800px;
    margin: 40px auto 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}
.faq-item:hover {
    border-color: var(--border-hover);
}
.faq-item.active {
    border-color: var(--color-red-text);
    box-shadow: var(--shadow-glow-red);
}
.faq-trigger {
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}
.faq-question {
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-white);
    padding-right: 20px;
}
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-silver);
    transition: var(--transition-smooth);
}
:root.theme-light .faq-icon {
    background: rgba(15, 23, 42, 0.05);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    background: var(--color-red-primary);
    color: #fff;
}
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 24px;
}
.faq-item.active .faq-content {
    max-height: 200px;
    padding-bottom: 24px;
}
.faq-answer {
    color: var(--text-silver);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* 6. Sección de Portafolio / Casos de Éxito */
.portfolio-section {
    padding: 100px 0;
    position: relative;
}
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}
.portfolio-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}
.portfolio-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
}
.portfolio-img-box {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #1b2330, #0a0c10);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portfolio-img-box i {
    font-size: 4rem;
    opacity: 0.2;
    transition: var(--transition-smooth);
}
.portfolio-card:hover .portfolio-img-box i {
    transform: scale(1.1);
    opacity: 0.35;
}
.portfolio-info {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
}
.portfolio-client {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-red-text);
}
.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}
.portfolio-desc {
    font-size: 0.95rem;
    color: var(--text-silver);
    line-height: 1.5;
}

