/* ===================================================
   OLOR A DULCE 2.0 — Main Stylesheet
   Warm light 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: var(--font-body);
    background: #d4b9c4;
    color: #333333;
    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: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* ── CSS Variables ── */
:root {
    --accent: #03a9b9;
    --accent-dark: #028a9a;
    --accent-light: #04bdd0;
    --bg-primary: #d4b9c4;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-dark: #c0a0b0;
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: #999999;
    --white: #fff;
    --black: #333;
    --red: #d43f52;
    /* Keep var name for compatibility but point to coral */
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .3s cubic-bezier(.4, 0, .2, 1);
    --max-width: 1200px;
    --navbar-h: 64px;
    --shadow: 0 10px 40px rgba(0, 0, 0, .08);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .06);
    --font-heading: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --font-body: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --font-carta: Arial, 'Helvetica Neue', Helvetica, sans-serif;
}

/* ── 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(--accent);
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    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(--accent);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(3, 169, 185, .3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(3, 169, 185, .45);
}

.btn-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--white);
}

.btn:disabled,
.btn[aria-disabled="true"] {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 6px 14px;
    font-size: .78rem;
    display: flex;
    justify-content: center;
}

/* 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(212, 185, 196, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
    height: var(--navbar-h);
    transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
    background: rgba(212, 185, 196, .98);
    box-shadow: 0 2px 30px rgba(0, 0, 0, .1);
}

.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;
}

.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(--text-primary);
    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(240, 225, 232, .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;
    color: var(--text-primary);
}

.navbar-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    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, .3);
    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;
        color: var(--text-primary);
    }

    .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(212, 185, 196, .3) 0%, rgba(212, 185, 196, .15) 40%, rgba(212, 185, 196, .4) 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;
}

@media (min-width:768px) {
    .hero-logo {
        width: 280px;
    }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--text-primary);
    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(3, 169, 185, .85);
    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, .15);
    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(--accent-dark);
}

.hero-link svg {
    width: 14px;
    height: 14px;
}

/* ══════════════════════════════════════════════════
   ABOUT SECTION
   ══════════════════════════════════════════════════ */
.about {
    background: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 1.05rem;
}

.about-text p strong {
    color: var(--text-primary);
}

.about-text p em {
    color: var(--accent);
    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(--bg-primary);
}

.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(--bg-dark);
}

/* ══════════════════════════════════════════════════
   LOCATION / MAP
   ══════════════════════════════════════════════════ */
.location {
    background: var(--bg-dark);
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-card);
}

.location-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.location-info h3 {
    font-size: 1.6rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.location-info p {
    color: var(--text-secondary);
    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(--accent);
    margin-top: 3px;
}

@media (min-width: 768px) {
    .location-grid {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
.footer {
    background: #c0a0b0;
    border-top: 1px solid rgba(0, 0, 0, .08);
    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;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-style: italic;
}

.footer-col h4 {
    color: var(--accent);
    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(--text-secondary);
    transition: color .3s;
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: .8rem;
}

@media (min-width: 768px) {
    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

/* Hide footer on carta page */
body.is-carta .footer {
    display: none;
}

/* Navbar page title (shown on carta) */
.navbar-page-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .5px;
    text-transform: uppercase;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .navbar-page-title {
        display: none;
    }
}

/* ══════════════════════════════════════════════════
   CARTA (MENU) PAGE
   ══════════════════════════════════════════════════ */
.carta-page {
    background: var(--bg-primary);
    overflow-x: visible;
    padding-top: 0;
    font-family: var(--font-carta);
}

/* ── Bar action buttons (Alergenos / Filtrar) ── */
.carta-bar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.carta-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, .12);
    color: var(--text-secondary);
    background: var(--bg-card);
    font-size: .72rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.carta-bar-btn svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.carta-bar-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.carta-bar-btn.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.carta-bar-btn.has-filters {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(3, 169, 185, .08);
}

/* ── Allergen filter panel ── */
.allergen-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .4);
    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(--bg-card);
    border-radius: var(--radius);
    padding: 28px 24px;
    max-width: 480px;
    width: 92%;
    border: 1px solid rgba(0, 0, 0, .08);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.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(--text-primary);
}

