/* ============================================================
   Restaurante Medina — website styles (shared by all pages)
   Tokens come from styles.css; this is layout/skin only.
   ============================================================ */

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--surface-page); color: var(--text-body); font-family: var(--font-body); }
* { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
i[data-lucide] { width: 18px; height: 18px; }
section { scroll-margin-top: 96px; }

/* ---------- Header ---------- */
.topbar { background: var(--slate-900); color: var(--teal-300); text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; padding: 8px 12px; }
.topbar a { color: var(--orange-300); }
header.nav { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border-hairline); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 10px 24px; max-width: 1180px; margin: 0 auto; }
.brand { display: flex; flex-direction: column; line-height: 1; cursor: pointer; }
.brand .m { font-family: var(--font-accent); font-size: 38px; color: var(--color-brand); line-height: .7; }
.brand .rule { height: 2.5px; width: 86%; margin: 1px auto 3px 1px; background: var(--color-accent); border-radius: 2px; }
.brand .r { font-family: var(--font-display); font-weight: 700; font-size: 9px; letter-spacing: .3em; text-transform: uppercase; color: var(--text-strong); margin-left: .3em; }
nav.links { display: flex; align-items: center; gap: 28px; }
nav.links a { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-700); padding: 6px 0; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
nav.links a:hover { color: var(--teal-600); }
nav.links a.active { color: var(--teal-600); border-bottom-color: var(--teal-500); }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-body); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--radius-pill); cursor: pointer; border: 1.5px solid transparent; transition: filter .2s, transform .12s; font-size: 14px; padding: 12px 24px; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:hover { filter: brightness(.93); }
.btn.sm { padding: 9px 18px; font-size: 12px; }
.btn.lg { padding: 16px 32px; font-size: 16px; }
.btn-primary { background: var(--teal-500); color: #fff; }
.btn-accent { background: var(--orange-500); color: var(--slate-900); }
.btn-ghost { background: transparent; color: var(--teal-600); border-color: var(--teal-300); }
.btn-ghost:hover { background: var(--teal-100); filter: none; }
.btn-inverse { background: #fff; color: var(--slate-900); }
.menu-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--slate-800); }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--teal-600), var(--teal-500)); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 64px 24px 72px; max-width: 1180px; margin: 0 auto; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hero h1 { font-family: var(--font-accent); font-size: 104px; line-height: .8; margin: 14px 0 0; font-weight: 400; color: #fff; }
.hero .rule { height: 4px; width: 200px; background: var(--orange-500); border-radius: 3px; margin: 8px 0 6px; }
.hero .sub { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .4em; text-transform: uppercase; margin-left: .4em; color: rgba(255,255,255,.95); }
.hero p.lead { font-size: 19px; line-height: 1.55; color: rgba(255,255,255,.95); max-width: 30ch; margin: 22px 0 0; }
.hero .cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero .stars { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.9); }
.hero .stars .s { color: var(--orange-300); display: inline-flex; }
.hero-photo { position: relative; }
image-slot { background: rgba(255,255,255,.12); }
.hero-photo image-slot { width: 100%; height: 440px; box-shadow: var(--shadow-xl); }
.hero-badge { position: absolute; bottom: -22px; left: -22px; background: #fff; color: var(--teal-700); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px 18px; text-align: center; }
.hero-badge .n { font-family: var(--font-accent); font-size: 30px; color: var(--color-accent-strong); line-height: .9; }
.hero-badge .t { font-family: var(--font-display); font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-700); }

/* ---------- Page head band (interior pages) ---------- */
.page-head { background: linear-gradient(180deg, var(--teal-600), var(--teal-500)); color: #fff; text-align: center; padding: 56px 24px 60px; }
.page-head .flourish { width: 120px; margin: 0 auto 14px; filter: brightness(0) invert(1); opacity: .9; }
.page-head .over { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.page-head h1 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 46px; margin: 8px 0 0; color: #fff; }
.page-head p { font-size: 17px; color: rgba(255,255,255,.92); max-width: 60ch; margin: 12px auto 0; line-height: 1.55; }

/* ---------- Section heads ---------- */
.sec { padding: 76px 0; }
.sec.alt { background: var(--paper); }
.head { text-align: center; margin-bottom: 44px; }
.head .flourish { width: 110px; margin: 0 auto 14px; opacity: .9; }
.head .over { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-500); }
.head h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; font-size: 40px; color: var(--text-strong); margin: 8px 0 0; }
.head p { font-size: 17px; color: var(--text-muted); max-width: 60ch; margin: 14px auto 0; line-height: 1.55; }

/* ---------- Especialidad cards ---------- */
.dishes { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.dish { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .24s, box-shadow .24s; }
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dish image-slot { width: 100%; height: 200px; background: var(--teal-100); }
.dish .body { padding: 18px 20px 22px; }
.dish .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dish .nm { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .02em; font-size: 18px; color: var(--text-strong); }
.dish .pr { font-weight: 800; color: var(--text-price); font-size: 16px; white-space: nowrap; }
.dish p { margin: 6px 0 0; color: var(--text-muted); font-size: 14px; line-height: 1.5; }
.dish .tag { display: inline-block; margin-top: 12px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--teal-500); border-radius: var(--radius-pill); padding: 4px 11px; }

