:root {
    --bg-color: #0d0d0d;
    --card-bg: rgba(255, 255, 255, 0.05);
    --primary: #9d00ff;
    --secondary: #00d2ff;
    --text: #ffffff;
    --text-dim: #b3b3b3;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    overflow-x: clip; /* 'clip' no rompe position:fixed como lo hace 'hidden' */
    line-height: 1.6;
}

header {
    background: rgba(13, 13, 13, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.logo span {
    color: var(--primary);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: var(--text);
}

.nav-youtube {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    color: #ffffff !important;
    white-space: nowrap;
}

.youtube-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.6rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.nav-youtube .youtube-icon {
    width: 1.5rem;
    height: 1.08rem;
}

.nav-youtube:hover .youtube-icon,
.media-cta:hover .youtube-icon {
    transform: translateY(-1px);
}

.nav-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
}

.mobile-dapp-notice {
    display: none;
    margin-bottom: 1.35rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.12), rgba(157, 0, 255, 0.12));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

.mobile-dapp-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(13, 13, 13, 0.5);
    color: #9fe8ff;
}

.mobile-dapp-notice p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #d7e8f2;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

button {
    cursor: pointer;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    transition: transform 0.2s, opacity 0.2s;
}

.primary-btn {
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.3);
}

.secondary-btn {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.media-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    width: 64px;
    height: 64px;
    min-width: 64px;
    padding: 0;
    border: none;
    border-radius: 18px;
    background: #ff0033;
    box-shadow: 0 12px 24px rgba(255, 0, 51, 0.28);
}

.media-cta:hover {
    background: #ff1744;
}

.media-cta::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    border-left: 18px solid #ffffff;
}

button:hover {
    transform: translateY(-3px);
    opacity: 0.9;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: floating 6s ease-in-out infinite;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
}

/* SECTIONS */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.step {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 24px;
    position: relative;
    transition: border-color 0.3s;
}

.step:hover {
    border-color: var(--secondary);
}

.step-num {
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 2rem;
}

.step h3 {
    margin-bottom: 1rem;
    color: var(--secondary);
}

/* BENEFITS GRID */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid transparent;
    transition: transform 0.3s, background 0.3s;
}

.benefit-card:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
}

.benefit-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* FOOTER */
footer {
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

/* STATS SECTION */
.stats-section {
    background: radial-gradient(circle at center, rgba(157, 0, 255, 0.1), transparent);
    padding: 8rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* ROADMAP */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-50%);
}

.timeline-item {
    padding: 2rem 0;
    width: 50%;
    position: relative;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 3rem;
}

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 3rem;
}

.time-point {
    width: 60px;
    height: 60px;
    background: var(--bg-color);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    position: absolute;
    top: 2rem;
    z-index: 2;
}

.timeline-item:nth-child(odd) .time-point {
    right: -30px;
}

.timeline-item:nth-child(even) .time-point {
    left: -30px;
}

.timeline-item.active .time-point {
    background: var(--primary);
    box-shadow: 0 0 20px var(--primary);
}

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.timeline-item:hover .timeline-content {
    transform: scale(1.02);
    border-color: var(--secondary);
}

/* NOTIFICATIONS & BADGES */
.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 8px;
    vertical-align: middle;
}

.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(13, 13, 13, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(157, 0, 255, 0.4);
    z-index: 2000;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    bottom: 40px;
}

/* REVEAL ON SCROLL */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* ── ROI VISUAL SECTION (DISEÑO #1) ────────────────────── */
#roi-visual {
    text-align: center;
}

.roi-subtitle {
    color: var(--text-dim);
    font-size: 1rem;
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
}

.roi-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.roi-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.5rem 1.2rem;
    min-width: 140px;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    animation: roiFloat 5s ease-in-out infinite;
}

.roi-card:nth-child(1) { animation-delay: 0s; }
.roi-card:nth-child(3) { animation-delay: 0.6s; }
.roi-card:nth-child(5) { animation-delay: 1.2s; }
.roi-card:nth-child(7) { animation-delay: 1.8s; }
.roi-card:nth-child(9) { animation-delay: 2.4s; }

