/* Antojos las tacitas — "el pizarrón de la fonda"
   Paleta tomada del local: pizarrón negro con gises de colores, mural de sol mostaza con
   trazos turquesa, paredes encaladas, mesas de madera y la taza de barro del café.
   Firma: el menú escrito como pizarrón de gis (marco de madera) + el sol del mural. */
:root {
  --pizarra: #22272B;        /* pizarrón */
  --pizarra-2: #2C3237;
  --sol: #E9A922;            /* mural de sol */
  --sol-claro: #F6D77B;
  --turquesa: #137574;       /* trazos del mural, legible sobre claro */
  --barro: #A8461F;          /* taza de barro (texto blanco encima, AA) */
  --barro-oscuro: #8A3716;
  --cal: #FFF9EE;            /* pared encalada, fondo */
  --cal-2: #F7EBD3;
  --madera: #B98446;         /* mesas, marco del pizarrón */
  --madera-oscura: #8C5E2C;
  --tinta: #2A2320;
  --gris: #5F5147;           /* texto secundario sobre claro */
  --gis: #F4EFE6;            /* gis blanco */
  --gis-rosa: #F29BBE;
  --gis-amarillo: #F6D77B;
  --gis-lila: #C9B3F0;
  --gis-verde: #A8E08C;
  --gis-turquesa: #6FD6CF;
  --wa: #0F7A6E;             /* verde WhatsApp oscuro (AA con texto blanco) */
  --gis-letra: 'Caveat Brush', 'Segoe Print', cursive;
  --display: 'Fraunces', Georgia, serif;
  --cuerpo: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cal); color: var(--tinta);
  font-family: var(--cuerpo); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.08; margin: 0; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.02em; margin-bottom: .7rem; }
h3 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
p { margin: 0 0 .9rem; }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
section[id] { scroll-margin-top: 8.5rem; }
@media (min-width: 900px) { section[id] { scroll-margin-top: 5.5rem; } }

