/* =========================================================
   Proyecto Parrilla — hoja de estilos (HTML + CSS puro)
   ========================================================= */

/* ---------- Fuentes (incluidas en assets/fonts, licencia OFL) ---------- */
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../assets/fonts/league-spartan-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'League Spartan'; font-style: normal; font-weight: 500 800; font-display: swap; src: url('../assets/fonts/league-spartan-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/work-sans-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Work Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../assets/fonts/work-sans-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Tokens ---------- */
:root {
  --font-display: 'League Spartan', sans-serif;
  --font-body: 'Work Sans', sans-serif;

  --cream-50: oklch(0.98 0.005 85);   /* fondo principal */
  --cream-100: oklch(0.95 0.008 85);  /* fondo body / texto claro */
  --gray-100: oklch(0.91 0.004 260);  /* tarjetas */
  --gray-200: oklch(0.85 0.004 260);  /* bordes */
  --gray-250: oklch(0.88 0.004 260);

  --ink-900: oklch(0.14 0.005 70);    /* footer / header oscuro */
  --ink-850: oklch(0.16 0.005 70);
  --ink-800: oklch(0.18 0.005 70);
  --ink-750: oklch(0.2 0.008 70);
  --brand: oklch(0.22 0.01 75);       /* botones */
  --ink-700: oklch(0.26 0.008 70);
  --ink-650: oklch(0.3 0.008 70);
  --ink-600: oklch(0.32 0.008 70);
  --ink-550: oklch(0.38 0.008 70);
  --ink-500: oklch(0.4 0.008 70);
  --ink-450: oklch(0.42 0.008 70);
  --ink-400: oklch(0.48 0.008 70);

  --pad-x: clamp(20px, 6vw, 64px);
  --pad-y: clamp(56px, 12vw, 140px);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream-100); font-family: var(--font-body); color: var(--ink-650); }
a { color: var(--ink-700); text-decoration: none; }
a:hover { color: var(--brand); }
img { display: block; max-width: 100%; }
::selection { background: oklch(0.88 0.015 80); }
h1, h2, h3, p { margin: 0; }

.page { display: flex; flex-direction: column; background: var(--cream-50); position: relative; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
}
.btn--solid { background: var(--brand); color: #fff; }
.btn--solid:hover { color: #fff; background: var(--ink-900); }
.btn--outline { border-color: var(--ink-600); color: var(--ink-800); }
.btn--outline:hover { background: var(--ink-800); color: #fff; }
.btn--light { background: var(--cream-100); color: var(--ink-900); }
.btn--light:hover { color: var(--ink-900); background: #fff; }
.btn--ghost-light { border-color: oklch(0.5 0.008 70); color: var(--cream-100); }
.btn--ghost-light:hover { color: #fff; border-color: var(--cream-100); }
.btn--sm { font-size: 13px; }
.btn--lg { font-size: 16px; padding: 16px 30px; }
.btn--md { font-size: 15px; padding: 14px 26px; }

/* ---------- Botón volver arriba ---------- */
.to-top {
  position: fixed; right: 28px; bottom: 28px; z-index: 20;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px -6px oklch(0.3 0.02 40 / 0.4); opacity: .85;
}
.to-top:hover { opacity: 1; }

/* ---------- Etiquetas y títulos ---------- */
.eyebrow { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); }
.section-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 4vw, 34px); color: var(--ink-750); }
.section-head { display: flex; flex-direction: column; gap: 16px; text-align: center; }
.section-head .lead { font-size: 15px; color: var(--ink-450); max-width: 56ch; margin: 0 auto; }

/* ---------- Fotos (reemplazan a los image-slots) ---------- */
.photo { width: 100%; height: 100%; object-fit: cover; background: var(--gray-200); }
.photo--rounded { border-radius: 6px; }

/* =========================================================
   INICIO
   ========================================================= */

/* Nav */
.site-nav {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; row-gap: 14px;
  padding: 24px 32px; border-bottom: 1px solid var(--gray-200);
}
.brand { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: .02em; color: var(--ink-800); }
.site-nav__links { display: flex; gap: 28px; flex-wrap: wrap; font-size: 15px; }
.site-nav__links a { color: var(--ink-600); }

/* Hero */
.hero { position: relative; min-height: clamp(420px, 70vh, 640px); overflow: hidden; }
.hero .photo { position: absolute; inset: 0; }
.hero__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, oklch(0.2 0.04 40 / 0.72), oklch(0.2 0.04 40 / 0.1) 55%); }
.hero__content {
  position: absolute; left: clamp(20px, 5vw, 64px); right: clamp(20px, 5vw, 64px); bottom: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; gap: 22px; align-items: flex-start;
}
.hero__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 5.5vw, 48px); line-height: 1.15; color: #fff; }

