/* RETROSTATS.AR - ANTIGRAVITY THEME */
/* V4.2 - STABLE CORE & VISUAL CLEANUP */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;500;700&display=swap');

/* --- 1. GLOBAL RESET & CLEANUP (THE FIX) --- */
* {
    box-sizing: border-box;
    list-style: none !important;
    /* Killer of Arrows */
}

table,
tr,
td,
th {
    margin: 0;
    padding: 0;
    list-style: none !important;
}

/* Nuke any pseudo-element decorations in tables */
table::before,
table::after,
thead::before,
thead::after,
tbody::before,
tbody::after,
tr::before,
tr::after,
td::before,
td::after,
th::before,
th::after {
    content: none !important;
    display: none !important;
}

:root {
    /* --- 1. BACKGROUND --- */
    --bg-deep: #0a0e27;
    /* Deep Navy */
    /* --- 2. THE SOFT NEON PALETTE (High Transparency is KEY) --- */
    /* Violeta (Used for Left Sidebar / Filters) */
    --neon-purple: rgba(180, 0, 255, 0.6);
    /* Amarillo (Used for Right Sidebar / Destacados) */
    --neon-yellow: rgba(255, 230, 0, 0.6);

    /* Cyan (Used for Main Titles & Borders) */
    --neon-cyan: rgba(0, 243, 255, 0.6);

    /* Rosa (Used for Brand Accents) */
    --neon-pink: rgba(255, 0, 85, 0.6);

    /* Verde (Used for Positive Trends / 'Mercado Estable') */
    --neon-green: rgba(0, 255, 100, 0.6);

    /* Rojo (Used for Negative Trends / Alerts) */
    --neon-red: rgba(255, 50, 50, 0.6);

    /* --- 3. FONTS --- */
    --font-title: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

/* BASE */
/* BASE */
body {
    background-color: var(--bg-deep);
    /* Deep Blue-Black */
    font-family: var(--font-body);
    color: #ffffff;
    /* Asegurar que el texto base siga blanco */
    margin: 0;
    padding: 0;
    padding-top: 100px;
    /* Space for Fixed Header */
    overflow-x: hidden;
    background-image:
        linear-gradient(rgba(10, 14, 39, 0.95), rgba(10, 14, 39, 0.95)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a2147' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* LAYOUT */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
header {
    width: 100%;
    background-color: var(--bg-deep);
    /* Solid Deep Blue */
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(to right, var(--neon-pink), var(--neon-cyan)) 1;
    position: fixed;
    /* Fixed as requested */
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 240, 255, 0.15);
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

/* --- SCROLL REPAIR: GLOBAL ENABLE --- */
html,
body {
    background-color: var(--bg-deep);
    /* Deep Blue-Black */
    color: #ffffff;
    overflow-y: auto !important;
    /* Must be auto to allow scrolling */
}

/* --- INTERNAL SCROLLBAR CUSTOMIZATION (NEON STYLE) --- */
/* Target specific containers that might overflow */
.table-container,
.filter-group {
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) var(--bg-card);
}

/* Chrome/Safari/Edge Custom Scrollbar */
.table-container::-webkit-scrollbar,
.filter-group::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    display: block !important;
    /* Force display customized scrollbar */
}

.table-container::-webkit-scrollbar-track,
.filter-group::-webkit-scrollbar-track {
    background: rgba(10, 14, 39, 0.5);
    /* Deep Blue transparent */
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb,
.filter-group::-webkit-scrollbar-thumb {
    background: rgba(0, 240, 255, 0.3);
    /* Soft Cyan */
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover,
.filter-group::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    /* Brighter on hover */
}

/* CARDS */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    padding: 25px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.stat-card h4 {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.stat-value {
    font-family: var(--font-title);
    font-size: 2.5rem;
    color: var(--neon-green);
    margin: 10px 0;
    text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.stat-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* OPPORTUNITY CARD */
.opportunity-card {
    padding: 2.5rem !important;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(26, 33, 71, 0.9));
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.15), inset 0 0 20px rgba(0, 240, 255, 0.05);
    border-width: 2px !important;
    text-align: center;
}

.opportunity-card h4 {
    font-size: 1.2rem !important;
    text-shadow: 0 0 10px currentColor;
    margin-bottom: 15px !important;
    letter-spacing: 0.05em;
}

.opportunity-card .stat-value {
    font-size: 4rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.05em;
    text-shadow:
        0 0 20px currentColor,
        0 0 40px currentColor,
        0 0 80px currentColor;
    margin: 20px 0 !important;
}

.opportunity-card .stat-sub {
    font-size: 1rem !important;
    color: #a0a8cc !important;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(160, 168, 204, 0.5);
    letter-spacing: 0.05em;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 2.5rem;
    margin: 0;
    color: rgba(255, 0, 85, 0.9);
    /* Softer Pink */
    text-shadow: 0 0 6px rgba(255, 0, 85, 0.4);
    letter-spacing: 2px;
}

.logo span {
    color: rgba(0, 240, 255, 0.9);
    /* Softer Cyan */
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--neon-cyan);
    text-decoration: none;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;

    /* Box Style */
    border: 2px solid var(--neon-cyan);
    padding: 5px 15px;
    background: transparent;
    margin-left: 15px;
    box-shadow: 0 0 3px rgba(0, 240, 255, 0.4);
}

/* Contact Button Variation */
nav a[href*="contacto"] {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 3px rgba(255, 0, 85, 0.4);
}

nav a:hover,
nav a.active {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 15px var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
    transform: translateY(-2px);
}

/* --- SPECIFIC NEON NAV BUTTONS --- */

/* 1. CONSOLAS (CYAN) */
.nav-links .nav-consolas {
    color: var(--neon-cyan) !important;
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.3) !important;
}

