/* ===================================================
   GOZZO RIVAS GOURMET — Main Stylesheet
   Dark premium theme | Mobile-first responsive
   CeraPRO font integrated
   =================================================== */

/* ── Reset & Base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'CeraPRO', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background: #000;
    color: #ededed;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color .3s;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'CeraPRO', 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.2;
}

/* ── CSS Variables ── */
:root {
    --red: #CD1719;
    --red-dark: #a81214;
    --red-light: #e63b3d;
    --black: #000;
    --dark: #0e0e0e;
    --dark-card: #141414;
    --dark-card-hover: #1a1a1a;
    --gray: #888;
    --light: #ededed;
    --white: #fff;
    --font-heading: 'CeraPRO', 'Playfair Display', Georgia, serif;
    --font-body: 'CeraPRO', 'Roboto', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .5);
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --max-width: 1200px;
    --navbar-h: 70px;
}

/* ── Utility ── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: var(--red);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(205, 23, 25, .35);
}

.btn-primary:hover {
    background: var(--red-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(205, 23, 25, .5);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--black);
}

.btn-sm {
    padding: 10px 20px;
    font-size: .8rem;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s, transform .8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    height: var(--navbar-h);
    transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, .95);
    box-shadow: 0 2px 30px rgba(0, 0, 0, .5);
}

.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-logo img {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 28px;
    padding: 4px 0;
    z-index: 1001;
}

.navbar-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70vw;
    max-width: 320px;
    height: 100vh;
    background: rgba(10, 10, 10, .98);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    transition: right .4s cubic-bezier(.77, 0, .18, 1);
    z-index: 1000;
}

.navbar-menu.open {
    right: 0;
}

.navbar-menu li a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
    padding: 4px 0;
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red);
    transition: width .3s;
}

.navbar-menu li a:hover::after,
.navbar-menu li a.active::after {
    width: 100%;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    z-index: 999;
}

.nav-overlay.show {
    display: block;
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }

    .navbar-menu {
        position: static;
        width: auto;
        max-width: none;
        height: auto;
        background: none;
        backdrop-filter: none;
        flex-direction: row;
        gap: 36px;
    }

    .navbar-menu li a {
        font-size: 1rem;
    }

    .nav-overlay {
        display: none !important;
    }
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .6) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    max-width: 700px;
}

.hero-logo {
    width: 200px;
    margin: 0 auto 24px;
    filter: brightness(0) invert(1);
}

@media (min-width:768px) {
    .hero-logo {
        width: 280px;
    }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, .85);
    margin-bottom: 36px;
    font-style: italic;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero bottom links strip */
.hero-links {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
}

.hero-link {
    flex: 1;
    max-width: 220px;
    padding: 18px 12px;
    text-align: center;
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border-right: 1px solid rgba(255, 255, 255, .08);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.hero-link:last-child {
    border-right: none;
}

.hero-link:hover {
    background: var(--red);
}

.hero-link svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════ */
.about {
    background: var(--dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    color: var(--light);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--white);
}

.about-text p em {
    color: var(--red);
    font-style: italic;
}

.about-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.about-images img {
    border-radius: var(--radius);
    object-fit: cover;
    aspect-ratio: 3/4;
    width: 100%;
    transition: transform .5s;
}

.about-images img:hover {
    transform: scale(1.03);
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
}

/* ══════════════════════════════════════════════════
   RESTAURANT GALLERY STRIP
   ══════════════════════════════════════════════════ */
.gallery-strip {
    padding: 60px 0;
    overflow: hidden;
    background: var(--black);
}

.gallery-strip-inner {
    display: flex;
    gap: 12px;
    animation: scrollStrip 30s linear infinite;
}

.gallery-strip-inner img {
    height: 280px;
    width: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scrollStrip {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ══════════════════════════════════════════════════
   EVENTS SECTION
   ══════════════════════════════════════════════════ */
.events {
    background: var(--dark);
}

.events-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.event-card {
    background: var(--dark-card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, .06);
}

.event-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--red);
}

.event-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.event-card-body {
    padding: 24px;
}

.event-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--red);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.event-card-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: var(--white);
}

.event-card-desc {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ══════════════════════════════════════════════════
   RESERVATION FORM SECTION
   ══════════════════════════════════════════════════ */
.reservation {
    background: linear-gradient(135deg, var(--dark) 0%, #1a0a0a 100%);
    position: relative;
    overflow: hidden;
}

.reservation::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(205, 23, 25, .12) 0%, transparent 70%);
    border-radius: 50%;
}

