/* ========================================
   A lo Cubano 333 — Main Stylesheet
   Spec canónica: DESIGN.md v2 (Caribe Editorial Moderno, L2)
   Mobile-first, no frameworks.
   Regla: cero hex fuera de :root y html[data-theme="dark"].
   ======================================== */

/* ---------- 1. Tokens (DESIGN.md §2, paleta Cuba v2) ---------- */
:root {
    /* Marca */
    --color-primary: #DA291C;            /* Rojo bandera: CTA, marca, precios */
    --color-primary-dark: #B01F14;       /* Hover del rojo */
    --color-secondary: #F0554A;          /* Rojo claro: acentos en dark mode */
    --color-navy: #0E2A47;               /* Azul bandera: footer, bandas oscuras, tinta fuerte */
    --color-navy-deep: #0A1F38;          /* Fondo footer / dark bands */
    --color-teal: #0FB5AE;               /* Turquesa Caribe: SOLO decoración (formas, badges) */
    --color-teal-dark: #0A7E79;          /* Turquesa texto (4.5:1 sobre crema): eyebrows, links secundarios */
    --color-sun: #F2A900;                /* Dorado sol: detalles, estrellas, underlines */

    /* Backgrounds */
    --color-bg: #FBF6EC;                 /* Crema papel */
    --color-bg-warm: #F4ECDB;            /* Crema tostado: secciones alternas */
    --color-surface: #FFFFFF;            /* Cards, paneles */
    --color-surface-hover: #FBF3E2;      /* Superficie en hover */
    --color-white: #FFFFFF;
    --color-on-primary: #FFFFFF;

    /* Borders */
    --color-border: #E9DCC3;             /* Crema oscuro */
    --color-border-strong: #D9C69E;      /* Borde en hover / énfasis */

    /* Text */
    --color-text: #122A44;               /* Tinta navy (13:1 sobre crema) */
    --color-text-secondary: #44546A;     /* Cuerpo, descripciones */
    --color-text-muted: #7C8AA0;         /* Labels, metadatos */

    /* RGB helpers para rgba() */
    --color-primary-rgb: 218, 41, 28;
    --color-navy-rgb: 14, 42, 71;
    --color-navy-deep-rgb: 10, 31, 56;
    --color-teal-rgb: 15, 181, 174;
    --color-sun-rgb: 242, 169, 0;
    --color-bg-rgb: 251, 246, 236;
    --color-text-rgb: 18, 42, 68;

    /* Semantic */
    --color-success: #1B7F4D;
    --color-success-rgb: 27, 127, 77;
    --color-error: #DA291C;
    --color-warning: #B87A00;
    --color-info: #1D5FCC;

    /* Alerts / payment messages (se recalculan en dark) */
    --alert-info-bg: #EAF1FB;
    --alert-info-text: #17468F;
    --alert-info-border: #B9D0F0;
    --alert-error-bg: #FCE9E6;
    --alert-error-text: #8C1A10;
    --alert-error-border: #F2B8B0;

    /* Focus / sombras / textura (tinte navy, nunca gris frío) */
    --color-ring: rgba(var(--color-primary-rgb), 0.28);
    --color-shadow: rgba(var(--color-navy-rgb), 0.14);
    --header-texture: rgba(var(--color-navy-rgb), 0.035);

    /* Alias de compatibilidad (no usar en código nuevo) */
    --color-accent: var(--color-sun);
    --color-accent-dark: var(--color-warning);

    /* Tipografía */
    --font-heading: 'Playfair Display SC', Georgia, serif;
    --font-body: 'Karla', system-ui, sans-serif;

    /* Radios */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius: var(--radius-md); /* alias legacy */

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 720px;
    --header-height: 80px;

    /* Spacing scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Shadow depths (tinte navy, DESIGN.md §6) */
    --shadow-sm: 0 1px 2px rgba(var(--color-navy-rgb), 0.07);
    --shadow-md: 0 4px 14px rgba(var(--color-navy-rgb), 0.12);
    --shadow-lg: 0 14px 28px rgba(var(--color-navy-rgb), 0.16);
    --shadow-xl: 0 24px 48px rgba(var(--color-navy-rgb), 0.20);

    /* Easing curves */
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
    --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ---------- Dark theme tokens (DESIGN.md §2, azul noche) ---------- */
html[data-theme="dark"] {
    --color-primary: #F0554A;            /* Rojo claro sobre fondo oscuro */
    --color-primary-dark: #FF7368;
    --color-secondary: #FF8A80;
    --color-navy: #7FB3E8;               /* En dark, "navy" decorativo se aclara */
    /* --color-navy-deep se mantiene: footer y bandas oscuras siguen navy */
    --color-teal: #2DD4BF;
    --color-teal-dark: #5EEAD4;
    --color-sun: #FFC53D;

    --color-bg: #0A1929;                 /* Azul noche */
    --color-bg-warm: #0E2237;
    --color-surface: #12293F;
    --color-surface-hover: #18344E;
    --color-border: #23405C;
    --color-border-strong: #31547A;

    --color-text: #F4EDDF;
    --color-text-secondary: #C3D0DE;
    --color-text-muted: #8CA0B5;

    --color-primary-rgb: 240, 85, 74;
    --color-bg-rgb: 10, 25, 41;
    --color-text-rgb: 244, 237, 223;

    --color-success: #4ADE80;
    --color-success-rgb: 74, 222, 128;
    --color-warning: #FBBF24;

    --alert-info-bg: #122A44;
    --alert-info-text: #A9CBF2;
    --alert-info-border: #1D5FCC;
    --alert-error-bg: #3A1410;
    --alert-error-text: #FFB4AB;
    --alert-error-border: #8C1D12;

    --color-shadow: rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 14px 28px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.55);
    --header-texture: rgba(255, 255, 255, 0.05);
    --color-ring: rgba(240, 85, 74, 0.4);
    color-scheme: dark;
}

