/* ============================================================
   MAPA ESTELAR LOCAL — about.css
   Estética: Observatorio espacial futurista, glassmorphism,
   minimalismo científico. Paleta: negros profundos, azules
   oscuros, detalles cian y dorados, texto gris claro.
   ============================================================ */

/* ---------- VARIABLES CSS ---------- */
:root {
    /* Fondos */
    --bg-deep: #06060e;
    --bg-space: #0a0a16;
    --bg-panel: rgba(8, 12, 28, 0.55);
    --bg-panel-hover: rgba(10, 16, 36, 0.7);
    --bg-sidebar: rgba(6, 8, 20, 0.75);

    /* Textos */
    --text-primary: #d4d4de;
    --text-secondary: #a8a8b8;
    --text-muted: #6e6e82;
    --text-heading: #e8e8f4;

    /* Acentos */
    --cyan: #00d4ff;
    --cyan-dim: rgba(0, 212, 255, 0.4);
    --cyan-glow: rgba(0, 212, 255, 0.15);
    --gold: #c9a84c;
    --gold-dim: rgba(201, 168, 76, 0.5);
    --gold-glow: rgba(201, 168, 76, 0.12);

    /* Bordes */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-panel: rgba(255, 255, 255, 0.08);
    --border-active: rgba(0, 212, 255, 0.5);

    /* Sombras */
    --shadow-panel: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    --shadow-glow-cyan: 0 0 30px rgba(0, 200, 240, 0.08);
    --shadow-glow-gold: 0 0 25px rgba(200, 160, 60, 0.06);

    /* Tipografía */
    --font-heading: 'EB Garamond', 'Times New Roman', serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;

    /* Dimensiones */
    --sidebar-width: 280px;
    --content-max-width: 720px;
    --content-padding: 3rem;

    /* Transiciones */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease-out-smooth);
    --transition-medium: 0.4s var(--ease-out-smooth);
    --transition-slow: 0.8s var(--ease-out-expo);

    /* Scrollbar */
    --scrollbar-width: 5px;
    --scrollbar-track: rgba(255, 255, 255, 0.02);
    --scrollbar-thumb: rgba(255, 255, 255, 0.08);
    --scrollbar-thumb-hover: rgba(0, 212, 255, 0.3);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ---------- SCROLLBAR PERSONALIZADA ---------- */
::-webkit-scrollbar {
    width: var(--scrollbar-width);
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 3px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* ---------- FONDO DINÁMICO: NEBULOSAS ---------- */
.space-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nebula {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
    animation: nebula-drift 40s ease-in-out infinite alternate;
}

.nebula-1 {
    width: 900px;
    height: 700px;
    background: radial-gradient(ellipse at 40% 50%, rgba(0, 80, 160, 0.5), transparent 70%);
    top: -15%;
    left: -10%;
    animation-duration: 50s;
}

.nebula-2 {
    width: 700px;
    height: 800px;
    background: radial-gradient(ellipse at 60% 40%, rgba(20, 40, 100, 0.45), transparent 70%);
    bottom: -20%;
    right: -15%;
    animation-duration: 55s;
    animation-delay: -10s;
}

.nebula-3 {
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse at 50% 50%, rgba(60, 20, 80, 0.3), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 60s;
    animation-delay: -20s;
}

@keyframes nebula-drift {
    0% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(3%, -2%) scale(1.04);
    }
    66% {
        transform: translate(-2%, 1.5%) scale(0.97);
    }
    100% {
        transform: translate(1%, -1%) scale(1.02);
    }
}

/* ---------- FONDO DINÁMICO: CAPAS DE ESTRELLAS ---------- */
.stars-layer {
    position: absolute;
    inset: 0;
    background-repeat: repeat;
    background-size: 400px 400px;
    opacity: 0.6;
}

