/* Terro Brava Bar — noche de neón: azul de letrero, rojo jaiba y dorado de cerveza.
   Tokens por tema (BONES §3.12): se cambia el TOKEN, no clase por clase. */

@font-face { font-family: "DM Sans"; src: url("/fonts/dm-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/fonts/caveat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #ece7db;
  --ink: #121628;
  --muted: #3b4058;
  --line: #d6d0c1;
  --blue: #0a4fa8;
  --red: #b42a14;
  --red-ink: #ffffff;
  --gold: #7a4d00;
  --glow: transparent;
  --shadow: 0 1px 2px rgb(18 22 40 / .06), 0 12px 32px rgb(18 22 40 / .10);
  --radius: 1rem;
  --font: "DM Sans", system-ui, sans-serif;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --script: "Caveat", "Segoe Script", cursive;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1026;
  --surface: #131a38;
  --surface-2: #10173a;
  --ink: #f4f1e8;
  --muted: #c5cbe0;
  --line: #2a3566;
  --blue: #6cc0ff;
  --red: #ff6a4d;
  --red-ink: #0b1026;
  --gold: #f5c04a;
  --glow: rgb(108 192 255 / .35);
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 16px 40px rgb(0 0 0 / .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: clamp(1rem, 0.42vw + 0.6rem, 1.1875rem); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.75 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: .2em; }
h1, h2, h3 { line-height: 1.1; margin: 0 0 .6em; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.kicker { font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--surface); color: var(--ink); padding: .6rem 1rem; border-radius: .5rem; }
.skip:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

.shell { width: 100%; max-width: min(max(87.5rem, 94vw), 140rem); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.narrow { max-width: 52rem; }
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.section-alt { background: var(--surface-2); }
.section-head { margin-bottom: 2rem; }
.section-more { margin: 2rem 0 0; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; min-height: 44px; }

/* ---------- botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.25rem; border-radius: 999px; font: 700 .95rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--red-ink); box-shadow: 0 6px 20px rgb(255 106 77 / .25); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- encabezado ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; background: linear-gradient(90deg, var(--red), var(--gold)); transform-origin: 0 50%; transform: scaleX(var(--scroll, 0)); }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: padding .3s; }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 4.5rem; }
.is-scrolled .header-row { min-height: 3.75rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand-crab { width: 2.6rem; height: auto; color: var(--red); filter: drop-shadow(0 0 6px var(--glow)); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { white-space: nowrap; font: 700 1.75rem/1 var(--script); color: var(--blue); text-shadow: 0 0 12px var(--glow); }
.brand-tag { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .15rem; }
.main-nav { display: none; margin-left: auto; gap: .25rem; }
.main-nav a, .mobile-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; padding: .6rem .8rem; border-radius: .6rem; min-height: 44px; display: inline-flex; align-items: center; }
.main-nav a:hover, .mobile-nav a:hover { background: var(--surface-2); }
.main-nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.header-tools { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.lang-switch { display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .6rem; color: var(--ink); font-weight: 700; font-size: .875rem; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; }
.theme-picker { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; margin: 0; }
.theme-picker label { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.theme-picker input { position: absolute; opacity: 0; pointer-events: none; }
.theme-picker label:has(input:checked) { background: var(--ink); color: var(--bg); }
.theme-picker label:has(input:focus-visible) { outline: 3px solid var(--blue); }
.menu-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: .7rem; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bars, .bars::before, .bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
.bars::before { position: absolute; top: -6px; } .bars::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] .bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: .5rem 0 1rem; }
.mobile-nav .shell { display: grid; }
@media (max-width: 30rem) { .brand-tag { display: none; } .brand-name { font-size: 1.5rem; } .header-tools { gap: .3rem; } .theme-picker label { width: 36px; height: 36px; } }
@media (min-width: 64rem) { .main-nav { display: flex; } .header-tools { margin-left: .5rem; } .menu-toggle, .mobile-nav { display: none !important; } }

/* ---------- héroe ---------- */
.hero { position: relative; isolation: isolate; min-height: min(88vh, 56rem); display: grid; align-items: end; overflow: hidden; color: #f8f6ef; background: #0b1026; }
.hero-media, .page-hero-media { position: absolute; inset: 0 0 -12%; z-index: -2; transform: translateY(calc(var(--p, 0) * -40px)); }
.hero-media img, .page-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 0%; }
.page-hero-media img { object-position: 50% 40%; }
.hero::before, .page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(11 16 38 / .15) 0%, rgb(11 16 38 / .55) 45%, rgb(11 16 38 / .95) 100%); }
.hero-text { padding-block: 8rem 3rem; }
.hero .kicker { color: #f5c04a; }
.hero-title { max-width: 18ch; text-shadow: 0 2px 24px rgb(0 0 0 / .5); }
.hero .lead, .page-hero .lead { color: #e6e9f4; }
.hero .btn-ghost { color: #f8f6ef; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.chips li { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: rgb(11 16 38 / .65); border: 1px solid rgb(108 192 255 / .45); font-size: .875rem; font-weight: 600; }
.chips .icon { color: #6cc0ff; }
.page-hero { position: relative; isolation: isolate; overflow: hidden; color: #f8f6ef; background: #0b1026; min-height: 22rem; display: grid; align-items: end; }
.page-hero-text { padding-block: 7rem 2.5rem; }
@media (min-width: 96rem) { .hero { min-height: min(80vh, 60rem); } }
/* Celular: la fachada completa arriba (el letrero es la identidad) y el texto debajo, sin encimarse. */
@media (max-width: 47.99rem) {
  .hero { display: block; min-height: 0; }
  .hero-media { position: relative; inset: auto; aspect-ratio: 4 / 3; transform: none; }
  .hero::before { display: none; }
  .hero-text { padding-block: 1.75rem 2.75rem; }
}

/* ---------- cinta animada ---------- */
.ribbon { overflow: hidden; background: var(--red); color: var(--red-ink); padding-block: .8rem; }
.ribbon-track { display: flex; gap: 2.5rem; width: max-content; list-style: none; margin: 0; padding: 0; animation: ribbon 40s linear infinite; }
.ribbon-track li { display: inline-flex; align-items: center; gap: .6rem; font: 400 1.15rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.ribbon-star { width: 1rem; height: 1rem; }
@keyframes ribbon { to { transform: translateX(-50%); } }

/* ---------- promos ---------- */
.promo-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.promo-status { grid-column: 1 / -1; padding: 1.5rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); margin: 0; }
.promo-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.promo-card.is-today { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow); }
.promo-media { background: #0b1026; display: grid; place-items: center; }
.promo-media img { width: 100%; max-height: 26rem; object-fit: contain; }
.promo-body { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.promo-tags { display: flex; gap: .4rem; margin: 0; }
.tag { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: .2rem .6rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); }
.tag-today { background: var(--red); color: var(--red-ink); }
.promo-partido .tag:first-child { background: var(--blue); color: var(--bg); }
.promo-title { font-size: 1.25rem; margin: .2rem 0 0; }
.promo-when { font-weight: 700; color: var(--blue); margin: 0; font-size: .95rem; }
.promo-details { color: var(--muted); margin: 0; font-size: .95rem; }
.promo-price { font: 400 2rem/1 var(--display); color: var(--gold); margin: auto 0 0; padding-top: .5rem; }
@media (min-width: 96rem) { .promo-grid { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); } }
/* Promo sin póster: tarjeta de «letrero» con el precio o el título en grande, no un hueco blanco. */
.promo-card:not(:has(.promo-media)) { background: radial-gradient(120% 90% at 0% 0%, rgb(255 106 77 / .18), transparent 60%), radial-gradient(120% 90% at 100% 100%, rgb(108 192 255 / .2), transparent 60%), var(--surface); }
.promo-card:not(:has(.promo-media)) .promo-body { justify-content: center; padding: 2rem 1.5rem; }
.promo-card:not(:has(.promo-media)) .promo-title { font: 400 clamp(2rem, 3.2vw, 2.8rem)/1.05 var(--display); text-transform: uppercase; }

/* ---------- por qué venir ---------- */
.feature-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); list-style: none; padding: 0; margin: 0; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.feature-icon { width: 2.4rem; height: 2.4rem; color: var(--red); margin-bottom: .8rem; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---------- foto + texto ---------- */
.split { display: grid; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.split > * { min-width: 0; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
@media (min-width: 60rem) { .split { grid-template-columns: 1.2fr 1fr; } .split-form { grid-template-columns: 1fr 1.1fr; } }

/* ---------- formulario ---------- */
.table-form { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); }
.table-form .field { grid-column: 1 / -1; min-width: 0; }
.table-form .field-sm { grid-column: span 1; }
.table-form .field-wide { grid-column: 1 / -1; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field select { width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: .7rem; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: 1rem var(--font); }
.field input[aria-invalid="true"] { border-color: var(--red); }
.field-error { color: var(--red); font-size: .875rem; font-weight: 600; margin: .3rem 0 0; min-height: 0; }
.field-error:empty { display: none; }
@media (max-width: 34rem) { .table-form { grid-template-columns: 1fr; } .table-form .field-sm { grid-column: 1 / -1; } }

/* ---------- galería ---------- */
.gallery-grid { columns: 3 18rem; column-gap: 1rem; list-style: none; padding: 0; margin: 0; }
.gallery-grid li { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-item img { width: 100%; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.03); }
@media (min-width: 110rem) { .gallery-grid { columns: 4 18rem; } }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; overflow: visible; }
.lightbox::backdrop { background: rgb(5 8 20 / .9); }
.lightbox img { max-width: 92vw; max-height: 82vh; width: auto; border-radius: .75rem; margin-inline: auto; }
.lightbox-caption { color: #f4f1e8; text-align: center; margin: .8rem auto 0; max-width: 60ch; font-size: .95rem; }
.lightbox-btn { position: fixed; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgb(255 255 255 / .92); color: #0b1026; font: 700 1.8rem/1 var(--font); cursor: pointer; }
.lightbox-prev { left: 1rem; top: 50%; } .lightbox-next { right: 1rem; top: 50%; } .lightbox-close { right: 1rem; top: 1rem; }

/* ---------- carta ---------- */
.menu-layout { display: grid; gap: 2.5rem; }
.menu-layout > * { min-width: 0; }
.menu-group { margin-bottom: 2.5rem; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.menu-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.menu-list h3 { margin: 0; font-size: 1.05rem; }
.menu-list p { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.menu-price { flex: none; font-size: .875rem; font-weight: 700; color: var(--gold); }
.menu-aside img { border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1rem; }
.free-snack { display: flex; gap: .6rem; align-items: center; font-weight: 700; }
.free-snack .icon { color: var(--red); width: 1.6rem; height: 1.6rem; }
@media (min-width: 60rem) { .menu-layout { grid-template-columns: 1fr 22rem; } .menu-aside { position: sticky; top: 6rem; align-self: start; } }

/* ---------- cómo llegar ---------- */
.visit-grid { display: grid; gap: 1.5rem; }
.visit-grid > * { min-width: 0; }
.visit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.visit-card h3 { margin: 1.2rem 0 .3rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.visit-card h3:first-child { margin-top: 0; }
.map-box { min-height: 22rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-box iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; display: block; }
.map-placeholder { height: 100%; min-height: 22rem; display: grid; place-content: center; justify-items: center; gap: .8rem; text-align: center; padding: 2rem; color: var(--muted); background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface)); }
.map-pin { width: 3rem; height: 3rem; color: var(--red); }
@media (min-width: 60rem) { .visit-grid { grid-template-columns: 1fr 1.4fr; } }

/* ---------- preguntas ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: .25rem 0; interpolate-size: allow-keywords; }
.faq summary { cursor: pointer; font-weight: 700; padding: .9rem 0; min-height: 44px; list-style-position: inside; }
.faq details p { color: var(--muted); }
.faq details::details-content { height: 0; overflow: clip; transition: height .3s, content-visibility .3s allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* ---------- texto legal y 404 ---------- */
.prose h2 { font-family: var(--font); text-transform: none; font-size: 1.25rem; font-weight: 700; margin-top: 2rem; }
.prose p { max-width: 70ch; }
.not-found { text-align: center; } .not-found .lead { margin-inline: auto; } .not-found-en { margin-top: 2rem; }

/* ---------- pie ---------- */
.site-footer { background: #070b1c; color: #e8e9f2; padding: 3.5rem 0 6rem; margin-top: 0; }
.site-footer a { color: #f4f1e8; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.brand-footer { color: #f4f1e8; } .brand-footer .brand-name { color: #6cc0ff; } .brand-footer .brand-tag { color: #c5cbe0; } .brand-footer .brand-crab { color: #ff6a4d; }
.footer-slogan { font: 700 1.5rem/1.2 var(--script); color: #f5c04a; margin-top: 1rem; }
.footer-title { font: 700 .8rem/1 var(--font); letter-spacing: .16em; color: #f5c04a; margin-bottom: 1rem; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; font-size: .95rem; }
.footer-list li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-list .icon { color: #6cc0ff; margin-top: .25rem; }
.footer-links a { display: inline-flex; min-height: 32px; align-items: center; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / .15); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .875rem; color: #d4d7e6; }
.footer-legal .link-btn { color: #f4f1e8; }
.credit { font-size: .875rem; font-weight: 600; color: rgb(255 255 255 / .88); text-align: center; margin: 1rem 0 0; }
.credit a { color: #ffffff; font-weight: 800; text-decoration: underline; text-decoration-color: rgb(255 255 255 / .4); }

/* ---------- WhatsApp flotante y consentimiento ---------- */
.wa-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; background: #0b7a3e; color: #fff; box-shadow: 0 10px 30px rgb(0 0 0 / .3); }
.wa-fab .icon { width: 1.5rem; height: 1.5rem; }
.consent { position: fixed; left: 1rem; right: 1rem; bottom: 5rem; z-index: 45; max-width: 34rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; box-shadow: var(--shadow); font-size: .9rem; }
.consent div { display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- movimiento (BONES §3.14): solo con html.motion-on y sin opacidad en el texto ---------- */
.motion-on [data-reveal]:not(.is-in) { clip-path: inset(-30% -30% 100% -30%); transform: translateY(28px); pointer-events: none; }
.motion-on [data-reveal] { transition: clip-path .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms), transform .9s cubic-bezier(.2, .7, .2, 1) var(--d, 0ms); }
.motion-on [data-reveal].is-in { clip-path: inset(-30%); transform: none; }
.hero-title { animation: rise 1s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { clip-path: inset(0 0 100% 0); transform: translateY(24px); } to { clip-path: inset(-20%); transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero-media, .page-hero-media { transform: none; }
}
