:root {
    /* Paleta 'Midnight Pro' Refinada */
    --bg: #030014;
    --card: #0c0c11;
    --border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --text-main: #ffffff;
    --text-sec: #94a3b8;
    --text-mute: #94a3b8;
    --text-gray: #94a3b8;
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* BACKGROUND MESH (Sutil y elegante) */
.background-mesh {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: -1;
    background: var(--bg);
}
.mesh-1 {
    position: absolute; top: -20%; left: -10%; width: 70vw; height: 70vw;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 60%);
    opacity: 0.8;
}
.mesh-2 {
    position: absolute; bottom: -20%; right: -10%; width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(236,72,153,0.08) 0%, transparent 60%);
    opacity: 0.8;
}
.noise {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none; mix-blend-mode: overlay;
}

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; transition: all 0.2s ease; }
ul { list-style: none; }

/* --- NAVBAR (CORREGIDO Y MEJORADO) --- */
.navbar {
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 100;
    background: rgba(3, 0, 20, 0.85); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); 
    display: flex; align-items: center;
}

.nav-inner { 
    display: flex; 
    justify-content: space-between; /* Empuja logo a la izq y menú a la der */
    align-items: center; 
    width: 100%;
}

/* Logo con efecto hover sutil */
.logo { 
    display: flex; align-items: center; gap: 12px; 
    font-weight: 700; font-size: 1.4rem; 
    font-family: var(--font-display); 
    letter-spacing: -0.5px;
    padding-right: 40px; /* Margen de seguridad extra */
}
.logo:hover .logo-symbol { transform: rotate(10deg); box-shadow: 0 0 15px rgba(99,102,241,0.4); }

.logo-symbol { 
    width: 36px; height: 36px; 
    background: linear-gradient(135deg, var(--primary), #4f46e5); 
    border-radius: 10px; 
    display: flex; align-items: center; justify-content: center; 
    font-size: 1rem; color: white;
    transition: all 0.3s ease;
}

.nav-content { 
    display: flex; align-items: center; gap: 40px; 
}

.nav-links { display: flex; gap: 32px; }
.nav-links a { 
    color: var(--text-sec); font-size: 0.95rem; font-weight: 500; 
    position: relative;
}
.nav-links a:hover { color: white; }
/* Pequeño punto debajo al hacer hover */
.nav-links a::after {
    content: ''; position: absolute; width: 0; height: 2px;
    bottom: -4px; left: 0; background: var(--primary);
    transition: width 0.3s;
}
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 20px; border-left: 1px solid var(--border); padding-left: 20px; }
.btn-text { color: var(--text-main); font-weight: 500; font-size: 0.95rem; }
.btn-text:hover { color: var(--primary-light); }

.btn-sm { 
    padding: 8px 18px; font-size: 0.9rem; border-radius: 8px; font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
}

/* MENU MOVIL */
.menu-btn { display: none; background: none; border: none; flex-direction: column; gap: 6px; cursor: pointer; }
.line { width: 24px; height: 2px; background: white; transition: 0.3s; border-radius: 2px; }

/* HERO */
.hero { padding: 180px 0 120px; text-align: center; }
.hero-wrapper { max-width: 850px; margin: 0 auto; }

.hero-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--primary-light);
    margin-bottom: 35px; font-weight: 500; transition: transform 0.2s;
}
.hero-label:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.status-indicator { width: 8px; height: 8px; background: #22c55e; border-radius: 50%; box-shadow: 0 0 10px rgba(34,197,94,0.4); }

.hero h1 {
    font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05; font-weight: 700; margin-bottom: 25px; letter-spacing: -2px;
}
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--text-sec));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.subtext { color: var(--text-sec); font-size: 1.3rem; margin-bottom: 45px; line-height: 1.6; max-width: 650px; margin-left: auto; margin-right: auto; }

.hero-cta { display: flex; gap: 15px; justify-content: center; margin-bottom: 60px; flex-wrap: wrap; }
.btn {
    padding: 14px 34px; border-radius: 12px; font-weight: 600; font-size: 1rem;
    display: inline-flex; align-items: center; gap: 10px; cursor: pointer; border: none;
    transition: all 0.2s ease;
}
.btn-lg { font-size: 1.1rem; padding: 16px 36px; }

