/* Inicio de la demo Cafetería / Restaurante, pensado primero para el celular.
   Regla heredada de la demo anterior: cada bloque entra en una pantalla y lo
   que tiene más de 3 cosas va en carrusel horizontal (.slider de
   styles.css), que se recorre con el pulgar sin bajar.
   Orden: hero corto con foto → platos con puntaje → todas las semanas →
   eventos → eventos privados → cómo llegar. La navegación la resuelve la
   barra fija de abajo (demo.js). Colores solo con tokens: el restaurante
   cambia el :root. */

.bloque { padding: 28px 0 8px; }
.bloque + .bloque { padding-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; padding: 34px 0 28px; background: var(--oscuro); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
/* La foto queda de fondo y el texto se lee siempre: velo del color de la
   marca, más cerrado del lado del texto. */
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--oscuro) 55%, transparent) 0%, color-mix(in srgb, var(--oscuro) 88%, transparent) 70%, var(--oscuro) 100%); }
.hero-in { position: relative; }
.hero h1 { font-size: clamp(36px, 9.5vw, 72px); max-width: 13ch; }
.hero .hl { color: var(--acento); }
.hero .lede { margin-top: 12px; font-size: 17px; max-width: 38ch; color: var(--on-dark-2); }
.hero-ctas { display: flex; gap: 10px; margin-top: 20px; }
.hero-ctas .btn { flex: 1; max-width: 220px; }
.hero-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.hero-chips li { font-size: 12.5px; font-weight: 600; color: var(--on-dark-2); background: color-mix(in srgb, var(--oscuro-3) 85%, transparent); border-radius: var(--pill); padding: 5px 10px; }
@media (min-width: 761px) {
  .hero { padding: 96px 0 84px; }
  .hero::after { background: linear-gradient(90deg, color-mix(in srgb, var(--oscuro) 92%, transparent) 0%, color-mix(in srgb, var(--oscuro) 70%, transparent) 50%, color-mix(in srgb, var(--oscuro) 25%, transparent) 100%); }
  .hero .lede { font-size: 19px; }
}

/* ---------- Eventos (carrusel) ---------- */
.ev-card { background: var(--surface); border-radius: var(--r-lg); padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-content: start; box-shadow: var(--shadow-sm); min-height: 100%; }
.ev-card.destacada { background: var(--acento); color: var(--acento-ink); }
.ev-dia { grid-row: span 3; text-align: center; line-height: .9; }
.ev-dia b { display: block; font-family: var(--font-display); font-weight: var(--h-weight); font-size: 50px; letter-spacing: -.04em; }
.ev-dia small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-top: 5px; }
.ev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.ev-hora { font-weight: 800; font-size: 14px; white-space: nowrap; }
.ev-card h3 { font-size: 18px; line-height: 1.15; }
.ev-card .btn { justify-self: start; margin-top: 8px; }
.ev-card.destacada .btn { background: var(--oscuro); color: #fff; }
.ev-card.destacada .tag[data-tipo="musica"] { background: var(--oscuro); color: var(--acento); }
.ev-vacio { background: var(--surface); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-sm); }
.ev-vacio p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Todas las semanas ---------- */
.fijos-slider { --slide: 70%; }
.fijo { border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; min-height: 100%; }
.fijo h3 { font-size: 22px; font-weight: var(--h-weight); }
.fijo p { font-size: 15px; }
.fijo-when { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.fijo-a { background: var(--acento); color: var(--acento-ink); }
.fijo-b { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--oscuro); }
.fijo-c { background: var(--oscuro); color: var(--on-dark-2); }
.fijo-c h3 { color: #fff; }
.fijo-c .fijo-when { color: var(--acento); }
@media (min-width: 641px) { .fijos-slider { --slide: 300px; } }

/* ---------- Platos con puntaje ---------- */
.platos-slider { --slide: 62%; }
@media (min-width: 641px) { .platos-slider { --slide: 250px; } }
.plato { background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; box-shadow: var(--shadow-sm); min-height: 100%; }
.plato-foto { aspect-ratio: 4 / 3; background: var(--fondo-2); overflow: hidden; }
.plato-foto img { width: 100%; height: 100%; object-fit: cover; }
.plato-body { padding: 12px 14px 14px; display: grid; gap: 4px; }
.plato-nombre { font-weight: 700; font-size: 16px; line-height: 1.2; }
.plato-rating { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-weight: 600; }
.plato-precio { font-family: var(--font-display); font-weight: var(--h-weight); font-size: 17px; }
.plato-quote { font-size: 13.5px; color: var(--ink-2); font-style: italic; }
.carta-nota { font-size: 12.5px; color: var(--muted); margin-top: -4px; }
.opinar-link { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 16px; background: var(--oscuro); color: var(--on-dark-2); border-radius: var(--r); text-decoration: none; font-size: 15px; }
.opinar-link strong { color: #fff; }
.opinar-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acento); color: var(--acento-ink); flex: none; }
.opinar-ico svg { width: 20px; height: 20px; }
.opinar-link > span:last-child { margin-left: auto; color: var(--acento); font-weight: 800; }

