/* BASE RESET & VARIABLES */
:root {
    --bg-dark: #0E1117;
    --bg-panel: rgba(20, 25, 35, 0.7);
    --text-main: #E0E0E0;
    --cyan: #00A2FF;
    --magenta: #FF0055;
    --gold: #FFCC00;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

body {
    overflow-x: hidden;
}

/* SLEEK CYBERNETIC SCROLLBAR */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(11, 19, 43, 0.95);
}
::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00FF87;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
    font-weight: 900;
    letter-spacing: -0.5px;
}

.section-title {
    font-size: clamp(2.4rem, 3.8vw, 3.2rem);
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-text {
    font-size: clamp(1.15rem, 1.4vw, 1.32rem);
    line-height: 1.85;
    max-width: 980px;
    margin: 0 auto 3rem auto;
    text-align: center;
    color: #CBD5E1;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background: rgba(14, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo {
    height: 40px;
    background: white;
    padding: 2px;
    border-radius: 4px;
}

.nav-title {
    font-family: 'Roboto Mono', monospace;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--cyan);
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--cyan);
    color: #000;
    border: 2px solid var(--cyan);
    box-shadow: 0 0 15px rgba(0, 162, 255, 0.4);
}

.btn-primary:hover {
    background: transparent;
    color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 162, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--text-main);
    color: #000;
}

/* HERO SECTION */
.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 32px 20px;
    box-sizing: border-box;
    overflow: visible;
    width: 100%;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: radial-gradient(circle at center, rgba(0, 162, 255, 0.12) 0%, transparent 70%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: min(95%, 1400px);
    margin: 0 auto;
}

.glass-card {
    background: rgba(14, 20, 36, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    border-radius: 24px;
    padding: 44px 40px 34px 40px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 35px rgba(0, 162, 255, 0.15);
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(255, 204, 0, 0.15);
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 20px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.hero-content h1 {
    font-size: 5rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--cyan);
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-content p {
    font-size: 1.2rem;
    color: #A0AEC0;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* SECTIONS */
.section {
    padding: 100px 5%;
    position: relative;
}

.dark-section {
    background: #0B0D12;
}

.container {
    width: min(95%, 1400px);
    max-width: min(95%, 1400px);
    margin: 0 auto;
    padding: 0 24px;
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: #A0AEC0;
    line-height: 1.6;
}

.feature-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--cyan);
    border-left: 2px solid var(--cyan);
    padding-left: 10px;
    margin: 15px 0;
}

.btn-profundizar {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 162, 255, 0.1);
    color: var(--cyan);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 15px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.3s;
}
.btn-profundizar:hover {
    background: rgba(0, 162, 255, 0.2);
    border-color: var(--cyan);
}

/* SHOWCASE GRID */
.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.showcase-item {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
}

.showcase-item.full-width {
    grid-column: 1 / -1;
}

.video-placeholder, .image-placeholder {
    width: 100%;
    background: #1A202C;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed #4A5568;
}

.promo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hide until video is added */
}

.video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    cursor: pointer;
}

.play-icon {
    font-size: 4rem;
    color: rgba(255,255,255,0.8);
    transition: transform 0.3s, color 0.3s;
}

.video-placeholder:hover .play-icon {
    transform: scale(1.1);
    color: var(--cyan);
}

.video-overlay p {
    margin-top: 15px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--cyan);
    background: rgba(0,0,0,0.8);
    padding: 5px 10px;
    border-radius: 4px;
}