.btn-white { 
    background: white; color: black; 
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,255,255,0.2); }

.btn-glass { 
    background: rgba(255,255,255,0.02); border: 1px solid var(--border); color: white; 
}
.btn-glass:hover { background: rgba(255,255,255,0.08); border-color: white; transform: translateY(-2px); }

.hero-update-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--text-sec);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 24px;
    transition: all 0.2s ease;
}
.hero-update-badge:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.hero-update-badge i { color: var(--primary-light); }
.hero-update-badge strong { color: white; }

.trust-badge { display: flex; flex-direction: column; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-sec); opacity: 0.8; }
.trust-badge strong { color: white; }
.avatars { display: flex; margin-left: 10px; }
.avatars span { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -10px; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }

/* CONSOLIDATION SECTION */
.consolidation { padding: 100px 0; background: #060608; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-header { text-align: center; margin-bottom: 70px; }
.section-header h2 { font-family: var(--font-display); font-size: 2.8rem; margin-bottom: 15px; letter-spacing: -1px; }
.section-header p { color: var(--text-sec); font-size: 1.2rem; }

.comparison-grid { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 20px; align-items: center; max-width: 950px; margin: 0 auto; }
.stack-card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; position: relative; }
.stack-header { font-weight: 700; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; font-size: 1.2rem; letter-spacing: -0.5px; }
.stack-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 12px; font-size: 1rem; color: var(--text-sec); }