.reservation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
}

.reservation-info h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    margin-bottom: 16px;
}

.reservation-info p {
    color: var(--gray);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.reservation-form {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 36px 28px;
    border: 1px solid rgba(255, 255, 255, .08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    font-size: .85rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color .3s;
    color-scheme: dark;
}

.form-group select option {
    background: #1a1a1a;
    color: #fff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(205, 23, 25, .15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (min-width: 768px) {
    .reservation-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════
   LOCATION / MAP
   ══════════════════════════════════════════════════ */
.location {
    background: var(--black);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--dark-card);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info h3 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 16px;
}

.location-info p {
    color: var(--gray);
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.location-info .icon-text {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.location-info .icon-text svg {
    flex-shrink: 0;
    color: var(--red);
    margin-top: 3px;
}

.location-social {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.location-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.location-social a:hover {
    background: var(--red);
    border-color: var(--red);
    transform: scale(1.1);
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 60px 0 0;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 36px;
}

.footer-logo img {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--gray);
    font-style: italic;
}

.footer-col h4 {
    color: var(--red);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: var(--font-body);
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--gray);
    transition: color .3s;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.footer-col p {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: var(--gray);
    font-size: .8rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════
   WHATSAPP FLOAT — Red/Black theme
   ══════════════════════════════════════════════════ */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(205, 23, 25, .4);
    transition: var(--transition);
    animation: waFloat 3s ease-in-out infinite;
    border: 2px solid rgba(0, 0, 0, .3);
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(205, 23, 25, .6);
    background: var(--red-dark);
}

.whatsapp-float svg {
    width: 28px;
    height: 28px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--dark-card);
    color: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .4);
    border: 1px solid rgba(255, 255, 255, .08);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

@keyframes waFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

/* Hide WhatsApp + footer on carta page */
body.is-carta .whatsapp-float,
body.is-carta .footer {
    display: none;
}

/* ══════════════════════════════════════════════════
   CARTA (MENU) PAGE — Full-screen image carousel
   ══════════════════════════════════════════════════ */
.carta-page {
    padding-top: var(--navbar-h);
    background: var(--black);
    overflow-x: hidden;
}

/* ── View bar + allergen toggle ── */
.carta-view-bar {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    z-index: 800;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.allergen-toggle-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .15);
    color: var(--gray);
    font-size: .75rem;
    font-weight: 600;
    transition: var(--transition);
}

.allergen-toggle-btn svg {
    width: 14px;
    height: 14px;
}

.allergen-toggle-btn:hover {
    color: var(--white);
    border-color: var(--white);
}

.allergen-toggle-btn.has-filters {
    border-color: var(--red);
    color: var(--red);
    background: rgba(205, 23, 25, .15);
}

.view-toggle {
    display: flex;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.view-toggle-btn {
    padding: 6px 12px;
    color: var(--gray);
    font-size: .75rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.view-toggle-btn.active {
    background: var(--red);
    color: var(--white);
}

.view-toggle-btn svg {
    width: 14px;
    height: 14px;
}

/* ── Allergen filter panel ── */
.allergen-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.allergen-panel.open {
    opacity: 1;
    pointer-events: auto;
}

.allergen-panel-inner {
    background: var(--dark-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    max-width: 480px;
    width: 92%;
    border: 1px solid rgba(255, 255, 255, .08);
    max-height: 85vh;
    overflow-y: auto;
}

.allergen-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.allergen-panel-header h3 {
    font-size: 1.2rem;
    color: var(--white);
}

.allergen-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.allergen-panel-close:hover {
    background: var(--red);
}

.allergen-panel-desc {
    color: var(--gray);
    font-size: .85rem;
    margin-bottom: 18px;
    line-height: 1.5;
}

.allergen-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.allergen-chip {
    cursor: pointer;
    display: block;
}

.allergen-chip input {
    display: none;
}

.allergen-chip-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    border: 2px solid rgba(255, 255, 255, .1);
    color: var(--light);
    font-size: .8rem;
    transition: var(--transition);
}

.allergen-chip-dot {
    display: none;
}

.allergen-chip-inner img {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--allergen-color, #666);
    padding: 2px;
    filter: invert(1);
}

.allergen-chip input:checked+.allergen-chip-inner {
    background: color-mix(in srgb, var(--allergen-color, #CD1719) 15%, transparent);
    border-color: var(--allergen-color, var(--red));
    color: var(--white);
    box-shadow: 0 0 12px color-mix(in srgb, var(--allergen-color, #CD1719) 30%, transparent);
}

.allergen-chip:hover .allergen-chip-inner {
    border-color: var(--allergen-color, rgba(255, 255, 255, .3));
    background: color-mix(in srgb, var(--allergen-color, #fff) 8%, transparent);
}

.allergen-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.allergen-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin: 16px 0;
}

.btn-show-allergens {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    color: var(--gray);
    font-size: .82rem;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.btn-show-allergens:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
}

.btn-show-allergens.active {
    background: rgba(205, 23, 25, .15);
    border-color: var(--red);
    color: var(--red);
}

.btn-show-allergens svg {
    flex-shrink: 0;
}

/* Hide allergen icons on products when toggled off */
body.hide-product-allergens .slide-item-allergens,
body.hide-product-allergens .carta-item-allergens {
    display: none;
}

/* ── Category nav (always visible, scrollable, outside carousel) ── */
.carousel-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 810;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, .94);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    scrollbar-width: none;
    gap: 0;
    padding: 6px 0 env(safe-area-inset-bottom, 0);
}

.carousel-nav::-webkit-scrollbar {
    display: none;
}

body.list-mode .carousel-nav {
    display: none;
}

/* Nav bar nudge animation on load */
@keyframes navNudge {
    0%   { transform: translateX(0); }
    20%  { transform: translateX(-20px); }
    40%  { transform: translateX(14px); }
    60%  { transform: translateX(-8px); }
    80%  { transform: translateX(4px); }
    100% { transform: translateX(0); }
}
.carousel-nav.nudge {
    animation: navNudge .8s ease-in-out;
}

.carousel-dot {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 8px 6px 4px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border-top: 2px solid transparent;
    transition: var(--transition);
}

.carousel-dot-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dot-icon svg,
.carousel-dot-icon img {
    width: 28px;
    height: 28px;
    transition: filter .3s, opacity .3s;
    filter: invert(1) brightness(.5);
    opacity: .55;
}

.carousel-dot-label {
    font-size: .5rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--gray);
    white-space: nowrap;
    transition: color .3s;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.carousel-dot.active {
    border-top-color: var(--red);
}

.carousel-dot.active .carousel-dot-icon svg,
.carousel-dot.active .carousel-dot-icon img {
    filter: invert(1) brightness(1) sepia(1) hue-rotate(330deg) saturate(5);
    opacity: 1;
}

.carousel-dot.active .carousel-dot-label {
    color: var(--white);
}

.carousel-dot:hover .carousel-dot-label {
    color: var(--white);
}

.carta-carousel {
    position: fixed;
    top: 42px;
    bottom: 72px;
    left: 0;
    right: 0;
    overflow: hidden;
}

.carousel-track {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.carousel-track img {
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.slide-scroll {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
}

.slide-scroll::-webkit-scrollbar {
    display: none;
}

/* ── Slide item: Flexbox layout — image fills, content at bottom ── */
.slide-item {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.slide-item-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.slide-item-gradient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Category badge (first item of each section) */
.slide-category-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
    color: var(--white);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.slide-category-badge svg,
.slide-category-badge img {
    width: 18px;
    height: 18px;
    filter: invert(1) brightness(1) sepia(1) hue-rotate(330deg) saturate(5);
}

/* Overlay text at bottom — split into scrollable desc + fixed price */
.slide-item-overlay {
    position: relative;
    z-index: 2;
    padding: 10px 16px 8px;
    flex-shrink: 0;
    max-height: 45%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.slide-item-name {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: var(--white);
    margin-bottom: 3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .5);
    flex-shrink: 0;
}

.slide-item-desc {
    color: rgba(255, 255, 255, .75);
    font-size: .75rem;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    overflow-y: auto;
    flex-shrink: 1;
    min-height: 0;
    scrollbar-width: none;
}

.slide-item-desc::-webkit-scrollbar {
    display: none;
}

.slide-item-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding-top: 4px;
}

.slide-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--red);
    font-size: 1.4rem;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
}

.price-alt {
    color: rgba(255, 255, 255, .55);
    font-size: .82rem;
    font-weight: 400;
}

.price-size {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(205, 23, 25, .3);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 1rem;
}

.price-label {
    font-size: .65rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Multi-price options (PMT, sizes, etc.) ── */
.price-options-row {
    display: flex;
    gap: 6px;
    align-items: stretch;
}
.price-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    min-width: 0;
}
.price-opt-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}
.price-opt-letter {
    font-size: .85rem;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.price-opt-name {
    font-size: .45rem;
    font-weight: 500;
    color: rgba(255,255,255,.5);
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    line-height: 1;
}
.price-opt-weight {
    opacity: .7;
}
.price-opt-val {
    font-family: var(--font-heading);
    font-size: .85rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.4);
}

/* In list view, slightly smaller */
.list-price-opts {
    gap: 4px;
}
.list-price-opts .price-opt-letter {
    font-size: .7rem;
}
.list-price-opts .price-opt-name {
    font-size: .4rem;
}
.list-price-opts .price-opt-val {
    font-size: .72rem;
}

/* Allergen icons per product (slide view) */
.slide-item-allergens {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}

.allergen-icon-wrap {
    display: flex;
    align-items: center;
}

.allergen-icon-wrap img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    padding: 2px;
    filter: invert(1);
}

/* Distinctive background colors for each allergen */
.allergen-icon-wrap[data-allergen="gluten"] img {
    background: #d97706;
}

.allergen-icon-wrap[data-allergen="milk"] img {
    background: #2563eb;
}

.allergen-icon-wrap[data-allergen="eggs"] img {
    background: #f59e0b;
}

.allergen-icon-wrap[data-allergen="nuts"] img {
    background: #92400e;
}

.allergen-icon-wrap[data-allergen="soy"] img,
.allergen-icon-wrap[data-allergen="soya"] img {
    background: #65a30d;
}

.allergen-icon-wrap[data-allergen="fish"] img {
    background: #0891b2;
}

.allergen-icon-wrap[data-allergen="crustaceans"] img {
    background: #dc2626;
}

.allergen-icon-wrap[data-allergen="celery"] img {
    background: #16a34a;
}

.allergen-icon-wrap[data-allergen="mustard"] img {
    background: #ca8a04;
}

.allergen-icon-wrap[data-allergen="sesame"] img {
    background: #78716c;
}

.allergen-icon-wrap[data-allergen="sulphites"] img {
    background: #7c3aed;
}

.allergen-icon-wrap[data-allergen="molluscs"] img {
    background: #0d9488;
}

.allergen-icon-wrap[data-allergen="peanuts"] img {
    background: #b45309;
}

.allergen-icon-wrap[data-allergen="lupin"] img {
    background: #6d28d9;
}

.no-allergens {
    font-size: .7rem;
    color: rgba(255, 255, 255, .4);
    font-style: italic;
}

.adaptable-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 180, 0, .85);
    color: #000;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.slide-spacer {
    height: 0;
}

/* ── Slide end-of-category notice ── */
.slide-end-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 140px;
    padding: 32px 24px;
    text-align: center;
    color: rgba(255,255,255,.4);
    font-size: .8rem;
    font-family: var(--font-body);
    opacity: 0;
    transition: opacity .3s ease;
}
.slide-end-notice .slide-end-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
    font-size: 1rem;
    color: var(--gold);
}
.slide-end-notice .slide-end-hint {
    font-size: .7rem;
    opacity: .6;
    margin-top: 4px;
}

/* ── Allergen empty category notice ── */
.allergen-empty-notice {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 24px;
    text-align: center;
    color: rgba(255,255,255,.45);
    font-size: .85rem;
    font-family: var(--font-body);
}
.allergen-empty-notice svg {
    opacity: .4;
    color: var(--gold);
}
.allergen-empty-notice.book-empty-notice {
    min-height: 60vh;
}

/* ── Scroll hint overlay ── */
.scroll-hint-overlay {
    position: absolute;
    inset: 0;
    z-index: 15;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(4px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.scroll-hint-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}
.scroll-hint-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.scroll-hint-arrows {
    position: relative;
    width: 160px;
    height: 160px;
}
.scroll-hint-arrow {
    position: absolute;
    width: 36px; height: 36px;
    color: var(--white);
    opacity: 0;
}
.scroll-hint-arrow svg {
    width: 100%; height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.scroll-hint-left  { left: 0;   top: 50%; transform: translateY(-50%); }
.scroll-hint-right { right: 0;  top: 50%; transform: translateY(-50%); }
.scroll-hint-up    { top: 0;    left: 50%; transform: translateX(-50%); }
.scroll-hint-down  { bottom: 0; left: 50%; transform: translateX(-50%); }

/* Animaciones de flechas */
@keyframes hintArrowLeft {
    0%,100% { opacity: 0; transform: translateY(-50%) translateX(0); }
    20%,80% { opacity: 1; }
    50% { transform: translateY(-50%) translateX(-12px); }
}
@keyframes hintArrowRight {
    0%,100% { opacity: 0; transform: translateY(-50%) translateX(0); }
    20%,80% { opacity: 1; }
    50% { transform: translateY(-50%) translateX(12px); }
}
@keyframes hintArrowUp {
    0%,100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    20%,80% { opacity: 1; }
    50% { transform: translateX(-50%) translateY(-12px); }
}
@keyframes hintArrowDown {
    0%,100% { opacity: 0; transform: translateX(-50%) translateY(0); }
    20%,80% { opacity: 1; }
    50% { transform: translateX(-50%) translateY(12px); }
}
.scroll-hint-overlay.visible .scroll-hint-left  { animation: hintArrowLeft  1.4s ease-in-out infinite; }
.scroll-hint-overlay.visible .scroll-hint-right  { animation: hintArrowRight 1.4s ease-in-out infinite; }
.scroll-hint-overlay.visible .scroll-hint-up     { animation: hintArrowUp    1.4s ease-in-out infinite .15s; }
.scroll-hint-overlay.visible .scroll-hint-down   { animation: hintArrowDown  1.4s ease-in-out infinite .15s; }

.scroll-hint-labels {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
    color: rgba(255,255,255,.85);
    font-size: .75rem;
    font-family: var(--font-body);
    text-shadow: 0 1px 6px rgba(0,0,0,.6);
}
.scroll-hint-label-v { opacity: .7; font-size: .7rem; }

.scroll-hint-list-btn {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 999px;
    color: var(--white);
    font-size: .75rem;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background .2s;
    backdrop-filter: blur(8px);
}
.scroll-hint-list-btn:hover {
    background: rgba(255,255,255,.22);
}

/* ── Nudge animation: physical preview of scroll/swipe ── */
@keyframes nudgeDown {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-40px);
    }

    60% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes nudgeLeft {
    0% {
        transform: translateX(0);
    }

    30% {
        transform: translateX(-60px);
    }

    60% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(0);
    }
}

/* Applied by JS on initial load */
.nudge-vertical .slide-scroll {
    animation: nudgeDown 1.2s ease-in-out;
}

.nudge-horizontal .carousel-track {
    animation: nudgeLeft 1.2s ease-in-out 0.3s;
}

/* ── Allergen Tooltip ── */
.allergen-tooltip {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, .88);
    backdrop-filter: blur(8px);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: .7rem;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    animation: tooltipFadeIn .2s ease-out;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.allergen-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, .88);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Make allergen-icon-wrap position relative for tooltip */
