/* =============================================================
   Soda Ledita · propuesta privada · Arquetipo 06 (Revista / recetario)
   Papel, tinta verde oscura, rojo tomate y amarillo carambola.
   Playfair Display + Source Serif 4 + Work Sans.
   1. Tokens
   ============================================================= */
:root {
  --paper:   #fbf6ec;
  --paper-2: #f3ead8;
  --ink:     #1d2a22;   /* tinta verde casi negra */
  --ink-2:   #3b4a40;
  --mute:    #6c7468;
  --red:     #a8321f;   /* rojo tomate de revista */
  --red-2:   #86261a;
  --sun:     #e7a91a;   /* amarillo carambola */
  --sun-lt:  #f8e3a6;
  --wa:      #1f8f4e;
  --wa-2:    #176f3c;
  --hair:    1px solid var(--ink);
  --soft:    1px solid rgba(29,42,34,.16);
  --display: "Playfair Display", Georgia, "Times New Roman", serif;
  --serif:   "Source Serif 4", Georgia, serif;
  --sans:    "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --gutter:  clamp(1.1rem, 4.5vw, 2.5rem);
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--serif); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  padding-bottom: 84px;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; }
ul, ol { list-style: none; }
em { font-style: italic; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-family: var(--sans); }
.skip-link:focus { top: 1rem; }

/* Idioma: el HTML trae los dos; se muestra uno (sin JS queda español) */
html.lang-es [data-lang="en"], html.lang-en [data-lang="es"] { display: none !important; }

/* Barra de lectura */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--sun); transform-origin: 0 50%; transform: scaleX(0); }

/* 3. Franja de demo */
.demo-strip {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .3rem 1rem;
  background: var(--ink); color: #e8e2d2; text-align: center;
  font-family: var(--sans); font-size: .74rem; letter-spacing: .02em; padding: .5rem var(--gutter);
}
.demo-strip a { color: #fff; text-decoration: none; }
.demo-strip .kdk { display: inline-flex; align-items: center; gap: .35em; vertical-align: middle; font-weight: 600; }
.demo-strip .kdk svg { flex: none; }
.demo-wa { border-bottom: 1px solid rgba(255,255,255,.45); }

/* 4. Masthead */
.masthead { position: sticky; top: 0; z-index: 50; background: rgba(251,246,236,.97); border-bottom: var(--hair); }
.mast-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .7rem; padding-bottom: .55rem; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: .7rem; flex-wrap: wrap; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: clamp(1.45rem, 5vw, 1.9rem); line-height: 1; letter-spacing: -.01em; }
.brand-name em { font-weight: 700; color: var(--red); }
.brand-sub { font-family: var(--sans); font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; color: var(--mute); }
.lang { display: inline-flex; border: var(--hair); border-radius: 999px; overflow: hidden; font-family: var(--sans); font-size: .76rem; font-weight: 600; }
.lang button { padding: .38rem .7rem; min-width: 42px; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.mast-nav { border-top: var(--soft); }
.mast-nav-inner { display: flex; gap: 1.4rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-top: .55rem; padding-bottom: .55rem; }
.mast-nav-inner::-webkit-scrollbar { display: none; }
.mast-nav a {
  flex: none; font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; position: relative; padding: .15rem 0;
}
.mast-nav a::after, .ulink::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.mast-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* 5. Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none; text-align: center;
  transition: background-color .25s ease, color .25s ease, transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-2); }
.btn-line { border: var(--hair); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--red); }
.btn-block { width: 100%; }

/* 6. Tipografía de secciones */
.kicker { font-family: var(--sans); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; letter-spacing: -.015em; }
h2 { font-size: clamp(2rem, 6.4vw, 3.4rem); margin-top: .35rem; }
h2 em, h1 em { font-weight: 500; color: var(--red); }
.section { padding: clamp(3.2rem, 9vw, 6rem) 0; border-top: var(--hair); }
.head { display: grid; grid-template-columns: auto 1fr; gap: .9rem 1.1rem; align-items: start; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.section-no { font-family: var(--display); font-style: italic; font-weight: 500; font-size: 1.05rem; color: var(--mute); border-top: 2px solid var(--ink); padding-top: .3rem; min-width: 2.2rem; }
.fineprint { margin-top: 1.2rem; font-size: .85rem; font-style: italic; color: var(--mute); }

/* 7. Hero (portada) */
.hero { padding: clamp(1.8rem, 6vw, 3.8rem) 0 clamp(2rem, 5vw, 3rem); }
.hero-grid { display: grid; gap: 1.8rem; align-items: center; }
.hero-title { font-size: clamp(2.65rem, 11.5vw, 5.6rem); line-height: .98; margin: .7rem 0 1.1rem; }
.hero-title em { display: block; }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.22rem); color: var(--ink-2); max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.hero-fig { margin: 0; }
.hero-fig img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 4px; }
.hero-fig figcaption, .menu-photo figcaption, .camino figcaption { margin-top: .55rem; font-size: .84rem; color: var(--mute); border-top: var(--soft); padding-top: .45rem; }
.hero-fig figcaption i, .menu-photo figcaption i { white-space: nowrap; }