.allergen-panel-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .06);
    color: var(--text-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.allergen-panel-close:hover {
    background: var(--accent);
    color: var(--white);
}

.allergen-panel-desc {
    color: var(--text-secondary);
    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(0, 0, 0, .02);
    border: 2px solid rgba(0, 0, 0, .1);
    color: var(--text-primary);
    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;
}

.allergen-chip input:checked+.allergen-chip-inner {
    background: color-mix(in srgb, var(--allergen-color, #03a9b9) 15%, transparent);
    border-color: var(--allergen-color, var(--accent));
    color: var(--text-primary);
    box-shadow: 0 0 12px color-mix(in srgb, var(--allergen-color, #03a9b9) 30%, transparent);
}

.allergen-chip:hover .allergen-chip-inner {
    border-color: var(--allergen-color, rgba(0, 0, 0, .25));
    background: color-mix(in srgb, var(--allergen-color, #03a9b9) 8%, transparent);
}

.allergen-actions {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.allergen-actions-top {
    margin-bottom: 16px;
}

.allergen-actions-top .btn {
    flex: 1;
    justify-content: center;
}

.allergen-actions-bottom {
    margin-top: 16px;
}

.allergen-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, .08);
    margin: 16px 0;
}

/* Allergens hidden by default, shown when filters applied */
body.hide-product-allergens .carta-item-allergens,
body.hide-product-allergens .carta-item-allergens-row {
    display: none;
}

/* ── Product tags / badges ── */
.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: .3rem .42rem;
    border-radius: 4px;
    font-size: .55rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    animation: tagPulse 1.2s ease-in-out infinite;
    text-shadow: none;
}

@keyframes tagPulse {

    0%,
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: saturate(1);
    }

    50% {
        opacity: .72;
        transform: translateY(-1px);
        filter: saturate(.9);
    }
}

.product-tag-nuevo {
    background: linear-gradient(135deg, #b86422 0%, #d88b35 100%);
    color: #fff9ef;
}

.product-tag-popular {
    background: linear-gradient(135deg, #d3a233 0%, #ebbe59 100%);
    color: #4a2e08;
}

.product-tag-recomendado {
    background: linear-gradient(135deg, #03a9b9 0%, #04bdd0 100%);
    color: #f7fff8;
}

/* Tags in list view */
.carta-item-tags {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}

.carta-item-tags .product-tag {
    font-size: .5rem;
    padding: 1px 5px;
    border-radius: 3px;
}

/* ── Price option display ── */
.price-alt {
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 400;
}

.price-size {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    background: rgba(3, 169, 185, .12);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 1rem;
}

.price-label {
    font-size: .65rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Multi-price options (TMR, sizes, etc.) ── */
.price-options-row {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.price-opt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 5px 10px 4px;
    border: 1px solid rgba(3, 169, 185, .15);
}

.price-opt-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.price-opt-letter {
    font-size: .9rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.price-opt-name {
    font-size: .48rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .3px;
    white-space: nowrap;
    line-height: 1;
}

/* When price-opt-name is used as the only child (custom labels, no letter) */
.price-opt-head>.price-opt-name:first-child:last-child {
    font-size: .58rem;
    color: var(--text-primary);
    font-weight: 600;
    white-space: normal;
    text-align: center;
    max-width: 80px;
}

.price-opt-weight {
    opacity: .7;
}

.price-opt-desc {
    font-size: .42rem;
    font-weight: 400;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1;
    white-space: normal;
    text-align: center;
    max-width: 80px;
}

.price-opt-val {
    font-family: var(--font-heading);
    font-size: .9rem;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* ── Extras row (displayed separately from variations) ── */
.price-extras-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 3px;
    width: 100%;
}

.price-extra {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-size: .68rem;
    color: var(--text-secondary);
}

.price-extra-plus {
    color: var(--accent);
    font-weight: 700;
    font-size: .72rem;
}

.price-extra-name {
    font-weight: 500;
}

.price-extra-val {
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-heading);
}

/* ── List view extras ── */
.list-extras-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    width: 100%;
    padding-top: 6px;
    border-top: 1px solid rgba(0, 0, 0, .06);
}

.list-extras-row .price-extra {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    font-size: .65rem;
    color: var(--text-secondary);
    text-align: left;
}

.list-extras-row .price-extra-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    line-height: 1.3;
}

.list-extras-row .price-extra-val {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* In list view, slightly smaller */
.list-price-opts {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 4px;
    max-width: 100%;
    flex: 1 1 auto;
}

.list-price-opts .price-opt {
    padding: 3px 7px 2px;
    border-radius: 8px;
    max-width: 112px;
}

.list-price-opts .price-opt-letter {
    font-size: .7rem;
}

.list-price-opts .price-opt-name {
    font-size: .4rem;
    white-space: normal;
}

.list-price-opts .price-opt-desc {
    font-size: .35rem;
    max-width: 92px;
}

.list-price-opts .price-opt-val {
    font-size: .72rem;
}

/* Allergen icons per product */
.allergen-icon-wrap {
    display: flex;
    align-items: center;
    position: relative;
    cursor: pointer;
}

.allergen-icon-wrap img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    padding: 2px;
    border: 1.5px solid rgba(0, 0, 0, .15);
}

/* 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: .72rem;
    color: var(--text-light);
    font-style: italic;
    font-weight: 600;
}

.adaptable-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 180, 0, .85);
    color: #333;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

/* ── 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: var(--text-secondary);
    font-size: .85rem;
    font-family: var(--font-body);
}

.allergen-empty-notice svg {
    opacity: .4;
}

/* ── Allergen Tooltip ── */
.allergen-tooltip {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    color: var(--text-primary);
    padding: 9px 18px;
    border-radius: 10px;
    font-size: .85rem;
    font-weight: 800;
    letter-spacing: .3px;
    white-space: nowrap;
    pointer-events: none;
    animation: tooltipFadeIn .25s ease-out;
    z-index: 20;
    border: 2px solid var(--accent);
    box-shadow:
        0 0 18px rgba(3, 169, 185, .15),
        0 6px 24px rgba(0, 0, 0, .12);
}

.allergen-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--accent);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Allergen filter states for list items */
.carta-item.allergen-hidden {
    display: none;
}

.carta-item.allergen-adaptable {
    border-left: 3px solid #ffb400;
    padding-left: 10px;
    position: relative;
}

/* ═══════════════════════════════════════════════
   LIST VIEW
   ═══════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════
   CARTA PAGE — Table/column layout
   ══════════════════════════════════════════════════ */

/* Font size accessibility */
html.font-size-small {
    font-size: 14px;
}

html.font-size-normal {
    font-size: 16px;
}

html.font-size-large {
    font-size: 19px;
}

html.font-size-xlarge {
    font-size: 22px;
}

/* ── Carta header (logos) ── */
.carta-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 16px 4px;
}

.carta-header-logo {
    height: 42px;
    width: auto;
}

.carta-header-sub {
    height: 32px;
    width: auto;
    opacity: .8;
}

/* ── Toolbar bar (sticky) ── */
.carta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 12px;
    margin-top: var(--navbar-h, 64px);
    position: relative;
    top: 0;
    background: var(--bg-primary);
    z-index: 10;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

/* ── Category nav (sticky below bar) ── */
.carta-cat-nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 8px 12px;
    position: sticky;
    top: var(--navbar-h, 64px);
    background: var(--bg-primary);
    z-index: 60;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

/* ── Font size control ── */
.font-size-control {
    display: flex;
    align-items: center;
    gap: 1px;
    background: var(--bg-card);
    border-radius: 999px;
    padding: 2px;
    border: 1px solid rgba(0, 0, 0, .08);
    flex-shrink: 0;
}

.font-size-btn {
    padding: 4px 8px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .72rem;
    color: var(--text-secondary);
    background: transparent;
    transition: all .2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
    line-height: 1;
}

.font-size-btn:hover {
    color: var(--accent);
    background: rgba(3, 169, 185, .08);
}

.font-size-btn.active {
    background: var(--accent);
    color: #fff;
}

/* ── Category nav links ── */
.carta-cat-nav::-webkit-scrollbar {
    display: none;
}

.carta-cat-nav a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: .78rem;
    text-decoration: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1.5px solid rgba(0, 0, 0, .08);
    transition: all .2s;
    -webkit-tap-highlight-color: transparent;
}

.carta-cat-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.carta-cat-nav a.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.carta-cat-nav a span {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    vertical-align: middle;
    text-transform: lowercase;
}

.carta-cat-nav a span::first-letter {
    text-transform: uppercase;
}

/* Category nav scroll hint (fade right edge) */
.carta-cat-nav::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to right, transparent, var(--bg-primary));
    pointer-events: none;
    z-index: 1;
    transition: opacity .3s;
}

.carta-cat-nav.scrolled-end::after {
    opacity: 0;
}

/* Avoid sticky :hover border artifacts on touch devices */
@media (hover: none) {
    .carta-cat-nav a:hover {
        border-color: rgba(0, 0, 0, .08);
    }
}

.carta-list {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 8px 20px 20px;
}

.carta-list.active {
    display: block;
    position: relative;
    z-index: 10;
}

/* Sections */
.carta-section {
    margin-bottom: 32px;
    scroll-margin-top: calc(var(--navbar-h, 64px) + 52px);
}

.carta-section-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 0 0px;
    border-bottom: 3px solid var(--accent);
    margin-bottom: 4px;
}

