@import url("https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Mono:wght@300;400&display=swap");

/* ===== RESET ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ===== VARIABLES ===== */
:root {
    --bg: #0e0c0a;
    --fg: #ede8df;
    --muted: #8a7b6e;
    --accent: #d4a84b;
    --font-display: "Bebas Neue", sans-serif;
    --font-mono: "DM Mono", monospace;
}

/* ===== BASE ===== */
body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-mono);
    overflow-x: hidden;
}

/* ===== ESCENA ===== */
.scene {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: linear-gradient(to top,
            oklch(32% 0.12 55),
            oklch(4% 0.01 0));
    background-size: 100% 500%;
}

.scroll-track {
    width: 100%;
    position: relative;
}

/* ===== HUD ===== */
#hud {
    position: fixed;
    top: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.hud-title {
    font-family: var(--font-display);
    font-size: 0.8rem;
    color: var(--accent);
    opacity: 0.6;
}

.progress-bar {
    width: 80px;
    height: 1px;
    background: #333;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
}

.hud-label {
    font-size: 0.5rem;
    color: var(--accent);
}

/* ===== NAV ===== */
#panel_nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.nav-dot {
    width: 12px;
    height: 12px;
    margin: 10px 0;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    opacity: 0.4;
    transition: 0.3s;
}

.nav-dot.is-active {
    background: var(--accent);
    opacity: 1;
    transform: scale(1.5);
}

/* ===== PANEL ===== */
.panel {
    min-height: 100vh;
    display: flex;
}

.panel-inner {
    width: 100%;
    display: flex;
    align-items: flex-end;
    padding: 5vw;
    position: relative;
}

.panel-inner.is-center {
    justify-content: center;
    text-align: center;
}

.panel-inner.is-right {
    justify-content: flex-end;
    text-align: right;
}

/* ===== TEXTO ===== */
.layer-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    font-family: var(--font-display);
    font-size: 25vw;
    color: rgba(255, 255, 255, 0.03);
}

.panel-inner.is-right .layer-bg {
    left: auto;
    right: 0;
}

.panel-copy {
    max-width: 500px;
    z-index: 2;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 20px;
}

.layer-line {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ===== BOTÓN PREMIUM ===== */
.buy-btn {
    margin-top: 30px;
    padding: 16px 32px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    background: transparent;
    border: 1px solid rgba(212, 168, 75, 0.4);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.buy-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
            transparent,
            rgba(212, 168, 75, 0.3),
            transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.buy-btn:hover::before {
    transform: translateX(100%);
}

.buy-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.6);
    transform: scale(1.05);
}

.buy-btn:active {
    transform: scale(0.97);
}

/* ===== PRECIO ===== */
.price {
    margin-top: 10px;
    font-size: 0.7rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px);
    z-index: 999;
}

.modal-content {
    position: relative;
    margin: auto;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(20, 20, 20, 0.7);
    border: 1px solid rgba(212, 168, 75, 0.2);
    padding: 40px;
    width: min(90%, 400px);
    text-align: center;
    backdrop-filter: blur(20px);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
    animation: fadeUp 0.3s ease;
}

.modal-content h2 {
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 0.7rem;
    opacity: 0.7;
}

/* ===== INPUT ===== */
.modal-content input {
    margin-top: 20px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.modal-content input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(212, 168, 75, 0.4);
}

/* ===== BOTÓN OBTENER ===== */
.confirm-btn {
    margin-top: 20px;
    padding: 14px 25px;
    background: var(--accent);
    border: none;
    color: #000;
    font-weight: bold;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: 0.3s;
}

.confirm-btn:hover {
    background: #f0c060;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(212, 168, 75, 0.5);
}

/* ===== MENSAJES ===== */
.error-msg {
    margin-top: 10px;
    font-size: 0.7rem;
    color: red;
}

/* ===== CERRAR ===== */
.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.5;
}

.close:hover {
    opacity: 1;
    color: var(--accent);
}

/* ===== ANIMACIÓN ===== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(-40%);
    }

    to {
        opacity: 1;
        transform: translateY(-50%);
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    h2 {
        font-size: 10vw;
    }

    .layer-bg {
        font-size: 35vw;
    }

    #panel_nav {
        display: none;
    }
}