/* ---------- 2. Base ---------- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

img {
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Links dentro de contenido corrido (DESIGN.md §4 Links) */
.content a,
.link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--color-primary-rgb), 0.4);
    transition: color 200ms var(--ease-out), text-decoration-color 200ms var(--ease-out);
}

.content a:hover,
.link:hover {
    color: var(--color-primary-dark);
    text-decoration-color: currentColor;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 3.5rem); line-height: 1.08; }
h2 { font-size: clamp(2rem, 4.5vw, 2.75rem); line-height: 1.15; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.375rem); line-height: 1.3; }

p {
    margin: 0 0 1em;
    color: var(--color-text-secondary);
}

/* Prevent text overflow in cards/panels */
.info-panel,
.location-card,
.schedule-card,
.menu-card,
.value-card {
    overflow-wrap: break-word;
}

/* Tactile feedback improvements */
button,
a,
[role="button"] {
    touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--color-ring);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* ---------- 3. Layout (DESIGN.md §5) ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: clamp(1rem, 4vw, 2rem);
}

.section {
    padding-block: clamp(4rem, 9vw, 6.5rem);
}

.section-alt {
    background: var(--color-bg-warm);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

/* ---------- 4. Utilities ---------- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.5rem 1rem;
    z-index: 10000;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

.text-center { text-align: center; }

.text-center .btn-group { justify-content: center; }
.text-muted { color: var(--color-text-muted); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.is-hidden {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- 5. Buttons (DESIGN.md §4) ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out),
                background-color 200ms var(--ease-out), color 200ms var(--ease-out),
                border-color 200ms var(--ease-out);
}

.btn:hover {
    text-decoration: none;
}

.btn:focus-visible {
    outline: 3px solid var(--color-ring);
    outline-offset: 2px;
}

.btn:active {
    transform: translateY(0) scale(0.97);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Primario: rojo bandera */
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secundario: outline rojo (.btn-outline se mantiene como alias legacy) */
.btn-secondary,
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-on-primary);
    transform: translateY(-2px);
}

/* Sobre navy/fotos oscuras (navy-deep: no se aclara en dark mode) */
.btn-light {
    background: var(--color-white);
    color: var(--color-navy-deep);
}

.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--color-white);
}

/* Acento sol (uso puntual: un solo CTA por vista) */
.btn-sun {
    background: var(--color-sun);
    color: var(--color-navy-deep);
}