.carta-section-title {
    font-size: 40px;
    color: var(--accent);
    letter-spacing: .5px;
    line-height: 1.05;
    text-transform: lowercase;
}

.carta-section-title::first-letter {
    text-transform: uppercase;
}

.carta-section-subtitle {
    color: var(--text-secondary);
    font-size: .85rem;
    margin-top: 2px;
    font-style: italic;
}

.carta-section-note {
    font-size: .85rem;
    color: var(--accent);
    font-style: italic;
    text-align: center;
    padding: 12px 20px 4px;
    margin: 0;
}

.carta-legal-note {
    margin: 14px 0 0;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px dashed rgba(0, 0, 0, .14);
    border-radius: 0;
    background: transparent;
    color: var(--text-secondary);
    opacity: .82;
}

.carta-legal-note h2 {
    display: none;
}

.carta-legal-note p {
    margin: 0;
    font-size: .76rem;
    line-height: 1.35;
}

/* Table rows */
.list {
    width: 100%;
}

.carta-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .04);
    gap: 12px;
}

/* Sections with 2+ price columns */
.list[data-cols="3"] .carta-row {
    grid-template-columns: 1fr minmax(70px, auto) minmax(70px, auto);
}

/* Header row */
.carta-row-header {
    align-items: end;
    padding: 6px 0 8px;
    margin-top: 4px;
}