.placeholder-text {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #718096;
    text-align: center;
    position: absolute;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.showcase-item h3 {
    color: #fff;
    margin-bottom: 10px;
}

.showcase-item p {
    color: #A0AEC0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* MANUAL SECTION */
.manual-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.manual-content h1 { font-size: 1.8rem; margin-bottom: 10px; }
.manual-content h2 { font-size: 1.4rem; margin: 30px 0 15px 0; border-bottom: 1px solid var(--glass-border); padding-bottom: 10px; }
.manual-content p { margin-bottom: 15px; color: #E2E8F0; line-height: 1.7; }
.manual-content ul { margin-left: 20px; margin-bottom: 20px; color: #E2E8F0; }
.manual-content li { margin-bottom: 8px; line-height: 1.5; }

.alert {
    padding: 15px 20px;
    border-left: 4px solid var(--cyan);
    background: rgba(0, 162, 255, 0.1);
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
    color: #fff;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* FOOTER */
footer {
    background: #000;
    border-top: 1px solid #222;
    padding: 40px 5%;
    text-align: center;
    color: #718096;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar { padding: 0 4%; }
    .nav-links { display: flex; gap: 10px; align-items: center; }
    .nav-links > li:not(:last-child) { display: none; } /* Mantener selector de idioma visible en móvil */
    .hero-content h1 { font-size: 3rem; }
    .hero-buttons { flex-direction: column; }
    .showcase-grid { grid-template-columns: 1fr; }
}

/* GALERÍA DEL ECOSISTEMA NEX_ORD */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.gallery-item {
    background: rgba(14, 17, 23, 0.7);
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 162, 255, 0.2);
    border-color: #00A2FF;
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-bottom: 1px solid #333;
    transition: filter 0.3s ease;
    filter: brightness(0.9);
}

.gallery-item:hover .gallery-img {
    filter: brightness(1.1);
}

.gallery-caption {
    padding: 15px;
    font-size: 0.95rem;
    color: #E2E8F0;
    text-align: center;
    font-weight: 600;
}

/* VIDEOTECA VISORD1 */
.video-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}
.video-card h3 {
    margin: 0;
    color: #00A2FF;
    font-size: 1.2rem;
}
.video-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #A0AEC0;
}

/* TIMELINE SECTION (DATA ARCHITECTURE) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    position: absolute;
    left: -25px; /* Adjust based on padding */
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    z-index: 2;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.timeline-content {
    background: rgba(14, 17, 23, 0.8);
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 25px;
    transition: transform 0.3s, border-color 0.3s;
}

.timeline-content:hover {
    transform: translateX(5px);
    border-color: #475569;
}

.timeline-content h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.code-snippet {
    background: #000;
    color: #e2e8f0;
    font-family: 'Roboto Mono', monospace;
    padding: 10px 15px;
    border-radius: 6px;
    border: 1px solid #1e293b;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-content p {
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* PARALLAX QUOTES (PEDAGOGÍA INDIRECTA) */
.parallax-quote {
    position: relative;
    padding: 80px 20px;
    background-color: #0b0f19;
    background-image: radial-gradient(circle at center, rgba(0, 162, 255, 0.05) 0%, transparent 70%);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    overflow: hidden;
}

.parallax-quote blockquote {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    color: #E2E8F0;
    line-height: 1.6;
}

.parallax-quote blockquote span.author {
    display: block;
    margin-top: 20px;
    font-size: 1rem;
    font-weight: 600;
    font-style: normal;
    color: var(--cyan);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* LIGHTBOX MODAL */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    border: 1px solid var(--cyan);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 162, 255, 0.2);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--magenta);
}

.clickable-media {
    cursor: zoom-in;
}

/* =============================================================================
   SELECTOR INTERNACIONAL DE NAVEGACIÓN EN 8 IDIOMAS (VISORD / NEXORD)
   ============================================================================= */
.lang-picker {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lang-picker-btn {
    background: rgba(11, 19, 43, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #F8FAFC;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.lang-picker-btn:hover,
.lang-picker-btn:focus {
    background: rgba(56, 189, 248, 0.2);
    border-color: #38BDF8;
    color: #38BDF8;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.lang-flag {
    font-size: 1rem;
    line-height: 1;
}

.lang-code {
    font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.lang-arrow {
    font-size: 0.7rem;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.lang-picker.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 170px;
    background: rgba(11, 19, 43, 0.98);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.75), 0 0 16px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(16px);
    padding: 6px;
    z-index: 10000;
    flex-direction: column;
    gap: 3px;
}

.lang-picker.open .lang-dropdown {
    display: flex;
    animation: langFadeIn 0.2s ease-out forwards;
}

@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-opt {
    background: transparent;
    border: none;
    color: #E2E8F0;
    padding: 7px 10px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    transition: all 0.15s ease;
}

.lang-opt:hover {
    background: rgba(56, 189, 248, 0.18);
    color: #38BDF8;
    transform: translateX(2px);
}

.lang-opt.active {
    background: rgba(0, 255, 135, 0.15);
    color: #00FF87;
    font-weight: 800;
    border: 1px solid rgba(0, 255, 135, 0.3);
}

.lang-short {
    font-family: 'Roboto Mono', 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 4px;
}


/* =========================================================================
   MENÚ INTERACTIVO VERTICAL LATERAL DERECHO (ORDEN DE LECTURA)
   ========================================================================= */
@media (min-width: 1025px) {
    body {
        padding-right: 370px;
    }
}

.vertical-reading-menu {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 330px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    background: rgba(8, 14, 30, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(56, 189, 248, 0.55);
    border-radius: 22px;
    padding: 22px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.reading-menu-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid rgba(56, 189, 248, 0.35);
    margin-bottom: 16px;
}

.reading-menu-header .menu-icon {
    font-size: 1.55rem;
}

.reading-menu-header .menu-title {
    font-size: 1.05rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 900;
    color: #38BDF8;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.reading-menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.reading-menu-list li {
    margin: 0;
    padding: 0;
}

.nav-step {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #F1F5F9;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 750;
    transition: all 0.2s ease;
    cursor: pointer;
}

.nav-step .step-num,
.app-link .step-num {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.92rem;
    font-weight: 900;
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.22);
    border: 1.5px solid rgba(56, 189, 248, 0.5);
    min-width: 28px;
    height: 28px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    flex-shrink: 0;
    box-sizing: border-box;
}

.nav-step .step-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
}

.nav-step:hover {
    color: #FFFFFF;
    background: rgba(56, 189, 248, 0.22);
    transform: translateX(-4px);
}

.nav-step.active {
    color: #FFFFFF;
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.35), rgba(56, 189, 248, 0.1));
    border-left: 4px solid #00F0FF;
    font-weight: 800;
}

.nav-step.active .step-num {
    background: #00F0FF;
    color: #0B132B;
    border-color: #00F0FF;
}

.reading-menu-divider {
    height: 1.5px;
    background: rgba(56, 189, 248, 0.25);
    margin: 14px 0 12px 0;
}

.reading-menu-subtitle {
    font-size: 0.80rem;
    font-family: 'Roboto Mono', monospace;
    font-weight: 900;
    color: #38BDF8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    padding-left: 4px;
}

.reading-menu-apps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 0;
    margin: 0;
}

