/* El Maiziado — "el puesto de elotes de barrio, de noche"
   Paleta tomada del local y del logo: la manta amarilla de la fachada, el vaso naranja del
   logo, el marco guinda de la puerta, la pared encalada y la calle de noche.
   Firma: la hilera de foquitos (como los del marco de su puerta) sobre la portada y el pie. */
:root {
  --noche: #1C1A17;          /* la calle de noche: barra, menú y pie */
  --noche-2: #2A2621;
  --manta: #F7C948;          /* manta amarilla de la fachada */
  --manta-2: #FBE3A0;
  --maiz: #F5A623;           /* vaso del logo (solo sobre oscuro o decorativo) */
  --naranja: #C2410C;        /* naranja quemado: texto blanco encima pasa AA */
  --guinda: #7A1F2B;         /* marco de la puerta */
  --cal: #FFFBF2;            /* pared encalada */
  --cal-2: #F6EEDC;
  --tinta: #1C1A17;
  --gris: #5A5047;           /* texto secundario sobre claro */
  --crema: #F3E9D6;          /* texto sobre oscuro */
  --wa: #0F7A6E;             /* verde WhatsApp oscuro (AA con texto blanco) */
  --rotulo: 'Rye', 'Georgia', serif;
  --brocha: 'Caveat Brush', 'Segoe Print', cursive;
  --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(--naranja); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; margin: 0; }
h2 { font-family: var(--rotulo); font-weight: 400; font-size: clamp(1.9rem, 7.5vw, 2.9rem); letter-spacing: .005em; margin-bottom: .8rem; color: var(--guinda); }
h3 { font-family: var(--cuerpo); font-weight: 800; font-size: 1.2rem; }
p { margin: 0 0 .9rem; }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
section[id] { scroll-margin-top: 7.5rem; }
@media (min-width: 900px) { section[id] { scroll-margin-top: 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(--noche); color: var(--crema); }
.barra-in { max-width: 1120px; margin: 0 auto; padding: .45rem 16px .25rem; display: grid; grid-template-columns: 1fr; align-items: center; gap: .1rem .8rem; }
.marca { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; color: var(--manta); }
.marca img { width: 38px; height: 38px; border-radius: 50%; background: #fff; }
.marca span { font-family: var(--brocha); font-size: clamp(1.55rem, 6.5vw, 1.9rem); line-height: 1.1; white-space: nowrap; }
.nav { display: flex; gap: .15rem; 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 .45rem; border-radius: 6px; color: var(--crema); }
.nav a:hover { background: rgba(247,201,72,.16); color: #fff; }
@media (max-width: 899px) {
  /* Pista de que la fila se desliza: el borde derecho se desvanece */
  .nav { -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent); padding-right: 1.6rem; }
  .nav a { padding: .5rem .38rem; font-size: .92rem; }
}
@media (min-width: 900px) {
  .barra-in { grid-template-columns: auto 1fr; padding: .55rem 16px; }
  .nav { justify-content: flex-end; margin: 0; }
  .nav a { padding: .35rem .7rem; }
}

/* ── Foquitos (firma): hilera de focos colgando, como en el marco de su puerta ── */
.foquitos {
  height: 34px; background-color: var(--noche);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='34' viewBox='0 0 72 34'%3E%3Cpath d='M0 3 Q36 17 72 3' fill='none' stroke='%23574C40' stroke-width='1.6'/%3E%3Cpath d='M36 10v6' stroke='%23574C40' stroke-width='1.6'/%3E%3Ccircle cx='36' cy='21' r='10' fill='%23FFC24D' opacity='.22'/%3E%3Ccircle cx='36' cy='21' r='6' fill='%23FFC24D' opacity='.35'/%3E%3Cellipse cx='36' cy='21' rx='3.4' ry='4.2' fill='%23FFE3A1'/%3E%3C/svg%3E");
  background-repeat: repeat-x; background-position: center top;
}
@media (prefers-reduced-motion: no-preference) {
  .foquitos { animation: brillo 3.2s ease-in-out infinite alternate; }
  @keyframes brillo { from { filter: brightness(.92); } to { filter: brightness(1.12); } }
}

/* ── 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-noche { background: var(--noche); color: #fff; box-shadow: 0 4px 0 var(--guinda); }
.btn-noche:hover { background: var(--noche-2); }
.btn-borde-claro { border-color: var(--crema); color: var(--crema); background: transparent; }
.btn-borde-claro:hover { background: rgba(255,255,255,.08); }

/* ── Portada: la manta amarilla ─────────────────────────────────────── */
.portada { position: relative; background: var(--manta); overflow: hidden; }
.portada::after { /* hojas de elote de la manta, muy tenues */
  content: ""; position: absolute; inset: 34px 0 0 0; pointer-events: none; opacity: .13;
  background: repeating-linear-gradient(115deg, transparent 0 38px, #8A5A00 38px 40px, transparent 40px 86px); }
.portada-in { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 1.4rem 16px 2.8rem; display: grid; gap: 2rem; align-items: center; }
.letrero { display: inline-block; margin: 0 0 1rem; background: var(--guinda); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 10px; text-wrap: balance; }
.portada-marca { display: flex; align-items: center; gap: .9rem; }
.portada-logo { width: 116px; height: 116px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px var(--noche); flex: 0 0 auto; }
.lema { margin: 0; font-family: var(--brocha); font-size: clamp(1.7rem, 7.4vw, 2.5rem); line-height: 1; color: var(--noche); max-width: 11ch; transform: rotate(-3deg); }
.portada h1 { font-family: var(--rotulo); font-weight: 400; font-size: clamp(1.75rem, 7.2vw, 3rem); line-height: 1.12; margin: 1.3rem 0 .9rem; max-width: 18ch; color: var(--noche); }
.bajada { font-size: 1.08rem; max-width: 50ch; color: #3B3024; 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 .85rem; border-radius: 999px; background: var(--noche); color: var(--crema); }
.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-foto { margin: 0 auto .6rem; width: min(100% - 20px, 380px); background: #fff; padding: 10px 10px 12px; border-radius: 4px; transform: rotate(2deg); box-shadow: -9px 11px 0 var(--guinda); }
.portada-foto img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 880px) {
  .portada-in { grid-template-columns: 1.25fr .75fr; padding: 2.6rem 16px 3.6rem; gap: 3rem; }
  .portada-foto { margin: 0 0 0 auto; width: 380px; }
  .portada-logo { width: 140px; height: 140px; }
}

/* ── El Maiziado (nosotros) ─────────────────────────────────────────── */
.casa { background: var(--cal); }
.casa-grid { display: grid; gap: 2.2rem; }
.casa-texto p { max-width: 58ch; }
.puntos-tit { margin: 1.8rem 0 .8rem; color: var(--naranja); }
.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(--manta); }
.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: 3 / 4; object-fit: cover; border-radius: 14px; }
.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; } }

/* ── Galería ────────────────────────────────────────────────────────── */
.galeria { background: var(--cal-2); }
.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(--noche); }
.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(28,26,23,0), rgba(28,26,23,.82) 40%, rgba(28,26,23,.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; }
}