.facts { display: grid; grid-template-columns: 1fr; margin-top: clamp(1.8rem, 5vw, 2.8rem); border-top: var(--hair); border-bottom: var(--hair); }
.facts > div { padding: .85rem 0; border-bottom: var(--soft); display: flex; align-items: baseline; gap: 1rem; }
.facts > div:last-child { border-bottom: 0; }
.facts dt { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); min-width: 5.6rem; }
.facts dd { font-size: 1rem; }
.facts dd a { text-decoration: none; border-bottom: 1px solid rgba(29,42,34,.3); }
.stars { color: var(--sun); letter-spacing: .08em; }
[data-open-status] { display: inline-flex; align-items: center; gap: .5rem; }
[data-open-status]::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mute); flex: none; }
[data-open-status].is-open::before { background: var(--wa); box-shadow: 0 0 0 4px rgba(31,143,78,.18); }
[data-open-status].is-closed::before { background: var(--red); }

/* 8. Platos */
.dishes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 1rem; }
.dish figure { margin: 0; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.dish img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--ease); }
.dish:hover img { transform: scale(1.04); }
.dish-body { padding-top: .75rem; border-top: 2px solid var(--ink); margin-top: .8rem; }
.dish h3 { font-size: clamp(1.25rem, 4.6vw, 1.6rem); }
.dish p { font-size: .93rem; color: var(--ink-2); margin-top: .25rem; line-height: 1.45; }
.dish .price, .pr {
  font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--red);
  background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(231,169,26,.18) 5px 10px);
  border: 1px dashed rgba(168,50,31,.55); border-radius: 4px; padding: .12rem .45rem; display: inline-block; white-space: nowrap;
}
.dish .price { margin-top: .55rem; }

/* 9. Menú */
.menu { background: var(--paper-2); }
.menu-grid { display: grid; gap: 2.2rem 3rem; }
.menu-cat h3 { font-size: clamp(1.45rem, 5vw, 1.85rem); padding-bottom: .5rem; border-bottom: var(--hair); }
.menu-cat-ph h3 { font-family: var(--sans); font-size: 1rem; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.cat-note { font-style: italic; color: var(--mute); font-size: .95rem; margin-top: .5rem; }
.items li { display: flex; align-items: baseline; gap: .5rem; padding: .78rem 0; border-bottom: var(--soft); }
.items .it b { font-weight: 600; font-size: 1.04rem; }
.items .dots { flex: 1; min-width: 1rem; border-bottom: 2px dotted rgba(29,42,34,.35); transform: translateY(-4px); }
.items li.ph .it b { color: var(--mute); font-weight: 400; font-style: italic; }
.menu-photo { margin: 1.3rem 0 0; }
.menu-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.carambola { width: 120px; margin: 1.2rem 0 0 auto; border-radius: 50%; aspect-ratio: 1; object-fit: cover; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--sun); }
.menu-foot { margin-top: 2.4rem; padding-top: 1.4rem; border-top: var(--hair); display: grid; gap: 1rem; justify-items: start; }
.menu-foot p { font-style: italic; color: var(--ink-2); max-width: 40rem; }

/* 10. Historia */
.historia-grid { display: grid; gap: 1.6rem 3.5rem; }
.historia-grid .head { margin-bottom: 0; }
.lede { font-size: clamp(1.1rem, 2.8vw, 1.28rem); line-height: 1.65; max-width: 38rem; }
.dropcap {
  float: left; font-family: var(--display); font-weight: 800; color: var(--red);
  font-size: 4.9em; line-height: .8; margin: .07em .12em 0 0;
}
.pull {
  clear: both; margin-top: 2rem; padding: 1.2rem 0 1.2rem 1.2rem; border-left: 4px solid var(--sun);
  font-family: var(--display); font-size: clamp(1.45rem, 5vw, 2.1rem); line-height: 1.2; font-weight: 600;
}
.pull em { color: var(--red); font-weight: 500; }
.photo-ph {
  margin: 0; aspect-ratio: 16 / 10; max-height: 520px; border: 2px dashed rgba(29,42,34,.35); border-radius: 4px;
  display: grid; place-items: center; padding: 1.5rem; text-align: center;
  background: repeating-linear-gradient(-45deg, var(--paper) 0 14px, var(--paper-2) 14px 28px);
  font-family: var(--sans); font-size: .9rem; color: var(--mute);
}