/* Quiénes somos */
.about {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 6vw, 72px); align-items: center; padding: var(--pad-y) var(--pad-x);
}
.about__text { display: flex; flex-direction: column; gap: 28px; }
.about__text p { font-size: 17px; line-height: 1.8; color: var(--ink-550); max-width: 50ch; }
.about__logo { display: flex; align-items: center; justify-content: center; width: 100%; height: 420px; }
.about__logo img { width: 380px; height: 385px; object-fit: contain; }

/* Pilares */
.pillars {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--gray-200); margin: 0 var(--pad-x); border-radius: 6px; overflow: hidden;
}
.pillar { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; padding: 52px 40px; background: var(--gray-100); }
.pillar .photo { width: 180px; height: 180px; }
.pillar h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink-800); }
.pillar p { font-size: 15px; line-height: 1.7; color: var(--ink-500); }

/* Menú (accesos) */
.menu-links { display: flex; flex-direction: column; gap: 36px; align-items: center; text-align: center; padding: var(--pad-y) var(--pad-x); }
.menu-links .section-title { font-size: 34px; }
.menu-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; width: 100%; max-width: 800px; }
.menu-links__grid a {
  font-weight: 600; font-size: 16px; padding: 30px 20px; border-radius: 8px;
  border: 1.5px solid var(--ink-600); color: var(--ink-800); transition: background .2s, color .2s;
}
.menu-links__grid a:hover { background: var(--ink-800); color: #fff; }

/* Sucursal */
.branch { display: flex; flex-direction: column; gap: 44px; padding: 0 var(--pad-x) var(--pad-y); }
.branch .section-title { text-align: center; }
.branch__card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(24px, 4vw, 48px);
  align-items: center; padding: clamp(24px, 4vw, 36px); border-radius: 10px; background: var(--gray-100);
  width: 100%; max-width: 1000px; margin: 0 auto;
}
.branch__card .photo { height: 280px; }
.branch__info { display: flex; flex-direction: column; gap: 16px; font-size: 14px; line-height: 1.6; color: var(--ink-500); }
.branch__info h3 { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink-800); }
.branch__hours { display: flex; flex-direction: column; gap: 4px; }
.branch__actions { display: flex; gap: 10px; flex-wrap: wrap; padding-top: 6px; }

/* Eventos */
.events { display: flex; flex-direction: column; gap: 44px; padding: 0 var(--pad-x) var(--pad-y); }
.events .section-title { font-size: 34px; }
.events__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.event-card { display: flex; flex-direction: column; gap: 16px; border-radius: 10px; overflow: hidden; background: var(--gray-100); }
.event-card .photo { height: 180px; }
.event-card__body { display: flex; flex-direction: column; gap: 10px; padding: 0 22px 22px; }
.event-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink-800); }
.event-card p { font-size: 13px; line-height: 1.6; color: var(--ink-500); }

/* Cotización */
.quote {
  display: flex; flex-direction: column; gap: 44px; align-items: center; background: var(--gray-100);
  padding: clamp(56px, 10vw, 80px) var(--pad-x) var(--pad-y);
}
.quote .section-title { font-size: 34px; }
.quote-form {
  display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 560px;
  padding: clamp(24px, 5vw, 40px); border-radius: 10px; background: var(--cream-50);
  box-shadow: 0 1px 0 var(--gray-200);
}
.fieldset { display: flex; flex-direction: column; gap: 12px; border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend, .field-label {
  padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-400);
}
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.input {
  width: 100%; font-family: var(--font-body); font-size: 14px; padding: 12px 14px;
  border-radius: 6px; border: 1px solid var(--gray-200); background: #fff; color: var(--ink-800);
}
.input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
textarea.input { resize: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.checks {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 16px;
  max-height: 200px; overflow-y: auto; padding: 14px; border-radius: 6px; border: 1px solid var(--gray-200);
}
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-600); }
.quote-form .btn { font-size: 15px; padding: 14px; width: 100%; }

