:root {
    --primary: #cd3333;
    --primary-dark: #a02020;
    --black: #111111;
    --dark: #1a1a1a;
    --white: #ffffff;
    --gray: #f4f4f4;
    --radius: 12px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
}

h1, h2, h3, .price-tag, .btn {
    font-family: 'Anton', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- NAV --- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 2px solid var(--primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 50px;
    filter: invert(1); /* Asegura que se vea blanco */
}

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { font-weight: 800; font-size: 1.1rem; }
.nav-links a:hover { color: var(--primary); }

.btn-nav {
    background: var(--primary);
    padding: 8px 16px;
    border-radius: 4px;
    color: white !important;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 40px;
    border: 2px solid rgba(255,255,255,0.25);
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 999px;
    opacity: 0.9;
}

.nav-mobile {
    display: none;
    padding: 12px 20px 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(17, 17, 17, 0.98);
}

.nav-mobile.is-open {
    display: grid;
    gap: 10px;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 800;
    letter-spacing: 1px;
}

.nav-mobile-cta {
    background: #ffd400;
    color: #111;
    border-color: rgba(0,0,0,0.15);
}

/* --- HERO --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--primary);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('banner.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.35; /* <-- ajusta aquí la “media opacidad” */
    z-index: 0;
    pointer-events: none;
}

#particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.3;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-logo {
    width: min(520px, 86vw);
    height: auto;
    display: block;
    margin: 0 auto 18px;
    filter: invert(1);
}

.glitch-text {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 20px;
    text-shadow: 4px 4px 0px var(--black);
}

.hero p { font-size: 1.2rem; margin-bottom: 30px; font-weight: 600; }

.hero-link {
    color: rgba(255,255,255,0.95);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hero-btns { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.2rem;
    border-radius: var(--radius);
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
}
.btn:hover { transform: scale(1.05); }

.btn-primary { background: var(--black); color: var(--white); }
.btn-outline { background: transparent; border: 3px solid var(--white); color: var(--white); }
.btn-full { width: 100%; text-align: center; background: var(--primary); color: white; margin-top: 10px; }
.btn-mini { padding: 5px 10px; font-size: 0.8rem; background: #333; color: #fff; border-radius: 4px; }

/* --- MENU --- */
.section-menu {
    padding: 80px 0;
    background: var(--gray);
    color: var(--black);
}

/* --- QUICK INFO --- */
.section-quick {
    background: #0f0f0f;
    padding: 22px 0 32px;
    border-top: 2px solid rgba(255,255,255,0.06);
    border-bottom: 2px solid rgba(255,255,255,0.06);
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.quick-chip {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px 14px;
    display: grid;
    gap: 4px;
    align-content: start;
    transition: transform 0.2s, border-color 0.2s;
}

.quick-chip i {
    font-size: 1.15rem;
    color: #ffd400;
}

.q-title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
}

.q-sub {
    opacity: 0.8;
    font-weight: 600;
    font-size: 0.95rem;
}

.quick-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(255,212,0,0.55);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--black);
}
.highlight { color: var(--primary); }

/* --- MENU FILTERS + BESTSELLERS + EXTRAS --- */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: -10px auto 22px;
}

.mf-btn {
    border: 2px solid rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.7);
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mf-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(205,51,51,0.45);
}

.mf-btn.is-active {
    background: var(--primary);
    color: #fff;
    border-color: rgba(0,0,0,0.0);
}

.mf-btn.mf-offers {
    background: #ffd400;
    color: #111;
    border-color: rgba(0,0,0,0.08);
}

.mf-btn.mf-offers.is-active {
    background: #ffd400;
    color: #111;
    border-color: rgba(0,0,0,0.0);
}

/* Ofertas / cupones */
.product-card.offer {
    border-color: rgba(0,0,0,0.10);
    cursor: pointer;
}

.product-card.offer:hover {
    border-color: #ffd400;
}

.price-tag.offer {
    background: #ffd400;
    color: #111;
}

/* Modal cupón */
.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
}

.lp-modal.is-open {
    display: block;
}

.lp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(6px);
}

.lp-modal__dialog {
    position: relative;
    width: min(560px, calc(100% - 32px));
    margin: 10vh auto;
    background: #0f0f0f;
    color: #fff;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 25px 80px rgba(0,0,0,0.55);
    padding: 22px;
}

.lp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.lp-modal__close * {
    pointer-events: none;
}

.lp-modal__close:hover {
    border-color: rgba(255,255,255,0.25);
}

.lp-modal__kicker {
    color: #ffd400;
    font-weight: 900;
    letter-spacing: 0.8px;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.lp-modal__title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.8px;
    font-size: 2rem;
    margin: 0 0 8px 0;
}

.lp-modal__desc {
    margin: 0 0 18px 0;
    opacity: 0.85;
    font-weight: 600;
}

.lp-modal__code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 14px 14px;
    margin-bottom: 16px;
}