.old { opacity: 0.6; transform: scale(0.95); filter: grayscale(0.5); }
.red { color: #ef4444; }
.new { 
    border-color: rgba(99, 102, 241, 0.3); 
    background: linear-gradient(180deg, rgba(99,102,241,0.03), transparent); 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform: scale(1.02);
}
.green { color: #22c55e; }
.arrow-connector { display: flex; justify-content: center; color: var(--border); font-size: 2rem; }

/* ECOSYSTEM (BENTO GRID) */
.ecosystem { padding: 120px 0; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-item {
    background: var(--card); border: 1px solid var(--border); border-radius: 24px;
    padding: 40px; position: relative; overflow: hidden; transition: transform 0.3s ease, border-color 0.3s;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 300px;
}
.bento-item:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.15); }
.large { grid-column: span 2; }

.icon-sq {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: white; margin-bottom: 30px;
}
.purple { background: rgba(99,102,241,0.15); color: #818cf8; }
.blue { background: rgba(59,130,246,0.15); color: #60a5fa; }
.orange { background: rgba(249,115,22,0.15); color: #fb923c; }

.bento-content h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 12px; font-weight: 700; }
.bento-content p { color: var(--text-sec); line-height: 1.6; font-size: 1rem; }

/* STATS */
.stats { padding: 80px 0; background: rgba(255,255,255,0.01); border-bottom: 1px solid var(--border); }
.stats-row { display: flex; justify-content: center; gap: 80px; text-align: center; }
.stat-box { display: flex; flex-direction: column; gap: 5px; }
.number { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: white; letter-spacing: -1px; }
.label { color: var(--text-sec); font-size: 0.95rem; font-weight: 500; }
.divider { width: 1px; background: var(--border); height: 70px; }

/* Barra CTA antes del footer */
.cta-bar {
    padding: 70px 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
    border-top: 1px solid var(--border);
}
.cta-bar p { font-size: 1.25rem; margin-bottom: 20px; color: var(--text-sec); }
.cta-bar .btn { font-size: 1.1rem; }

/* FOOTER */
footer { padding: 80px 0 40px; margin-top: 50px; background: #020203; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border); }
.footer-brand h3 { font-family: var(--font-display); font-size: 1.6rem; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.footer-brand p { color: var(--text-sec); font-size: 1rem; }
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1rem; font-weight: 600; }
.footer-col a { display: block; color: var(--text-sec); margin-bottom: 12px; transition: 0.2s; font-size: 0.95rem; }
.footer-col a:hover { color: white; transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; color: var(--text-sec); font-size: 0.9rem; align-items: center; }
.socials a { font-size: 1.3rem; color: var(--text-sec); margin-left: 20px; transition: 0.2s; }
.socials a:hover { color: white; }

/* ANIMACIONES SIMPLES */
.fade-in, .reveal { opacity: 0; transform: translateY(20px); transition: 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in.visible, .reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .nav-content {
        position: fixed; top: 80px; left: 0; width: 100%; height: 0; overflow: hidden;
        background: var(--bg); flex-direction: column; padding: 0; transition: 0.3s; border-bottom: 1px solid var(--border);
    }
    .nav-content.active { height: auto; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .nav-links { flex-direction: column; gap: 20px; margin-bottom: 25px; }
    .nav-actions { width: 100%; justify-content: center; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 20px; }
    .menu-btn { display: flex; }
    
    .hero h1 { font-size: 3.2rem; }
    .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
    .arrow-connector { transform: rotate(90deg); margin: 10px 0; }
    
    .bento-grid { grid-template-columns: 1fr; }
    .large { grid-column: span 1; }
    
    .stats-row { flex-direction: column; gap: 40px; }
    .divider { display: none; }
    
    .footer-top { grid-template-columns: 1fr; text-align: left; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

/* --- ESTILOS PARA DOCUMENTACIÓN Y LEGAL --- */

/* Cabeceras de Páginas Secundarias */
.doc-section, .hero-docs {
    padding: 140px 0 60px;
    text-align: center;
}
.hero-docs h1, .doc-container h1 {
    font-family: var(--font-head);
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
}
.hero-docs p, .last-updated {
    color: var(--text-mute);
    font-size: 1.1rem;
}

/* Contenedor de Texto Legal */
.doc-container { max-width: 900px; margin: 0 auto; text-align: left; }
.doc-block { margin-bottom: 40px; background: var(--card); padding: 30px; border-radius: 12px; border: 1px solid var(--border); }
.doc-block h3 { margin-bottom: 15px; color: var(--primary); font-size: 1.5rem; }
.doc-block p { margin-bottom: 15px; color: var(--text-gray); }
.doc-block ul { margin-left: 20px; list-style: disc; color: var(--text-gray); }
.doc-block li { margin-bottom: 8px; }

/* Grid de Documentación */
.docs-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding-bottom: 100px;
}

/* Sidebar Fija */
.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.docs-sidebar h3 { margin-bottom: 15px; color: white; font-size: 1.1rem; }
.doc-link {
    display: block;
    color: var(--text-mute);
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.doc-link:hover { color: var(--primary); padding-left: 5px; }

/* Tarjetas de Documentación */
.doc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 30px;
    overflow: hidden;
}
.card-header-doc {
    background: rgba(255,255,255,0.03);
    padding: 15px 25px;
    font-weight: 700;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; gap: 10px;
    font-size: 1.2rem;
}
.card-header-doc i { color: var(--primary); }
.card-body-doc { padding: 25px; }

/* Cajas de Comandos */
.cmd-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
    margin-bottom: 15px;
}
.cmd-box code {
    display: block;
    font-family: monospace;
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: bold;
}
.cmd-box span { color: var(--text-mute); font-size: 0.9rem; }
.cmd-box { transition: transform 0.2s ease, border-color 0.2s; }
.cmd-box:hover { transform: translateX(4px); border-left-color: var(--primary-light); }

/* Banner última actualización (comandos) */
.docs-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(236, 72, 153, 0.08));
    border-bottom: 1px solid rgba(99, 102, 241, 0.25);
    color: var(--text-sec);
    font-size: 0.9rem;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.docs-banner:hover { background: rgba(99, 102, 241, 0.2); color: white; }
.docs-banner i:first-child { color: var(--primary-light); }
.docs-banner strong { color: white; }
.docs-banner .fa-chevron-right { font-size: 0.75rem; opacity: 0.8; }

/* Hero documentación mejorado */
.hero-docs { padding: 50px 0 50px; }
.hero-docs-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.hero-docs-sub { color: var(--text-sec); font-size: 1.1rem; margin-bottom: 16px; }
.hero-docs-sub code {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.95em;
}
.hero-docs-meta {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-sec);
}
.hero-docs-meta span { display: flex; align-items: center; gap: 8px; }
.hero-docs-meta i { color: var(--primary); }
.mt-sm { margin-top: 16px; }

/* Doc cards con animación reveal */
.doc-card.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.2s;
}
.doc-card.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.doc-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.docs-sidebar.reveal { opacity: 0; transform: translateX(-12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.docs-sidebar.reveal.visible { opacity: 1; transform: translateX(0); }

.feature-highlight { margin-top: 16px; padding: 16px; background: rgba(255,255,255,0.02); border-radius: 10px; border: 1px solid var(--border); }
.feature-highlight strong { color: var(--text-main); }
.feature-highlight ul { margin: 8px 0 0 20px; color: var(--text-sec); font-size: 0.95rem; }
.feature-highlight li { margin-bottom: 6px; }

/* CTA bajo documentación */
.docs-cta {
    text-align: center;
    padding: 60px 0 80px;
    border-top: 1px solid var(--border);
}
.docs-cta p { color: var(--text-sec); font-size: 1.15rem; margin-bottom: 20px; }
.footer-brand .logo { display: flex; align-items: center; gap: 10px; }
.footer-brand h3 { margin-bottom: 4px; font-size: 1.2rem; }

/* Responsive Documentación */
@media (max-width: 900px) {
    .docs-grid { grid-template-columns: 1fr; }
    .docs-sidebar { display: none; }
    .hero-docs { padding: 100px 0 40px; }
}

/* --- ESTILOS STATUS (VERSIÓN NOTIFICACIONES) --- */

.status-hero-simple { padding: 120px 0 40px; }

/* Caja Principal de Estado */
.status-indicator-box {
    background: var(--card); border: 1px solid var(--border); border-radius: 16px;
    padding: 30px; display: flex; align-items: center; gap: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.status-indicator-box.operational { border-left: 4px solid #22c55e; }
.status-indicator-box.outage { border-left: 4px solid #ef4444; }

.pulse-icon {
    width: 50px; height: 50px; border-radius: 50%;
    background: rgba(34, 197, 94, 0.1); color: #22c55e;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
    animation: pulse-ring 2s infinite;
}
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

.status-info h1 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 5px; }
.status-info p { color: var(--text-sec); font-size: 0.9rem; }

/* Títulos de Sección */
.section-label { 
    color: var(--text-sec); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; 
    margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border); 
}

/* Lista de Servicios (Filas Simples) */
.services-list { padding-bottom: 60px; }
.service-row {
    display: flex; justify-content: space-between; align-items: center;
    background: rgba(255,255,255,0.02); padding: 15px 20px; border-radius: 8px;
    margin-bottom: 10px; border: 1px solid transparent; transition: 0.2s;
}
.service-row:hover { border-color: var(--border); background: rgba(255,255,255,0.04); }

.service-name { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.service-name i { color: var(--text-sec); width: 20px; text-align: center; }

.service-status { font-size: 0.9rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; }
.service-status.green { color: #22c55e; background: rgba(34, 197, 94, 0.1); }
.service-status.yellow { color: #eab308; background: rgba(234, 179, 8, 0.1); }
.service-status.red { color: #ef4444; background: rgba(239, 68, 68, 0.1); }

/* Timeline de Incidentes */
.incidents-feed { padding-bottom: 80px; }
.timeline { display: flex; flex-direction: column; gap: 30px; }

.timeline-date { 
    font-size: 0.85rem; color: var(--text-sec); font-weight: 600; margin-bottom: 15px; 
    position: relative; padding-left: 20px;
}
/* Línea vertical decorativa */
.timeline-date::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; background: var(--border); border-radius: 50%;
}

.timeline-item { position: relative; padding-left: 20px; border-left: 2px solid var(--border); margin-left: 3px; }
.timeline-item:last-child { border-left: 2px solid transparent; } /* Quitar línea al final */

.timeline-content {
    background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 20px;
    display: flex; gap: 15px; align-items: flex-start;
}

.t-icon {
    min-width: 35px; height: 35px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1rem;
}
.t-icon.green { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.t-icon.red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.t-icon.blue { background: rgba(59, 130, 246, 0.1); color: #3b82f6; }

.t-text h4 { font-size: 1.1rem; margin-bottom: 5px; font-weight: 600; }
.t-text p { color: var(--text-sec); font-size: 0.95rem; line-height: 1.5; margin-bottom: 8px; }
.t-text .time { font-size: 0.8rem; color: var(--text-sec); opacity: 0.7; }

/* Responsive */
@media (max-width: 768px) {
    .timeline-content { flex-direction: column; gap: 10px; }
    .t-icon { width: 30px; height: 30px; }
}

/* ESTILOS PARA EL LOGO DE IMAGEN */
.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px; /* Bordes ligeramente redondeados */
    object-fit: cover;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3); /* Brillo sutil del color del bot */
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.05) rotate(5deg);
}

/* Ajuste del Navbar para que el logo se vea centrado con el texto */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========== PÁGINA ACTUALIZACIONES (CHANGELOG) ========== */

.updates-hero {
    padding: 160px 0 60px;
    text-align: center;
}
.updates-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--primary-light);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}
.updates-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -1px;
}
.updates-hero p {
    color: var(--text-sec);
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto;
}
.updates-version-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.updates-version-nav .label { color: var(--text-sec); font-size: 0.9rem; }
.version-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 20px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s;
}
.version-pill:hover, .version-pill.active { background: rgba(99, 102, 241, 0.3); color: white; }
.update-card.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.update-card.reveal.visible { opacity: 1; transform: translateY(0); }
.update-card:hover { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4); }

.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.updates-list { padding-bottom: 100px; }

.update-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    margin-bottom: 50px;
}
.update-header {
    padding: 40px 40px 28px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.06) 0%, transparent 100%);
}
.update-version-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.version-num {
    background: linear-gradient(135deg, var(--primary), #4f46e5);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 6px 16px;
    border-radius: 10px;
    font-family: var(--font-display);
}
.version-date {
    color: var(--text-sec);
    font-size: 0.95rem;
    font-weight: 500;
}
.update-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.update-intro {
    color: var(--text-sec);
    font-size: 1.05rem;
    line-height: 1.6;
}

.changelog-body { padding: 32px 40px 24px; }

.changelog-section {
    margin-bottom: 36px;
}
.changelog-section:last-of-type { margin-bottom: 0; }

.changelog-section h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}
.changelog-section h3 i { color: var(--primary); }