/* Footer */
.site-footer {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px;
  padding: clamp(40px, 8vw, 64px); background: var(--ink-900); color: var(--cream-100);
}
.site-footer a { color: var(--cream-100); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.site-footer__brand .brand { color: var(--cream-100); font-size: 20px; }
.site-footer__brand span:last-child { font-size: 14px; color: oklch(0.78 0.008 85); }
.site-footer__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.site-footer__contact h3 { font-family: var(--font-body); font-weight: 600; font-size: 15px; letter-spacing: .02em; color: oklch(0.82 0.02 80); }
.contact-row { display: flex; gap: 10px; align-items: flex-start; }
.contact-row svg { flex-shrink: 0; margin-top: 3px; color: oklch(0.6 0.008 85); }
.contact-row--indent { padding-left: 25px; }
.contact-row small { font-size: 13px; color: oklch(0.83 0.008 85); }
.socials { display: flex; gap: 14px; padding-top: 6px; }

/* =========================================================
   MENÚ
   ========================================================= */
.menu-page { min-height: 100vh; }
.menu-page .to-top { right: 24px; bottom: 24px; background: var(--ink-800); opacity: .88; }

.menu-header { display: flex; flex-direction: column; background: var(--ink-900); color: var(--cream-100); }
.menu-header .site-nav { padding: 22px clamp(20px, 5vw, 64px); border-bottom-color: oklch(0.26 0.005 70); gap: 14px; }
.back-link { display: flex; align-items: center; gap: 10px; color: var(--cream-100); }
.back-link:hover { color: #fff; }
.back-link .brand { color: inherit; font-size: 20px; }

.menu-hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(28px, 5vw, 64px); align-items: end;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px) clamp(36px, 5vw, 56px);
}
.menu-hero__text { display: flex; flex-direction: column; gap: 20px; }
.menu-hero__text .kicker { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: oklch(0.72 0.008 85); }
.menu-hero__text h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(48px, 9vw, 112px);
  line-height: .92; letter-spacing: -.01em; text-wrap: balance; color: oklch(0.97 0.006 85);
}
.menu-hero__text p { font-size: 17px; line-height: 1.6; color: oklch(0.8 0.008 85); max-width: 44ch; }
.mascot { justify-self: end; align-self: center; width: 374px; height: 255px; object-fit: contain; }