.carta-cell {
    padding: 2px 0;
}

.carta-cell-name {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.05rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.carta-item-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.carta-item-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    background: transparent;
    border: none;
    flex-shrink: 0;
    cursor: zoom-in;
}

body.pedidos-active .carta-item-thumb {
    background: var(--surface, #f0e1e8);
    border: 1px solid rgba(0, 0, 0, .12);
}

.carta-img-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .68);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .16s ease, visibility .16s ease;
}

.carta-img-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carta-img-modal-card {
    width: min(92vw, 620px);
    max-height: 90vh;
    overflow: auto;
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    transform: scale(.92) translateY(10px);
    opacity: 0;
    transition: transform .17s cubic-bezier(.2, .8, .2, 1), opacity .17s ease;
    will-change: transform, opacity;
}

.carta-img-modal.open .carta-img-modal-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.carta-img-modal-media {
    width: 100%;
    background: rgba(0, 0, 0, .06);
}

.carta-img-modal-media img {
    width: 100%;
    max-height: 62vh;
    object-fit: contain;
}

.carta-img-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 56px 0 14px;
}

.carta-img-modal-title {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 700;
}

.carta-img-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    background: rgba(33, 33, 33, .82);
    color: #fff;
    font-size: 1.25rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .22);
    z-index: 2;
}