/* ---------- Checker band ---------- */
.checker { height: 26px; background: repeating-linear-gradient(90deg, var(--teal-500) 0 28px, var(--slate-300) 28px 56px); opacity: .9; }

/* ---------- Menu ---------- */
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 56px; }
.menu-block { padding: 8px 0 4px; }
.menu-block > .mh { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 14px; }
.menu-block > .mh img { width: 42px; opacity: .85; }
.menu-block > .mh h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 22px; color: var(--teal-600); margin: 0; white-space: nowrap; }
.mi { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; }
.mi .nm { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 15.5px; color: var(--text-strong); }
.mi .note { font-family: var(--font-display); font-weight: 600; font-size: 13px; color: var(--color-accent-strong); white-space: nowrap; }
.mi .dots { flex: 1; border-bottom: 1.5px dotted var(--border-default); transform: translateY(-4px); }
.mi .pr { font-weight: 800; color: var(--text-price); font-size: 15px; white-space: nowrap; }
.mi.sub .nm { font-weight: 800; color: var(--teal-600); font-size: 13px; letter-spacing: .08em; }
.menu-note { text-align: center; margin-top: 28px; font-size: 13px; color: var(--text-muted); }
.menu-note b { color: var(--color-accent-strong); }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about image-slot { width: 100%; height: 360px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); background: var(--slate-100); }
.about h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; font-size: 34px; color: var(--text-strong); margin: 10px 0 0; }
.about p { font-size: 17px; line-height: 1.7; color: var(--text-body); margin: 16px 0 0; }
.about .over { font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--teal-500); }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.gallery image-slot { width: 100%; height: 200px; background: var(--slate-100); }
.gallery image-slot.tall { grid-row: span 2; height: 414px; }

/* ---------- Reservar / Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.form-card { background: var(--surface-card); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 30px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
.field input, .field select { font-family: var(--font-body); font-size: 15px; color: var(--text-body); background: var(--surface-raised); border: 1.5px solid var(--border-default); border-radius: var(--radius-md); padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: var(--teal-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal-500) 22%, transparent); }
.field.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-block { display: flex; flex-direction: column; gap: 22px; }
.info-row { display: flex; gap: 14px; align-items: flex-start; }
.info-row .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: var(--radius-pill); background: var(--teal-100); color: var(--teal-600); display: inline-flex; align-items: center; justify-content: center; }
.info-row .ic i { width: 22px; height: 22px; }
.info-row .lbl { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; font-size: 14px; color: var(--text-strong); }
.info-row .val { color: var(--text-muted); font-size: 15px; line-height: 1.6; margin-top: 2px; }
.hours-row { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 14px; }
.hours-row.today { background: var(--orange-200); font-weight: 700; }
.hours-row + .hours-row { border-top: 1px solid var(--border-hairline); }
.hours-row.today + .hours-row { border-top: none; }
.form-ok { display: none; text-align: center; padding: 18px; }
.form-ok .ck { width: 64px; height: 64px; border-radius: var(--radius-pill); background: var(--teal-100); color: var(--teal-600); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.form-ok h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 24px; margin: 0 0 6px; }
.form-ok p { color: var(--text-muted); margin: 0; }

/* ---------- Quote ---------- */
.quote { background: var(--teal-600); color: #fff; text-align: center; padding: 72px 24px; }
.quote .q { font-family: var(--font-display); font-weight: 700; font-size: 30px; line-height: 1.35; max-width: 22ch; margin: 14px auto 16px; }
.quote .src { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-300); }

/* ---------- Footer ---------- */
footer.site { background: var(--slate-900); color: var(--mist); padding: 56px 24px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; max-width: 1180px; margin: 0 auto; }
footer .brand .m { color: var(--teal-300); }
footer .brand .r { color: var(--mist); }
footer p { color: var(--slate-300); font-size: 14px; line-height: 1.7; }
footer .ftitle { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--orange-400); margin-bottom: 14px; }
footer .social { display: flex; gap: 12px; margin-top: 16px; }
footer .social span { width: 38px; height: 38px; border-radius: var(--radius-pill); border: 1.5px solid var(--slate-600); display: inline-flex; align-items: center; justify-content: center; color: var(--teal-300); }
.foot-bottom { max-width: 1180px; margin: 36px auto 0; padding-top: 20px; border-top: 1px solid var(--slate-700); display: flex; justify-content: space-between; color: var(--slate-400); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.links { position: fixed; inset: 0 0 0 auto; width: 260px; background: #fff; flex-direction: column; align-items: flex-start; padding: 84px 28px; gap: 18px; box-shadow: var(--shadow-xl); transform: translateX(100%); transition: transform .3s var(--ease-out); }
  nav.links.open { transform: translateX(0); }
  .menu-toggle { display: inline-flex; }
  .hero-inner, .about, .contact, .foot-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 78px; }
  .hero-photo image-slot { height: 300px; }
  .dishes { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; gap: 8px 0; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .gallery image-slot.tall { grid-row: span 1; height: 200px; }
  .foot-bottom { flex-direction: column; gap: 8px; }
  .page-head h1 { font-size: 36px; }
}