.lp-modal__codeLabel {
    opacity: 0.7;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.lp-modal__codeValue {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1.2px;
    font-size: 1.6rem;
    color: #ffd400;
}

.lp-modal__qr {
    display: grid;
    place-items: center;
    margin: 10px 0 18px 0;
}

.lp-modal__qrBox {
    width: 220px;
    height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.04);
    display: grid;
    place-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
}

.lp-modal__qrBox i {
    font-size: 3.2rem;
    color: rgba(255,255,255,0.75);
}

.lp-modal__qrTxt {
    font-weight: 800;
    letter-spacing: 0.6px;
    opacity: 0.8;
}

.lp-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.lp-modal__actions .btn {
    width: 100%;
    text-align: center;
}

body.lp-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .lp-modal__actions {
        grid-template-columns: 1fr;
    }
}

.mf-btn.mf-offers {
    background: #ffd400;
    color: #111;
    border-color: rgba(0,0,0,0.12);
}

.mf-btn.mf-offers.is-active {
    background: #ffd400;
    color: #111;
    border-color: rgba(0,0,0,0.0);
}

.mf-cta {
    margin-left: 8px;
    background: #ffd400;
    color: #111;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 900;
    letter-spacing: 0.6px;
    border: 2px solid rgba(0,0,0,0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mf-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.bestsellers {
    background: rgba(0,0,0,0.04);
    border: 2px dashed rgba(0,0,0,0.12);
    border-radius: 18px;
    padding: 16px 16px;
    margin: 34px auto 26px;
}

.bs-title {
    text-align: center;
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.bs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bs-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,0.85);
    border: 2px solid rgba(0,0,0,0.08);
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.bs-item:hover {
    transform: translateY(-2px);
    border-color: rgba(205,51,51,0.45);
}

.bs-badge {
    background: var(--primary);
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
    letter-spacing: 0.6px;
}

.badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.badge {
    background: #111;
    color: #fff;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.6px;
}

.allergen-icons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    opacity: 0.9;
}

.allergen-icons span {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.10);
}

.product-card.is-hidden {
    display: none;
}

/* Club rules + equivalence */
.club-rules {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 14px;
    padding: 12px 14px;
    margin: 0 0 18px 0;
}

.cr-row {
    display: flex;
    gap: 10px;
    align-items: baseline;
    font-weight: 800;
    margin: 6px 0;
}

.cr-k {
    color: #ffd400;
    font-family: 'Anton', sans-serif;
    letter-spacing: 0.5px;
}

.cr-v {
    color: #fff;
}

.equivalence {
    text-align: center;
    font-weight: 900;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .bs-grid {
        grid-template-columns: 1fr;
    }
    .mf-cta {
        width: 100%;
        text-align: center;
        margin-left: 0;
    }
}

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

.product-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    position: relative;
    border: 2px solid transparent;
    transition: 0.3s;
}

.product-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.product-card.dessert { background: #3e2723; color: white; }
.product-card.dessert .price-tag { background: var(--white); color: #3e2723; }

.price-tag {
    position: absolute;
    top: -15px; right: -15px;
    background: var(--primary);
    color: white;
    padding: 10px 15px;
    font-size: 1.5rem;
    border-radius: var(--radius);
    transform: rotate(3deg);
}

.product-card h3 { font-size: 1.8rem; line-height: 1.1; margin-bottom: 5px; }
.sub-name { display: block; font-size: 0.9rem; opacity: 0.7; font-weight: bold; margin-bottom: 15px; text-transform: uppercase;}
.desc { font-size: 1rem; opacity: 0.8; }

.allergens { text-align: center; margin-top: 40px; font-size: 0.9rem; opacity: 0.6; }

/* --- CLUB / LOYALTY --- */
.section-club {
    padding: 80px 0;
    background: var(--dark);
    color: var(--white);
}

.club-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    align-items: center;
}

.club-info { flex: 1; min-width: 300px; }
.club-info h2 { font-size: 4rem; line-height: 1; margin-bottom: 30px; color: var(--primary); }
.club-info ul { font-size: 1.2rem; }
.club-info li { margin-bottom: 15px; display: flex; align-items: center; gap: 15px; }

.club-interface {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    background: var(--black);
    padding: 30px;
    border-radius: 20px;
    border: 2px solid #333;
}

.input-group { margin-bottom: 15px; }
.input-group label { display: block; font-size: 0.8rem; margin-bottom: 5px; opacity: 0.7; text-transform: uppercase; }
.input-group input {
    width: 100%;
    padding: 12px;
    background: #222;
    border: 1px solid #444;
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}
.input-group input:focus { outline: none; border-color: var(--primary); }

.consent-group {
    margin-top: 10px;
}

.consent-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    cursor: pointer;
    line-height: 1.45;
    font-size: 0.95rem;
    font-weight: 600;
}