.stars-layer-1 {
    background-image:
        radial-gradient(0.8px 0.8px at 15% 25%, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(0.6px 0.6px at 40% 60%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(0.9px 0.9px at 70% 15%, rgba(255, 255, 255, 0.85), transparent),
        radial-gradient(0.5px 0.5px at 85% 75%, rgba(255, 255, 255, 0.65), transparent),
        radial-gradient(0.7px 0.7px at 10% 80%, rgba(255, 255, 255, 0.75), transparent),
        radial-gradient(0.4px 0.4px at 55% 40%, rgba(255, 255, 255, 0.6), transparent);
    animation: stars-parallax-1 200s linear infinite;
}

.stars-layer-2 {
    background-image:
        radial-gradient(1.1px 1.1px at 20% 10%, rgba(200, 220, 255, 0.9), transparent),
        radial-gradient(0.8px 0.8px at 50% 45%, rgba(220, 230, 255, 0.75), transparent),
        radial-gradient(1.3px 1.3px at 75% 30%, rgba(180, 210, 255, 0.85), transparent),
        radial-gradient(0.7px 0.7px at 5% 55%, rgba(200, 220, 255, 0.7), transparent),
        radial-gradient(0.9px 0.9px at 90% 70%, rgba(210, 225, 255, 0.8), transparent);
    animation: stars-parallax-2 280s linear infinite;
    opacity: 0.45;
}

.stars-layer-3 {
    background-image:
        radial-gradient(1.5px 1.5px at 30% 20%, rgba(180, 200, 240, 0.95), transparent),
        radial-gradient(1.0px 1.0px at 60% 70%, rgba(190, 210, 245, 0.8), transparent),
        radial-gradient(1.8px 1.8px at 45% 35%, rgba(170, 195, 235, 0.9), transparent),
        radial-gradient(0.6px 0.6px at 80% 10%, rgba(200, 215, 240, 0.7), transparent),
        radial-gradient(1.2px 1.2px at 15% 65%, rgba(185, 205, 238, 0.85), transparent);
    animation: stars-parallax-3 350s linear infinite;
    opacity: 0.35;
}

@keyframes stars-parallax-1 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-40px, -25px); }
}

@keyframes stars-parallax-2 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(25px, -40px); }
}

@keyframes stars-parallax-3 {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-30px, 35px); }
}

/* ---------- CANVAS DE PARTÍCULAS ---------- */
.particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

/* ---------- ESTRELLA TENUE FINAL ---------- */
.final-star-glow {
    position: fixed;
    bottom: -200px;
    right: -150px;
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(255, 220, 140, 0.04) 0%, rgba(255, 200, 100, 0.015) 25%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: final-star-pulse 8s ease-in-out infinite;
}

@keyframes final-star-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.08); }
}

/* ---------- BOTÓN VOLVER ARRIBA ---------- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(10, 14, 28, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-medium);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top:hover {
    color: var(--cyan);
    border-color: var(--border-active);
    box-shadow: 0 4px 25px rgba(0, 200, 240, 0.2);
    transform: translateY(-3px);
}

/* ---------- MENÚ MÓVIL ---------- */
.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 200;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(10, 14, 28, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.menu-icon-bar {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: all var(--transition-fast);
}

.mobile-menu-toggle.active .menu-icon-bar:nth-child(1) {
    transform: rotate(45deg) translate(4.5px, 4.5px);
}

.mobile-menu-toggle.active .menu-icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .menu-icon-bar:nth-child(3) {
    transform: rotate(-45deg) translate(4.5px, -4.5px);
}

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 140;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

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

/* ---------- LAYOUT PRINCIPAL ---------- */
.main-layout {
    display: flex;
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* ---------- SIDEBAR / ÍNDICE ---------- */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--bg-sidebar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    z-index: 50;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.5rem;
}

.sidebar-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-project-name {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--cyan);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.sidebar-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-link {
    display: block;
    padding: 0.55rem 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    border-radius: 6px;
    transition: all var(--transition-fast);
    position: relative;
    border-left: 2px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border-left-color: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.06);
    border-left-color: var(--cyan);
    font-weight: 500;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border-subtle);
}

