/* ==========================================================================
   VARIABLES Y ESTILOS BASE
   ========================================================================== */
:root {
    --bg-dark: #09090b;
    --bg-card: #121215;
    --primary-purple: #a259ff;
    --primary-blue: #3b82f6;
    --text-white: #ffffff;
    --text-muted: #a1a1aa;
    --text-dim: #71717a;
    --border-color: rgba(255, 255, 255, 0.1);
    --border-color-active: rgba(162, 89, 255, 0.4);
    --radius-md: 12px;
    --radius-lg: 16px;
    --focus-ring: rgba(162, 89, 255, 0.75);
    --transition-standard: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

[hidden] {
    display: none !important;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

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

.section {
    padding: 80px 0;
}

.bg-card {
    background-color: var(--bg-card);
}

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

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.85);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

/* Forzar estados de color para evitar el morado predeterminado del navegador */
.nav-link,
.nav-link:visited {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* ==========================================================================
   ANIMACIÓN DE LOGO INTERACTIVO (360° AL TOCAR)
   ========================================================================== */

.logo {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    color: inherit;
    perspective: 1000px; /* Habilita el entorno 3D */
}

.logo span {
    display: inline-block;
    text-decoration: none !important;
    font-weight: 700;
    color: #ffffff;
}

/* Imagen del logo */
.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    animation: nodoFloat 3.5s ease-in-out infinite alternate;
}

/* Animación de flotación constante */
@keyframes nodoFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-3px) rotate(2deg);
    }
    100% {
        transform: translateY(2px) rotate(-2deg);
    }
}

/* Al agregar .spin-360 se pausa la flotación y se ejecuta el giro 3D completo */
.logo img.spin-360,
footer .logo img.spin-360 {
    animation: spinLife 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Efecto de giro 360° en 3D con salto de escala */
@keyframes spinLife {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    50% {
        transform: scale(1.3) rotateY(180deg);
    }
    100% {
        transform: scale(1) rotateY(360deg);
    }
}

/* ==========================================================================
   BOTONES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color-active);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1rem;
}

/* ==========================================================================
   HERO & FRANJA
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 140px 0 36px; /* Reducido para eliminar la brecha vacía */
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 36px;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* --- BADGE PILL MEJORADO (GLASSMORPHISM + PULSO LIVE) --- */
.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 100px;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.12), inset 0 0 10px rgba(168, 85, 247, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    user-select: none;
}

.badge-pill:hover {
    border-color: rgba(168, 85, 247, 0.6);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.3), inset 0 0 15px rgba(168, 85, 247, 0.1);
    transform: translateY(-2px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-purple, #a855f7);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    box-shadow: 0 0 10px var(--primary-purple, #a855f7);
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.8);
    }
    50% {
        transform: scale(1.15);
        box-shadow: 0 0 0 8px rgba(168, 85, 247, 0);
    }
    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(168, 85, 247, 0);
    }
}

.badge-text {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #e2e8f0;
    display: inline-block;
}

/* --- HERO TECH GRID (CAJITAS DE TECNOLOGÍA E INTERACCIÓN) --- */
.hero-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 900px;
    margin: 40px auto 0;
}

