/* ==========================================================================
   GCstudio - HOJA DE ESTILOS PRINCIPAL (MÓVIL & ESCRITORIO ALTO CONTRASTE)
   ========================================================================== */

:root {
    --bg-color: #050505;
    --surface-color-raw: 15, 15, 17;
    --surface-color: rgba(var(--surface-color-raw), 0.7);
    --surface-color-hover: rgba(var(--surface-color-raw), 0.9);
    
    --text-primary: #ffffff;
    --text-secondary: #e4e4e7; /* Alto contraste para lectura perfecta */
    --text-muted: #a1a1aa;
    
    --accent-primary: #3b82f6; /* Electric Blue */
    --accent-secondary: #8b5cf6; /* Cyber Purple */
    --accent-glow: rgba(59, 130, 246, 0.35);
    
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(59, 130, 246, 0.5);
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --video-overlay: linear-gradient(
        180deg, 
        rgba(5, 5, 5, 0.45) 0%, 
        rgba(5, 5, 5, 0.55) 50%, 
        rgba(5, 5, 5, 0.7) 100%
    );
}

/* ==========================================================================
   RESET & CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

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

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

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

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

/* ==========================================================================
   CAPA DE ESFERAS GLOW PARALLAX (CONTROLADAS PARA NO AFECTAR CONTRASTE)
   ========================================================================== */
.glow-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.12; /* Opacidad sutil para evitar lavar el texto */
    will-change: transform;
    transition: transform 0.1s linear;
}

.orb-1 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #3b82f6 0%, rgba(59, 130, 246, 0) 70%);
    top: 10%;
    left: -100px;
}

.orb-2 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
    top: 45%;
    right: -150px;
}

.orb-3 {
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, #ec4899 0%, rgba(236, 72, 153, 0) 70%);
    top: 75%;
    left: 10%;
}

/* ==========================================================================
   FONDO DE VIDEO Y PARALLAX (Escritorio)
   ========================================================================== */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--video-overlay);
    z-index: 1;
}

/* ==========================================================================
   TIPOGRAFÍA & GRADIENTES
   ========================================================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.bg-surface {
    background-color: rgba(10, 10, 14, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-subtitle {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 16px;
    border: 1px solid rgba(59, 130, 246, 0.35);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 18px;
    color: #ffffff;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

/* ==========================================================================
   BOTONES DE ALTO IMPACTO
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -5px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.shadow-glow {
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* ==========================================================================
   HEADER & NAVEGACIÓN FLOTANTE (Floating Dock)
   ========================================================================== */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    background-color: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    z-index: 1000;
    padding: 12px 28px;
    transition: top 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                padding 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.4s ease, 
                border-color 0.4s ease, 
                box-shadow 0.4s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.header.scrolled {
    top: 12px;
    padding: 8px 24px;
    background-color: rgba(5, 5, 8, 0.92);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.nav-tracker {
    position: absolute;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.18) 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 8px;
    z-index: -1;
    transition: transform 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                width 0.38s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.25s ease;
    pointer-events: none;
    opacity: 0;
    height: 38px;
    will-change: transform, width, opacity;
}

.nav-link {
    color: var(--text-secondary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    transition: color 0.3s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover, 
.nav-link.active {
    color: #ffffff;
}

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




.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
}

.mobile-menu-btn .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background-color: #ffffff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 120px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #60a5fa;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px #60a5fa;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.2rem);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.6;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 400;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background-color: var(--border-color);
}

.hero-visual {
    display: flex;
    justify-content: flex-end;
}

.hero-preview-card {
    width: 100%;
    max-width: 380px;
    min-height: 380px;
    background: #0e0f15;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.card-header-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.visual-logo-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding: 30px 0;
}

.showcase-logo-icon {
    filter: drop-shadow(0 10px 20px rgba(59, 130, 246, 0.25));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    border-top: 1px solid var(--border-color);
    padding-top: 18px;
}

.tech-pill {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: var(--text-secondary);
    opacity: 0.7;
    transition: var(--transition);
}

.scroll-arrow:hover {
    opacity: 1;
    color: var(--text-primary);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* ==========================================================================
   GLASSMORPHISM CARDS DE ALTA LEGIBILIDAD
   ========================================================================== */
.philosophy-grid, .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 28px;
}