.allergen-icon-wrap {
    position: relative;
    cursor: pointer;
}

/* Allergen filter states */
.slide-item.allergen-hidden {
    display: none;
}

.slide-item.allergen-adaptable {
    position: relative;
}

.slide-item.allergen-adaptable::after {
    content: '\26A0\FE0F Se puede adaptar';
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    background: rgba(255, 180, 0, .9);
    color: #000;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .slide-item-overlay {
        padding: 28px 32px 32px;
    }

    .slide-item-name {
        font-size: clamp(1.5rem, 3vw, 2rem);
    }

    .slide-item-desc {
        font-size: .9rem;
    }
}

/* ── Swipe hint ── */
.swipe-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 820;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, .7);
    color: rgba(255, 255, 255, .75);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
    transition: opacity .4s;
    animation: hintPulse 2s ease-in-out infinite;
}

.swipe-hint svg {
    opacity: .5;
}

@keyframes hintPulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

/* ═══════════════════════════════════════════════
   LIST VIEW
   ═══════════════════════════════════════════════ */
.carta-list {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 46px 20px 100px;
}

.carta-list.active {
    display: block;
}

.carta-section {
    margin-bottom: 28px;
}

.carta-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    margin-bottom: 10px;
}

.carta-section-icon svg,
.carta-section-icon img {
    width: 24px;
    height: 24px;
    filter: invert(1) brightness(1) sepia(1) hue-rotate(330deg) saturate(5);
}