.btn-sun:hover {
    filter: brightness(0.94);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (hover: none) {
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-outline:hover,
    .btn-light:hover,
    .btn-sun:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ---------- 6. Header & Navigation (DESIGN.md §4) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--color-bg);
    background-image: radial-gradient(circle, var(--header-texture) 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    border-bottom: 1px solid transparent;
    height: var(--header-height);
    transition: box-shadow 300ms var(--ease-out), border-color 300ms var(--ease-out),
                background-color 300ms var(--ease-out);
}

.site-header.is-scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
}

.nav-left {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: none;
}

.nav-right {
    display: none;
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text);
    text-decoration: none;
    align-self: flex-start;
    margin-top: 12px;
}

.brand:hover {
    text-decoration: none;
}

.brand-logo {
    width: auto;
    height: auto;
    max-width: 158px;
    max-height: 88px;
    background: transparent;
    color: var(--color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    overflow: hidden;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    letter-spacing: 0.01em;
}

.brand-number {
    color: var(--color-primary);
}

/* Hamburger toggle (mobile) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 120ms var(--ease-out);
}

.nav-toggle:active {
    transform: scale(0.95);
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 250ms var(--ease-out), opacity 250ms var(--ease-out);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: translateY(-8px) rotate(-45deg);
}

/* Menú móvil off-canvas */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    transform: translateX(100%);
    transition: transform 250ms var(--ease-drawer);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 999;
}

.main-nav.open {
    transform: translateX(0);
}

body.nav-open {
    overflow: hidden;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 2rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.nav-list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.25rem 0.75rem;
    color: var(--color-text);
    font-weight: 600;
    text-decoration: none;
}

.nav-list a::after {
    content: '';
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 6px;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 250ms var(--ease-out);
}

.nav-list a.active,
.nav-list a[aria-current="page"] {
    color: var(--color-primary);
}

@media (hover: hover) and (pointer: fine) {
    .nav-list a:hover {
        color: var(--color-primary);
        text-decoration: none;
    }

    .nav-list a:hover::after,
    .nav-list a.active::after,
    .nav-list a[aria-current="page"]::after {
        transform: scaleX(1);
    }
}

/* Estado activo visible también sin hover (touch) */
.nav-list a.active::after,
.nav-list a[aria-current="page"]::after {
    transform: scaleX(1);
}

/* Variante móvil off-canvas */
.main-nav .nav-list a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    padding: 0.25rem 0;
}

.main-nav .nav-list a::after {
    left: 0;
    right: 0;
}

/* Header actions (theme toggle + nav toggle + cart) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.theme-toggle:active {
    transform: scale(0.95);
}

.theme-toggle:hover {
    background: rgba(var(--color-text-rgb), 0.06);
}

/* Cart link */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: var(--color-text);
    text-decoration: none;
    font-size: 1.25rem;
    transition: background 150ms var(--ease-out);
}

.cart-link:hover {
    background: rgba(var(--color-text-rgb), 0.06);
}

.cart-count {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--color-primary);
    color: var(--color-on-primary);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count:empty,
.cart-count[data-count="0"] {
    display: none;
}

/* ---------- 7. Hero (split con collage — firma de la home, DESIGN.md §4) ---------- */
.hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    max-width: var(--max-width);
    margin-inline: auto;
    padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 2rem);
    min-height: min(85vh, 820px);
}

.hero h1,
.hero-title {
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    line-height: 1.05;
    letter-spacing: 0.01em;
    margin-bottom: 0.25em;
}

/* Palabra clave en rojo bandera (DESIGN.md §3) */
.hero-title .line span {
    color: var(--color-primary);
}

.hero-title .line {
    display: block;
    clip-path: inset(0 0 100% 0);
    animation: lineReveal 900ms var(--ease-out) forwards;
}

.hero-title .line:nth-child(2) {
    animation-delay: 150ms;
}

@keyframes lineReveal {
    to { clip-path: inset(0 0 -10% 0); }
}

/* Eyebrow del hero: turquesa texto sobre crema */
.hero-subtitle {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-teal-dark);
    margin-bottom: 0.75rem;
}

