.admin-link {
    display: inline-block;
    margin-top: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .72rem;
    letter-spacing: .5px;
    text-decoration: underline;
    cursor: pointer;
    opacity: .55;
}

.admin-link:hover {
    opacity: 1;
    color: var(--gold);
}

:root {
    --bg: #170b08;
    --dark-card: #241209;
    --ember-glow: #4a1f0e;
    --gold: #ffb238;
    --text-light: #ffffff;
    --text-muted: #b39d8d;
    --border: rgba(255, 178, 56, 0.15);
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

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

body {
    font-family: 'Jost', sans-serif;
    background: var(--bg);
    color: var(--text-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── HERO ── */
.hero {
    position: relative;
    background: linear-gradient(rgba(23, 11, 8, 0.45), rgba(23, 11, 8, 0.95)),
        url('https://images.unsplash.com/photo-1513104890138-7c749659a591?q=80&w=1600&auto=format&fit=crop') center/cover;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 178, 56, .12) 0%, transparent 65%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    animation: orb-pulse 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes orb-pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: .7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.25);
        opacity: 1;
    }
}

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

.hero h1 {
    font-size: clamp(2.6rem, 9vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 0.95;
}

.hero p {
    font-size: clamp(1rem, 3vw, 1.3rem);
    margin-top: 10px;
    color: var(--gold);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .4s forwards;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    background: var(--gold);
    color: #000;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(255, 178, 56, .3);
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up .9s cubic-bezier(.22, 1, .36, 1) .6s forwards;
    transition: transform .2s, box-shadow .2s;
}

.btn:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(255, 178, 56, .5);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── DESTACADOS ── */
.destacados,
.menu {
    max-width: 1100px;
    margin: auto;
    padding: 40px 20px;
}

h2.section-title {
    font-family: 'Space Grotesk', sans-serif;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 1;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, var(--dark-card) 0%, #0d0603 100%);
    padding: 30px 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
    opacity: 1;
    transform: translateY(0);
    transition: opacity .55s ease, transform .55s ease, border-color .25s, box-shadow .25s;
}

.card:hover {
    border-color: var(--gold);
    box-shadow: 0 10px 30px rgba(255, 178, 56, .12);
    transform: translateY(-4px) !important;
}

.card .tag {
    color: var(--gold);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ── SELECTOR STICKY ── */
.floor-selector {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(23, 11, 8, .88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.floor-inner {
    max-width: 1100px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 26px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50px;
    background: rgba(255, 255, 255, .03);
    color: rgba(255, 255, 255, .6);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: .9rem;
    cursor: pointer;
    transition: all .3s ease;
}

.tab-btn.active {
    color: #000;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 4px 18px rgba(255, 178, 56, .35);
}

.tab-btn:hover:not(.active) {
    background: rgba(255, 178, 56, .08);
    color: rgba(255, 255, 255, .85);
}

.tab-btn:active {
    transform: scale(.96);
}

/* ── BUSCADOR ── */
.search {
    max-width: 600px;
    margin: 10px auto 35px;
}

.search input {
    width: 100%;
    padding: 16px 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-size: 1rem;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    transition: all .3s;
}

.search input::placeholder {
    color: var(--text-muted);
}

.search input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 3px rgba(255, 178, 56, .12);
}

/* ── FLOOR TAG ── */
.floor-tag {
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

/* ── CATEGORÍAS ── */
.category {
    background: rgba(255, 255, 255, .02);
    border: 1px solid rgba(255, 255, 255, .04);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity .5s ease, transform .5s ease;
}

.category h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 22px;
    border-left: 5px solid var(--gold);
    padding-left: 14px;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: 8px;
    vertical-align: middle;
}

.badge-especial {
    background: rgba(255, 178, 56, .15);
    color: var(--gold);
    border: 1px solid rgba(255, 178, 56, .35);
}

.item {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    border-radius: 8px;
    transition: background .18s;
}

.item:last-child {
    border-bottom: none;
}

.item:hover {
    background: rgba(255, 178, 56, .04);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.name {
    font-weight: 700;
    font-size: 1.28rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #fff;
}

.item:hover .name {
    color: var(--gold);
}

.price {
    color: var(--gold);
    font-weight: 700;
    font-size: 1.05rem;
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
}

.desc {
    font-size: 0.97rem;
    line-height: 1.45;
    color: #cbb7a6;
    margin-top: 6px;
}

.empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ── AGOTADO ── */
.item.agotado {
    opacity: .45;
}

.item.agotado .name {
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, .4);
}

.badge-agotado {
    background: rgba(255, 90, 90, .15);
    color: #ff9c9c;
    border: 1px solid rgba(255, 90, 90, .35);
}

.price-agotado {
    color: var(--text-muted);
    font-weight: 600;
    font-size: .85rem;
    font-family: 'Jost', sans-serif;
    font-style: italic;
}

/* ── MODO ADMINISTRADOR ── */
.admin-mode .item {
    cursor: pointer;
    outline: 1px dashed rgba(255, 178, 56, .35);
    outline-offset: 5px;
}

.admin-mode .item:hover {
    background: rgba(255, 178, 56, .1);
}

.admin-bar {
    position: sticky;
    top: 66px;
    z-index: 99;
    background: var(--gold);
    color: #1a0d05;
    text-align: center;
    padding: 10px 16px;
    font-size: .85rem;
    font-weight: 600;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.admin-bar.visible {
    display: flex;
}

.admin-bar button {
    background: #1a0d05;
    color: var(--gold);
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
}

.admin-link {
    display: inline-block;
    margin-top: 24px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: .72rem;
    letter-spacing: .5px;
    text-decoration: underline;
    cursor: pointer;
    opacity: .55;
}

.admin-link:hover {
    opacity: 1;
    color: var(--gold);
}

#menuContainer {
    transition: opacity .22s ease;
}

#menuContainer.switching {
    opacity: 0;
}

/* ── WHATSAPP ── */
.whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    background: #25D366;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
    transition: transform .2s, box-shadow .2s;
    animation: bounce-in .8s cubic-bezier(.34, 1.56, .64, 1) 1.2s both;
}

.whatsapp:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(37, 211, 102, .5);
}