.carta-section-title {
    font-size: 1.1rem;
    color: var(--red);
    letter-spacing: 1px;
}

.carta-section-subtitle {
    color: var(--gray);
    font-size: .78rem;
    margin-top: 2px;
    font-style: italic;
}

.carta-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    gap: 10px;
    transition: background .3s;
}

.carta-item:hover {
    background: rgba(255, 255, 255, .02);
}

.carta-item.allergen-hidden {
    display: none;
}

.carta-item.allergen-adaptable {
    border-left: 3px solid #ffb400;
    padding-left: 10px;
    position: relative;
}

/* Clickable thumbnail with zoom icon */
.carta-item-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.carta-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.carta-item-thumb:hover img {
    transform: scale(1.1);
}

.thumb-zoom-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .4);
    opacity: 0;
    transition: opacity .3s;
}

.thumb-zoom-icon svg {
    width: 18px;
    height: 18px;
    color: var(--white);
}

.carta-item-thumb:hover .thumb-zoom-icon {
    opacity: 1;
}

.name-col {
    flex: 1;
    min-width: 0;
}

.carta-item .name {
    font-weight: 500;
    color: var(--white);
    font-size: .9rem;
    display: block;
}

.carta-item-desc {
    color: var(--gray);
    font-size: .75rem;
    margin-top: 1px;
    display: block;
    white-space: normal;
    line-height: 1.3;
}