.nav-links .nav-consolas:hover,
.nav-links .nav-consolas.active {
    background: rgba(0, 240, 255, 0.1) !important;
    box-shadow: 0 0 20px var(--neon-cyan), inset 0 0 10px var(--neon-cyan) !important;
    text-shadow: 0 0 8px var(--neon-cyan) !important;
    transform: translateY(-2px);
}

/* 2. JAPÓN (RED) */
.nav-links .nav-japon {
    color: var(--neon-red) !important;
    border-color: var(--neon-red) !important;
    box-shadow: 0 0 5px rgba(255, 50, 50, 0.3) !important;
}

.nav-links .nav-japon:hover,
.nav-links .nav-japon.active {
    background: rgba(255, 50, 50, 0.1) !important;
    box-shadow: 0 0 20px var(--neon-red), inset 0 0 10px var(--neon-red) !important;
    text-shadow: 0 0 8px var(--neon-red) !important;
    transform: translateY(-2px);
}

/* 3. POP CULTURE (YELLOW) */
.nav-links .nav-pop {
    color: var(--neon-yellow) !important;
    border-color: var(--neon-yellow) !important;
    box-shadow: 0 0 5px rgba(255, 230, 0, 0.3) !important;
}

.nav-links .nav-pop:hover,
.nav-links .nav-pop.active {
    background: rgba(255, 230, 0, 0.1) !important;
    box-shadow: 0 0 20px var(--neon-yellow), inset 0 0 10px var(--neon-yellow) !important;
    text-shadow: 0 0 8px var(--neon-yellow) !important;
    transform: translateY(-2px);
}

/* 4. CONTACTO (PINK) */
.nav-links .nav-contacto {
    color: var(--neon-pink) !important;
    border-color: var(--neon-pink) !important;
    box-shadow: 0 0 5px rgba(255, 0, 85, 0.3) !important;
}

.nav-links .nav-contacto:hover,
.nav-links .nav-contacto.active {
    background: rgba(255, 0, 85, 0.1) !important;
    box-shadow: 0 0 20px var(--neon-pink), inset 0 0 10px var(--neon-pink) !important;
    text-shadow: 0 0 8px var(--neon-pink) !important;
    transform: translateY(-2px);
}

/* Tagline Styles */
.tagline {
    display: block;
    font-family: var(--font-body);
    /* Usa Rajdhani para armonía */
    font-size: 0.7rem;
    /* Chico y discreto */
    letter-spacing: 2px;
    /* Espaciado técnico */
    color: var(--neon-cyan);
    /* O blanco con opacidad */
    margin-top: -5px;
    text-align: center;
    /* Alineado al logo */
}