@keyframes bounce-in {
    from {
        opacity: 0;
        transform: scale(.4) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ── BOTÓN FLOTANTE GOOGLE MAPS ── */
.maps-float {
    position: fixed;
    left: 20px;
    bottom: 20px;
    background: #4285F4;
    color: #fff;
    text-decoration: none;
    padding: 14px 22px;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    z-index: 200;
    box-shadow: 0 4px 20px rgba(66, 133, 244, .3);
    transition: transform .2s, box-shadow .2s;
    animation: bounce-in .8s cubic-bezier(.34, 1.56, .64, 1) 1.2s both;
}

.maps-float:hover {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(66, 133, 244, .5);
}

/* ── FOOTER ── */
footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 50px 20px 140px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

footer h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

footer p {
    color: var(--gold);
    font-size: .8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ── RESPONSIVO ── */
@media (max-width: 768px) {
    .maps-float {
        left: auto !important;
        right: 20px !important;
        bottom: 85px !important;
        background: #4285F4 !important;
    }

    .whatsapp {
        right: 20px !important;
        bottom: 20px !important;
    }

    .whatsapp,
    .maps-float {
        width: 52px !important;
        height: 52px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        font-size: 1.3rem !important;
    }

    .btn-text {
        display: none !important;
    }

    footer {
        padding-bottom: 140px !important;
    }
}

/* ══════════════════ CARRITO DE COMPRAS ══════════════════ */

.add-cart-btn {
    display: block;
    margin-top: 10px;
    background: none;
    border: 1px solid var(--gold);
    color: var(--gold);
    padding: 9px 18px;
    border-radius: 50px;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: .82rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.add-cart-btn:hover {
    background: var(--gold);
    color: #000;
}

/* ── overlay / modales ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(4px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 26px 22px;
    width: 100%;
    max-width: 420px;
    max-height: 88vh;
    overflow-y: auto;
}

.modal-box-lg {
    max-width: 480px;
}

.modal-box h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 18px;
    color: #fff;
}

.modal-box label {
    display: block;
    font-size: .78rem;
    color: var(--text-muted);
    margin: 14px 0 6px;
}

.modal-box input[type=text],
.modal-box input[type=tel],
.modal-box input[type=number],
.modal-box textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-family: 'Jost', sans-serif;
    font-size: .95rem;
}

.modal-box input:focus,
.modal-box textarea:focus {
    outline: none;
    border-color: var(--gold);
}

.modal-box textarea {
    min-height: 70px;
    resize: vertical;
}

/* ── selector de cantidad ── */
.qty-control {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}

.qty-control button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
}

.qty-control button:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.qty-control input {
    width: 60px;
    text-align: center;
    padding: 10px 8px;
}

/* ── selector de tamaño (Personal / Completa) ── */
.size-options {
    display: flex;
    gap: 10px;
}

.size-option {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 12px 10px;
    cursor: pointer;
    font-size: .85rem;
    color: #fff;
    text-align: center;
    margin: 0 !important;
    transition: border-color .2s, background .2s;
}

.size-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(255, 178, 56, .08);
}

.size-option input {
    accent-color: var(--gold);
}

.size-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--gold);
    font-size: .8rem;
}