.envoltura { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.bloque { padding: 3.8rem 0; }
.intro { color: var(--gris); max-width: 60ch; font-size: 1.1rem; }
.suave { color: var(--gris); font-size: .94em; }
.sep { display: inline-block; padding: 0 .12em 0 .02em; }

/* ── Aviso de demo (paleta neutra ajena al negocio) ─────────────────── */
.demo-banner{background:#2b2620;color:#f2ece1;text-align:center;font-size:.85rem;
  line-height:1.4;padding:.4rem .9rem;letter-spacing:.01em;border-bottom:1px solid #4a4238}
@media (min-width:640px){.demo-banner{font-size:.92rem}}
@media (max-width:639px){.demo-banner{font-size:.74rem;padding:.28rem .5rem;line-height:1.28;letter-spacing:0}}

/* ── Barra ──────────────────────────────────────────────────────────── */
.barra { position: sticky; top: 0; z-index: 50; background: var(--pizarra); color: var(--gis); border-bottom: 4px solid var(--sol); }
.barra-in { max-width: 1120px; margin: 0 auto; padding: .45rem 16px .3rem; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .1rem .8rem; }
.marca { display: flex; align-items: center; gap: .5rem; text-decoration: none; min-width: 0; color: var(--gis); }
.marca img, .marca-taza { width: 36px; height: 36px; }
.marca span { font-family: var(--gis-letra); font-size: clamp(1.5rem, 6.5vw, 1.85rem); line-height: 1.1; color: var(--gis-amarillo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.barra-wa { display: inline-flex; align-items: center; gap: .4rem; background: var(--wa); color: #fff; text-decoration: none; font-weight: 800; padding: .55rem .95rem; border-radius: 999px; font-size: .95rem; }
.barra-wa:hover { background: #0B6359; }
.nav { grid-column: 1 / -1; display: flex; gap: .2rem; justify-content: space-between; overflow-x: auto; scrollbar-width: none; margin: 0 -6px; }
.nav::-webkit-scrollbar { display: none; }
.nav a { flex: 0 0 auto; text-decoration: none; font-weight: 700; font-size: .95rem; padding: .5rem .4rem; border-radius: 6px; color: var(--gis); }
.nav a:hover { background: rgba(246,215,123,.16); color: #fff; }
@media (min-width: 900px) {
  .barra-in { grid-template-columns: auto 1fr auto; padding: .6rem 16px; }
  .nav { grid-column: auto; grid-row: 1; grid-column-start: 2; justify-content: flex-end; margin: 0; }
  .nav a { padding: .35rem .65rem; }
  .barra-wa { display: none; }
}

/* ── Botones ────────────────────────────────────────────────────────── */
.acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.4rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .7rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 1.05rem; border: 2px solid transparent; }
.btn svg { width: 1.3em; height: 1.3em; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 0 #084a42; }
.btn-wa:hover { background: #0B6359; }
.btn-claro { background: #fff; color: var(--tinta); border-color: var(--tinta); box-shadow: 0 4px 0 var(--tinta); }
.btn-claro:hover { background: var(--cal-2); }
.btn-borde { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.btn-borde:hover { background: #fff; }

/* ── Portada: pared encalada con el sol del mural ──────────────────── */
.portada { position: relative; overflow: hidden; background: var(--cal-2); border-bottom: 6px solid var(--turquesa); }
.sol { position: absolute; width: 330px; height: 330px; right: -110px; top: -90px; color: var(--sol); opacity: .9; }
.portada-in { position: relative; max-width: 1120px; margin: 0 auto; padding: 1.6rem 16px 3rem; display: grid; gap: 2rem; align-items: center; }
.letrero { display: inline-block; margin: 0 0 .7rem; background: var(--turquesa); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .75rem; border-radius: 999px; }
.portada-marca { margin: 0; display: flex; align-items: flex-end; gap: .4rem; font-family: var(--gis-letra); font-size: clamp(3.2rem, 15vw, 5.4rem); line-height: .95; color: var(--barro); }
.portada-taza { width: .95em; height: .95em; color: var(--tinta); margin-bottom: .05em; }
.portada h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 5.8vw, 2.35rem); line-height: 1.1; letter-spacing: -.015em; margin: .9rem 0 .8rem; max-width: 22ch; color: var(--tinta); }
.bajada { font-size: 1.1rem; max-width: 46ch; color: var(--gris); font-weight: 600; }
.portada .acciones { margin-bottom: 1.2rem; }
.portada-horario { display: grid; gap: .55rem; }
.portada-horas { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.portada-horas strong { font-weight: 800; }
.estado { margin: 0; font-weight: 700; font-size: .95rem; }
.estado > span { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .8rem; border-radius: 999px; background: var(--pizarra); color: var(--gis); }
.estado > span > span { text-wrap: balance; }
.estado i { width: .6rem; height: .6rem; border-radius: 50%; background: #9A938B; flex: 0 0 auto; }
.estado-abierto i { background: #5BD08A; box-shadow: 0 0 0 3px rgba(91,208,138,.3); }

.portada-lado { display: grid; justify-items: center; }
.portada-foto { position: relative; margin: 0 0 1.4rem; width: min(100% - 34px, 340px); background: #fff; padding: 10px 10px 12px; border-radius: 4px; transform: rotate(-2deg); box-shadow: 9px 11px 0 var(--turquesa); }
.portada-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.sello { position: absolute; right: -24px; bottom: -26px; width: 116px; height: 116px; border-radius: 50%; background: var(--barro); color: #fff;
  display: grid; place-items: center; text-align: center; transform: rotate(10deg); box-shadow: 3px 4px 0 rgba(42,35,32,.3);
  outline: 2px dashed var(--sol-claro); outline-offset: -9px; }
.sello span { font-family: var(--gis-letra); font-size: 1.25rem; line-height: 1; padding: 0 1rem; }
@media (min-width: 880px) {
  .sol { width: 460px; height: 460px; right: -120px; top: -140px; }
  .portada-in { grid-template-columns: 1.2fr .8fr; padding: 3rem 16px 3.8rem; gap: 3rem; }
  .portada-lado { justify-items: end; }
  .portada-foto { width: 360px; }
}

/* ── La casa ────────────────────────────────────────────────────────── */
.casa { background: var(--cal); }
.casa h2 { color: var(--barro-oscuro); }
.casa-grid { display: grid; gap: 2.2rem; }
.casa-texto p { max-width: 58ch; }
.puntos-tit { margin: 1.8rem 0 .8rem; color: var(--turquesa); }
.puntos { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.puntos li { display: grid; gap: .05rem; padding: .15rem 0 .15rem 1rem; border-left: 5px solid var(--sol); }
.puntos strong { font-weight: 800; font-size: 1.12rem; line-height: 1.25; }
.puntos span { color: var(--gris); }
.casa-medios { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; align-items: start; }
.casa-medios video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 14px; background: #000; display: block; }
.casa-foto { margin: 0; }
.casa-foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 6px solid #fff; box-shadow: 0 6px 0 var(--cal-2); }
.casa-medios > :only-child { grid-column: 1 / -1; width: 100%; }
@media (min-width: 880px) { .casa-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; } .casa-foto img { aspect-ratio: 4 / 5; } }

/* ── Galería ────────────────────────────────────────────────────────── */
.galeria { background: var(--cal-2); }
.galeria h2 { color: var(--barro-oscuro); }
.galeria-grid { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.galeria-grid figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: var(--pizarra); }
.galeria-grid img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.galeria-grid figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.8rem .75rem .6rem; font-weight: 700; font-size: .9rem; line-height: 1.25; color: #fff;
  background: linear-gradient(rgba(34,39,43,0), rgba(34,39,43,.82) 40%, rgba(34,39,43,.96)); }
.galeria-grid .g-ancha { grid-column: 1 / -1; }
.galeria-grid .g-ancha img { aspect-ratio: 16 / 11; }
@media (min-width: 760px) {
  .galeria-grid { grid-template-columns: repeat(4, 1fr); gap: 1rem; }
  .galeria-grid .g-ancha { grid-column: span 2; }
  .galeria-grid .g-ancha img { aspect-ratio: 16 / 9.6; }
}

/* ── El pizarrón (firma) ────────────────────────────────────────────── */
.menu { background: var(--cal); }
.menu h2 { color: var(--barro-oscuro); }
.pizarron { margin: 1.6rem 0 1.4rem; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, var(--madera) 0%, #CB9859 45%, var(--madera-oscura) 100%);
  box-shadow: 0 10px 0 -3px rgba(42,35,32,.2), inset 0 0 0 2px rgba(0,0,0,.12); }
.pizarra { border-radius: 4px; padding: 1.4rem 1.1rem 1.6rem; color: var(--gis);
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.07), transparent 60%), radial-gradient(ellipse at 80% 90%, rgba(255,255,255,.05), transparent 55%), var(--pizarra); }
.piz-nombre { font-family: var(--gis-letra); font-size: clamp(2.2rem, 10vw, 3.2rem); line-height: 1; color: var(--gis-rosa); text-align: center; margin: 0 0 1.1rem;
  padding-bottom: .5rem; border-bottom: 2px solid rgba(201,179,240,.55); }
.piz-grupos { display: grid; gap: 1.4rem; }
.piz-grupo h3 { font-family: var(--gis-letra); font-weight: 400; font-size: 1.85rem; letter-spacing: .03em; text-transform: uppercase; color: var(--gis); margin: 0 0 .4rem; }
.piz-grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.piz-grupo li { display: flex; justify-content: space-between; align-items: baseline; gap: .8rem; }
.piz-plato { display: grid; min-width: 0; }
.piz-nom { font-family: var(--gis-letra); font-size: 1.7rem; line-height: 1.05; }
.piz-desc { font-size: .95rem; color: #D9D4CB; line-height: 1.35; }
.piz-precio { flex: 0 0 auto; font-family: var(--gis-letra); font-size: 1.6rem; line-height: 1; color: var(--gis); }
.gis-1 .piz-nom { color: var(--gis-rosa); }
.gis-2 .piz-nom { color: var(--gis-turquesa); }
.gis-3 .piz-nom { color: var(--gis-amarillo); }
.gis-4 .piz-nom { color: var(--gis-lila); }
.gis-5 .piz-nom { color: var(--gis-verde); }
.menu-nota { font-size: 1rem; color: var(--gris); max-width: 62ch; }
.menu-nota strong { color: var(--tinta); }
.menu .acciones { margin: 1rem 0 0; }
@media (min-width: 760px) {
  .pizarron { padding: 16px; }
  .pizarra { padding: 1.8rem 2.2rem 2.2rem; }
  .piz-grupos { grid-template-columns: 1fr 1fr; gap: 1.6rem 3rem; }
}

/* ── Reseñas ────────────────────────────────────────────────────────── */
.resenas { background: var(--turquesa); color: #fff; }
.resenas h2 { color: #fff; }
.calif { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .1rem 1rem; margin: 1rem 0 1.8rem; }
.calif-num { grid-row: span 2; font-family: var(--display); font-weight: 800; font-size: 4.4rem; line-height: .9; color: #FFEFC2; }
.estrellas { color: #FFEFC2; letter-spacing: .1em; font-size: 1.25rem; }
.calif-txt { color: #E6F4F3; }
.calif-txt a { color: #fff; font-weight: 800; }
.citas { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.citas li { background: #fff; color: var(--tinta); border-radius: 14px; padding: 1.1rem 1.2rem; border-top: 6px solid var(--sol); }
.citas .estrellas { font-size: 1.05rem; color: var(--barro); }
.citas blockquote { margin: .3rem 0 0; }
.citas p { margin: 0; font-size: 1.08rem; }
@media (min-width: 760px) { .citas { grid-template-columns: repeat(3, 1fr); } }

/* ── Visítanos ──────────────────────────────────────────────────────── */
.visitanos { background: var(--cal); }
.visitanos h2 { color: var(--barro-oscuro); }
.fachada { margin: 1.4rem 0 0; max-width: 620px; }
.fachada img { width: 100%; height: auto; border-radius: 14px; border: 5px solid var(--pizarra); }
.visita-grid { display: grid; gap: 1.8rem; margin-top: 1.6rem; }
.datos { margin: 0; display: grid; gap: 1rem; align-content: start; }
.datos dt { font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--turquesa); font-size: .86rem; }
.datos dd { margin: 0; font-size: 1.08rem; }
.datos dd a { font-weight: 700; }
.tel { font-weight: 800; font-size: 1.35rem; color: var(--tinta); }
.horario table { border-collapse: collapse; width: 100%; max-width: 420px; margin-top: .5rem; }
.horario th, .horario td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid rgba(42,35,32,.14); font-weight: 400; }
.horario th { font-weight: 700; }
.horario tr.hoy { background: rgba(246,215,123,.5); }
.horario tr.hoy .suave { color: var(--tinta); }
@media (min-width: 820px) { .visita-grid { grid-template-columns: 1fr 1fr; } }

/* ── Redes ──────────────────────────────────────────────────────────── */
.redes-fila { list-style: none; padding: 0; margin: 1.2rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.redes-fila a { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; }
.redes-fila svg { width: 22px; height: 22px; }
.redes-claro a { background: var(--pizarra); color: #fff; }
.redes-oscuro a, .pie .redes-oscuro a { background: var(--sol-claro); color: var(--pizarra); }

/* ── Pie ────────────────────────────────────────────────────────────── */
.pie { background: var(--pizarra); color: var(--gis); border-top: 6px solid var(--sol); }
.pie-in { display: grid; gap: 1.8rem; padding-top: 2.4rem; padding-bottom: 1.4rem; }
.pie-id { display: flex; gap: 1rem; align-items: flex-start; }
.pie p { margin: 0 0 .35rem; }
.pie a { color: var(--gis); }
.pie-id a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; padding: .45rem 0; }
.pie-id p:has(a) { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.pie-marca { font-family: var(--gis-letra); font-size: 2.1rem; color: var(--gis-amarillo); line-height: 1.1; }
.pie-horario { list-style: none; padding: 0; margin: 0; }
.credito { text-align: center; font-size: .86rem; color: #D9D4CB; padding: 1rem 16px 5.5rem; margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.credito a { color: var(--gis-amarillo); }
@media (min-width: 820px) { .pie-in { grid-template-columns: 1.3fr 1fr; } .credito { padding-bottom: 1.4rem; } }

/* ── WhatsApp flotante ──────────────────────────────────────────────── */
.wa-flotante { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); border: 2px solid #fff; }
.wa-flotante svg { width: 32px; height: 32px; }
@supports (animation-timeline: scroll()) {
  .wa-flotante { animation: waIn linear both; animation-timeline: scroll(); animation-range: 0 350px; }
  @keyframes waIn { from { opacity: 0; transform: scale(.6); pointer-events: none; } to { opacity: 1; } }
}

.calif-txt a, .tel { display: inline-block; padding: .55rem 0; }

@media (max-width: 599px) {
  .portada-horas { display: none; }
  .sol { width: 210px; height: 210px; right: -80px; top: -95px; opacity: .75; }
  .letrero { font-size: .72rem; letter-spacing: .04em; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-height: 480px) { .barra { position: relative; } }