.changelog-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 16px;
}
.changelog-block.premium { border-color: rgba(236, 72, 153, 0.25); background: rgba(236, 72, 153, 0.04); }
.changelog-block h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.changelog-block h4 i { color: var(--primary-light); }
.badge-premium {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
}
.changelog-block p { color: var(--text-sec); font-size: 0.95rem; margin-bottom: 12px; line-height: 1.5; }

.changelog-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.changelog-list li {
    color: var(--text-sec);
    font-size: 0.95rem;
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}
.changelog-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.8;
}
.changelog-list li i {
    position: absolute;
    left: 0;
    top: 6px;
    color: #22c55e;
    font-size: 0.8rem;
}
.changelog-list li i.fa-check { left: 0; }
.changelog-list code {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.85em;
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.commands-col {
    background: rgba(0, 0, 0, 0.25);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-sec);
}
.commands-col strong { display: block; color: white; margin-bottom: 10px; font-size: 0.95rem; }
.commands-col code {
    display: inline-block;
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-light);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin: 4px 4px 4px 0;
}

.changelog-section.notes { background: rgba(99, 102, 241, 0.06); border-radius: 14px; padding: 24px; border: 1px solid rgba(99, 102, 241, 0.2); }

.update-footer {
    padding: 28px 40px;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
}
.update-footer p { color: var(--text-sec); font-size: 0.95rem; margin-bottom: 8px; }
.update-footer p:last-child { margin-bottom: 0; }
.update-meta { font-size: 0.85rem !important; opacity: 0.8; }

.updates-cta {
    text-align: center;
    padding: 40px 0;
}
.updates-cta p { color: var(--text-sec); margin-bottom: 20px; font-size: 1.1rem; }

@media (max-width: 768px) {
    .update-header, .changelog-body { padding-left: 24px; padding-right: 24px; }
    .update-footer { padding: 24px; }
    .commands-grid { grid-template-columns: 1fr; }
}