/* ── acciones de los modales ── */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .85rem;
    cursor: pointer;
    border: none;
}

.btn-cancel {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15) !important;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, .1);
}

.btn-confirm {
    background: var(--gold);
    color: #000;
}

.btn-confirm:hover {
    box-shadow: 0 6px 20px rgba(255, 178, 56, .4);
}

/* ── resumen del carrito dentro del checkout ── */
.cart-summary {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 10px 14px;
    max-height: 180px;
    overflow-y: auto;
}

.cart-summary-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.cart-summary-item:last-child {
    border-bottom: none;
}

.cart-summary-item-top {
    display: flex;
    justify-content: space-between;
    font-size: .9rem;
    color: #fff;
}

.cart-summary-obs {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 3px;
}

.cart-remove-btn {
    margin-top: 6px;
    background: none;
    border: none;
    color: #ff9c9c;
    font-size: .72rem;
    text-decoration: underline;
    cursor: pointer;
    padding: 0;
}

.cart-summary-total {
    text-align: right;
    font-weight: 700;
    color: var(--gold);
    font-family: 'Space Grotesk', sans-serif;
    margin-top: 10px;
    font-size: 1.05rem;
}

/* ── opciones de entrega (radio) ── */
.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.delivery-option {
    display: flex !important;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    padding: 12px 14px;
    cursor: pointer;
    font-size: .88rem;
    color: #fff;
    margin: 0 !important;
}

.delivery-option:has(input:checked) {
    border-color: var(--gold);
    background: rgba(255, 178, 56, .08);
}

.delivery-option input {
    accent-color: var(--gold);
}

/* ── botón flotante "Finalizar compra" ── */
.floating-cart-btn {
    display: none;
    align-items: center;
    gap: 8px;
    position: fixed;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    background: var(--gold);
    color: #000;
    border: none;
    padding: 14px 26px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .88rem;
    letter-spacing: .3px;
    cursor: pointer;
    z-index: 250;
    box-shadow: 0 6px 24px rgba(255, 178, 56, .4);
    white-space: nowrap;
}

.floating-cart-btn:hover {
    transform: translateX(-50%) scale(1.04);
}

@media (max-width: 768px) {
    .floating-cart-btn {
        bottom: 85px;
        max-width: calc(100vw - 40px);
        font-size: .8rem;
        padding: 12px 20px;
    }
}