.hero-subtitle::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--color-sun);
    border-radius: 2px;
}

/* Typewriter del hero: caret parpadeante (JS rota las palabras) */
.typewriter {
    white-space: nowrap;
}

.typewriter::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: -0.12em;
    background: currentColor;
    animation: caretBlink 1s steps(1) infinite;
}

@keyframes caretBlink {
    50% { opacity: 0; }
}

.hero p {
    font-size: 1.1rem;
    max-width: 560px;
    margin-bottom: 1.5rem;
}

/* Collage de fotos con sticker */
.hero-collage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    perspective: 900px;
}

.hero-collage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: collageIn 800ms var(--ease-out) backwards;
}

.hero-collage img:nth-child(2) {
    animation-delay: 150ms;
}

.hero-collage img:nth-child(3) {
    animation-delay: 300ms;
}

/* Transform por variables: JS compone parallax (--px/--py) y tilt (--rx/--ry) */
.hero-collage .collage-main {
    grid-row: span 2;
    aspect-ratio: 3 / 4;
    transform: rotate(-2deg) translate3d(var(--px, 0px), var(--py, 0px), 0) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 250ms var(--ease-out);
}

.hero-collage .collage-small {
    aspect-ratio: 1 / 1;
    transform: rotate(1.5deg) translate3d(var(--px, 0px), var(--py, 0px), 0);
    transition: transform 250ms var(--ease-out);
}

/* El 'to' implícito conserva el rotate de cada clase */
@keyframes collageIn {
    from { opacity: 0; transform: translateY(24px) rotate(0deg); }
}

/* Sticker flotante */
.hero-badge {
    position: absolute;
    right: -0.75rem;
    top: -0.75rem;
    z-index: 2;
    background: var(--color-sun);
    color: var(--color-navy-deep);
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.625rem 1rem;
    border-radius: 999px;
    transform: rotate(3deg);
    box-shadow: var(--shadow-md);
}

/* Mobile: columna única, collage después del texto */
@media (max-width: 899px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: 0;
        text-align: center;
    }

    .hero p {
        margin-inline: auto;
    }

    .hero-subtitle::after {
        margin-inline: auto;
    }

    .hero .btn-group {
        justify-content: center;
    }

    .hero-collage {
        max-width: 480px;
        margin-inline: auto;
    }
}

/* ---------- 7b. Marquee (banda de ritmo — después del hero, DESIGN.md §4) ---------- */
.marquee {
    background: var(--color-primary);
    color: var(--color-white);
    overflow: hidden;
    white-space: nowrap;
    padding: 0.875rem 0;
    border-block: 3px solid var(--color-navy);
}

.marquee-track {
    display: inline-flex;
    gap: 2.5rem;
    padding-right: 2.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    animation: marqueeScroll 28s linear infinite;
}

.marquee-track .sep {
    color: var(--color-sun);
}

@keyframes marqueeScroll {
    to { transform: translateX(-50%); }
}

/* ---------- 7c. Grain overlay (textura — hero, cta-band, footer, DESIGN.md §4) ---------- */
.grain {
    position: relative;
}

.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
    opacity: 0.05;
    mix-blend-mode: overlay;
}

.grain > * {
    position: relative;
    z-index: 2;
}

/* ---------- 8. Section headers / eyebrow / badges (DESIGN.md §4) ---------- */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title h1 span,
.section-title h2 span,
.section-title h3 span {
    color: var(--color-primary);
}

.section-intro {
    text-align: center;
    max-width: 640px;
    margin: -1.5rem auto 2.5rem;
}

/* Eyebrow: turquesa texto con barra sol (DESIGN.md §4) */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-teal-dark);
    margin-bottom: 0.75rem;
}

.section-eyebrow::after {
    content: '';
    display: block;
    width: 2.5rem;
    height: 3px;
    margin-top: 0.5rem;
    background: var(--color-sun);
    border-radius: 2px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 700;
    background: var(--color-bg);
    color: var(--color-teal-dark);
    border: 1px solid var(--color-border);
}

.badge-sun {
    background: var(--color-sun);
    color: var(--color-navy-deep);
    border-color: transparent;
}