.carta-img-modal-close:hover {
    background: rgba(3, 169, 185, .92);
    border-color: rgba(255, 255, 255, .4);
}

.carta-img-modal-body {
    padding: 8px 14px 14px;
    color: var(--text-secondary);
}

.carta-img-modal-desc {
    font-size: .9rem;
    line-height: 1.45;
    margin-bottom: 10px;
}

.carta-img-modal-prices {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.carta-img-modal-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .05);
}

.carta-img-modal-price-label {
    font-size: .8rem;
    color: var(--text-secondary);
}

.carta-img-modal-price-value {
    font-size: .95rem;
    color: var(--accent);
    font-weight: 700;
    white-space: nowrap;
}

.carta-img-modal-add {
    width: 100%;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 9px 12px;
}

.carta-img-modal-add:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.carta-cell-name .carta-item-desc {
    display: block;
    font-weight: 400;
    font-size: .82rem;
    color: var(--text-secondary);
    margin-top: 2px;
    text-transform: none;
}

.carta-cell-price-header {
    text-align: center;
    font-weight: 700;
    color: var(--accent);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.carta-cell-price {
    text-align: right;
    font-weight: 700;
    color: var(--accent);
    font-size: 1.05rem;
    line-height: 1.15;
    white-space: nowrap;
    align-self: flex-start;
}

.carta-item-add-slot {
    display: none;
    align-items: center;
    justify-content: flex-end;
    min-width: 34px;
    width: 34px;
}

body.pedidos-active .carta-item.carta-row {
    grid-template-columns: 1fr 86px 34px;
    align-items: flex-start;
}

body.pedidos-active .list[data-cols="3"] .carta-item.carta-row {
    grid-template-columns: 1fr 86px 86px 34px;
}

body.pedidos-active .list[data-cols="3"] .carta-row-header {
    grid-template-columns: 1fr 86px 86px 34px;
}

body.pedidos-active .carta-cell-price-header {
    text-align: right;
}

body.pedidos-active .carta-item-add-slot {
    display: inline-flex;
}

/* Allergen icons */
.carta-item-allergens {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    flex-wrap: wrap;
}

.carta-item-allergens-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.carta-price-inline-types {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: flex-end;
}

.carta-price-inline-type {
    font-size: .72rem;
    font-weight: 600;
    color: var(--accent);
    white-space: nowrap;
}

.carta-price-inline-label {
    font-weight: 700;
}

.list-extras-row {
    text-transform: none;
}

.carta-item-allergens .allergen-icon-wrap img {
    width: 20px;
    height: 20px;
}

.carta-item-allergens .adaptable-badge {
    font-size: .55rem;
    padding: 1px 6px;
}

.carta-item-allergens .no-allergens {
    font-size: .65rem;
}

/* Hidden by allergen filter */
.carta-item.allergen-hidden {
    display: none;
}

.carta-item.allergen-adaptable {
    opacity: .5;
}

/* Allergen empty notice */
.allergen-empty-notice {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 24px 16px;
    color: var(--text-secondary);
    font-size: .9rem;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .carta-row {
        gap: 8px;
        padding: 8px 0;
    }

    .list[data-cols="3"] .carta-row {
        grid-template-columns: 1fr minmax(55px, auto) minmax(55px, auto);
        gap: 6px;
    }

    body.pedidos-active .carta-item.carta-row {
        grid-template-columns: 1fr 72px 32px;
        align-items: center;
    }

    body.pedidos-active .list[data-cols="3"] .carta-item.carta-row {
        grid-template-columns: 1fr 72px 72px 32px;
        gap: 6px;
    }

    body.pedidos-active .list[data-cols="3"] .carta-row-header {
        grid-template-columns: 1fr 72px 72px 32px;
    }

    body.pedidos-active .carta-cell-price-header,
    body.pedidos-active .carta-cell-price {
        text-align: right;
    }

    body.pedidos-active .carta-item-add-slot {
        min-width: 32px;
        width: 32px;
    }

    .carta-section-title {
        font-size: 40px;
    }

    .carta-cell-name {
        font-size: .95rem;
    }

    .carta-item-thumb {
        width: 36px;
        height: 36px;
    }

    .carta-cell-price {
        font-size: .95rem;
    }

    .carta-cell-price-header {
        font-size: .7rem;
    }

    .carta-bar {
        flex-wrap: nowrap;
        gap: 6px;
        padding: 4px 8px;
    }

    .carta-bar-btn span {
        display: none;
    }

    .carta-cat-nav {
        top: var(--navbar-h, 64px);
        padding: 6px 8px;
        gap: 4px;
    }

    .carta-cat-nav::after {
        display: none;
    }

    .carta-cat-nav a {
        padding: 6px 10px;
        font-size: .72rem;
    }
}

/* Carta page body adjustments */
body.is-carta .carta-list {
    min-height: 60vh;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
}

/* ══════════════════════════════════════════════════
   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(--text-primary);
    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(3, 169, 185, .1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contacto-item h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
    font-family: var(--font-body);
}

.contacto-item p {
    color: var(--text-secondary);
    font-size: .95rem;
}

.contacto-map {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-card);
}

.contacto-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

@media (min-width: 768px) {
    .contacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ══════════════════════════════════════════════════
   HORARIO TABLE (public)
   ══════════════════════════════════════════════════ */
.horario-section {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
    margin-top: 2rem;
}

.horario-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: var(--radius, 12px);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.horario-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px 12px;
    color: var(--text-primary);
}