/* HERO */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: radial-gradient(circle at center, rgba(26, 33, 71, 0.5) 0%, transparent 70%);
}

.hero h2 {
    font-family: var(--font-body);
    color: var(--neon-green);
    font-size: 1.5rem;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* DASHBOARD GRID */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 20px;
    margin: 40px 0;
}

/* SIDEBAR (FILTERS) */
.sidebar {
    background-color: var(--bg-panel);
    border: 1px solid var(--neon-purple);
    /* Left Panel - Violet */
    padding: 20px;
    border-radius: 4px;
    height: fit-content;
    box-shadow: 0 0 15px var(--neon-purple);
    /* Soft Violet Glow */
    position: sticky;
    /* Sticky Sidebar */
    top: 100px;
    /* Clean offset from header */
}

.sidebar h3 {
    font-family: var(--font-title);
    color: var(--neon-pink);
    border-bottom: 1px solid var(--neon-pink);
    padding-bottom: 10px;
    margin-top: 0;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-btn {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #333;
    color: var(--text-muted);
    padding: 10px;
    text-align: left;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 5px;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* MAIN CONTENT */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* FEATURED GRID */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.item-card {
    background: var(--bg-card);
    border: 1px solid #333;
    padding: 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.item-card:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.5);
    transform: translateY(-5px);
}

.item-title {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-main);
    margin: 0 0 5px 0;
}

.item-source {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

.item-price {
    font-family: 'IBM Plex Mono', monospace;
    color: rgba(255, 240, 31, 0.9);
    font-size: 1.2rem;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 240, 31, 0.2);
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 2px;
    text-transform: uppercase;
    font-weight: bold;
    margin-bottom: 10px;
}

.badge-rare {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
}

.badge-epic {
    background: rgba(255, 240, 31, 0.2);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.badge-legendary {
    background: rgba(255, 45, 45, 0.2);
    color: #ff2d2d;
    border: 1px solid #ff2d2d;
    box-shadow: 0 0 10px rgba(255, 45, 45, 0.5);
}

/* TABLES (CLEAN & STABLE) */
.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background-color: transparent;
}

/* Headers */
thead {
    background-color: #151b3d;
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 1rem 1.5rem;
    border-bottom: 2px solid #bd00ff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-family: var(--font-body);
}

th:first-child {
    text-align: left;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    width: 65%;
}

th:last-child {
    text-align: right;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
    width: 35%;
}

/* Data Cells */
td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(42, 50, 84, 0.5);
    vertical-align: middle;
    color: #e0e6ff;
}

td:first-child {
    width: 65%;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.4;
}

td:last-child {
    width: 35%;
    text-align: right;
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
}

/* TEXT TRUNCATION TO PREVENT OVERFLOW */
td:first-child,
.item-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
    /* Limit width to force ellipsis */
}