/* Ritmo de fondos de la home (DESIGN.md §5) */
.section-today {
    background:
        linear-gradient(rgba(var(--color-navy-deep-rgb), 0.86), rgba(var(--color-navy-deep-rgb), 0.80)),
        url("/assets/images/food/platos-carne.webp") center / cover no-repeat;
}

/* Texto sobre la foto oscura */
.section-today .section-title h1,
.section-today .section-title h2,
.section-today .section-intro {
    color: var(--color-white);
}

.section-today .section-title h1 span,
.section-today .section-title h2 span {
    color: var(--color-sun);
}

.section-today .section-eyebrow {
    color: var(--color-sun);
}

.section-today .section-eyebrow::after {
    background: var(--color-teal);
}

.section-featured {
    background: var(--color-bg);
}

.section-values {
    background: var(--color-bg-warm);
}

.section-gallery {
    background: var(--color-bg-warm);
}

/* ---------- 9. Menu ---------- */
.menu-hero {
    background: linear-gradient(135deg, var(--color-bg-warm) 0%, var(--color-bg) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.menu-hero-inner {
    text-align: center;
}

.menu-hero-subtitle {
    color: var(--color-teal-dark);
    font-weight: 700;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 0.5rem;
}

.menu-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1rem;
}

.menu-hero h1 span {
    color: var(--color-primary);
}

.menu-hero-lead {
    max-width: 640px;
    margin: 0 auto 1.5rem;
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

.menu-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Menu category nav (pills, scroll horizontal con snap) */
.category-nav-wrapper {
    position: sticky;
    top: var(--header-height);
    z-index: 900;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.75rem 0;
    margin-bottom: 2.5rem;
}

.category-nav {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav li {
    scroll-snap-align: start;
}

.category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: background 150ms var(--ease-out), color 150ms var(--ease-out), border-color 150ms var(--ease-out);
}

.category-nav a.active,
.category-nav a:hover {
    background: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    text-decoration: none;
}

.menu-section {
    padding-top: 1rem;
}

.menu-category {
    margin-bottom: 3.5rem;
    scroll-margin-top: calc(var(--header-height) + 70px);
}

.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.menu-category-header h2 {
    font-size: 1.75rem;
    border-left: 6px solid var(--color-primary);
    padding-left: 1rem;
    margin: 0;
}

/* Menu card (DESIGN.md §4 Cards) */
.menu-card {
    display: flex;
    flex-direction: column;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
                border-color 250ms var(--ease-out);
}

.menu-card:focus-within {
    outline: 3px solid var(--color-ring);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    .menu-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-border-strong);
    }
}

.menu-card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .menu-card:hover .menu-card-image img {
        transform: scale(1.06);
    }
}

.menu-card-image.placeholder {
    color: var(--color-text-secondary);
    font-size: 2.5rem;
}

.menu-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    padding: 1.25rem;
}

.menu-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.menu-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.menu-card-price {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.menu-card-text {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    flex: 1;
}

.btn-add-cart {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

/* ---------- 10. Cards: value / location / schedule / info ---------- */
.value-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
                border-color 250ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .value-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-border-strong);
    }
}

.value-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.value-card h3 {
    margin-bottom: 0.5rem;
}

/* Bento grid (valores de la home — firma #2, DESIGN.md §4) */
.bento-grid {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: repeat(4, 1fr);
    margin-top: var(--space-xl);
}

.bento-card {
    position: relative;
    overflow: hidden;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
                border-color 250ms var(--ease-out);
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-border-strong);
}

.bento-large {
    grid-column: span 2;
}

.bento-card i {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.bento-card h3 {
    margin-bottom: 0.5rem;
}

/* Spotlight: luz teal que sigue el cursor (JS escribe --mx/--my, solo hover:hover) */
.bento-card::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%),
                rgba(var(--color-teal-rgb), 0.14), transparent 65%);
    opacity: 0;
    transition: opacity 300ms var(--ease-out);
}

.bento-card:hover::after {
    opacity: 1;
}