.horario-header svg {
    color: var(--accent);
    flex-shrink: 0;
}

.horario-header h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.horario-pub-table {
    width: 100%;
    border-collapse: collapse;
}

.horario-pub-table tr {
    transition: background .2s;
}

.horario-pub-table td {
    padding: 10px 20px;
    font-size: .9rem;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}

.horario-pub-table tr:last-child td {
    border-bottom: none;
}

.horario-pub-dia {
    color: var(--text-secondary);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.horario-pub-horas {
    text-align: right;
    color: var(--text-primary);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* Today highlight */
.horario-hoy {
    background: rgba(3, 169, 185, .06);
}

.horario-hoy .horario-pub-dia {
    color: var(--text-primary);
    font-weight: 700;
}

.horario-hoy .horario-pub-horas {
    color: var(--accent);
    font-weight: 700;
}

.horario-hoy-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* Closed day */
.horario-cerrado .horario-pub-dia {
    color: var(--text-light);
}

.horario-cerrado-text {
    color: var(--text-light);
    font-weight: 400;
    font-style: italic;
}

/* Notes */
.horario-nota {
    padding: 10px 20px 14px;
    font-size: .78rem;
    color: var(--text-secondary);
    font-style: italic;
    border-top: 1px solid rgba(0, 0, 0, .05);
}

/* In location-grid context (index.php) */
.location-grid .horario-section {
    grid-column: 1 / -1;
    margin-top: 10px;
}

@media (max-width: 480px) {
    .horario-pub-table td {
        padding: 8px 14px;
        font-size: .82rem;
    }

    .horario-header {
        padding: 12px 14px 10px;
    }

    .horario-nota {
        padding: 8px 14px 12px;
    }
}

/* ══════════════════════════════════════════════════
   PAGE HEADER (shared inner pages)
   ══════════════════════════════════════════════════ */
.page-header {
    padding: 100px 0 40px;
    text-align: center;
    background: linear-gradient(to bottom, var(--bg-dark) 0%, var(--bg-primary) 100%);
}

.page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ══════════════════════════════════════════════════
   SCROLLBAR
   ══════════════════════════════════════════════════ */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #b890a0;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ══════════════════════════════════════════════════
   SELECTION
   ══════════════════════════════════════════════════ */
::selection {
    background: var(--accent);
    color: var(--white);
}

/* ══════════════════════════════════════════════════
   CARTA — PHONE SIMULATION ON DESKTOP
   ══════════════════════════════════════════════════ */
@media (min-width: 768px) {
    body.is-carta {
        background: #c0a0b0;
    }

    body.is-carta .carta-page {
        max-width: 430px;
        margin: 0 auto;
        position: relative;
        border-left: 1px solid rgba(0, 0, 0, .06);
        border-right: 1px solid rgba(0, 0, 0, .06);
        box-shadow: 0 0 80px rgba(0, 0, 0, .12), 0 0 30px rgba(3, 169, 185, .04);
        min-height: 100vh;
    }

    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(0, 0, 0, .04);
        border-right: 1px solid rgba(0, 0, 0, .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: visible;
    }
}

/* ══════════════════════════════════════════════════
   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(--text-primary);
    margin-bottom: 8px;
}

.legal-updated {
    color: var(--text-secondary);
    font-size: .85rem;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.legal-container h2 {
    font-size: 1.2rem;
    color: var(--accent);
    margin: 32px 0 12px;
    font-family: var(--font-body);
}

.legal-container h3 {
    font-size: 1rem;
    color: var(--text-primary);
    margin: 20px 0 8px;
    font-family: var(--font-body);
}

.legal-container p {
    color: var(--text-secondary);
    font-size: .9rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-container ul {
    color: var(--text-secondary);
    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(--accent);
    text-decoration: underline;
}

.legal-container a:hover {
    color: var(--accent-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(0, 0, 0, .1);
    text-align: left;
}

.legal-table th {
    background: rgba(3, 169, 185, .08);
    color: var(--text-primary);
    font-weight: 600;
}

.legal-table td {
    color: var(--text-secondary);
}

/* ══════════════════════════════════════════════════
   COOKIE BANNER
   ══════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(240, 225, 232, .97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, .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(--text-secondary);
    font-size: .82rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-banner-inner a {
    color: var(--accent);
    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(--text-secondary);
    font-size: .78rem;
    transition: color .3s;
}

.footer-legal a:hover {
    color: var(--accent);
}

/* ══════════════════════════════════════════════════
   LEAFLET MAP OVERRIDES
   ══════════════════════════════════════════════════ */
.olordulce-marker {
    background: transparent !important;
    border: none !important;
}

.location-map {
    border-radius: var(--radius);
    overflow: hidden;
}

.leaflet-container {
    background: #d5c0ca !important;
    font-family: var(--font-body) !important;
}

.leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, .95) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .12) !important;
}