/* ---------- Eventos privados ---------- */
.privados { position: relative; overflow: hidden; background: var(--acento); color: var(--acento-ink); border-radius: var(--r-lg); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; }
.privados h2 { font-size: 22px; line-height: 1.1; max-width: 18ch; }
.privados p { font-size: 14.5px; margin-top: 6px; max-width: 40ch; }
@media (max-width: 420px) { .privados { grid-template-columns: 1fr; } .privados .btn { justify-self: start; } }

/* ---------- Cómo llegar ---------- */
.llegar { padding-bottom: 32px; }
.llegar-in { display: grid; gap: 16px; align-items: center; }
@media (min-width: 761px) { .llegar-in { grid-template-columns: 1fr 1.15fr; gap: 32px; } }
.llegar h2 { font-size: 22px; margin-bottom: 6px; }
.llegar-nota { color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.llegar-horario { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.llegar-horario div { background: var(--surface); border-radius: var(--r-sm); padding: 10px 12px; box-shadow: var(--shadow-sm); }
.llegar-horario dt { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.llegar-horario dd { margin: 2px 0 0; font-family: var(--font-display); font-weight: var(--h-weight); font-size: 18px; line-height: 1.2; color: var(--ink); }
.llegar-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Sin mapa real: un plano ilustrado que dice qué va ahí. */
.llegar-mapa { position: relative; border-radius: var(--r); overflow: hidden; background: var(--fondo-2); box-shadow: var(--shadow-sm); aspect-ratio: 16 / 9; }
.llegar-mapa svg { display: block; width: 100%; height: 100%; }
.llegar-mapa-txt { position: absolute; left: 12px; bottom: 12px; font-size: 12.5px; font-weight: 700; background: var(--surface); color: var(--ink-2); border-radius: var(--pill); padding: 4px 10px; box-shadow: var(--shadow-sm); }
@media (min-width: 761px) { .llegar-mapa { aspect-ratio: 4 / 3; } }

/* ---------- Encargues para retirar ----------
   Texto a la izquierda y tres productos con foto; en el celular, el texto
   arriba y los tres en fila. */
.encargar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; background: var(--surface); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.encargar-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.encargar h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 6px; }
.encargar-txt p { color: var(--ink-2); margin: 8px 0 16px; max-width: 42ch; }
.encargar-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.encargar-prods a { display: grid; gap: 4px; text-decoration: none; color: var(--ink); }
.encargar-prods img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--fondo-2); transition: transform 300ms ease; }
.encargar-prods a:hover img { transform: scale(1.03); }
.encargar-prods .ep-n { font-weight: 700; font-size: 14px; line-height: 1.25; margin-top: 4px; }
.encargar-prods .ep-p { font-size: 13.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 760px) {
  .encargar { grid-template-columns: 1fr; padding: 18px 16px; gap: 16px; }
  .encargar-txt .btn { width: 100%; }
  .encargar-prods { gap: 8px; }
  .encargar-prods .ep-n { font-size: 12.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .encargar-prods .ep-p { font-size: 12.5px; }
  .encargar-txt { order: 0; }
}

/* Cómo llegar: el mapa ilustrado respeta su 16:9 (el SVG de 400×300 lo
   estiraba a 4:3 y en compu quedaba una caja enorme al lado del texto). */
.llegar-mapa svg { position: absolute; inset: 0; }
.llegar h2 { font-size: clamp(22px, 3vw, 34px); }
/* "Todas las semanas": en compu, las tres en una fila pareja. */
@media (min-width: 900px) { .fijos-slider { grid-auto-columns: calc((100% - 2 * var(--gap)) / 3); } }
/* En el celular: texto, después las fotos y el botón al final, a mano del pulgar. */
@media (max-width: 760px) {
  .encargar { gap: 6px; }
  .encargar-txt { display: contents; }
  .encargar-txt p { margin: 2px 0 10px; }
  .encargar-prods { order: 2; margin-bottom: 12px; }
  .encargar-txt .btn { order: 3; }
}