/* Homepage location card: estilo ticket (DESIGN.md §4) */
.location-card {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    padding: var(--space-xl);
    background: var(--color-surface);
    border: 2px dashed var(--color-border-strong);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.location-closed {
    border-color: var(--color-border);
}

.location-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

.location-closed .location-icon {
    background: var(--color-secondary);
    color: var(--color-white);
}

.location-info h3 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    margin-bottom: 0.75rem;
}

.location-badge {
    display: inline-block;
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.location-notes {
    font-style: italic;
    color: var(--color-text-secondary);
    margin: 0.75rem 0 0;
}

.location-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Schedule */
.schedule-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.schedule-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out),
                border-color 250ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .schedule-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        border-color: var(--color-border-strong);
    }
}

.schedule-card.today {
    border: 2px solid var(--color-primary);
    position: relative;
}

.schedule-card.today::before {
    content: 'Hoy';
    position: absolute;
    top: -12px;
    right: 1rem;
    background: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
}

.schedule-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.schedule-time {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.schedule-address {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
}

.schedule-map {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    background: var(--color-bg-warm);
}

.map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-top: 0.5rem;
    font-size: 0.9375rem;
}

.map-address {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--color-text);
}

/* Info panels */
.info-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    margin-bottom: 1.5rem;
}

.info-panel h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.info-list i {
    color: var(--color-primary);
    margin-top: 0.2rem;
}

/* ---------- 11. About / story ---------- */
.story-section {
    background:
        linear-gradient(rgba(var(--color-bg-rgb), 0.94), rgba(var(--color-bg-rgb), 0.94)),
        url("/assets/images/food/sandwich-plancha.webp") center / cover no-repeat;
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.story-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    max-width: 320px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    border: 6px solid var(--color-surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 4rem;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Con foto real: marco editorial rectangular en vez de círculo con icono */
.story-image:has(img) {
    aspect-ratio: 4 / 3;
    max-width: none;
    border-radius: var(--radius-lg);
    border: none;
    background: none;
}

/* En la columna de texto de story, el título se alinea a la izquierda */
.story-content .section-title {
    text-align: left;
}

.story-content .section-eyebrow::after {
    margin-inline: 0;
}

/* ---------- 12. Gallery strip (DESIGN.md §4, scroll-snap) ---------- */
.gallery-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(72vw, 320px);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-strong) transparent;
}

.gallery-item {
    scroll-snap-align: start;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    box-shadow: var(--shadow-sm);
    background: linear-gradient(135deg, var(--color-accent), var(--color-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 2.5rem;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 500ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .gallery-item:hover img {
        transform: scale(1.05);
    }
}

/* ---------- 13. CTA band (navy + grain, DESIGN.md §4) ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--color-navy-deep), var(--color-navy));
    color: var(--color-white);
    text-align: center;
    padding: clamp(4rem, 9vw, 6.5rem) 1.5rem;
    border-radius: 0;
}

.cta-band h2 {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-band .section-eyebrow {
    color: var(--color-sun);
}

.cta-band p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.cta-band .btn-group {
    justify-content: center;
    margin-top: 2rem;
}

/* ---------- 14. Forms (DESIGN.md §4) ---------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label,
.form-label {
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.9375rem;
}

.form-group label .required,
.required {
    color: var(--color-primary);
    margin-left: 0.15rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}

.form-control:hover {
    border-color: var(--color-border-strong);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-ring);
}

.form-control:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-control.is-invalid {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.15);
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.form-error {
    color: var(--color-error);
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.form-success {
    background: rgba(var(--color-success-rgb), 0.1);
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* ---------- 15. Flash messages & alerts ---------- */
.flash {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}

.flash .error-list {
    margin: 0;
    padding-left: 1.25rem;
}

.flash-success {
    background: rgba(var(--color-success-rgb), 0.1);
    border-left: 4px solid var(--color-success);
    color: var(--color-success);
}

.flash-error {
    background: rgba(var(--color-primary-rgb), 0.08);
    border-left: 4px solid var(--color-primary);
    color: var(--color-primary-dark);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
}

.alert-info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border-color: var(--alert-info-border);
}

.alert-error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border-color: var(--alert-error-border);
}

