/* ==========================================================
   RESET + VARIABLES
========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --topbar-h: 56px;
    --bg-dark: #05070F;
    --bg-panel: #0B1120;
    --bg-soft: #121A2A;
    --bg-deep: #0A0F1C;
    --primary: #00f6b1;
    --primary-strong: #00ffcc;
    --primary-soft: rgba(0, 246, 177, 0.18);
    --accent: #1FA2FF;
    --accent-soft: rgba(31, 162, 255, 0.25);
    --text-main: #F5F7FA;
    --text-soft: #AAB6CC;
    --text-muted: #6E7A93;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow-deep: 0 22px 45px rgba(0, 0, 0, 0.65);
    --shadow-soft: 0 15px 30px rgba(0, 0, 0, 0.45);
    --sidebar-width: 260px;
    --transition: .28s ease;
}


/* ==========================================================
   GLOBAL LAYOUT
========================================================== */

body {
    background: radial-gradient(circle at top, #0A1222 0%, #05070F 80%);
    font-family: "Inter", system-ui, sans-serif;
    color: var(--text-main);
    overflow-x: hidden;
}

.layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 0;
}

.content {
    margin-left: var(--sidebar-width);
    padding: 50px 60px;
    width: calc(100% - var(--sidebar-width));
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.content-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 90px;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #06090F, #05070D);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: fixed;
    inset: 0 auto 0 0;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 18px 0 45px rgba(0, 0, 0, 0.7);
    z-index: 9999 !important;
    /* FIX: siempre por encima del contenido */
}

.logo-img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 2px solid var(--primary);
    box-shadow: 0 0 16px rgba(0, 246, 177, 0.45);
    object-fit: cover;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-title {
    font-size: 21px;
    font-weight: 700;
}

.logo-subtitle {
    font-size: 11px;
    color: var(--text-soft);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    padding: 11px 13px;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    align-items: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-soft);
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.menu-item svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
}

.menu-item:hover {
    background: var(--bg-soft);
    color: var(--primary);
}