@keyframes roiFloat {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.roi-card:hover { transform: translateY(-12px) scale(1.03); }

.roi-entrada  { border-color: rgba(255, 214, 0, 0.35); box-shadow: 0 0 20px rgba(255, 214, 0, 0.08); }
.roi-a        { border-color: rgba(0, 210, 255, 0.35); box-shadow: 0 0 20px rgba(0, 210, 255, 0.08); }
.roi-b        { border-color: rgba(157, 0, 255, 0.35); box-shadow: 0 0 20px rgba(157, 0, 255, 0.08); }
.roi-c        { border-color: rgba(0, 230, 118, 0.35); box-shadow: 0 0 20px rgba(0, 230, 118, 0.08); }
.roi-resultado {
    border-color: rgba(255, 107, 53, 0.5);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.15);
    background: linear-gradient(135deg, rgba(255,107,53,0.06), rgba(255,214,0,0.04));
}

.roi-icon { font-size: 1.8rem; margin-bottom: 0.4rem; }

.roi-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 9px;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.roi-badge-a { background: rgba(0,210,255,0.12); color: #00d2ff; }
.roi-badge-b { background: rgba(157,0,255,0.12); color: #9d00ff; }
.roi-badge-c { background: rgba(0,230,118,0.12); color: #00e676; }

.roi-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.roi-gold  { color: #ffd700; }
.roi-green { color: #00e676; }
.roi-final {
    font-size: 2.4rem;
    background: linear-gradient(90deg, #ffd700, #ff6b35);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.roi-label    { font-size: 0.72rem; font-weight: 600; color: #999; margin-bottom: 0.15rem; }
.roi-sublabel { font-size: 0.62rem; color: #555; }

.roi-treasury-chip {
    margin-top: 0.6rem;
    font-size: 0.6rem;
    color: #9d00ff;
    background: rgba(157, 0, 255, 0.08);
    border: 1px solid rgba(157, 0, 255, 0.2);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

/* Animated arrow connector */
.roi-connector {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0;
    position: relative;
    min-width: 50px;
    justify-content: center;
}

.roi-arrow-line {
    width: 36px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
    border-radius: 1px;
}

.roi-arrow-line::after {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: arrowFlow 1.6s ease-in-out infinite;
}

@keyframes arrowFlow {
    0%   { left: -100%; }
    100% { left: 100%; }
}

.roi-arrow-tip {
    font-size: 0.65rem;
    color: rgba(255,255,255,0.3);
    margin-left: -2px;
}

/* Treasury note */
.roi-note {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(157, 0, 255, 0.05);
    border: 1px solid rgba(157, 0, 255, 0.18);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    margin-top: 3rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.roi-note > span { font-size: 1.4rem; flex-shrink: 0; }
.roi-note > p    { font-size: 0.82rem; color: #888; line-height: 1.5; }
.roi-note strong { color: #9d00ff; }

@media (max-width: 768px) {
    header {
        position: sticky;
        top: 0;
    }

    nav {
        padding: 0.95rem 1rem;
        justify-content: center;
        text-align: center;
    }

    nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem 1rem;
    }

    nav ul li a {
        font-size: 0.9rem;
        /* Área mínima táctil de 44px para accesibilidad móvil */
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        padding: 0 4px;
    }

    .nav-btn {
        padding: 0.55rem 1rem;
        min-height: 44px;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 2rem 1rem 4rem;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        width: 100%;
    }

    .mobile-dapp-notice {
        display: block;
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 10vw, 3.35rem);
        margin-bottom: 1rem;
    }

    .hero-content p {
        margin: 0 auto 1.5rem;
        max-width: 32rem;
        font-size: 1rem;
    }

    .hero-image {
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }

    .glass-card {
        width: min(100%, 440px);
        padding: 1rem;
        border-radius: 24px;
        /* Deshabilitar animación flotante en móvil para evitar scroll horizontal */
        animation: none;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        width: 100%;
        max-width: 22rem;
        margin: 0 auto;
    }

    .cta-group button,
    .cta-group a {
        width: 100%;
        min-height: 54px;
    }

    section {
        padding: 4rem 1rem;
    }

    /* Corregir: stats-section tenía su propio padding que sobreescribía el de section */
    .stats-section {
        padding: 4rem 1rem;
    }

    .section-title {
        font-size: 1.9rem;
        margin-bottom: 2rem;
    }

    .steps,
    .benefits-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .step,
    .benefit-card,
    .timeline-content {
        padding: 1.4rem 1.15rem;
        border-radius: 18px;
    }

    .step-num {
        font-size: 2.2rem;
        top: 0.8rem;
        right: 1rem;
    }

    .stat-item h2 {
        font-size: 2.6rem;
    }

    .timeline::before {
        left: 22px;
    }

    .timeline-item {
        width: 100%;
        padding: 0 0 0 3.75rem !important;
        text-align: left !important;
        margin-left: 0 !important;
    }

    .time-point {
        left: 0 !important;
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    /* ROI section mobile */
    .roi-subtitle {
        margin-top: -1rem;
        margin-bottom: 2rem;
        padding: 0 0.4rem;
        font-size: 0.9rem;
    }

    .roi-flow {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        /* Evitar scroll horizontal por el conector rotado */
        overflow: hidden;
        width: 100%;
    }

    .roi-connector {
        transform: rotate(90deg);
        min-width: 40px;
        flex-shrink: 0;
    }

    .roi-card {
        min-width: 0;
        width: min(100%, 300px);
        padding: 1.1rem 1rem;
    }

    .roi-note {
        flex-direction: column;
        gap: 0.65rem;
        padding: 1rem;
        margin-top: 2rem;
    }

    .modal-overlay {
        padding: 12px;
        align-items: flex-end; /* Modal aparece desde abajo en móvil, más natural */
    }

    .modal-content {
        padding: 1.4rem 1.1rem 1.8rem;
        border-radius: 24px 24px 16px 16px;
        max-height: 92vh;
        width: 100%;
    }

    .modal-app-links {
        flex-direction: column;
    }

    /* Botones dentro de modales — área táctil suficiente */
    .modal-content button,
    .modal-content a {
        min-height: 44px;
    }
}

@media (max-width: 420px) {
    .logo {
        font-size: 1.25rem;
    }

    nav ul {
        gap: 0.4rem 0.7rem;
    }

    nav ul li a {
        font-size: 0.82rem;
    }

    .hero-content h1 {
        font-size: clamp(1.9rem, 9vw, 2.4rem);
    }

    .hero-content p,
    .mobile-dapp-notice p {
        font-size: 0.92rem;
    }

    .section-title {
        font-size: 1.65rem;
        margin-bottom: 1.6rem;
    }

    .roi-amount,
    .roi-final {
        font-size: 1.75rem;
    }

    .roi-card {
        width: 100%;
        max-width: 100%;
    }

    .stat-item h2 {
        font-size: 2.2rem;
    }

    /* Evitar que el toast sea demasiado ancho */
    .toast {
        width: calc(100% - 2rem);
        text-align: center;
        font-size: 0.88rem;
        padding: 0.85rem 1.2rem;
    }
}
/* ── MODAL: BILLETERA NO DETECTADA ────────────────────── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: linear-gradient(145deg, #111118, #0d0d14);
    border: 1px solid rgba(157, 0, 255, 0.35);
    border-radius: 24px;
    padding: 36px 32px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 0 60px rgba(157,0,255,0.15), 0 30px 60px rgba(0,0,0,0.6);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 0.9rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* Header */
.modal-header { text-align: center; margin-bottom: 24px; }
.modal-badge {
    display: inline-block;
    background: rgba(255, 180, 0, 0.12);
    border: 1px solid rgba(255, 180, 0, 0.3);
    color: #ffb400;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
    margin-bottom: 14px;
    text-transform: uppercase;
}
.modal-header h3 {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 10px;
    color: #fff;
}

.modal-wallet-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 15px;
    border-radius: 13px;
    text-decoration: none;
    margin-bottom: 8px;
    transition: opacity 0.2s;
}

.modal-wallet-option:hover {
    opacity: 0.8;
}

.modal-app-links {
    display: flex;
    gap: 8px;
}

.modal-app-link {
    flex: 1;
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #aaa;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.2s;
}

.modal-app-link:hover {
    background: rgba(255,255,255,0.08);
}