/* ── Menú: de noche, como el puesto ─────────────────────────────────── */
.menu { background: var(--noche); color: var(--crema); }
.menu h2 { color: var(--manta); }
.menu .intro { color: #D8CDBB; }
.menu-grid { display: grid; gap: 2rem; margin: 1.6rem 0 1.4rem; }
.menu-lista { display: grid; gap: 2rem; }
.menu-grupo h3 { font-family: var(--brocha); font-weight: 400; font-size: 2rem; color: var(--maiz); margin: 0 0 .6rem; padding-bottom: .3rem; border-bottom: 2px dashed rgba(245,166,35,.45); }
.menu-grupo ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.prod { display: flex; gap: .9rem; align-items: center; }
.prod-img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; border: 2px solid var(--maiz); }
.prod-txt { display: grid; min-width: 0; flex: 1; }
.prod-linea { display: flex; align-items: baseline; gap: .5rem; }
.prod-nom { font-weight: 800; font-size: 1.18rem; color: #fff; }
.prod-puntos { flex: 1; border-bottom: 2px dotted rgba(243,233,214,.35); transform: translateY(-.3em); min-width: 1rem; }
.prod-precio { font-family: var(--rotulo); font-size: 1.25rem; color: var(--manta); }
.prod-desc { font-size: .98rem; color: #D8CDBB; line-height: 1.4; }
.salsas { align-self: start; background: var(--manta); color: var(--noche); border-radius: 16px; padding: 1.3rem 1.3rem .5rem; transform: rotate(-1deg); box-shadow: 6px 7px 0 var(--naranja); }
.salsas h3 { font-family: var(--brocha); font-weight: 400; font-size: 2rem; line-height: 1; margin: 0 0 .6rem; }
.salsas p { font-weight: 600; }
.menu-nota { font-size: 1rem; color: #D8CDBB; max-width: 62ch; }
.menu-nota strong { color: #fff; }
.menu .acciones { margin: 1rem 0 0; }
@media (min-width: 820px) {
  .menu-grid { grid-template-columns: 1.4fr .8fr; gap: 3rem; }
  .menu-lista { grid-template-columns: 1fr 1fr; gap: 2rem 2.5rem; }
}

/* ── Promos ─────────────────────────────────────────────────────────── */
.promos { background: var(--cal); }
.promos-lista { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: 1.2rem; }
.promo { display: grid; grid-template-columns: 112px 1fr; gap: 1rem; align-items: center; background: #fff; border: 3px solid var(--noche); border-radius: 16px; padding: .8rem; box-shadow: 6px 6px 0 var(--manta); }
.promo-img { width: 112px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; }
.promo-txt { min-width: 0; }
.promo-dia { display: inline-block; margin: 0 0 .35rem; background: var(--naranja); color: #fff; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: .2rem .65rem; border-radius: 999px; }
.promo-nom { margin: 0 0 .3rem; font-weight: 800; font-size: 1.2rem; line-height: 1.2; }
.promo-por { font-weight: 600; color: var(--gris); }
.promo-precio { display: inline-block; font-family: var(--rotulo); font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--guinda); }
.promo-desc { margin: 0; color: var(--gris); }
.promo:not(:has(.promo-img)) { grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .promos-lista { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
  .promo { grid-template-columns: 150px 1fr; }
  .promo-img { width: 150px; }
}

/* ── Reseñas ────────────────────────────────────────────────────────── */
.resenas { background: var(--guinda); 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(--rotulo); font-size: 4.2rem; line-height: .9; color: var(--manta); }
.estrellas { color: var(--manta); letter-spacing: .1em; font-size: 1.25rem; }
.calif-txt { color: #F6E5E1; }
.calif-txt a { color: #fff; font-weight: 800; }
.citas { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.citas li { background: var(--cal); color: var(--tinta); border-radius: 14px; padding: 1.1rem 1.2rem; border-top: 6px solid var(--manta); }
.citas .estrellas { font-size: 1.05rem; color: var(--naranja); }
.citas blockquote { margin: .3rem 0 0; }
.citas p { margin: 0; font-size: 1.06rem; }
@media (min-width: 760px) { .citas { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .citas { grid-template-columns: repeat(4, 1fr); } }

/* ── Visítanos ──────────────────────────────────────────────────────── */
.visitanos { background: var(--cal); }
.visita-grid { display: grid; gap: 1.8rem; margin-top: 1.6rem; }
.fachada { margin: 0; }
.fachada img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 5px solid var(--noche); }
.visita-datos { display: grid; gap: 1.6rem; align-content: start; }
.datos { margin: 0; display: grid; gap: 1rem; }
.datos dt { font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--naranja); 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 h3 { margin-bottom: .5rem; }
.horario table { border-collapse: collapse; width: 100%; max-width: 420px; margin-top: .6rem; }
.horario th, .horario td { text-align: left; padding: .45rem .4rem; border-bottom: 1px solid rgba(28,26,23,.14); font-weight: 400; }
.horario th { font-weight: 700; }
.horario tr.hoy { background: var(--manta-2); }
.horario tr.hoy .suave { color: var(--tinta); }
@media (min-width: 820px) { .visita-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ── 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(--noche); color: #fff; }
.redes-oscuro a, .pie .redes-oscuro a { background: var(--manta); color: var(--noche); }

/* ── Pie ────────────────────────────────────────────────────────────── */
.pie { background: var(--noche); color: var(--crema); }
.pie-in { display: grid; gap: 1.8rem; padding-top: 2rem; padding-bottom: 1.4rem; }
.pie-id { display: flex; gap: 1rem; align-items: flex-start; }
.pie-id > img { width: 64px; height: 64px; border-radius: 50%; background: #fff; flex: 0 0 auto; }
.pie p { margin: 0 0 .35rem; }
.pie a { color: var(--crema); }
.pie-id a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; padding: .45rem 0; }
.pie-marca { font-family: var(--brocha); font-size: 2.1rem; color: var(--manta); line-height: 1.1; }
.pie-horario { list-style: none; padding: 0; margin: 0; }
.credito { text-align: center; font-size: .86rem; color: #D8CDBB; padding: 1rem 16px 5.5rem; margin: 0; border-top: 1px solid rgba(255,255,255,.12); }
.credito a { color: var(--manta); }
@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; }
  .letrero { font-size: .75rem; letter-spacing: .03em; }
  .portada-logo { width: 88px; height: 88px; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-height: 480px) { .barra { position: relative; } }
.letrero .sep { display: inline; }