.app-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 0.90rem;
    font-weight: 700;
    transition: all 0.2s ease;
    color: #F8FAFC;
}

.app-demo {
    color: #38BDF8;
    background: rgba(56, 189, 248, 0.14);
    border: 1.2px solid rgba(56, 189, 248, 0.35);
}

.app-demo:hover {
    background: rgba(56, 189, 248, 0.28);
    color: #FFFFFF;
    transform: translateX(-3px);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

.app-plat {
    color: #00FF87;
    background: rgba(0, 255, 135, 0.14);
    border: 1.2px solid rgba(0, 255, 135, 0.35);
}

.app-plat:hover {
    background: rgba(0, 255, 135, 0.28);
    color: #FFFFFF;
    transform: translateX(-3px);
    box-shadow: 0 0 14px rgba(0, 255, 135, 0.35);
}

.app-cult {
    color: #FF9F1C;
    background: rgba(255, 159, 28, 0.14);
    border: 1.2px solid rgba(255, 159, 28, 0.35);
}

.app-cult:hover {
    background: rgba(255, 159, 28, 0.28);
    color: #FFFFFF;
    transform: translateX(-3px);
    box-shadow: 0 0 14px rgba(255, 159, 28, 0.35);
}

.app-rad {
    color: #00F0FF;
    background: rgba(0, 240, 255, 0.14);
    border: 1.2px solid rgba(0, 240, 255, 0.35);
    border-left: 3.5px solid #00F0FF;
}

.app-rad:hover {
    background: rgba(0, 240, 255, 0.28);
    color: #FFFFFF;
    transform: translateX(-3px);
    box-shadow: 0 0 16px rgba(0, 240, 255, 0.4);
}



.reading-menu-toggle {
    display: none;
    position: fixed;
    right: 15px;
    bottom: 20px;
    z-index: 1001;
    background: rgba(11, 19, 43, 0.95);
    border: 1px solid #38BDF8;
    color: #38BDF8;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
    .reading-menu-toggle {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .vertical-reading-menu {
        display: none;
        right: 15px;
        bottom: 70px;
        top: auto;
        transform: none;
        width: 250px;
    }
    .vertical-reading-menu.menu-open {
        display: block;
    }
}

/* =========================================================================
   OFICIAL: NIVELES DE INFORMACIÓN AGRANDADOS CON CÍRCULO Y LETRERO
   ========================================================================= */
.portal-level-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 20px;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.portal-level-card:hover {
    transform: translateY(-6px) scale(1.10);
}
.portal-level-circle {
    width: clamp(84px, 5.5vw, 96px);
    height: clamp(84px, 5.5vw, 96px);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.95);
    border: 3px solid #38BDF8;
    color: #FFFFFF;
    font-family: 'Roboto Mono', monospace;
    font-size: clamp(2.15rem, 2.7vw, 2.6rem);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 22px rgba(56, 189, 248, 0.4);
    transition: all 0.25s ease;
}
.portal-level-card:hover .portal-level-circle {
    background: #38BDF8;
    color: #030308;
    border-color: #38BDF8;
    box-shadow: 0 0 36px rgba(56, 189, 248, 0.95);
}
.portal-level-text {
    font-size: clamp(1.08rem, 1.35vw, 1.26rem);
    color: #F1F5F9;
    font-weight: 850;
    letter-spacing: 0.6px;
    transition: color 0.2s ease;
    text-align: center;
}
.portal-level-card:hover .portal-level-text {
    color: #38BDF8;
}

/* =========================================================================
   MANDO UNIVERSAL MINIMALISTA EN FILA INDIA (FLECHAS GRANDES Y NÍTIDAS)
   ========================================================================= */
.universal-nav-pod {
    position: fixed;
    right: 18px;
    bottom: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    background: rgba(6, 10, 22, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 14px 8px;
    border-radius: 28px;
    border: 1.5px solid rgba(56, 189, 248, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 18px rgba(56, 189, 248, 0.22);
}
.nav-pod-page-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    margin: 1px 0;
}
/* Acercar flechas de pantalla vertical si están adyacentes sin wrapper */
.universal-nav-pod .nav-pod-prev-screen + .nav-pod-next-screen {
    margin-top: -9px;
}
.nav-pod-btn {
    width: 52px;
    height: 52px;
    background: rgba(16, 25, 53, 0.92);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    color: #38BDF8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.95rem;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease, filter 0.2s ease, background 0.2s ease;
    user-select: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.9));
}
.nav-pod-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #00FF87;
    box-shadow: 0 0 16px rgba(0, 255, 135, 0.8);
    color: #00FF87;
    transform: scale(1.25);
    filter: drop-shadow(0 0 12px rgba(0, 255, 135, 0.95));
}
.nav-pod-home {
    font-size: 1.85rem;
}
.nav-pod-home:hover {
    background: rgba(255, 230, 0, 0.12) !important;
    border: none !important;
    box-shadow: none !important;
    color: #FFE600 !important;
    filter: drop-shadow(0 0 12px rgba(255, 230, 0, 0.95)) !important;
}
.nav-pod-disabled {
    opacity: 0.18;
    pointer-events: none;
    cursor: default;
}
/* Botón Play/Pausa Distintivo (Solo visible/activo en páginas de animación o audio) */
.nav-pod-play {
    color: #00FF87 !important;
    border: 1.8px solid rgba(0, 255, 135, 0.45) !important;
    background: rgba(0, 255, 135, 0.08) !important;
    font-size: 1.45rem !important; /* Glifo multimedia distintivo (nunca flecha simple de nivel) */
    box-shadow: 0 0 12px rgba(0, 255, 135, 0.25) !important;
}
.nav-pod-play:hover {
    background: rgba(0, 255, 135, 0.22) !important;
    border-color: #00FF87 !important;
    box-shadow: 0 0 18px rgba(0, 255, 135, 0.9) !important;
    color: #00FF87 !important;
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 14px rgba(0, 255, 135, 0.95)) !important;
}
.nav-pod-play.playing {
    color: #00E5FF !important;
    border-color: #00E5FF !important;
    background: rgba(0, 229, 255, 0.15) !important;
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.8) !important;
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.95)) !important;
}