.back-to-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.78rem;
    transition: color var(--transition-fast);
}

.back-to-map-link:hover {
    color: var(--gold);
}

/* ---------- CONTENIDO PRINCIPAL ---------- */
.content {
    flex: 1;
    max-width: var(--content-max-width);
    padding: var(--content-padding);
    padding-top: 4rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ---------- HERO ---------- */
.hero-section {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 2rem;
    padding: 2rem 0;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-overline {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--cyan-dim);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 600;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--gold);
    letter-spacing: -0.005em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero-back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.6rem;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-medium);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-back-button:hover {
    color: var(--cyan);
    border-color: var(--border-active);
    background: rgba(0, 200, 240, 0.05);
    box-shadow: var(--shadow-glow-cyan);
    transform: translateY(-2px);
}

/* Decoración del hero */
.hero-decoration {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 180, 220, 0.06) 0%, rgba(0, 100, 160, 0.03) 40%, transparent 70%);
    animation: hero-orb-pulse 6s ease-in-out infinite;
}

.hero-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transform: translate(-50%, -50%) rotateX(70deg);
    animation: hero-ring-rotate 30s linear infinite;
}

@keyframes hero-orb-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
}

@keyframes hero-ring-rotate {
    0% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateX(70deg) rotateZ(360deg); }
}

/* ---------- PANELES GLASSMORPHISM ---------- */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-panel);
    border-radius: 16px;
    padding: 2.5rem 2.8rem;
    margin-bottom: 2.5rem;
    position: relative;
    box-shadow: var(--shadow-panel);
    transition: all var(--transition-medium);
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow-panel), var(--shadow-glow-cyan);
}

.section-number {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--cyan-dim);
    margin-bottom: 0.6rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 1.4rem;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.glass-panel p {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.glass-panel p:last-child {
    margin-bottom: 0;
}

.glass-panel strong {
    color: var(--text-primary);
    font-weight: 500;
}

.glass-panel em {
    color: var(--text-primary);
    font-style: italic;
}

/* ---------- CAJAS ESPECIALES ---------- */
.special-box {
    display: flex;
    gap: 1rem;
    padding: 1.3rem 1.5rem;
    border-radius: 12px;
    margin: 1.6rem 0;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.015);
    transition: all var(--transition-fast);
}

.special-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.025);
}

.special-box-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.special-box-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.special-box-content p {
    font-size: 0.88rem;
    margin-bottom: 0;
    color: var(--text-secondary);
}

.note-box {
    border-left: 3px solid rgba(150, 150, 200, 0.4);
}

.curiosity-box {
    border-left: 3px solid rgba(0, 200, 220, 0.4);
}

.data-box {
    border-left: 3px solid rgba(200, 170, 60, 0.4);
}

.design-box {
    border-left: 3px solid rgba(180, 130, 220, 0.4);
}

/* ---------- FÓRMULA ---------- */
.formula-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1.8rem 2rem;
    margin: 1.8rem 0;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-heading);
    letter-spacing: 0.02em;
    flex-wrap: wrap;
}

.formula-text {
    font-style: italic;
}

.formula-fraction {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    font-size: 1.6rem;
    line-height: 1;
}

.formula-numerator {
    border-bottom: 1.5px solid var(--text-heading);
    padding-bottom: 2px;
    padding: 0 0.4rem;
}

.formula-denominator {
    padding-top: 2px;
    padding: 0 0.4rem;
}

/* ---------- TABLA ---------- */
.table-container {
    overflow-x: auto;
    margin: 1.8rem 0;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table thead {
    background: rgba(255, 255, 255, 0.025);
}

.data-table th {
    padding: 0.9rem 1.2rem;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
    padding: 0.85rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    font-family: var(--font-body);
    transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.025);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.highlighted-row {
    background: rgba(0, 200, 240, 0.04);
}

.highlighted-row td {
    color: var(--cyan);
    font-weight: 500;
}

/* ---------- GRÁFICO SVG ---------- */
.chart-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
}