/* Allergen icons in list view */
.carta-item-allergens {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.carta-item-allergens .allergen-icon-wrap img {
    width: 16px;
    height: 16px;
}

.carta-item-allergens .adaptable-badge {
    font-size: .55rem;
    padding: 1px 6px;
}

.carta-item-allergens .no-allergens {
    font-size: .65rem;
}

.carta-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--red);
    font-size: .95rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.carta-item-price-alt {
    color: var(--gray);
    font-size: .75rem;
    margin-left: 4px;
}

/* ══════════════════════════════════════════════════
   GALLERY PAGE
   ══════════════════════════════════════════════════ */
.galeria-page {
    padding-top: var(--navbar-h);
}

.galeria-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 8px;
}

.galeria-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform .4s, filter .4s;
    background: var(--dark-card);
}

.galeria-grid img:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

@media (min-width: 480px) {
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding: 30px 16px;
    }
}

@media (min-width: 768px) {
    .galeria-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        padding: 40px 20px;
    }
    .galeria-grid img { border-radius: var(--radius-sm); }
}

@media (min-width: 1024px) {
    .galeria-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, .85);
    align-items: center;
    justify-content: center;
    padding: 24px;
    cursor: pointer;
}

.lightbox.open {
    display: flex;
    animation: lightboxFadeIn .25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-frame {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.15);
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    cursor: default;
    animation: lightboxZoomIn .3s ease;
}