.glass-card, .philosophy-card, .service-card, .ref-card, .step-card, .pillar-card {
    background-color: var(--surface-color);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    padding: 36px;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 75%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.philosophy-card:hover .card-glow, 
.service-card:hover .card-glow, 
.ref-card:hover .card-glow {
    opacity: 1;
}

.philosophy-card:hover, .service-card:hover, .step-card:hover, .pillar-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 15px rgba(59, 130, 246, 0.1);
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.card-icon {
    font-size: 2.2rem;
}

.service-icon {
    font-size: 2rem;
    color: #60a5fa;
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.philosophy-card h3, .service-card h3, .pillar-card h3, .step-card h3 {
    font-size: 1.25rem;
    color: #ffffff;
}

.philosophy-card p, .service-card p, .pillar-card p, .step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.6;
}

/* Analogy Box */
.analogy-box {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: 30px 40px;
    margin-bottom: 48px;
    border-color: rgba(59, 130, 246, 0.25);
    background: rgba(59, 130, 246, 0.06);
}

.analogy-icon {
    font-size: 2.2rem;
    color: #60a5fa;
    background: rgba(59, 130, 246, 0.15);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.analogy-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.analogy-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Referencias Grid */
.references-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.ref-card {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 150px;
}

.ref-card:hover {
    border-color: var(--border-hover);
    background-color: var(--surface-color-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6);
}

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

.ref-card h3 {
    font-size: 1.2rem;
    color: #ffffff;
}

.ref-arrow {
    font-size: 1rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.ref-card:hover .ref-arrow {
    transform: translate(3px, -3px);
    color: #60a5fa;
}

.ref-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ============================================
   CARRUSEL SERVICIOS (desktop)
   ============================================ */
.services-carousel-wrapper {
    position: relative;
}

.services-carousel {
    position: relative;
    min-height: 340px;
}

.carousel-slide {
    display: none;
    animation: carouselFadeIn 0.45s ease;
}

.carousel-slide.active {
    display: block;
}

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

/* La tarjeta dentro del slide ocupa todo el ancho */
.carousel-slide .service-card {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 48px 56px;
    min-height: 320px;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '✦';
    color: #60a5fa;
    font-size: 0.6rem;
    flex-shrink: 0;
}

/* Controles */
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 32px;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--surface-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.carousel-btn:hover {
    border-color: var(--border-hover);
    color: #ffffff;
    background: rgba(59, 130, 246, 0.15);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.2);
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dot.active {
    background: #60a5fa;
    transform: scale(1.35);
    box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

/* Comparativa Desktop */
.desktop-only-table {
    display: block;
}

/* ── Botones solo-icono ─────────────────────── */
.icon-only-btn {
    width: 56px;
    height: 56px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    flex-shrink: 0;
}

/* Social buttons del modal (icon-only) */
.modal-direct-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-bottom: 20px;
}

.social-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.12);
    border-color: rgba(37, 211, 102, 0.35);
    color: #25d366;
}

.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.telegram-btn {
    background: rgba(0, 136, 204, 0.12);
    border-color: rgba(0, 136, 204, 0.35);
    color: #0088cc;
}

.telegram-btn:hover {
    background: rgba(0, 136, 204, 0.25);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 136, 204, 0.25);
}

/* Links del footer (icon-only) */
.footer-social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social-links a:hover {
    border-color: var(--border-hover);
    color: #ffffff;
    background: rgba(255,255,255,0.06);
    transform: translateY(-2px);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-bottom: 48px;
    padding: 0;
    border-radius: 16px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 600px;
}

.comparison-table th, 
.comparison-table td {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: rgba(255, 255, 255, 0.04);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
}

.comparison-table td strong {
    color: #ffffff;
}

.col-bad {
    color: #f87171;
    font-size: 0.95rem;
}

.col-good {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.95rem;
}

.mobile-comparison-grid {
    display: none;
}

/* Security Pillars */
.security-pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.pillar-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.35);
    margin-bottom: 8px;
}

/* Pasos */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}

.step-icon-badge {
    width: 40px;
    height: 40px;
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
    margin-bottom: 12px;
}

/* FAQ Accordions */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    padding: 0;
    border-radius: 12px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    outline: none;
}

.faq-icon-indicator {
    font-size: 1.4rem;
    color: #60a5fa;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-answer p {
    padding: 0 30px 24px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 400;
}

.faq-item.active .faq-icon-indicator {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 250px;
}

/* ==========================================================================
   SECCIÓN CTA ESTILO INVERSIONES
   ========================================================================== */
.section-cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.9) 0%, rgba(25, 25, 35, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(59, 130, 246, 0.15);
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.18);
    color: #60a5fa;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.cta-box h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 16px;
    color: #ffffff;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 36px;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

/* ==========================================================================
   MODAL DE CONTACTO CON NEON GLOW DE ALTO CONTRASTE
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.modal-card {
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    background: #0d0e14; /* Fondo sólido oscuro para legibilidad impecable */
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(59, 130, 246, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.form-glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.8) 0%, rgba(139, 92, 246, 0.8) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    color: #60a5fa;
}