.chart-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.custom-chart {
    width: 100%;
    height: auto;
    display: block;
}

.chart-caption {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* ---------- TARJETAS DESTACADAS ---------- */
.highlight-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.highlight-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: all var(--transition-medium);
}

.highlight-card:hover {
    border-color: rgba(0, 200, 220, 0.3);
    background: rgba(0, 200, 220, 0.03);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-cyan);
}

.highlight-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--cyan);
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.highlight-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    line-height: 1.4;
}

/* ---------- PANEL ARTÍSTICO ---------- */
.artistic-panel {
    background: rgba(30, 20, 50, 0.35);
    border-color: rgba(180, 140, 220, 0.2);
}

.artistic-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}

.artistic-icon {
    font-size: 1.5rem;
}

.artistic-header .section-number {
    margin-bottom: 0;
}

.artistic-header .section-title {
    margin-bottom: 0;
    margin-left: 0.3rem;
}

/* ---------- LISTA ESTILIZADA ---------- */
.styled-list {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0;
}

.styled-list li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.95rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cyan-dim);
    border: 1px solid var(--cyan);
}

/* ---------- TIMELINE ---------- */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.55rem;
    top: 0.4rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid var(--cyan-dim);
    transition: all var(--transition-fast);
}

.timeline-item:hover .timeline-dot {
    border-color: var(--cyan);
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan-glow);
}

.timeline-phase {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ---------- SECCIÓN FINAL ---------- */
.final-section {
    position: relative;
}

.final-panel {
    background: rgba(15, 12, 30, 0.6);
    border-color: rgba(255, 200, 140, 0.1);
    position: relative;
    z-index: 1;
}

.final-panel p {
    font-size: 1rem;
    line-height: 1.9;
}

.final-signature {
    margin-top: 1.8rem;
    font-style: italic;
    color: var(--gold-dim);
    font-family: var(--font-heading);
    font-size: 1.1rem !important;
    letter-spacing: 0.02em;
}

/* ---------- ESPACIADOR FINAL ---------- */
.content-spacer {
    height: 6rem;
}

/* ---------- ANIMACIONES DE ENTRADA (Intersection Observer) ---------- */
.content-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.content-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- RESPONSIVE: TABLET ---------- */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 220px;
        --content-padding: 2rem;
    }

    .glass-panel {
        padding: 2rem;
    }

    .highlight-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .formula-display {
        font-size: 1.6rem;
    }

    .formula-fraction {
        font-size: 1.3rem;
    }
}

/* ---------- RESPONSIVE: MÓVIL ---------- */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 100%;
        --content-padding: 1.2rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-overlay {
        display: block;
    }

    .main-layout {
        flex-direction: column;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 150;
        transform: translateX(-100%);
        transition: transform 0.4s var(--ease-out-expo);
        border-right: 1px solid var(--border-subtle);
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .content {
        padding-top: 4.5rem;
        max-width: 100%;
    }

    .glass-panel {
        padding: 1.5rem 1.3rem;
        border-radius: 12px;
    }

    .hero-section {
        min-height: 50vh;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

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

    .hero-description {
        font-size: 0.9rem;
    }

    .highlight-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .highlight-number {
        font-size: 1.8rem;
    }

    .highlight-card {
        padding: 1.2rem 0.8rem;
    }

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

    .formula-display {
        font-size: 1.3rem;
        padding: 1.2rem 1rem;
    }

    .formula-fraction {
        font-size: 1.1rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.72rem;
    }

    .back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 38px;
        height: 38px;
    }

    .nav-link {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }

    .special-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 1.2rem;
    }

    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item {
        padding-left: 1rem;
    }

    .timeline-dot {
        left: -1.2rem;
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 420px) {
    .highlight-cards {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .highlight-label {
        font-size: 0.68rem;
    }

    .glass-panel {
        padding: 1.2rem 1rem;
    }

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

    .hero-title {
        font-size: 1.7rem;
    }

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