.hero-tech-card,
.hero-tech-card:visited {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: var(--text-white, #ffffff);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    backdrop-filter: blur(8px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tech-card:hover {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 15px rgba(168, 85, 247, 0.15);
    color: var(--text-white, #ffffff);
}

.tech-card-arrow {
    color: var(--primary-purple, #a855f7);
    transition: transform 0.3s ease;
}

.hero-tech-card:hover .tech-card-arrow {
    transform: translateX(4px);
}
/* --- TECH STACK STRIP --- */
.tech-stack-strip {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 18px 0; /* Padding compacto */
    text-align: center;
    background: rgba(255, 255, 255, 0.01);
}

.tech-stack-title {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.tech-tags {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
}

.tech-tag:active {
    transform: translateY(0);
}
/* ==========================================================================
   ESTILOS PRODUCT HUB & ECOSISTEMA NODO
   ========================================================================== */
.section-header {
    margin-bottom: 48px;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--text-muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 0.3px;
}

.status-available {
    background: rgba(16, 185, 129, 0.1);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-development {
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-coming-soon {
    background: rgba(162, 89, 255, 0.1);
    color: var(--primary-purple);
    border: 1px solid rgba(162, 89, 255, 0.3);
}

.hub-categories-grid,
.projects-grid,
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.hub-category-card,
.roadmap-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hub-category-card:hover {
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

.card-category-badge {
    font-size: 0.75rem;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

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

.project-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.project-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.project-btn {
    width: 100%;
    gap: 8px;
}
/* Restablecer vista en el título Explorar NODO */
.title-reset-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.title-reset-link:hover {
    opacity: 0.9;
}
/* ==========================================================================
   ESTILOS SECCIÓN SOBRE NODO
   ========================================================================== */
.about-nodo-content {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 32px;
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Línea superior con gradiente y resplandor tenue latente */
.about-nodo-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 80px;
    background:
        linear-gradient(90deg, transparent, var(--primary-purple), var(--primary-blue), transparent) top / 100% 1px no-repeat,
        radial-gradient(ellipse at top, rgba(168, 85, 247, 0.18) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 80%);
    pointer-events: none;
    animation: cardGlowPulse 4s ease-in-out infinite alternate;
}

@keyframes cardGlowPulse {
    0% {
        opacity: 0.4;
        width: 180px;
    }
    100% {
        opacity: 0.85;
        width: 260px;
    }
}

.about-lead {
    font-size: 1.15rem;
    color: var(--text-white);
    font-weight: 500;
    margin-bottom: 12px;
}

.about-body {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-quote {
    font-size: 1.1rem;
    font-weight: 600;
    font-style: italic;
    background: linear-gradient(135deg, var(--primary-purple), var(--primary-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Media Queries */
@media (max-width: 992px) {
    .hub-categories-grid, .projects-grid, .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ajuste general de contenedores y paddings */
    .container {
        padding: 0 16px;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    /* Hero Section */
    .hero-section {
        padding: 120px 0 60px 0;
    }

    .hero-title {
        font-size: 2.1rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

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

    .hero-cta-group .btn {
        width: 100%;
    }

    /* Grillas a 1 sola columna pareja */
    .pricing-grid,
    .services-grid,
    .use-cases-grid,
    .process-flow,
    .frame-content,
    .hub-categories-grid,
    .projects-grid,
    .roadmap-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Ajuste de tarjetas en mobile */
    .project-card,
    .service-card,
    .price-card,
    .hub-category-card,
    .use-case-card,
    .roadmap-card {
        padding: 20px !important;
    }

    /* Pipeline horizontal deslizable */
    .pipeline-container {
        justify-content: flex-start;
        gap: 12px;
        padding: 20px 0;
    }

    /* Footer */
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }

    /* WhatsApp flotante más cómodo en pantalla chica */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .whatsapp-icon {
        width: 24px;
        height: 24px;
    }

    /* Ajuste sección Sobre NODO en mobile */
    .about-nodo-content {
        padding: 28px 20px;
    }

    .about-lead {
        font-size: 1rem;
    }

    .about-body {
        font-size: 0.9rem;
    }

    .about-quote {
        font-size: 0.95rem;
    }

    /* Ajuste de botones de tecnologías en mobile */
    .tech-tags {
        gap: 8px;
    }

    .tech-tag {
        width: 100%;
        text-align: center;
        padding: 10px 14px;
        font-size: 0.85rem;
    }
} /* <-- La llave se cierra ACÁ, al final de todo */

/* ==========================================================================
   ESTILOS DE MÓDULOS INDEPENDIENTES (/modules/)
   ========================================================================== */

/* Botón Volver */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.back-link:hover {
    color: var(--text-white, #ffffff);
    transform: translateX(-4px);
}

/* Hero de Módulo */
.module-hero {
    padding: 140px 0 60px;
    text-align: left;
}

.module-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
}

.module-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted, #94a3b8);
    max-width: 680px;
    line-height: 1.6;
}

/* Grilla de proyectos del Módulo */
.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 24px;
    padding-bottom: 100px;
}

/* Tarjeta de Proyecto en Módulo */
.project-module-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.08));
    border-radius: var(--radius-lg, 16px);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-module-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.4);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(168, 85, 247, 0.15);
}

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

.module-card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-white, #ffffff);
    margin-bottom: 10px;
}

.module-card-desc {
    font-size: 0.95rem;
    color: var(--text-muted, #94a3b8);
    line-height: 1.5;
    margin-bottom: 24px;
}

.status-disponible {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.status-desarrollo {
    background: rgba(234, 179, 8, 0.1);
    color: #fde047;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.status-proximamente {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

/* Enlace a las categorías en index */
.category-link-arrow {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-purple, #a855f7);
    transition: transform 0.2s ease;
}

.hub-category-card:hover .category-link-arrow {
    transform: translateX(4px);
}

/* Botón Deshabilitado */
.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
    border-color: rgba(255, 255, 255, 0.05) !important;
}

/* Quita el color violeta y subrayado por defecto que pone el navegador en enlaces visitados */
a,
a:visited {
    text-decoration: none;
    color: inherit;
}

/* Forzar color correcto en los botones de la franja "TECNOLOGÍAS Y DESARROLLO DIGITAL" */
.hero-tag-link,
.hero-tag-link:visited {
    display: inline-block;
    padding: 6px 14px;
    margin: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: #94a3b8;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.hero-tag-link:hover {
    color: #ffffff;
    border-color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

/* ==========================================================================
   SECCIÓN FAQ (ACORDEÓN CON TARJETAS Y FLECHITA CLICKEABLE)
   ========================================================================== */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card, #121215);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-md, 12px);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item[open] {
    border-color: var(--border-color-active, rgba(162, 89, 255, 0.4));
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.faq-item:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-white, #ffffff);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    list-style: none; /* Elimina la flecha por defecto de HTML */
}

.faq-question::-webkit-details-marker {
    display: none; /* Elimina flecha por defecto en Safari/Chrome */
}

.faq-arrow {
    display: inline-block;
    font-size: 1.1rem;
    color: var(--primary-purple, #a259ff);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animación de giro de la flechita al abrir */
.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px 24px;
    color: var(--text-muted, #a1a1aa);
    font-size: 0.95rem;
    line-height: 1.6;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
    padding-top: 16px;
}

/* ==========================================
   ESTILOS SECCIÓN SOLUCIONES Y PLANES
   ========================================== */
.solutions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    padding: 10px 0;
}

.solution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.solution-card-featured {
    border-color: rgba(138, 43, 226, 0.4);
    background: rgba(138, 43, 226, 0.04);
}

.solution-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: #22c55e;
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.badge-highlight {
    background: #a855f7;
    color: #fff;
}

.solution-card h3 {
    font-size: 1.35rem;
    color: #fff;
    margin-bottom: 12px;
}

.solution-desc {
    color: var(--text-muted, #a1a1aa);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 20px;
}

.solution-price-box {
    margin-bottom: 20px;
}

.price-old {
    text-decoration: line-through;
    color: #71717a;
    font-size: 0.9rem;
    display: block;
}

.solution-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.solution-price-custom {
    font-size: 1.25rem;
    color: #a855f7;
}

.price-currency {
    font-size: 0.8rem;
    color: #a1a1aa;
    font-weight: 400;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 16px;
}

.solution-features li {
    font-size: 0.88rem;
    color: #d4d4d8;
    margin-bottom: 8px;
}

.solution-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* ==========================================================================
   ESTILOS EXCLUSIVOS FOOTER (RESPONSIVE GRID)
   ========================================================================== */
.main-footer {
    background-color: #030305;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 0 20px 0;
    margin-top: 80px;
    width: 100%;
    color: #a1a1aa;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Columna Brand: mantiene el logo exacto del header */
.footer-info .logo {
    margin-bottom: 16px;
}

.footer-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #8a8d93;
    max-width: 320px;
    margin: 0;
}

/* Títulos de Columna */
.footer-heading {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Reset Estricto de Listas (Saca Viñetas y Márgenes) */
.footer-nav {
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.footer-nav li {
    margin-bottom: 10px !important;
    padding: 0 !important;
    list-style: none !important;
}

.footer-nav a {
    color: #8a8d93;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s ease;
    display: inline-block;
}

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

/* Copyright Inferior */
.footer-copyright-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.footer-copyright p {
    margin: 0;
    font-size: 0.82rem;
    color: #52525b;
    text-align: right;
}

/* Adaptación Mobile */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-info {
        grid-column: 1 / -1;
    }

    .footer-copyright p {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Botón Flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
}

.whatsapp-float img,
.whatsapp-float svg,
.whatsapp-icon {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
    object-fit: contain;
}

/* ==========================================
   1. REVEAL AL SCROLLEAR (ANIMACIÓN SUTIL)
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

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

/* ==========================================
   2. DESPLEGABLE DE PLANES / COTIZADOR
   ========================================== */
.solutions-wrapper {
    max-height: 3000px;
    opacity: 1;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
    margin-top: 40px;
}

.solutions-wrapper.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
}

/* ==========================================
   3. PLANES FLOTANTES E INTERACTIVOS (MOBILE FIRST)
   ========================================== */

.interactive-plan {
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: visible;
}

/* Hover solo en pantallas con mouse */
@media (hover: hover) {
    .interactive-plan:hover {
        transform: translateY(-6px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(99, 102, 241, 0.2);
    }
}

/* Estado Seleccionado corregido */
.interactive-plan.selected-plan {
    transform: translateY(-4px);
    border-color: #6366f1 !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), 0 8px 20px rgba(0, 0, 0, 0.4) !important;
}

/* Indicador ubicado abajo para no tapar badges superiores */
.interactive-plan.selected-plan::after {
    content: "SELECCIONADO";
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: #6366f1;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.5);
    z-index: 10;
    white-space: nowrap;
}

/* Adaptación a pantallas más grandes */
@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================
   NAVEGACIÓN MOBILE Y SCROLL HORIZONTAL (SWIPE)
   ========================================== */

/* Hamburguesa NODO */
.mobile-toggle {
    display: flex;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 22px;
    padding: 0;
    z-index: 1001;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Reglas Exclusivas para Mobile (< 768px) */
@media (max-width: 767px) {
    /* Scroll horizontal de planes */
    .solutions-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 10px 15px 25px 15px;
        margin: 0 -15px;
    }

    .interactive-plan {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }

    /* Scroll horizontal de módulos */
    .hub-categories-grid {
        display: flex !important;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 16px;
        padding: 10px 15px 20px 15px;
        margin: 0 -15px;
    }

    .hub-category-card {
        flex: 0 0 82%;
        scroll-snap-align: center;
    }

    /* Ocultar barras de scroll nativas */
    .solutions-grid::-webkit-scrollbar,
    .hub-categories-grid::-webkit-scrollbar {
        display: none;
    }

    .solutions-grid,
    .hub-categories-grid {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .module-hero {
        padding: 112px 0 48px;
    }

    .module-hero-title {
        font-size: 2.1rem;
    }

    .module-hero-subtitle {
        font-size: 1rem;
    }
}

/* ==========================================================================
   ACCESIBILIDAD Y MOVIMIENTO REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html:focus-within {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   NODO — COMPONENTES DE ECOSISTEMA
   ========================================================================== */
.section-eyebrow,
.panel-eyebrow {
    color: var(--primary-blue);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.section-copy {
    margin-inline: auto;
    max-width: 720px;
}

.mobile-toggle.is-active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle.is-active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nodo-panel {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    padding: 28px 0 36px;
    background: rgba(9, 9, 11, 0.96);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity var(--transition-standard), transform var(--transition-standard);
    z-index: 999;
}

.nodo-panel.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nodo-panel-content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
    gap: 48px;
}

.panel-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.panel-links-compact {
    grid-template-columns: 1fr;
}

.panel-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 0.95rem;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.panel-links a:hover,
.panel-links a:focus-visible {
    color: var(--text-white);
    border-color: var(--primary-purple);
}

.what-we-do-grid,
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.what-we-do-card,
.process-card {
    padding: 26px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-standard), border-color var(--transition-standard), background var(--transition-standard);
}

.what-we-do-card:hover,
.process-card:hover {
    background: rgba(162, 89, 255, 0.06);
    border-color: var(--border-color-active);
    transform: translateY(-4px);
}

.what-we-do-card > span,
.process-card > span {
    display: block;
    color: var(--primary-purple);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.what-we-do-card h3,
.process-card h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

.what-we-do-card p,
.process-card p {
    color: var(--text-muted);
    font-size: 0.93rem;
}

.projects-featured {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    margin-inline: auto;
}

.project-card,
.project-module-card {
    cursor: pointer;
}

.project-card:focus-visible,
.project-module-card:focus-visible {
    border-color: var(--primary-purple);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.project-tags li {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.project-card .project-btn,
.project-module-card .project-btn {
    margin-top: auto;
}

.case-study {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(250px, 0.8fr);
    gap: 48px;
    align-items: center;
    padding: 48px;
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.13), transparent 42%),
        rgba(255, 255, 255, 0.02);
}

.case-study h2 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.15;
    margin-bottom: 18px;
}

.case-study-copy > p:not(.section-eyebrow):not(.case-label) {
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 26px;
}

.case-label {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin-bottom: 18px;
}

.case-study-points {
    display: grid;
    gap: 10px;
    list-style: none;
    padding: 0;
}

.case-study-points li {
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

.case-study-points li::before {
    color: var(--primary-purple);
    content: "✓";
    font-weight: 700;
    margin-right: 10px;
}

.brand-marquee {
    overflow: hidden;
    padding: 12px 0;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.brand-track {
    display: flex;
    width: max-content;
    animation: brandMarquee 22s linear infinite;
}

.brand-marquee:hover .brand-track {
    animation-play-state: paused;
}

.brand-marquee.is-static {
    display: flex;
    justify-content: center;
    mask-image: none;
}

.brand-marquee.is-static .brand-track {
    width: auto;
    animation: none;
}

.brand-marquee.is-static .brand-item {
    margin-right: 0;
}

.brand-item {
    display: grid;
    min-width: 220px;
    min-height: 86px;
    place-items: center;
    padding: 20px 36px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-white);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-right: 16px;
}

.brand-item img {
    max-width: 140px;
    max-height: 44px;
    object-fit: contain;
}

@keyframes brandMarquee {
    to { transform: translateX(calc(-50% - 8px)); }
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 48px;
}

.video-shell {
    position: relative;
    aspect-ratio: 16 / 10;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at center, rgba(162, 89, 255, 0.2), transparent 52%),
        var(--bg-card);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-placeholder {
    display: grid;
    gap: 8px;
    justify-items: center;
    color: var(--text-muted);
    text-align: center;
}

.video-placeholder > span {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid var(--border-color-active);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
}

.video-placeholder strong {
    color: var(--text-white);
    letter-spacing: 0.12em;
}

.pricing-note {
    color: var(--text-dim);
    font-size: 0.82rem;
    margin: 26px auto 0;
    max-width: 680px;
    text-align: center;
}

.solutions-grid {
    display: grid !important;
    grid-template-columns: 1fr;
    margin-top: 0;
}

.solution-card {
    min-height: 100%;
}

.solution-price {
    margin-bottom: 22px;
}

.brief-shell {
    max-width: 880px;
    padding: 32px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
}

.brief-progress {
    display: grid;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 34px;
}

.brief-progress-bar {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

#brief-progress-value {
    display: block;
    height: 100%;
    width: 20%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary-purple), var(--primary-blue));
    transition: width var(--transition-standard);
}

.brief-step {
    min-width: 0;
    border: 0;
    padding: 0;
}

.brief-step legend {
    color: var(--text-white);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.brief-step label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.brief-step input:not([type="radio"]):not([type="checkbox"]),
.brief-step textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    outline: none;
    resize: vertical;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    font: inherit;
}

.brief-step input:focus,
.brief-step textarea:focus {
    border-color: var(--primary-purple);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.choice-card {
    position: relative;
    display: block !important;
    padding: 15px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.choice-card:hover,
.choice-card:has(input:checked) {
    border-color: var(--border-color-active);
    background: rgba(162, 89, 255, 0.08);
    color: var(--text-white);
}

.choice-card input {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
}

.choice-card-title {
    display: block;
    color: var(--text-white);
    font-weight: 600;
    line-height: 1.35;
}

.choice-card-copy {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    margin-top: 5px;
}

.choice-card-with-glossary {
    display: block !important;
    min-height: auto;
    padding: 15px 16px;
}

.choice-card-with-glossary input {
    width: auto;
    height: auto;
    inset: 0;
    left: auto;
    top: auto;
}

.choice-card-info.glossary-trigger {
    display: inline;
    position: relative;
    z-index: 2;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    color: var(--text-white);
    font: inherit;
    font-weight: 600;
    text-align: center;
    transform: none;
}

.choice-card-info.glossary-trigger:hover,
.choice-card-info.glossary-trigger:focus-visible {
    color: var(--primary-purple);
}

.choice-card-with-glossary:has(input:focus-visible) {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.brief-help,
.form-status {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 18px;
}

.brief-help-first {
    margin-top: -8px;
    margin-bottom: 20px;
}

.brief-checkbox-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.9rem;
}

.brief-checkbox-control input {
    accent-color: var(--primary-purple);
}

.brief-unnamed-note,
.brief-selection-count,
.brief-limit-message {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-top: 8px;
}

.brief-selection-count {
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 14px;
}

.brief-limit-message {
    color: var(--text-muted);
}

.choice-card:has(input:disabled) {
    cursor: not-allowed;
    opacity: 0.52;
}

.conditional-fields {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.conditional-field {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.conditional-field.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.conditional-field label {
    display: grid;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.conditional-field .choice-grid {
    margin-top: 12px;
}

.conditional-question {
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.conditional-message p {
    color: var(--text-muted);
    margin: 0;
}

.brief-budget {
    margin-top: 22px;
}

.brief-budget .choice-grid {
    margin-top: 12px;
}

.form-status {
    color: #fbbf24;
    min-height: 1.5em;
}

.brief-summary {
    padding: 18px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.brief-summary > p {
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 12px;
}

.brief-summary dl {
    display: grid;
    gap: 8px;
}

.brief-summary dl > div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 12px;
}

.brief-summary dt {
    color: var(--text-dim);
}

.brief-summary dd {
    color: var(--text-muted);
    margin: 0;
}

.brief-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.final-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(162, 89, 255, 0.14), rgba(59, 130, 246, 0.12));
}

.final-cta h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin-bottom: 24px;
}

.main-footer {
    margin-top: 0;
}

.footer-content {
    grid-template-columns: 2fr 1fr 1fr;
}

.module-footer {
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
}

.module-footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.module-footer a {
    color: var(--text-muted);
}

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

.project-modal {
    position: fixed;
    z-index: 2000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.project-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 5, 0.78);
    backdrop-filter: blur(8px);
}

.project-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    max-height: min(780px, calc(100dvh - 48px));
    overflow: auto;
    padding: 36px;
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-lg);
    outline: none;
    background: var(--bg-card);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: transparent;
    color: var(--text-white);
    cursor: pointer;
    font-size: 1.45rem;
}

.project-modal-dialog h2 {
    font-size: 2rem;
    line-height: 1.15;
    margin: 14px 0;
}

.modal-intro {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.modal-details section {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.modal-details h3 {
    color: var(--text-white);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.modal-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

body.modal-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .solutions-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1023px) {
    .what-we-do-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nodo-panel-content,
    .video-layout,
    .case-study {
        grid-template-columns: 1fr;
    }

    .panel-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .navbar .nav-menu {
        display: none;
    }

    .nodo-panel {
        top: 64px;
        max-height: calc(100dvh - 64px);
        overflow-y: auto;
    }

    .nodo-panel-content,
    .panel-links,
    .what-we-do-grid,
    .process-grid,
    .projects-featured,
    .form-grid,
    .choice-grid,
    .modal-details {
        grid-template-columns: 1fr;
    }

    .what-we-do-card,
    .process-card {
        min-height: auto;
    }

    .case-study,
    .brief-shell,
    .project-modal-dialog {
        padding: 24px 20px;
    }

    .case-study {
        gap: 28px;
    }

    .video-layout {
        gap: 26px;
    }

    .brief-actions,
    .module-footer .container {
        align-items: stretch;
        flex-direction: column;
    }

    .brief-actions .btn {
        width: 100%;
    }

    .brief-summary dl > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .project-modal {
        padding: 12px;
    }

    .project-modal-dialog {
        max-height: calc(100dvh - 24px);
    }
}

/* ==========================================================================
   CAPA EDUCATIVA
   ========================================================================== */
.what-we-do-card.solution-guide-trigger {
    cursor: pointer;
}

.what-we-do-card .solution-concept {
    color: var(--text-dim);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-top: 18px;
}

.what-we-do-card .guide-card-cta {
    display: inline-block;
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0;
    margin-top: 18px;
}

.what-we-do-card.solution-guide-trigger:hover .guide-card-cta {
    color: var(--text-white);
}

.module-guide {
    max-width: 860px;
    padding: 30px 32px;
    margin: 0 0 48px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(120deg, rgba(162, 89, 255, 0.07), transparent 46%),
        rgba(255, 255, 255, 0.02);
}

.module-guide h2,
.landing-comparison h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.2;
    margin-bottom: 14px;
}

.module-guide p {
    color: var(--text-muted);
    margin-bottom: 12px;
}

.module-guide h3 {
    color: var(--text-white);
    font-size: 0.92rem;
    margin: 22px 0 10px;
}

.module-guide ul,
.landing-comparison ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.module-guide-link {
    display: inline-flex;
    margin-top: 24px;
    color: var(--primary-purple);
    font-size: 0.9rem;
    font-weight: 700;
}

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

.progressive-details {
    margin-top: 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
}

.progressive-details summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    color: var(--text-white);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    list-style: none;
}

.progressive-details summary::-webkit-details-marker {
    display: none;
}

.progressive-details summary::after {
    color: var(--primary-purple);
    content: "+";
    font-size: 1.15rem;
    line-height: 1;
    transition: transform 0.22s ease;
}

.progressive-details[open] summary::after {
    content: "−";
    transform: rotate(180deg);
}

.progressive-details > div,
.progressive-details > p,
.progressive-details > ul {
    margin: 0 16px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.progressive-details > div {
    display: grid;
    gap: 10px;
}

.progressive-details > ul {
    display: grid;
    gap: 7px;
    padding-left: 18px;
}

.progressive-details[open] > :not(summary) {
    animation: disclosure-reveal 0.22s ease both;
}

.brief-disclosure {
    margin-top: 20px;
}

.module-disclosure {
    margin-top: 12px;
}

.plan-details {
    margin-top: 18px;
}

.comparison-details {
    margin-top: 14px;
}

@keyframes disclosure-reveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-comparison {
    margin: 0 0 48px;
}

.landing-comparison > .section-subtitle {
    max-width: 620px;
    margin-bottom: 20px;
}

.landing-comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.landing-comparison-grid article {
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.02);
}

.landing-comparison-grid article:last-child {
    border-color: rgba(59, 130, 246, 0.3);
}

.landing-comparison-grid h3 {
    color: var(--text-white);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.landing-comparison-grid p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.glossary-trigger {
    appearance: none;
    border: 0;
    padding: 0 2px;
    margin: 0 1px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.015em;
    text-align: inherit;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(162, 89, 255, 0.55);
    text-underline-offset: 4px;
}

.glossary-trigger:hover {
    color: var(--text-white);
    text-decoration-color: var(--primary-purple);
}

.glossary-trigger:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.educational-modal {
    position: fixed;
    z-index: 2100;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
}

.educational-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 5, 0.78);
    backdrop-filter: blur(8px);
}

.educational-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, 100%);
    max-height: min(780px, calc(100dvh - 48px));
    overflow: auto;
    padding: 36px;
    border: 1px solid var(--border-color-active);
    border-radius: var(--radius-lg);
    outline: none;
    background:
        radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.12), transparent 40%),
        var(--bg-card);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

.educational-modal-dialog h2 {
    font-size: clamp(1.7rem, 4vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.guide-short-definition {
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 28px;
}

.guide-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.guide-content section {
    padding: 17px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.guide-content h3 {
    color: var(--text-white);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.guide-content p,
.guide-content li {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.guide-content ul {
    display: grid;
    gap: 6px;
    padding-left: 16px;
}

.educational-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.glossary-dialog {
    width: min(500px, 100%);
}

.glossary-definition {
    color: var(--text-muted);
    line-height: 1.65;
}

.glossary-example {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
    color: var(--text-dim);
    font-size: 0.92rem;
}

@media (max-width: 767px) {
    .module-guide,
    .landing-comparison-grid article,
    .educational-modal-dialog {
        padding: 24px 20px;
    }

    .landing-comparison-grid,
    .guide-content {
        grid-template-columns: 1fr;
    }

    .educational-modal {
        padding: 12px;
    }

    .educational-modal-dialog {
        max-height: calc(100dvh - 24px);
    }

    .educational-modal-actions {
        flex-direction: column;
    }

    .educational-modal-actions .btn {
        width: 100%;
    }
}

/* Ajustes puntuales: brief, planes, marcas y viewport móvil */
.brief-step .unnamed-option {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 16px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1.35;
}

.brief-step .unnamed-option input {
    position: static;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-purple);
}

.choice-card:has(input:checked) {
    cursor: pointer;
    opacity: 1;
}

.choice-card:has(input:disabled):not(:has(input:checked)) {
    cursor: default;
    opacity: 0.52;
}

.plan-card {
    cursor: pointer;
}

.plan-card:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.plan-card.selected-plan {
    border-color: var(--border-color-active);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32), 0 0 20px rgba(162, 89, 255, 0.15);
    transform: translateY(-4px);
}

.plan-selection-copy {
    min-height: 1.5em;
    margin: 16px 0 0;
    color: var(--primary-purple);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.5;
}

.solution-price-custom {
    color: var(--text-white);
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.25;
}

.brand-item {
    text-decoration: none;
}

.brand-item-content {
    display: grid;
    gap: 5px;
    text-align: center;
}

.brand-item-name {
    color: var(--text-white);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand-item-type {
    color: var(--text-dim);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-marquee.is-static .brand-item {
    width: min(100%, 320px);
    min-width: min(100%, 280px);
    gap: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22), 0 0 20px rgba(162, 89, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: brand-float 5s ease-in-out infinite;
}

@keyframes brand-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.project-modal-dialog,
.educational-modal-dialog {
    max-height: min(780px, calc(100dvh - 48px));
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

@media (hover: hover) {
    .brand-marquee.is-static .brand-item:hover {
        animation: none;
        transform: translateY(-6px);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28), 0 0 24px rgba(162, 89, 255, 0.12);
    }
}

@media (max-width: 767px) {
    .solution-card,
    .project-card,
    .project-module-card,
    .choice-card {
        min-width: 0;
    }

    .plan-card.selected-plan {
        transform: translateY(-2px);
    }

    .plan-details summary,
    .brief-disclosure summary {
        font-size: 0.88rem;
    }

    .project-modal-dialog,
    .educational-modal-dialog {
        max-height: calc(100dvh - 24px);
        padding: 20px 16px;
    }

    .project-modal-dialog .modal-close,
    .educational-modal-dialog .modal-close {
        position: sticky;
        top: 0;
        z-index: 2;
        margin-left: auto;
        background: var(--bg-card);
    }

    .whatsapp-float {
        right: max(16px, env(safe-area-inset-right));
        bottom: max(24px, calc(env(safe-area-inset-bottom) + 16px));
        width: 52px;
        height: 52px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .brand-marquee.is-static .brand-item {
        animation: none;
    }
}

/* Pulido de ritmo vertical y alineación entre componentes repetidos */
.what-we-do-grid,
.process-grid,
.hub-categories-grid,
.projects-grid,
.module-grid,
.solutions-grid {
    align-items: stretch;
    grid-auto-rows: 1fr;
}

.what-we-do-card,
.process-card,
.hub-category-card,
.project-card,
.project-module-card,
.solution-card {
    min-width: 0;
    height: 100%;
}

.what-we-do-card,
.process-card,
.hub-category-card,
.project-card,
.project-module-card,
.solution-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.what-we-do-card,
.process-card {
    min-height: 0;
}

.what-we-do-card > span:not(.guide-card-cta),
.process-card > span {
    flex: 0 0 auto;
    margin-bottom: 32px;
}

.what-we-do-card h3,
.process-card h3,
.hub-category-card h3,
.project-title,
.module-card-title,
.solution-card h3 {
    overflow-wrap: anywhere;
}

.what-we-do-card p,
.process-card p,
.hub-category-card p,
.project-desc,
.module-card-desc,
.solution-desc,
.modal-intro,
.modal-details p,
.brief-summary dd {
    overflow-wrap: anywhere;
}

.what-we-do-card .solution-concept {
    margin: auto 0 0;
}

.what-we-do-card .guide-card-cta,
.category-link-arrow,
.module-guide-link,
.project-btn,
.module-footer a,
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    white-space: nowrap;
}

.what-we-do-card .guide-card-cta {
    margin: 12px 0 0;
    letter-spacing: normal;
}

.hub-category-card p {
    margin-bottom: 0;
}

.hub-category-card .category-link-arrow {
    margin-top: auto;
    padding-top: 20px;
}

.project-card .project-tags,
.project-module-card .project-tags {
    margin-top: auto;
}

.project-card .project-btn,
.project-module-card .project-btn {
    flex: 0 0 auto;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    white-space: nowrap;
}

.project-card-header,
.module-card-header {
    align-items: flex-start;
    gap: 12px;
}

.status-badge {
    flex: 0 0 auto;
    white-space: nowrap;
}

.solution-card .solution-price {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 22px;
}

.solution-card .plan-details {
    margin-top: auto;
}

.solution-card .solution-btn {
    width: 100%;
}

.progressive-details summary {
    min-height: 48px;
    line-height: 1.35;
}

.progressive-details summary::after {
    display: grid;
    flex: 0 0 auto;
    width: 1.15rem;
    height: 1.15rem;
    place-items: center;
    margin-left: auto;
}

.modal-details {
    align-items: stretch;
}

.modal-details section {
    display: flex;
    flex-direction: column;
}

.modal-details p {
    line-height: 1.55;
}

.module-hero > .section-eyebrow {
    margin-bottom: 16px;
}

.module-guide,
.landing-comparison {
    min-width: 0;
}

.brief-step label,
.conditional-field label {
    line-height: 1.45;
}

.form-grid,
.choice-grid,
.brief-summary dl,
.footer-content {
    align-items: stretch;
}

.footer-col {
    min-width: 0;
}

@media (max-width: 900px) {
    .hero-title {
        max-width: 100%;
        font-size: clamp(2.1rem, 6vw, 3rem);
        overflow-wrap: anywhere;
        white-space: normal;
    }

    .hero-title br {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .what-we-do-card h3 {
        min-height: 2.5em;
    }

    .what-we-do-card > p:not(.solution-concept) {
        min-height: 4.65em;
        line-height: 1.55;
    }

    .solution-card .solution-desc {
        min-height: 6em;
    }

    .solutions-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .what-we-do-grid,
    .process-grid,
    .solutions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .solutions-grid {
        display: grid !important;
        overflow-x: visible;
        scroll-snap-type: none;
        padding: 0;
        margin: 0;
    }

    .what-we-do-card h3,
    .what-we-do-card > p:not(.solution-concept) {
        min-height: 0;
    }

    .what-we-do-card .guide-card-cta,
    .hub-category-card .category-link-arrow {
        padding-top: 16px;
    }

    .project-card,
    .project-module-card,
    .solution-card {
        padding: 24px 20px;
    }

    .progressive-details summary {
        min-height: 44px;
    }
}

/* Sistema NODO: proceso audiovisual con disclosure progresivo */
.process-grid {
    grid-auto-rows: 1fr;
}

.process-card {
    min-width: 0;
    cursor: pointer;
    overflow: hidden;
}

.process-card:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
}

.process-media,
.process-modal-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: calc(var(--radius-md) - 2px);
    background:
        radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.18), transparent 36%),
        linear-gradient(145deg, rgba(162, 89, 255, 0.16), rgba(18, 18, 21, 0.96));
}

.process-media {
    flex: 0 0 auto;
    margin-bottom: 20px;
}

.process-media-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    z-index: 0;
    background-color: var(--bg-card);
    background-position: center;
    background-size: cover;
}

.process-media-fallback::before {
    position: absolute;
    inset: 16%;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 50%;
    content: "";
    opacity: 0.8;
}

.process-media-fallback span {
    width: 38%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
    box-shadow: 0 0 20px rgba(162, 89, 255, 0.55);
}

.process-media::after,
.process-modal-media::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(180deg, transparent 48%, rgba(9, 9, 11, 0.25));
    content: "";
    pointer-events: none;
}

.process-media video,
.process-modal-media video {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.3s ease;
}

.process-media video.is-ready,
.process-modal-media video.is-ready {
    opacity: 1;
}

.process-number {
    flex: 0 0 auto;
    margin: 0 0 12px;
    color: var(--primary-purple) !important;
    font-size: 0.74rem !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.35;
}

.process-card .process-copy {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.55;
}

.process-card > .process-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin: auto 0 0;
    padding-top: 20px;
    color: var(--primary-purple);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 1.3;
    white-space: nowrap;
}

.process-card > .process-card-cta span {
    transition: transform 0.2s ease;
}

.process-modal-dialog {
    width: min(820px, 100%);
}

.process-modal-short {
    margin-bottom: 22px;
    color: var(--text-white);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}

.process-modal-media {
    margin-bottom: 22px;
}

.process-modal-detail {
    color: var(--text-muted);
    line-height: 1.65;
}

.process-audio {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid var(--border-color);
}

.process-audio-source {
    display: none;
}

.process-audio-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--border-color-active);
    border-radius: 999px;
    background: rgba(162, 89, 255, 0.08);
    color: var(--text-white);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
}

.process-audio-button:hover,
.process-audio-button:focus-visible {
    border-color: var(--primary-purple);
    background: rgba(162, 89, 255, 0.15);
}

.process-audio-button:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 3px;
}

.process-audio-duration {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-variant-numeric: tabular-nums;
}

@media (hover: hover) {
    .process-card:hover {
        border-color: var(--border-color-active);
        background: rgba(162, 89, 255, 0.06);
        transform: translateY(-3px);
    }

    .process-card:hover .process-media video.is-ready {
        transform: scale(1.015);
    }

    .process-card:hover .process-card-cta {
        color: var(--text-white);
    }

    .process-card:hover .process-card-cta span {
        transform: translateX(3px);
    }
}

@media (hover: none) {
    .process-card:hover {
        transform: none;
    }
}

@media (max-width: 767px) {
    .process-card {
        height: auto;
        padding: 24px 20px;
    }

    .process-media {
        margin-bottom: 18px;
    }

    .process-card > .process-card-cta {
        padding-top: 18px;
    }

    .process-modal-dialog {
        max-height: calc(100dvh - 24px);
        padding: 20px 16px max(28px, calc(env(safe-area-inset-bottom) + 16px));
    }

    .process-modal-short {
        font-size: 1rem;
    }

    .process-modal-media {
        margin-bottom: 20px;
    }

    .process-audio-button {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .process-media video,
    .process-modal-media video,
    .process-card > .process-card-cta span {
        transition: none;
    }
}