/* ---------- 16. Footer ---------- */
.site-footer {
    background: var(--color-navy-deep);
    color: var(--color-white);
    padding-top: 3rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
    color: var(--color-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-brand .brand-text {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.75rem;
}

.footer-brand .brand-number {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 150ms var(--ease-out), color 150ms var(--ease-out), transform 120ms var(--ease-out);
}

.social-links a:active {
    transform: scale(0.95);
}

@media (hover: hover) and (pointer: fine) {
    .social-links a:hover {
        background: var(--color-primary);
        color: var(--color-white);
    }
}

.footer-links h3,
.footer-contact h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.25rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-credit {
    display: block;
    margin-top: 0.375rem;
    font-size: 0.75rem;
    opacity: 0.55;
}

/* ---------- 17. Back to top ---------- */
.back-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms var(--ease-out);
    z-index: 999;
}

.back-to-top:active {
    transform: scale(0.95);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-dark);
}

/* ---------- 18. Floating cart ---------- */
.floating-cart {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-primary);
    color: var(--color-on-primary);
    padding: 0.875rem 1.25rem;
    border-radius: 999px;
    box-shadow: var(--shadow-xl);
    text-decoration: none;
    font-weight: 700;
    transition: transform 150ms var(--ease-out), box-shadow 150ms var(--ease-out);
}

.floating-cart:hover {
    transform: translateY(-2px);
    color: var(--color-on-primary);
}

.floating-cart-icon {
    font-size: 1.1rem;
}

.floating-cart-text {
    display: none;
}

.floating-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    background: var(--color-white);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.8rem;
}

.floating-cart-count:empty,
.floating-cart-count[data-count="0"] {
    display: none;
}

/* ---------- 19. Toast notifications ---------- */
#toast-container {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.2s var(--ease-out);
}

.toast-hiding {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 20. Cart & Checkout ---------- */
.checkout-section {
    padding-top: 2rem;
}

.checkout-container {
    max-width: 1100px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

.checkout-title {
    margin-bottom: 1.5rem;
}

.checkout-cart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.cart-item-image {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-warm);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image.placeholder {
    color: var(--color-text-secondary);
    font-size: 1.25rem;
}

.cart-item-name {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin: 0;
}

.cart-item-qty .qty-input {
    width: 64px;
    text-align: center;
    padding: 0.5rem;
}

.cart-item-subtotal {
    font-weight: 700;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    min-width: 44px;
    min-height: 44px;
}

.cart-item-remove:hover {
    background: rgba(var(--color-text-rgb), 0.06);
}

/* Checkout form */
.checkout-form fieldset,
.checkout-fieldset {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.checkout-form legend,
.checkout-fieldset legend {
    font-weight: 700;
    padding: 0 0.5rem;
}

.checkout-form .form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.checkout-form .form-group {
    margin-bottom: 1rem;
}

.checkout-form label,
.checkout-form .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.checkout-form .optional {
    font-weight: 400;
    color: var(--color-text-secondary);
}

.fulfillment-group {
    grid-column: 1 / -1;
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.radio-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 44px;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 150ms var(--ease-out), background 150ms var(--ease-out);
}

.radio-card:hover,
.radio-card:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-bg-warm);
}

.radio-card input {
    accent-color: var(--color-primary);
}

.radio-card span {
    font-weight: 500;
}

#payment-element,
.payment-element {
    margin-bottom: 1rem;
}

.payment-message {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.payment-message:empty {
    display: none;
}

.payment-message.error {
    background: var(--alert-error-bg);
    color: var(--alert-error-text);
    border: 1px solid var(--alert-error-border);
}

.payment-message.info {
    background: var(--alert-info-bg);
    color: var(--alert-info-text);
    border: 1px solid var(--alert-info-border);
}

.checkout-summary {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    position: sticky;
    top: 6rem;
}

.checkout-summary h2 {
    margin-bottom: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
}

.summary-row.summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    border-bottom: none;
}

.summary-note {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-top: 0.75rem;
}

/* ---------- 21. Confirmation pages ---------- */
.confirmation-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.confirmation-container {
    max-width: 640px;
    margin: 0 auto;
}

.confirmation-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    text-align: center;
}

.confirmation-card > i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.confirmation-success > i {
    color: var(--color-success);
}

.confirmation-error > i {
    color: var(--color-error);
}