/* 11. Reseñas */
.resenas { background: var(--ink); color: var(--paper); border-top-color: var(--ink); }
.resenas .kicker { color: var(--sun); }
.resenas h2 em { color: var(--sun-lt); }
.resenas .section-no { color: rgba(251,246,236,.6); border-top-color: var(--paper); }
.resenas-inner { display: grid; gap: 2rem 3rem; }
.resenas-inner .head { margin-bottom: 0; }
.score { display: grid; justify-items: start; gap: .3rem; }
.score-n { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 22vw, 8rem); line-height: .9; }
.score .stars { font-size: 1.6rem; }
.score-l { font-family: var(--sans); font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(251,246,236,.7); }
.mentions ul { margin: 1rem 0 1.6rem; counter-reset: m; }
.mentions li { counter-increment: m; display: flex; gap: .9rem; align-items: baseline; padding: .6rem 0; border-bottom: 1px solid rgba(251,246,236,.16); font-size: 1.08rem; }
.mentions li::before { content: counter(m, decimal-leading-zero); font-family: var(--display); font-style: italic; color: var(--sun); font-size: .95rem; min-width: 1.6rem; }
.resenas .btn-line { border-color: var(--paper); color: var(--paper); }
.resenas .btn-line:hover { background: var(--paper); color: var(--ink); }

/* 12. Cómo llegar */
.llegar-grid { display: grid; gap: 2rem 3rem; }
.addr { display: flex; gap: .6rem; font-size: 1.12rem; font-weight: 600; }
.addr .ico { color: var(--red); margin-top: .25rem; }
.route-note { margin-top: 1rem; color: var(--ink-2); max-width: 34rem; }
.ph-line { margin-top: 1rem; font-family: var(--sans); font-size: .85rem; color: var(--mute); border: 1px dashed rgba(29,42,34,.35); border-radius: 4px; padding: .6rem .8rem; }
.nav-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.4rem; }
.camino { margin: 1.8rem 0 0; }
.camino img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; filter: sepia(.08); }
.map { min-height: 340px; border: var(--hair); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* 13. Horario */
.horario { background: var(--paper-2); }
.horario-grid { display: grid; gap: 2.4rem 3.5rem; align-items: start; }
.hours { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.hours th, .hours td { text-align: left; padding: .72rem .2rem; border-bottom: var(--soft); }
.hours th { font-weight: 600; }
.hours td { text-align: right; font-family: var(--sans); font-size: .92rem; }
.hours tr.closed td { color: var(--red); }
.hours tr.is-today { background: var(--sun-lt); }
.hours tr.is-today th::after { content: attr(data-today); margin-left: .5rem; font-family: var(--sans); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--red); }
.order-card { background: var(--paper); border: var(--hair); border-radius: 6px; padding: clamp(1.4rem, 4vw, 2rem); display: grid; gap: .9rem; box-shadow: 8px 8px 0 var(--ink); }
.order-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 5.5vw, 2.3rem); line-height: 1.05; }
.order-title em { color: var(--red); font-weight: 500; }
.tel { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: var(--sans); font-size: .9rem; text-decoration: none; padding: .4rem; }

/* 14. Footer */
.footer { border-top: var(--hair); padding: 2.4rem 0 2rem; font-size: .9rem; }
.footer-inner { display: grid; gap: .9rem; }
.footer-brand { font-family: var(--display); font-weight: 800; font-size: 1.5rem; display: flex; flex-direction: column; }
.footer-brand em { color: var(--red); font-weight: 700; }
.footer-brand small { font-family: var(--sans); font-weight: 500; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--mute); }
.footer-demo, .footer-credits { color: var(--mute); }
.footer a { color: var(--ink); }

/* 15. Barra fija del celular */
.mobile-bar {
  position: fixed; left: .6rem; right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); z-index: 55;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: .45rem; padding: .4rem;
  background: var(--ink); border-radius: 999px; box-shadow: 0 10px 30px rgba(29,42,34,.3);
}
.mobile-bar a { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 46px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: .9rem; text-decoration: none; }
.mb-wa { background: var(--wa); color: #fff; }
.mb-map { color: var(--paper); }

/* 16. Apariciones (solo si JS está activo; sin JS todo se ve) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }

/* 17. Tablet / escritorio */
@media (min-width: 720px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div { border-bottom: 0; border-right: var(--soft); padding: 1rem 1.2rem; flex-direction: column; gap: .3rem; }
  .facts > div:first-child { padding-left: 0; }
  .facts > div:last-child { border-right: 0; }
  .dishes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.6rem; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .nav-btns { display: flex; }
  .nav-btns .btn { min-width: 150px; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .hero-grid { grid-template-columns: 5fr 6fr; gap: 3.5rem; }
  .historia-grid { grid-template-columns: 1.25fr 1fr; }
  .historia-grid .head { grid-column: 1 / -1; }
  .photo-ph { aspect-ratio: 4 / 5; }
  .resenas-inner { grid-template-columns: 1fr 1.2fr; }
  .resenas-inner .head { grid-column: 1 / -1; }
  .llegar-grid { grid-template-columns: 1fr 1.15fr; }
  .map, .map iframe { min-height: 560px; }
  .horario-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Movimiento reducido: solo se apaga lo intrusivo (barra y desplazamientos grandes) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal { transform: none; }
}