/* =========================================================================
   BOTÓN DE LOCUCIÓN / AUDIO INSTITUCIONAL (HERO PORTAL)
   ========================================================================= */
.hero-audio-btn {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 14px 34px;
    background: rgba(15, 23, 42, 0.88);
    border: 2px solid rgba(56, 189, 248, 0.6);
    border-radius: 36px;
    color: #38BDF8;
    font-family: 'Roboto Mono', monospace;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: 1.2px;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55), 0 0 20px rgba(56, 189, 248, 0.3);
    transition: all 0.25s ease;
    user-select: none;
}
.hero-audio-btn:hover {
    background: rgba(56, 189, 248, 0.2);
    border-color: #00F0FF;
    color: #FFFFFF;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.55);
    transform: translateY(-2px);
}
.hero-audio-btn.playing {
    border-color: #00FF87;
    color: #00FF87;
    background: rgba(0, 255, 135, 0.15);
    box-shadow: 0 0 25px rgba(0, 255, 135, 0.45);
}
.hero-audio-icon {
    font-size: 1.25rem;
    line-height: 1;
}
.hero-audio-label {
    font-size: 0.95rem;
    font-weight: 800;
}
.hero-audio-wave {
    display: none;
    align-items: center;
    gap: 3px;
    height: 16px;
    margin-left: 4px;
}
.hero-audio-btn.playing .hero-audio-wave {
    display: inline-flex;
}
.hero-audio-wave .wave-bar {
    width: 3px;
    height: 100%;
    background: #00FF87;
    border-radius: 2px;
    animation: wavePulse 0.8s ease-in-out infinite alternate;
}
.hero-audio-wave .wave-bar:nth-child(1) { animation-delay: 0s; height: 8px; }
.hero-audio-wave .wave-bar:nth-child(2) { animation-delay: 0.15s; height: 16px; }
.hero-audio-wave .wave-bar:nth-child(3) { animation-delay: 0.3s; height: 11px; }
.hero-audio-wave .wave-bar:nth-child(4) { animation-delay: 0.45s; height: 14px; }

@keyframes wavePulse {
    0% { height: 4px; opacity: 0.4; }
    100% { height: 16px; opacity: 1; }
}