.consent-check input {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.consent-check a {
    color: #ffd400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.consent-help {
    margin-top: 12px;
    font-size: 0.82rem;
    opacity: 0.72;
    line-height: 1.5;
}

.club-legal-link {
    margin-top: 16px;
    font-size: 0.95rem;
    font-weight: 700;
}

.club-legal-link a {
    color: #ffd400;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.switch-link { margin-top: 15px; text-align: center; font-size: 0.9rem; }
.switch-link a { color: var(--primary); font-weight: bold; }

.pcs-msg { margin-top: 10px; font-size: 0.9rem; text-align: center; }
.pcs-msg.err { color: #ff5555; }
.pcs-msg.info { color: #88ccff; }

/* Dashboard Styles */
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #333; }
.user-welcome { font-family: 'Anton'; font-size: 1.5rem; }
.balance-box { text-align: center; background: var(--primary); padding: 20px; border-radius: var(--radius); margin-bottom: 15px; }
.big-number { display: block; font-size: 4rem; font-family: 'Anton'; line-height: 1; }
.exp-warning { font-size: 0.8rem; color: #ffaa00; text-align: center; margin-bottom: 15px; }

.ledger-box { margin-top: 20px; max-height: 150px; overflow-y: auto; }
.ledger-box h4 { font-size: 0.9rem; opacity: 0.5; margin-bottom: 10px; }
#pxl-ledger { width: 100%; font-size: 0.85rem; border-collapse: collapse; }
#pxl-ledger td { padding: 5px 0; border-bottom: 1px solid #333; }
#pxl-ledger td:last-child { text-align: right; }

/* --- FOOTER --- */
footer { padding: 40px 0; text-align: center; background: var(--black); border-top: 1px solid #333; }
.socials { font-size: 2rem; margin-bottom: 20px; }
.socials a { margin: 0 10px; opacity: 0.7; transition: 0.3s; }
.socials a:hover { opacity: 1; color: var(--primary); }
.legal, .made-by { font-size: 0.8rem; opacity: 0.5; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    justify-content: center;
    margin: 18px 0 10px;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 800;
    opacity: 0.8;
}

.footer-links a:hover {
    color: #ffd400;
    opacity: 1;
}

.btn-disabled,
.btn[aria-disabled="true"] {
    opacity: 0.55;
    pointer-events: none;
    cursor: not-allowed;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .glitch-text { font-size: 3.5rem; }
    .nav-links { display: none; } /* Desktop links OFF en móvil */
    .nav-toggle { display: inline-flex; }
    .club-wrapper { flex-direction: column; }

    .nav-logo { height: 40px; }

    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .product-card, .quick-chip {
        transition: none !important;
    }
    .btn:hover {
        transform: none;
    }
}

/* --- BOTÓN VOLVER ARRIBA --- */
.btn-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    z-index: 9999;

    background: #ffd400;
    color: #111;

    display: flex;
    align-items: center;
    justify-content: center;

    box-shadow: 0 14px 35px rgba(0,0,0,0.35);

    opacity: 0;
    pointer-events: none;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-top i {
    font-size: 1.15rem;
}

.btn-top.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.btn-top:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.btn-top:active {
    transform: translateY(0) scale(0.98);
}

.btn-top:focus-visible {
    outline: 3px solid rgba(255, 212, 0, 0.35);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .btn-top {
        right: 14px;
        bottom: 14px;
        width: 52px;
        height: 52px;
    }
}

/* --- MODALES (cupón + tarjeta) --- */
.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.lp-modal.is-open {
    display: block;
}

.lp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(6px);
}

.lp-modal__dialog {
    position: relative;
    width: min(560px, calc(100% - 28px));
    margin: 70px auto 24px;
    background: rgba(17,17,17,0.98);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.55);
    padding: 18px 18px 16px;
}

.lp-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
}

.lp-modal__head {
    padding: 10px 6px 12px;
}

.lp-modal__kicker {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    color: #ffd400;
    opacity: 0.95;
    margin-bottom: 6px;
}

.lp-modal__title {
    font-family: 'Anton', sans-serif;
    letter-spacing: 1px;
    font-size: 2rem;
    line-height: 1.05;
    margin-bottom: 8px;
}

.lp-modal__desc {
    opacity: 0.85;
    font-weight: 600;
}

.lp-modal__qr {
    padding: 6px;
}

.lp-modal__qrBox {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 12px;
}

.lp-modal__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 6px 4px;
}

@media (max-width: 520px) {
    .lp-modal__actions {
        grid-template-columns: 1fr;
    }
}

.lp-modal-open {
    overflow: hidden;
}

/* --- QR cliente: fondo blanco --- */
#card-modal .lp-modal__qrBox {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
}

#card-modal #card-img {
    background: #ffffff;
}

/* --- QR cupón: fondo blanco --- */
#coupon-modal .lp-modal__qrBox {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.12);
}

#coupon-modal #coupon-qr-img {
    background: #ffffff;
}