@keyframes lightboxZoomIn {
    from { transform: scale(.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-frame img {
    display: block;
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,.2);
    z-index: 2;
}

.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
}

/* ══════════════════════════════════════════════════
   DELIVERY PAGE
   ══════════════════════════════════════════════════ */
.delivery-page {
    padding-top: var(--navbar-h);
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.delivery-content h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    margin-bottom: 16px;
}

.delivery-content p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ══════════════════════════════════════════════════
   CONTACTO PAGE
   ══════════════════════════════════════════════════ */
.contacto-page {
    padding-top: var(--navbar-h);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 60px 20px;
}

.contacto-info h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--white);
    margin-bottom: 24px;
}

.contacto-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contacto-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(205, 23, 25, .15);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item h3 {
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.contacto-item p {
    color: var(--gray);
    font-size: .95rem;
}

.contacto-map {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--dark-card);
}

.contacto-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════
   PAGE HEADER (shared inner pages)
   ══════════════════════════════════════════════════ */
.page-header {
    padding: 100px 0 40px;
    text-align: center;
    background: linear-gradient(to bottom, var(--dark) 0%, var(--black) 100%);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--white);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--gray);
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--red);
}

/* ══════════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════════ */
::selection {
    background: var(--red);
    color: var(--white);
}

/* ══════════════════════════════════════════════════
   CARTA — PHONE SIMULATION ON DESKTOP
   ══════════════════════════════════════════════════ */