.confirmation-pending > i {
    color: var(--color-warning);
}

.confirmation-card h1 {
    margin-bottom: 0.75rem;
}

.confirmation-details {
    text-align: left;
    margin: 1.5rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    gap: 1rem;
}

.confirmation-note {
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
}

.confirmation-card .form-actions {
    justify-content: center;
}

/* ---------- 22. Empty state ---------- */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-secondary);
}

.empty-state i,
.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ---------- 23. Scroll reveal (DESIGN.md §7, L2) ----------
   Solo se ocultan cuando hay JS (html.js): sin JS el contenido es visible. */
html.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

html.js .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

html.js .reveal-scale {
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

html.js .reveal-scale.in-view {
    opacity: 1;
    transform: scale(1);
}

/* Foto que se descubre con cortina (DESIGN.md §7) */
html.js .reveal-clip {
    clip-path: inset(0 100% 0 0 round var(--radius-lg));
    transition: clip-path 900ms var(--ease-out);
}

html.js .reveal-clip.in-view {
    clip-path: inset(0 0 0 0 round var(--radius-lg));
}

/* ---------- 24. Dark theme: overrides específicos ---------- */
/* La cta-band sigue oscura en dark mode (--color-navy se aclara solo para uso decorativo) */
html[data-theme="dark"] .cta-band {
    background: linear-gradient(135deg, var(--color-navy-deep), var(--color-bg-warm));
}

html[data-theme="dark"] .site-footer p,
html[data-theme="dark"] .site-footer a {
    color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .site-footer a:hover {
    color: var(--color-secondary);
}

html[data-theme="dark"] .schedule-map {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] .toast {
    background: var(--color-surface);
    border-color: var(--color-border);
}

html[data-theme="dark"] .cart-item-remove:hover,
html[data-theme="dark"] .theme-toggle:hover,
html[data-theme="dark"] .cart-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- 25. Reduced motion (DESIGN.md §7) ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    html.js .reveal,
    html.js .reveal-scale {
        opacity: 1;
        transform: none;
    }

    html.js .reveal-clip {
        clip-path: none;
    }

    .hero-title .line {
        clip-path: none;
        animation: none;
    }

    .marquee-track {
        animation: none;
    }
}

/* ---------- 26. Responsive (mobile-first, DESIGN.md §9) ---------- */
@media (min-width: 480px) {
    .floating-cart-text {
        display: inline;
    }
}

@media (min-width: 640px) {
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .form-grid .full-width {
        grid-column: span 2;
    }

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

    .location-card {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (min-width: 900px) {
    :root {
        --header-height: 104px;
    }

    .nav-left,
    .nav-right {
        display: block;
    }

    .brand {
        margin-top: 0;
    }

    .brand-logo {
        max-width: 258px;
        max-height: 138px;
        font-size: 3.5rem;
    }

    .brand-text {
        font-size: 2rem;
    }

    .nav-toggle {
        display: none;
    }

    .main-nav {
        display: none;
    }

    .nav-left .nav-list,
    .nav-right .nav-list {
        flex-direction: row;
        padding: 0;
        gap: 0.25rem;
    }

    .nav-left .nav-list a,
    .nav-right .nav-list a {
        font-size: 1.05rem;
    }

    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .two-col {
        grid-template-columns: 1fr 1fr;
    }

    .story-grid {
        grid-template-columns: 1fr 1.5fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr 320px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 3rem;
        align-items: start;
    }
}

@media (min-width: 1100px) {
    .schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Bento: 4 col → 2 col → 1 col (DESIGN.md §4/§9) */
@media (max-width: 899px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }

    .bento-large {
        grid-column: span 2;
    }
}

@media (max-width: 639px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-large {
        grid-column: span 1;
    }
}

/* ---------- 27. Print ---------- */
@media print {
    .site-header,
    .site-footer,
    .back-to-top,
    .floating-cart,
    .btn-group,
    .category-nav-wrapper,
    #toast-container {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 2rem 0;
    }

    .reveal,
    .reveal-scale {
        opacity: 1;
        transform: none;
    }

    .reveal-clip {
        clip-path: none;
    }
}