.modal-icon {
    font-size: 2.2rem;
    color: #60a5fa;
    margin-bottom: 12px;
}

.modal-header h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 24px;
}

.modal-direct-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.12);
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #25d366;
    color: #050505;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

.telegram-btn {
    background: rgba(0, 136, 204, 0.12);
    color: #38bdf8;
    border-color: rgba(0, 136, 204, 0.3);
}

.telegram-btn:hover {
    background: #0088cc;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 136, 204, 0.4);
}

.modal-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
    margin: 20px 0;
}

.modal-divider::before, 
.modal-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.modal-divider span {
    padding: 0 12px;
}

/* Campos de Formulario Visibles & Nítidos */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f4f4f5;
}

.form-group input, 
.form-group textarea {
    background-color: #12131a; /* Fondo denso para contraste impecable */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 14px 16px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    width: 100%;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--accent-primary);
    background-color: #181a24;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-group textarea {
    min-height: 110px;
    resize: vertical;
}

.btn-full {
    width: 100%;
    margin-top: 8px;
    height: 52px;
}

.btn-loader {
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: none;
    animation: rotation 1s linear infinite;
    position: absolute;
}

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

.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading .btn-loader {
    display: inline-block;
}

.form-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    text-align: left;
    margin-top: 10px;
    border: 1px solid transparent;
}

.form-status.success {
    display: block;
    background-color: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.form-status.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
}

/* ── Pantalla de éxito del formulario ────────── */
.form-success-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 32px;
    gap: 16px;
    animation: successFadeIn 0.5s ease;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.success-icon-wrap {
    margin-bottom: 8px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
}

/* Animación del círculo */
.success-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke-circle 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

@keyframes stroke-circle {
    to { stroke-dashoffset: 0; }
}

/* Animación del checkmark */
.success-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke-check 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.75s forwards;
}

@keyframes stroke-check {
    to { stroke-dashoffset: 0; }
}

.form-success-screen h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}

.form-success-screen p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    max-width: 320px;
}

.success-redirect-msg {
    font-size: 0.85rem !important;
    color: #60a5fa !important;
    margin-top: 8px !important;
}

/* Puntos animados */
.dots-anim {
    display: inline-block;
    animation: dotsFlow 1.2s infinite;
}

@keyframes dotsFlow {
    0%   { opacity: 1; }
    33%  { opacity: 0.4; }
    66%  { opacity: 0.1; }
    100% { opacity: 1; }
}