@media (min-width: 768px) {
    body.is-carta {
        background: #0a0a0a;
    }

    body.is-carta .carta-page {
        max-width: 430px;
        margin: 0 auto;
        position: relative;
        border-left: 1px solid rgba(255, 255, 255, .06);
        border-right: 1px solid rgba(255, 255, 255, .06);
        box-shadow: 0 0 80px rgba(0, 0, 0, .8), 0 0 30px rgba(205, 23, 25, .08);
        min-height: 100vh;
    }

    body.is-carta .carta-view-bar {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    body.is-carta .carta-carousel {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
    }

    body.is-carta .carousel-nav {
        max-width: 430px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }

    body.is-carta .carta-list {
        max-width: 430px;
    }

    body.is-carta .allergen-panel-inner {
        max-width: 430px;
    }

    /* Phone frame notch (decorative) */
    body.is-carta::before {
        content: '';
        position: fixed;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 430px;
        height: 100vh;
        border-left: 1px solid rgba(255, 255, 255, .04);
        border-right: 1px solid rgba(255, 255, 255, .04);
        pointer-events: none;
        z-index: 2000;
    }
}

@media (min-width: 1024px) {
    body.is-carta .carta-page {
        border-radius: 24px 24px 0 0;
        margin-top: 0;
        overflow: hidden;
    }

    body.is-carta .carta-carousel {
        border-radius: 0;
    }
}

/* ══════════════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════════════ */
.legal-page {
    padding-top: calc(var(--navbar-h) + 40px);
    padding-bottom: 80px;
    min-height: 80vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-container h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    color: var(--white);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--gray);
    font-size: .85rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.legal-container h2 {
    font-size: 1.2rem;
    color: var(--red);
    margin: 32px 0 12px;
    font-family: var(--font-body);
}

.legal-container h3 {
    font-size: 1rem;
    color: var(--light);
    margin: 20px 0 8px;
    font-family: var(--font-body);
}

.legal-container p {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-container ul {
    color: var(--gray);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 20px;
    list-style: disc;
}

.legal-container li {
    margin-bottom: 6px;
}

.legal-container a {
    color: var(--red);
    text-decoration: underline;
}

.legal-container a:hover {
    color: var(--red-light);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: .85rem;
}

.legal-table th,
.legal-table td {
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    text-align: left;
}

.legal-table th {
    background: rgba(205, 23, 25, .1);
    color: var(--white);
    font-weight: 600;
}

.legal-table td {
    color: var(--gray);
}

/* ══════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(14, 14, 14, .97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 16px 20px;
}

.cookie-banner-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    color: var(--gray);
    font-size: .82rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-banner-inner a {
    color: var(--red);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* ══════════════════════════════════════════════════
   FOOTER LEGAL LINKS
   ══════════════════════════════════════════════════ */
.footer-bottom {
    text-align: center;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.footer-legal a {
    color: var(--gray);
    font-size: .78rem;
    transition: color .3s;
}

.footer-legal a:hover {
    color: var(--red);
}

/* ══════════════════════════════════════════════════
   LEAFLET MAP OVERRIDES
   ══════════════════════════════════════════════════ */
.gozzo-marker {
    background: transparent !important;
    border: none !important;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
}

.leaflet-container {
    background: #1a1a1a !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(14, 14, 14, .95) !important;
    color: var(--light) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .5) !important;
}

.leaflet-popup-tip {
    background: rgba(14, 14, 14, .95) !important;
}

.leaflet-popup-content {
    font-size: .85rem !important;
    line-height: 1.5 !important;
    color: var(--light) !important;
}

.leaflet-control-zoom a {
    background: rgba(14, 14, 14, .9) !important;
    color: var(--light) !important;
    border-color: rgba(255, 255, 255, .1) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--red) !important;
    color: #fff !important;
}

.leaflet-control-attribution {
    background: rgba(0, 0, 0, .6) !important;
    color: rgba(255, 255, 255, .4) !important;
    font-size: .6rem !important;
}

.leaflet-control-attribution a {
    color: rgba(255, 255, 255, .5) !important;
}

.leaflet-bottom .leaflet-control {
   display: none !important;
}