.leaflet-popup-tip {
    background: rgba(255, 255, 255, .95) !important;
}

.leaflet-popup-content {
    font-size: .85rem !important;
    line-height: 1.5 !important;
    color: var(--text-primary) !important;
}

.leaflet-control-zoom a {
    background: rgba(255, 255, 255, .9) !important;
    color: var(--text-primary) !important;
    border-color: rgba(0, 0, 0, .1) !important;
}

.leaflet-control-zoom a:hover {
    background: var(--accent) !important;
    color: #fff !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, .6) !important;
    color: rgba(0, 0, 0, .4) !important;
    font-size: .6rem !important;
}

.leaflet-control-attribution a {
    color: rgba(0, 0, 0, .5) !important;
}

.leaflet-bottom .leaflet-control {
    display: none !important;
}

/* ══════════════════════════════════════════════════
   HOME — Landing Page Sections
   ══════════════════════════════════════════════════ */

/* Hero Banner */
.home-hero {
    background: linear-gradient(135deg, #03a9b9 0%, #028a9a 50%, #027a88 100%);
    padding: calc(var(--navbar-h, 64px) + 60px) 20px 70px;
    position: relative;
    overflow: hidden;
}

.home-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .04);
    pointer-events: none;
}

.home-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .03);
    pointer-events: none;
}

.home-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.home-hero-logo-wrap {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, .3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .15);
    flex-shrink: 0;
    background: #fff;
}

.home-hero-logo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero-text {
    text-align: left;
    flex: 1;
}

.home-hero-text h1 {
    color: #fff;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0 0 8px;
    letter-spacing: .5px;
}

.home-hero-slogan {
    color: rgba(255, 255, 255, .85);
    font-size: clamp(.95rem, 2vw, 1.15rem);
    font-style: italic;
    margin: 0 0 16px;
    font-weight: 400;
}