/* FOOTER */
.footer {
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.footer-social-links {
    display: flex;
    gap: 28px;
}

.footer-social-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-social-links a:hover {
    color: #60a5fa;
}

.footer-links {
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
    width: 100%;
    justify-content: center;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-links a:hover {
    color: #ffffff;
}

/* Botón flotante WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08) rotate(4deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.7);
}

/* Animaciones Reveal */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVO & DISEÑO MÓVIL ALTO CONTRASTE (LECTURA LIMPIDA Y NÍTIDA)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-badge {
        margin: 0 auto 20px;
    }
    
    .hero-subtitle {
        margin: 0 auto 30px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* DESACTIVAR VIDEO EN MÓVIL */
    .video-bg-container {
        display: none !important;
    }

    /* Fondo Malla Sólido Oscuro */
    body {
        background: #050505;
    }
    
    .header {
        top: 12px;
        width: calc(100% - 24px);
        padding: 10px 18px;
        border-radius: 14px;
        background-color: rgba(5, 5, 8, 0.9);
        border-color: rgba(255, 255, 255, 0.16);
    }
    
    .section {
        padding: 70px 0;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background-color: #08080c;
        border-left: 1px solid var(--border-color);
        padding: 100px 24px 40px;
        gap: 20px;
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
        animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }
    
    @keyframes slideIn {
        from { transform: translateX(100%); }
        to { transform: translateX(0); }
    }
    
    .mobile-menu-btn.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    
    .mobile-menu-btn.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    /* HERO MÓVIL */
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero h1 {
        font-size: clamp(2.1rem, 7vw, 2.6rem);
        line-height: 1.2;
        color: #ffffff;
    }

    .hero-subtitle {
        font-size: 0.98rem;
        color: #e4e4e7;
        font-weight: 400;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .btn-hero-main, .btn-hero-sub {
        width: 100%;
        padding: 16px;
        font-size: 0.95rem;
    }

    .hero-stats {
        flex-direction: row;
        justify-content: space-around;
        gap: 10px;
        width: 100%;
        background: #0e0f14;
        border: 1px solid rgba(255, 255, 255, 0.14);
        padding: 16px 12px;
        border-radius: 14px;
        margin-top: 10px;
    }

    .stat-number {
        font-size: 1.35rem;
        color: #ffffff;
    }

    .stat-label {
        font-size: 0.75rem;
        color: #e4e4e7;
    }

    .stat-divider {
        height: 28px;
        background-color: rgba(255, 255, 255, 0.15);
    }

    .hero-preview-card {
        max-width: 100%;
        min-height: 300px;
        padding: 20px;
        background: #0e0f14;
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .showcase-logo-icon {
        width: 90px;
        height: 90px;
    }

    /* TARJETAS DE LECTURA DIRECTA SÓLIDAS EN MÓVIL (ALTO CONTRASTE) */
    .philosophy-card, .service-card, .pillar-card, .step-card, .ref-card {
        padding: 24px 20px;
        border-radius: 14px;
        background: #0e0f14; /* Fondo oscuro sólido */
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-left: 4px solid var(--accent-primary);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }

    .philosophy-card h3, .service-card h3, .pillar-card h3, .step-card h3, .ref-card h3 {
        color: #ffffff;
    }

    .philosophy-card p, .service-card p, .pillar-card p, .step-card p, .ref-card p {
        color: #e4e4e7;
        font-size: 0.95rem;
        font-weight: 400;
        line-height: 1.6;
    }

    .philosophy-grid, .security-pillars-grid, .steps-grid {
        gap: 16px;
    }

    /* CARRUSEL → STACK VERTICAL EN MÓVIL */
    .services-carousel-wrapper {
        display: block;
    }

    .services-carousel {
        display: flex;
        flex-direction: column;
        gap: 16px;
        min-height: unset;
    }

    /* Todos los slides visibles y sin animación en móvil */
    .carousel-slide,
    .carousel-slide.active {
        display: block;
        animation: none;
    }

    .carousel-slide .service-card {
        max-width: 100%;
        padding: 24px 20px;
        min-height: unset;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

    /* Ocultar controles en móvil */
    .carousel-controls {
        display: none;
    }

    /* REFERENCIAS → 2 columnas en móvil */
    .references-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .analogy-box {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
        background: #0e1220;
        border: 1px solid rgba(59, 130, 246, 0.3);
        border-left: 4px solid var(--accent-primary);
    }

    .analogy-content h3 {
        color: #ffffff;
    }

    .analogy-content p {
        color: #e4e4e7;
    }

    /* TARJETAS COMPARATIVAS SÓLIDAS MÓVIL */
    .desktop-only-table {
        display: none !important;
    }

    .mobile-comparison-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 36px;
    }

    .mobile-comp-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .bad-card {
        border: 1px solid rgba(239, 68, 68, 0.35);
        border-left: 4px solid #ef4444;
        background: #140d0e;
    }

    .good-card {
        border: 1px solid rgba(59, 130, 246, 0.4);
        border-left: 4px solid var(--accent-primary);
        background: #0d1322;
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
    }

    .comp-badge {
        display: inline-block;
        padding: 4px 12px;
        border-radius: 50px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        margin-bottom: 12px;
        letter-spacing: 0.03em;
    }

    .comp-badge.bad {
        background: rgba(239, 68, 68, 0.2);
        color: #f87171;
    }

    .comp-badge.good {
        background: rgba(59, 130, 246, 0.2);
        color: #60a5fa;
    }

    .mobile-comp-card h3 {
        font-size: 1.2rem;
        margin-bottom: 12px;
        color: #ffffff;
    }

    .comp-list {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .comp-list li {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-size: 0.92rem;
        color: #f4f4f5;
        font-weight: 400;
        line-height: 1.5;
    }

    .cross {
        color: #ef4444;
        font-weight: bold;
    }

    .check {
        color: #10b981;
        font-weight: bold;
    }

    .faq-item {
        background: #0e0f14;
        border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .faq-question {
        color: #ffffff;
    }

    .faq-answer p {
        color: #e4e4e7;
    }

    .cta-box {
        padding: 36px 20px;
        border-radius: 20px;
        background: #0e0f15;
        border: 1px solid rgba(59, 130, 246, 0.35);
    }

    .cta-box h2 {
        color: #ffffff;
    }

    .cta-box p {
        color: #e4e4e7;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .modal-card {
        padding: 30px 20px;
        border-radius: 20px;
        background: #0b0c10;
        border: 1px solid rgba(255, 255, 255, 0.18);
    }

    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 52px;
        height: 52px;
    }
}