.menu-item.active {
    background: rgba(0, 246, 177, 0.18);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

.sidebar-footer {
    margin-top: auto;
    font-size: 11px;
    color: var(--text-soft);
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge-live {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 11px var(--primary);
    animation: pulse 1.7s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}


/* ==========================================================
   BOTÓN HAMBURGUESA (MÓVIL)
========================================================== */

.mobile-toggle {
    display: none;
}


/* ==========================================================
   HERO BANNER (HOME)
========================================================== */

.hero-banner {
    display: flex;
    gap: 45px;
    padding: 50px;
    background: radial-gradient(circle at top right, rgba(0, 246, 177, 0.16), transparent), linear-gradient(145deg, #111827, #0A121F 70%);
    border-radius: 24px;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
}

.hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    opacity: 0;
    animation: sheen 9s linear infinite;
}

@keyframes sheen {
    0% {
        opacity: 0;
        transform: translateX(-90%);
    }
    40% {
        opacity: .7;
        transform: translateX(40%);
    }
    100% {
        opacity: 0;
        transform: translateX(110%);
    }
}

.hero-left {
    flex: 1.6;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.hero-pill {
    display: inline-block;
    background: var(--primary-soft);
    padding: 4px 12px;
    border-radius: 999px;
    color: var(--primary);
    font-size: 11px;
}

.hero-left h1 {
    font-size: 34px;
    line-height: 1.3;
}

.highlight {
    color: var(--primary-strong);
}

.hero-sub {
    font-size: 15px;
    color: var(--text-soft);
    max-width: 540px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    padding: 12px 26px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #58ffd7);
    color: #04140f;
    box-shadow: 0 0 20px rgba(0, 246, 177, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 28px rgba(0, 246, 177, 0.7);
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-top: 12px;
}

.hero-meta-item {
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(5, 9, 18, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.meta-label {
    font-size: 11px;
    color: var(--text-soft);
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
}

.hero-fomo {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.hero-fomo .dot {
    width: 9px;
    height: 9px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--primary);
}


/* Imagen de Starlin */

.hero-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-img {
    width: 92%;
    max-width: 420px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 25px rgba(0, 255, 200, 0.25));
    opacity: 0;
    transform: translateY(20px);
    animation: fadeStarlin .9s ease forwards .4s;
}

@keyframes fadeStarlin {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==========================================================
   STATS
========================================================== */

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.stat-card {
    background: var(--bg-soft);
    padding: 22px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-value {
    font-size: 22px;
    margin-top: 4px;
    color: var(--primary);
    font-weight: 700;
}

.stat-sub {
    font-size: 14px;
    color: var(--text-soft);
    margin-top: 4px;
}


/* ==========================================================
   CARDS GRID – CURSO / INDICADORES / SCANNER / ROBOTS
========================================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
}

.card {
    background: linear-gradient(145deg, #131C2C, #0E1523);
    padding: 22px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-soft);
    transition: .35s ease;
}

.card-thumb {
    height: 170px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 18px;
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.card-body h2 {
    font-size: 20px;
    line-height: 1.3;
}

.card-body p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.6;
}

.card-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.tag {
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    font-size: 12px;
}

.btn-card {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 18px;
    border-radius: 999px;
    text-decoration: none;
    background: var(--primary);
    color: #04140f;
    font-weight: 600;
    transition: .2s;
}

.btn-card:hover {
    transform: translateY(-3px);
}


/* ==========================================================
   RESULTADOS REALES
========================================================== */

.section {
    margin-top: 80px;
}

.section-header h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-soft);
    max-width: 520px;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}

.result-card {
    background: var(--bg-panel);
    padding: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.result-tag {
    background: var(--accent-soft);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    margin-bottom: 12px;
    display: inline-block;
}

.result-body {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.5;
}

.result-name {
    margin-top: 10px;
    font-size: 14px;
    color: var(--primary);
    display: block;
}


/* ==========================================================
   ROBOTS DESTACADOS
========================================================== */

.section-robots-highlight .section-header h2 {
    margin-bottom: 14px;
}

.robots-highlight-grid {
    display: flex;
    gap: 40px;
    margin-top: 26px;
}

.robots-list li {
    margin-bottom: 12px;
    color: var(--text-soft);
    font-size: 15px;
}

.robots-highlight-visual {
    flex: 1;
}

.robots-panel-rect {
    width: 100%;
    height: 500px;
    background: #0C1528;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 0 25px rgba(0, 255, 160, 0.08);
}

.panel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}


/* ==========================================================
   FAQ
========================================================== */

.faq-grid {
    margin-top: 25px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
}

.faq-item h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.faq-item p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ==========================================================
   FOOTER
========================================================== */

.footer {
    margin-top: 40px;
    padding: 14px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}


/* ==========================================================
   PÁGINA DE ACCESO (acceso.html)
========================================================== */

.access-page.hero-banner {
    max-width: 850px;
    margin: 0 auto 40px auto;
    padding: 45px;
    background: linear-gradient(135deg, rgba(0, 40, 45, 0.55), rgba(0, 80, 85, 0.35));
    border-radius: 22px;
    border: 1px solid rgba(0, 255, 180, 0.15);
    text-align: center;
}

.access-page h1 {
    font-size: 34px;
    font-weight: 700;
}

.access-page p {
    margin-top: 30px;
    font-size: 20px;
    color: #ffffff;
}

.access-container {
    background: rgba(10, 20, 25, 0.55);
    border: 1px solid rgba(0, 255, 180, 0.15);
    padding: 55px;
    border-radius: 22px;
    max-width: 850px;
    margin: 40px auto 80px auto;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 255, 120, 0.08);
    backdrop-filter: blur(6px);
}

.access-title {
    font-size: 34px;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 700;
}

.access-subtitle {
    font-size: 16px;
    color: #adbcc7;
    margin-bottom: 30px;
}

.access-price-old {
    text-decoration: line-through;
    color: #666;
    margin-bottom: 5px;
    font-size: 17px;
}

.access-price {
    color: #00ffb4;
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.access-launch {
    font-size: 14px;
    color: #7fecc7;
    margin-bottom: 40px;
}

.payment-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 20px;
}

.payment-card {
    background: rgba(0, 10, 14, 0.55);
    border: 1px solid rgba(0, 255, 180, 0.1);
    padding: 30px;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(0, 255, 140, 0.25);
}

.payment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pay-icon {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.payment-amount {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
}

.wallet-box {
    background: rgba(15, 25, 30, 0.8);
    border: 1px solid rgba(0, 255, 180, 0.15);
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    color: #00ffc8;
    word-break: break-all;
    user-select: all;
}

.btn-paypal {
    background: #0070ba;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 0;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s ease;
}

.btn-paypal-icon {
    width: 22px;
    height: auto;
}

.btn-paypal:hover {
    background: #188fe6;
}

.btn-comprobante {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 48px;
    font-size: 18px;
    background: #00ffaa;
    color: #001713;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.25s ease;
}

.btn-comprobante:hover {
    background: #00e69a;
    transform: translateY(-3px);
}

.btn-wsp-icon {
    width: 23px;
    height: auto;
}

.access-instructions {
    margin-top: 28px;
    color: #cfe9e0;
    font-size: 15px;
}


/* ==========================================================
   ANIMACIONES reveal (para script.js)
========================================================== */

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   RESPONSIVE
========================================================== */


/* <= 1024px: ocultar imagen del hero para ahorrar espacio */

@media (max-width: 1024px) {
    .hero-right {
        display: none;
    }
}


/* <= 900px: comportamiento móvil principal */

@media (max-width: 900px) {
    .sidebar {
        left: -260px;
        top: 0;
        height: 100vh;
        transition: 0.3s ease;
    }
    .sidebar.active {
        left: 0;
    }
    .mobile-toggle {
        display: block;
        position: fixed;
        left: 15px;
        top: 15px;
        z-index: 10000 !important;
        background: var(--primary);
        color: #001510;
        border: none;
        padding: 10px 14px;
        border-radius: 12px;
        font-size: 18px;
        box-shadow: 0 0 15px rgba(0, 255, 200, .4);
        cursor: pointer;
    }
    .content {
        margin-left: 0;
        padding: 90px 22px 60px;
        width: 100%;
    }
    .hero-banner {
        flex-direction: column;
        padding: 32px;
        text-align: center;
    }
    .hero-left {
        align-items: center;
    }
    .hero-left h1 {
        font-size: 26px;
    }
    .stats-row {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    .results-grid {
        grid-template-columns: 1fr;
    }
    .robots-highlight-grid {
        flex-direction: column;
        text-align: center;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
    .access-container {
        padding: 35px 25px;
        margin: 30px auto 60px auto;
    }
    .payment-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================
   SECCIÓN GESTIÓN DE CAPITAL (VERSIÓN COMPACTA)
========================================================== */

.capital-management {
    background: linear-gradient(145deg, var(--bg-panel), #0a0f1c);
    padding: 30px; /* Reducido de 70px */
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: -40px; /* Sube un poco para pegarse a las stats */
    box-shadow: var(--shadow-soft);
}

.management-header {
    text-align: left; /* Alineado a la izquierda ahorra espacio vertical */
    margin-bottom: 25px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.management-header h2 {
    font-size: 22px; /* Reducido de 32px */
    color: var(--text-main);
}

.management-header p {
    font-size: 14px;
    color: var(--text-soft);
}

.management-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px; /* Espacio más estrecho entre tarjetas */
}

.management-card {
    background: var(--bg-soft);
    padding: 20px 25px; /* Mucho más compacto */
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
}

.card-category {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--primary); /* Color para identificar rápido */
    font-weight: 700;
}

.management-card h3 {
    font-size: 18px; /* Más pequeño */
    margin-bottom: 5px;
}

.management-card p {
    font-size: 13px; /* Texto de lectura rápida */
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.capital-badge {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    margin-bottom: 15px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.capital-badge.premium {
    border-color: var(--primary);
    color: var(--primary);
}

/* Botones más bajos y discretos */
.btn-management {
    padding: 10px;
    font-size: 11px;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-management.standard {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-soft);
}

.btn-management.premium {
    background: var(--primary);
    color: #05070f;
}

.btn-management:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* Responsivo: En móvil una debajo de otra */
@media (max-width: 768px) {
    .management-options {
        grid-template-columns: 1fr;
    }
    .capital-management {
        padding: 20px;
    }
}