.home-hero-desc {
    color: rgba(255, 255, 255, .92);
    font-size: clamp(.9rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    margin: 0 0 28px;
    max-width: 560px;
}

.home-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: #fff;
    color: var(--accent);
    padding: 14px 36px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-primary:hover {
    background: rgba(255, 255, 255, .9);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .15);
}

.btn-hero-outline {
    background: transparent;
    color: #fff;
    padding: 14px 36px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    border: 2px solid rgba(255, 255, 255, .4);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, .15);
    border-color: rgba(255, 255, 255, .7);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .home-hero {
        padding: calc(var(--navbar-h, 64px) + 40px) 20px 50px;
    }
    .home-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }
    .home-hero-logo-wrap {
        width: 130px;
        height: 130px;
        margin: 0 auto;
    }
    .home-hero-text {
        text-align: center;
    }
    .home-hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .home-hero-cta {
        justify-content: center;
    }
}

/* Categorías Grid */
.home-categorias {
    text-align: center;
    padding: 60px 20px 40px;
    background: var(--bg-primary);
}

.home-categorias-header h2 {
    color: var(--accent);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 8px;
}

.home-categorias-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.home-cat-card {
    height: 200px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    transition: transform .4s, box-shadow .4s;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
}

.home-cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, .18);
}

.home-cat-overlay {
    width: 100%;
    background: linear-gradient(transparent, rgba(0, 0, 0, .65));
    padding: 20px;
}

.home-cat-overlay h3 {
    margin: 0;
    font-size: 1.15rem;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .3);
}

.home-categorias-cta {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .home-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .home-cat-card {
        height: 140px;
    }
    .home-cat-overlay {
        padding: 12px;
    }
    .home-cat-overlay h3 {
        font-size: .9rem;
    }
}

/* Ver Carta */
.btn-carta-main {
    display: inline-flex;
    align-items: center;
    background: #d43f52;
    color: #fff;
    padding: 16px 44px;
    font-size: 1.05rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: all .3s;
    box-shadow: 0 4px 20px rgba(212, 63, 82, .3);
}

.btn-carta-main:hover {
    background: #b83545;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212, 63, 82, .4);
}

/* Tartas por Encargo */
.home-encargos {
    padding: 60px 20px;
    background: var(--bg-card);
}

.home-encargo-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.home-encargo-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
}

.home-encargo-img img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform .5s;
}

.home-encargo-img:hover img {
    transform: scale(1.03);
}

.home-encargo-text {
    padding: 10px 0;
}

.home-encargo-badge {
    display: inline-block;
    background: rgba(3, 169, 185, .1);
    color: var(--accent);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.home-encargo-text h2 {
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 16px;
}

.home-encargo-text > p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.home-encargo-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
}

.home-encargo-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-size: .95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.home-encargo-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

.btn-encargo-main {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    transition: all .3s;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .3);
}

.btn-encargo-main:hover {
    background: #1fb855;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .4);
}

@media (max-width: 768px) {
    .home-encargo-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .home-encargo-img img {
        height: 240px;
    }
    .home-encargo-text {
        text-align: center;
    }
    .home-encargo-features {
        text-align: left;
    }
}

/* Contacto Section */
.home-contacto {
    background: var(--bg-card);
    padding: 60px 20px;
    text-align: center;
}

.home-contacto-header h2 {
    color: var(--accent);
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    margin-bottom: 6px;
}

.home-contacto-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 36px;
}

.home-contacto-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}

.home-contacto-info {
    background: #f8f8f8;
    border-radius: var(--radius);
    overflow: hidden;
    text-align: left;
}

.home-info-basica {
    padding: 24px;
    background: #fff;
    border-bottom: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color .3s;
}

.home-info-item:hover {
    color: var(--accent);
}

.home-info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(3, 169, 185, .1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.home-contacto-mapa {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 300px;
}

@media (max-width: 768px) {
    .home-contacto-inner {
        grid-template-columns: 1fr;
    }
    .home-contacto {
        padding: 40px 16px;
    }
    .home-info-basica {
        padding: 18px;
    }
}