.table-local td:last-child {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.table-global td:last-child {
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* Hover Effect - STABILIZED & CLEAN */
tbody tr {
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    height: 60px;
    /* Locked Height as requested */
}

tbody tr:hover {
    background-color: #111;
    /* Dark background */
    box-shadow: 0 0 10px rgba(255, 0, 85, 0.4);
    /* Subtle neon glow */
    z-index: 1;
}

/* Clean Hover Text - No transforms, just glow */
tbody tr:hover td:last-child {
    transform: none;
    /* Locked size */
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Responsive Tables */
@media (max-width: 768px) {

    th:first-child,
    td:first-child {
        width: 60%;
    }

    th:last-child,
    td:last-child {
        width: 40%;
    }

    td,
    th {
        padding: 0.75rem 1rem;
    }
}

/* AI ADVISOR */
.ai-advisor {
    background: #000;
    border: 1px solid var(--neon-cyan);
    padding: 20px;
    margin-top: 30px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.1);
}

.ai-advisor::before {
    content: "AI // MARKET_ANALYSIS_V4";
    position: absolute;
    top: -10px;
    left: 10px;
    background: var(--bg-deep);
    padding: 0 10px;
    color: var(--neon-cyan);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}

/* --- MOBILE UPGRADE --- */
@media (max-width: 900px) {
    .dashboard {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .sidebar {
        display: block !important;
        width: 100%;
        padding: 15px;
        order: -1;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .sidebar h3 {
        display: none;
    }

    .filter-group {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        min-width: 140px;
        text-align: center;
        background: var(--bg-panel);
        border: 1px solid var(--neon-cyan);
        padding: 12px;
        height: auto;
        border-radius: 8px;
        font-size: 0.9rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    .filter-btn.active {
        background: var(--neon-cyan);
        color: #000;
        font-weight: 900;
        box-shadow: 0 0 20px var(--neon-cyan);
    }

    .main-content>section:first-of-type {
        grid-template-columns: 1fr !important;
    }

    .opportunity-card .stat-value {
        font-size: clamp(2.5rem, 8vw, 4rem) !important;
        line-height: 1.1;
    }

    .stat-value {
        font-size: 2rem;
    }

    .sidebar h3:nth-of-type(2),
    .sidebar div[style*='IBM Plex Mono'] {
        display: none;
    }

    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav ul {
        gap: 15px;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero h2 {
        font-size: 1.2rem;
    }
}

/* --- CONTACT FORM CYBERPUNK STYLES --- */
.form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--neon-cyan);
    padding: 30px;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: var(--neon-green);
    font-family: var(--font-body);
    font-size: 1.1rem;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input,
.form-textarea {
    width: 100%;
    background-color: #000;
    border: 1px solid var(--neon-green);
    /* Green Matrix Border */
    color: var(--neon-green);
    font-family: 'IBM Plex Mono', monospace;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 3px rgba(0, 255, 159, 0.4);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: 0 0 9px rgba(57, 255, 20, 0.4);
    border-color: #fff;
}

/* Submit Button - Blinking Effect */
.btn-submit {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    padding: 15px 30px;
    font-family: var(--font-title);
    font-size: 1.2rem;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    animation: pulse-glow 2s infinite;
}

.btn-submit:hover {
    background: rgba(0, 240, 255, 0.1);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

@keyframes pulse-glow {
    0% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
    }
}

.success-message {
    border: 1px solid var(--neon-green);
    background: rgba(0, 255, 159, 0.1);
    color: var(--neon-green);
    padding: 15px;
    text-align: center;
    font-family: 'IBM Plex Mono', monospace;
    margin-bottom: 20px;
    text-shadow: 0 0 5px var(--neon-green);
}


/* --- CONSOLE NAVIGATION STYLES --- */
.nav-link-btn {
    display: inline-block;
    padding: 5px 15px;
    /* Box Style Padding */
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-title);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    background: transparent;
    /* Transparent BG */
    font-size: 0.9rem;
    margin-left: 15px;
    box-shadow: 0 0 5px rgba(0, 240, 255, 0.2);
}

/* Contact Button Specific Override */
a.nav-link-btn[href*="contacto"] {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 5px rgba(255, 0, 85, 0.2);
}

a.nav-link-btn[href*="contacto"]:hover {
    box-shadow: 0 0 15px var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 85, 0.3);
    background: rgba(255, 0, 85, 0.1);
}

.nav-link-btn:hover,
.nav-link-btn.active {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 15px var(--neon-pink);
    text-shadow: 0 0 8px var(--neon-pink);
    transform: translateY(-2px);
}

/* Back to Matrix Button */
.btn-matrix-back {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 40px auto 0;
    text-align: center;
    padding: 15px;
    border: 2px dashed var(--neon-green);
    color: var(--neon-green);
    font-family: 'IBM Plex Mono', monospace;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-matrix-back:hover {
    background: rgba(0, 255, 159, 0.1);
    box-shadow: 0 0 20px rgba(0, 255, 159, 0.3);
    letter-spacing: 1px;
}

/* --- DISCLAIMER MID SECTION (NEON STYLE) --- */
.disclaimer-mid-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.disclaimer-mid-section details {
    background: #000;
    /* Solid Black */
    border: 1px solid var(--neon-cyan);
    /* Neon Cyan Border */
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
    /* Cyan Glow */
    transition: all 0.3s ease;
}

.disclaimer-mid-section details[open] {
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
}

.disclaimer-mid-section summary {
    color: var(--neon-cyan);
    /* Neon Cyan Text */
    font-family: var(--font-body);
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
}

.disclaimer-mid-section summary:hover {
    text-shadow: 0 0 8px var(--neon-cyan);
}

.calc-detail {
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px dashed var(--neon-cyan);
    /* Cyan Dash */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: #e0e6ff;
    /* Lighter text for readability against black */
    line-height: 1.6;
}

.calc-detail p {
    margin: 5px 0;
}

.calc-detail strong {
    color: var(--neon-green);
}

.nota-dolar {
    font-style: italic;
    color: var(--neon-cyan) !important;
    /* Cyan highlight */
    opacity: 0.8;
    margin-top: 10px !important;
}

/* --- CYBERPUNK HEADER OVERHAUL (V5 - FINAL) --- */
.navbar-neon {
    width: 100%;
    background-color: var(--bg-deep);
    /* Deep Blue-Black */

    /* GRADIENTE NEÓN INFERIOR (Fucsia a Cyan) */
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(to right, var(--neon-pink), var(--neon-cyan)) 1;
    box-shadow: 0 4px 15px rgba(255, 0, 153, 0.5), 0 4px 15px rgba(0, 243, 255, 0.5);

    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000;
}

.brand-box {
    display: flex;
    flex-direction: column;
}

.neon-logo {
    font-family: var(--font-title);
    font-weight: 900;
    font-size: 2.5rem;
    /* Tamaño Ajustado */
    margin: 0;
    line-height: 1;
    letter-spacing: 2px;

    /* Sin fondo sólido, flotando en negro */
    background: transparent;
    padding: 0;
    width: auto;
    text-align: left;
    text-shadow: none;
}

/* Restore Bi-Color Neon */
/* Restore Bi-Color Neon */
.neon-logo .pink {
    color: var(--neon-pink);
    text-shadow: 0 0 2px var(--neon-pink), 0 0 5px var(--neon-pink), 0 0 10px var(--neon-pink);
}

.neon-logo .cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 2px var(--neon-cyan), 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan);
}

.subtitle {
    font-family: var(--font-body);
    color: #ccc;
    /* Gris claro / Blanco */
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 5px;
    font-weight: 600;
    text-shadow: none;
    /* Sin neón para no competir */
}

/* MENÚ BOTONES CAJA */
.menu-buttons {
    display: flex;
    gap: 15px;
}

.btn-neon {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-transform: uppercase;
    padding: 8px 16px;
    /* Caja */
    border: 2px solid;
    /* Borde Sólido */
    background: transparent;
    transition: all 0.2s ease;
    letter-spacing: 1px;
}

/* Variantes de Color */
.btn-neon.cyan {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 5px rgba(0, 243, 255, 0.2);
}

.btn-neon.pink {
    color: var(--neon-pink);
    border-color: var(--neon-pink);
    box-shadow: 0 0 5px rgba(255, 0, 153, 0.2);
}

.btn-neon.purple {
    color: #bd00ff;
    border-color: #bd00ff;
    box-shadow: 0 0 5px rgba(189, 0, 255, 0.2);
}

/* Hover Effects */
.btn-neon:hover {
    background: #111;
    transform: translateY(-2px);
    box-shadow: 0 0 15px currentColor;
    /* Brillo del mismo color */
    text-shadow: 0 0 5px currentColor;
}

/* Futura / Disabled */
.btn-neon.futura {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #555 !important;
    color: #888 !important;
    box-shadow: none !important;
}

.btn-neon.futura:hover {
    transform: none;
    background: rgba(0, 0, 0, 0.8);
    text-shadow: none;
}

/* FOOTER / SYSTEM STATUS */
.system-status {
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.8rem;
    color: #666;
    text-align: left;
    width: 100%;
    margin-bottom: 20px;
}

.system-status strong {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}

.system-row {
    margin-bottom: 5px;
    display: block;
}

/* AD BANNER (GLOBAL) */
.ad-banner {
    border: 2px dashed var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    background: rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    color: var(--text-muted);
    font-family: var(--font-title);
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ad-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    border-color: var(--neon-pink);
    color: var(--neon-cyan);
}