/* Carrusel de fotos — animación solo con CSS */
.slider {
  position: relative; width: 100%; height: clamp(320px, 42vw, 520px);
  border-radius: 8px; overflow: hidden; background: oklch(0.24 0.005 70);
  --slide: 4.5s;
}
.slide { position: absolute; inset: 0; opacity: 0; animation-duration: calc(var(--slide) * var(--n)); animation-iteration-count: infinite; animation-fill-mode: backwards; animation-timing-function: linear; animation-delay: calc(var(--slide) * var(--i)); }
.slide__blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55); }
.slide__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slider__dots { position: absolute; left: 16px; bottom: 14px; display: flex; gap: 6px; }
.slider__dots span { width: 22px; height: 3px; border-radius: 2px; background: #fff; opacity: .35; animation-duration: calc(var(--slide) * var(--n)); animation-iteration-count: infinite; animation-fill-mode: backwards; animation-timing-function: linear; animation-delay: calc(var(--slide) * var(--i)); }
@media (prefers-reduced-motion: reduce) {
  .slide, .slider__dots span { animation: none !important; }
  .slide:first-child { opacity: 1; }
  .slider__dots span:first-child { opacity: 1; }
}
/* Keyframes generados */
@keyframes slide-4 { 0% { opacity: 0; } 6.667% { opacity: 1; } 25% { opacity: 1; } 31.667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dot-4 { 0% { opacity: .35; } 3.333% { opacity: 1; } 25% { opacity: 1; } 28.333% { opacity: .35; } 100% { opacity: .35; } }
.slider--4 .slide { animation-name: slide-4; }
.slider--4 .slider__dots span { animation-name: dot-4; }
@keyframes slide-8 { 0% { opacity: 0; } 3.333% { opacity: 1; } 12.5% { opacity: 1; } 15.833% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dot-8 { 0% { opacity: .35; } 1.667% { opacity: 1; } 12.5% { opacity: 1; } 14.167% { opacity: .35; } 100% { opacity: .35; } }
.slider--8 .slide { animation-name: slide-8; }
.slider--8 .slider__dots span { animation-name: dot-8; }
@keyframes slide-10 { 0% { opacity: 0; } 2.667% { opacity: 1; } 10% { opacity: 1; } 12.667% { opacity: 0; } 100% { opacity: 0; } }
@keyframes dot-10 { 0% { opacity: .35; } 1.333% { opacity: 1; } 10% { opacity: 1; } 11.333% { opacity: .35; } 100% { opacity: .35; } }
.slider--10 .slide { animation-name: slide-10; }
.slider--10 .slider__dots span { animation-name: dot-10; }
/* fin keyframes */

/* Pestañas de carta */
.carta-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 clamp(20px, 5vw, 64px) 28px; }
.carta-tabs a {
  font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px;
  border: 1px solid oklch(0.4 0.005 70); color: oklch(0.9 0.008 85);
}
.carta-tabs a:hover { border-color: var(--cream-100); color: #fff; }
.carta-tabs a[aria-current="page"] { background: var(--cream-100); border-color: var(--cream-100); color: var(--ink-900); }

/* Navegación por secciones (sticky) */
.section-nav { position: sticky; top: 0; z-index: 10; background: oklch(0.98 0.005 85 / 0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gray-250); }
.section-nav__inner { display: flex; gap: 6px; overflow-x: auto; padding: 14px clamp(20px, 5vw, 64px); scrollbar-width: none; }
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav a {
  flex-shrink: 0; font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); color: var(--ink-700); white-space: nowrap;
}
.section-nav a:hover { background: var(--ink-800); color: #fff; border-color: var(--ink-800); }

/* Secciones de la carta */
.menu-main { display: flex; flex-direction: column; width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.menu-section { display: flex; flex-direction: column; gap: 36px; padding-top: clamp(56px, 8vw, 96px); scroll-margin-top: 70px; }
.menu-section__head { display: flex; flex-direction: column; gap: 14px; padding-bottom: 22px; border-bottom: 2px solid var(--ink-800); }
.menu-section__title { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.menu-section__num { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: oklch(0.55 0.008 70); }
.menu-section__title h2 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(34px, 5vw, 56px);
  line-height: 1; color: var(--ink-850); text-transform: uppercase; letter-spacing: .01em;
}
.menu-section__sub { font-size: 15px; color: oklch(0.45 0.008 70); }
.menu-section__note { align-self: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-650); background: var(--gray-100); padding: 10px 16px; border-radius: 6px; max-width: 80ch; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 34px 64px; }
.items--compact { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px 48px; }

.item { display: flex; flex-direction: column; gap: 7px; break-inside: avoid; }
.item__row { display: flex; align-items: baseline; gap: 10px; }
.item__name, .item__price { font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.25; color: var(--ink-850); }
.item__price { white-space: nowrap; }
.leader { flex: 1; min-width: 16px; border-bottom: 1.5px dotted oklch(0.7 0.006 85); transform: translateY(-4px); }
.item__desc { font-size: 14.5px; line-height: 1.6; color: var(--ink-450); text-wrap: pretty; max-width: 60ch; }
.item__opts { display: flex; flex-direction: column; gap: 5px; padding: 4px 0 0 14px; border-left: 2px solid var(--gray-200); }
.opt { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-650); }
.opt .leader { border-bottom-width: 1px; border-bottom-color: oklch(0.78 0.006 85); }
.opt__price { font-weight: 600; white-space: nowrap; color: var(--ink-800); }

/* CTA final */
.menu-cta {
  display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
  margin-top: clamp(72px, 10vw, 120px); padding: clamp(56px, 8vw, 88px) clamp(20px, 5vw, 64px);
  background: var(--ink-900); color: var(--cream-100);
}
.menu-cta h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 42px); }
.menu-cta p { font-size: 15px; color: oklch(0.78 0.008 85); }
.menu-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
