/* La Tentación — "Pecado amarillo" */
:root {
  --yellow: #F6C915;
  --yellow-soft: #FFF4C2;
  --wine: #8E1B2E;
  --wine-deep: #6A1221;
  --lip: #E8467C;
  --ink: #1C1414;
  --paper: #FFFCF0;
  --leaf: #2F5D3A;
  --ok: #1F6B3A;
  --error: #A3122A;

  --display: "Shrikhand", "Georgia", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 10px;
  --r-lg: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 400; }
h1, h2 { font-family: var(--display); color: var(--wine); letter-spacing: -.01em; }
h3 { font-family: var(--sans); font-weight: 600; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.intro { max-width: 46ch; margin-top: 16px; font-size: 1.125rem; }
.link { color: var(--wine); font-weight: 600; text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--wine { background: var(--wine); color: #fff; }
.btn--wine:hover { background: var(--wine-deep); }
.btn--ink { background: var(--ink); color: var(--yellow); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: var(--yellow); border-color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--gutter);
  background: var(--yellow);
  border-bottom: 2px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 1.5rem; color: var(--wine); }
.brand__lips { width: 40px; height: 20px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:not(.btn):hover { border-color: var(--wine); }
.menu-btn { display: none; }

@media (max-width: 820px) {
  .menu-btn {
    display: grid; place-items: center; width: 48px; height: 48px;
    background: transparent; border: 2px solid var(--ink); border-radius: 50%; cursor: pointer;
  }
  .menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
    content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative;
    transition: transform .25s var(--ease), opacity .2s;
  }
  .menu-btn__bars::before { position: absolute; top: -6px; }
  .menu-btn__bars::after { position: absolute; top: 6px; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(6px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--yellow); border-bottom: 2px solid var(--ink);
    transform-origin: top; transform: scaleY(.96); opacity: 0; visibility: hidden;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .nav a:not(.btn) { padding: 14px 0; font-size: 1.25rem; border-bottom: 1px solid rgba(28,20,20,.15); }
  .nav .btn { margin-top: 16px; }
}

/* Hero */
.hero {
  background: var(--yellow);
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
  align-items: center; gap: clamp(16px, 4vw, 56px);
  padding: clamp(40px, 8vw, 96px) var(--gutter) clamp(56px, 9vw, 112px);
  max-width: none; overflow: hidden;
}
.hero__text { max-width: 760px; justify-self: end; }
.hero h1 { font-size: clamp(2.75rem, 7.4vw, 6.5rem); line-height: .98; }
.hero__lead { margin-top: 24px; max-width: 34ch; font-size: clamp(1.125rem, 1.8vw, 1.375rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.status { margin-top: 20px; font-weight: 500; min-height: 1.55em; display: flex; align-items: flex-start; gap: 10px; }
.status::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .5em; border-radius: 50%; background: var(--ink); opacity: 0; }
.status.is-open::before { background: var(--ok); opacity: 1; box-shadow: 0 0 0 4px rgba(31,107,58,.18); }
.status.is-closed::before { background: var(--wine); opacity: 1; }

.apple { margin: 0; justify-self: start; width: min(100%, 440px); }
.apple svg { overflow: visible; }
.apple__body { fill: var(--wine); }
.apple__leaf { fill: var(--leaf); transform-origin: 214px 76px; }
.apple__stem { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.apple__shine { fill: none; stroke: var(--lip); stroke-width: 12; stroke-linecap: round; opacity: .85; }
.bite circle { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .bite circle { transform: scale(0); animation: bite .45s var(--ease) forwards; }
  .bite circle:nth-child(1) { animation-delay: .7s; }
  .bite circle:nth-child(2) { animation-delay: .82s; }
  .bite circle:nth-child(3) { animation-delay: .94s; }
  .apple svg { animation: wobble .5s var(--ease) .7s; transform-origin: 50% 90%; }
  @keyframes bite { to { transform: scale(1); } }
  @keyframes wobble { 30% { transform: rotate(-4deg); } 65% { transform: rotate(2deg); } }
}

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero__text { justify-self: start; }
  .apple { order: -1; width: 46vw; max-width: 220px; justify-self: end; margin-bottom: -12px; }
}

/* Carta */
.carta { padding: clamp(64px, 9vw, 120px) 0; background: var(--paper); }
.carta h2, .voces h2, .reservar h2, .horario h2, .donde h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
.carta__head { margin-bottom: clamp(32px, 5vw, 56px); }
.menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(40px, 5vw, 72px) clamp(32px, 6vw, 96px); }
.menu__group h3 {
  font-family: var(--display); font-weight: 400; color: var(--wine);
  font-size: 1.75rem; padding-bottom: 10px; border-bottom: 3px solid var(--ink); margin-bottom: 8px;
}
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li {
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px;
  padding: 16px 0; border-bottom: 1px dashed rgba(28,20,20,.3);
}
.dish { font-weight: 600; font-size: 1.125rem; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.desc { grid-column: 1 / -1; color: #4A3A3A; margin-top: 2px; }
.menu li.star .dish { display: inline-flex; align-items: center; gap: 8px; }
.menu li.star .dish::after {
  content: ""; flex: none; width: 28px; height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%23E8467C' d='M2 15C10 6 18 2 25 4c3 1 5 3 7 3s4-2 7-3c7-2 15 2 23 11-8 1-14 3-17 7-4 5-8 8-13 8s-9-3-13-8c-3-4-9-6-17-7z'/%3E%3Cpath fill='none' stroke='%238E1B2E' stroke-width='1.8' stroke-linecap='round' d='M7 15.5c8 2 16 3 25 3s17-1 25-3'/%3E%3C/svg%3E") no-repeat center / contain;
}
.carta__note { margin-top: 40px; max-width: 60ch; color: #4A3A3A; }
@media (max-width: 760px) { .menu { grid-template-columns: 1fr; } }

/* Voces */
.voces { background: var(--wine); color: #fff; padding: clamp(64px, 9vw, 112px) 0; }
.voces h2 { color: var(--yellow); max-width: 18ch; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); margin-top: 40px; }
.quotes blockquote { margin: 0; font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.45; padding-top: 20px; border-top: 2px solid var(--yellow); }
.quotes blockquote:nth-child(2) { transform: translateY(24px); }
.voces__src { margin-top: 56px; color: #F3D7DC; font-size: .95rem; }
@media (max-width: 760px) {
  .quotes { grid-template-columns: 1fr; }
  .quotes blockquote:nth-child(2) { transform: none; }
  .voces__src { margin-top: 32px; }
}

/* Reservar */
.reservar { background: var(--yellow); padding: clamp(64px, 9vw, 120px) 0; }
.reservar__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.reservar__lips { width: 160px; height: 80px; margin-top: 40px; transform: rotate(-8deg); }
.booking, .booking-ok {
  background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r-lg);
  padding: clamp(20px, 3.5vw, 40px);
  box-shadow: 8px 8px 0 var(--ink);
}
.booking { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field--wide { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; padding: 0; }
.opt { font-weight: 400; color: #5A4A4A; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  font: inherit; color: var(--ink); background: #fff;
  border: 2px solid var(--ink); border-radius: var(--r-sm);
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.field [aria-invalid="true"] { border-color: var(--error); background: #FFF1F3; }
.help { font-size: .95rem; color: #5A4A4A; }
.err { font-size: .95rem; color: var(--error); font-weight: 600; }

.slots { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; align-items: center; }
.slots__group { width: 100%; font-size: .95rem; color: #5A4A4A; margin-top: 4px; }
.slot { position: relative; }
.slot input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.slot span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 76px; min-height: 44px; padding: 8px 14px;
  border: 2px solid var(--ink); border-radius: 999px; background: #fff;
  font-weight: 600; font-variant-numeric: tabular-nums;
  transition: background-color .15s, color .15s;
}
.slot input:hover + span { background: var(--yellow-soft); }
.slot input:checked + span { background: var(--wine); border-color: var(--wine); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.slot input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; background: #fff; }
.slots .loading { color: #5A4A4A; }

.check { flex-direction: row; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--wine); flex: none; }
.check label { font-weight: 400; flex: 1; min-width: 0; }
.check .err { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-weight: 600; min-height: 1.5em; }
.form-msg.is-error { color: var(--error); }

.booking-ok h3 { font-family: var(--display); font-weight: 400; color: var(--wine); font-size: 2.25rem; }
.booking-ok p { margin-top: 12px; }
.booking-ok .btn { margin-top: 24px; }
.booking-ok:focus { outline: none; }

@media (max-width: 860px) {
  .reservar__grid { grid-template-columns: 1fr; }
  .reservar__lips { display: none; }
}
@media (max-width: 520px) {
  .booking { grid-template-columns: 1fr; box-shadow: 5px 5px 0 var(--ink); }
}

/* Horario */
.horario { background: var(--paper); padding: clamp(64px, 9vw, 112px) 0; }
.horario__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.125rem; }
.hours th, .hours td { text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(28,20,20,.2); }
.hours th { font-weight: 600; width: 38%; }
.hours td { font-variant-numeric: tabular-nums; }
.hours tr.is-today { background: var(--yellow); }
.hours tr.is-today th::after { content: " (hoy)"; font-weight: 400; }
@media (max-width: 760px) { .horario__grid { grid-template-columns: 1fr; } .hours { font-size: 1rem; } .hours th, .hours td { padding: 12px 8px; } }

/* Dónde */
.donde { background: var(--yellow-soft); padding: clamp(64px, 9vw, 112px) 0; border-top: 2px solid var(--ink); }
.donde__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.donde address { font-style: normal; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.35; margin-top: 20px; }
.donde address + p { margin-top: 12px; font-size: 1.25rem; }
.donde__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.donde__card { background: var(--wine); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.donde__card p { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; color: var(--yellow); margin: 16px 0 24px; }
.donde__lips { width: 72px; height: 36px; }
@media (max-width: 760px) { .donde__grid { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--ink); color: #F2E9E9; padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); }
.foot__grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.foot__brand { font-family: var(--display); color: var(--yellow); font-size: 1.75rem; }
.foot__links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; }
.foot__links a { display: inline-block; padding: 8px 0; }
.foot__copy { font-size: .95rem; color: #CBBDBD; }
.foot :focus-visible { outline-color: var(--yellow); }

/* Mobile dock */
.dock { display: none; }
@media (max-width: 820px) {
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--yellow); border-top: 2px solid var(--ink);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .dock.is-visible { transform: none; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

/* Legal pages */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
.legal h2 { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 1.375rem; margin-top: 40px; }
.legal p, .legal ul { margin-top: 14px; }
.legal li { margin-top: 6px; }
.legal .back { display: inline-block; margin-bottom: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
