/* HuevOn: el cartel, el pizarrón y el maple. Sin animaciones. */

:root {
  --pizarra: #26332E;
  --pizarra-borde: #1B2521;
  --madera: #8A5A2B;
  --tiza: #F4F3EE;
  --oro: #F5B800;
  --oro-tiza: #FFCF3A;
  --rosa: #F2C4CE;
  --rosa-fuerte: #C9788B;
  --tinta: #1A1A1A;
  --gris: #555;
  --linea: #DDD8CC;
  --verde: #15803D;
  --verde-oscuro: #0F6630;
  --rojo: #B3261E;
  --pesada: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: #fff;
  color: var(--tinta);
  font-family: var(--pesada);
  font-size: 18px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1em; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .4em; line-height: 1.08; font-weight: 900; font-style: italic; letter-spacing: -.02em; }
h2 { font-size: clamp(32px, 5.5vw, 52px); }

/* El sprite no usa display:none para que el dibujo del maple funcione */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icono { width: 1.3em; height: 1.3em; flex-shrink: 0; }
.oculto {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

:focus-visible { outline: 3px solid var(--tinta); outline-offset: 3px; }
.pizarron :focus-visible { outline-color: var(--oro-tiza); }

.saltar { position: absolute; left: -9999px; top: 0; background: var(--tinta); color: #fff; padding: 12px 16px; z-index: 100; }
.saltar:focus { left: 8px; top: 8px; }

.contenedor { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section[id] { scroll-margin-top: 16px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 10px;
  font: 700 18px/1.2 var(--pesada); text-decoration: none; text-align: center;
}
.boton-wa { background: var(--verde); color: #fff; }
.boton-wa:hover { background: var(--verde-oscuro); }
.boton-negro { background: var(--tinta); color: #fff; }
.boton-negro:hover { background: #3A3A3A; }
.boton-borde { background: #fff; color: var(--verde-oscuro); border-color: var(--verde); }
.boton-borde:hover { background: #EEF8F1; }
.boton-borde-negro { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.boton-borde-negro:hover { background: rgba(255, 255, 255, .5); }
.boton-grande { min-height: 60px; font-size: 20px; padding: 14px 26px; }

/* ---------- Cartel ---------- */
.cartel { background: #fff; border-bottom: 10px solid #3B3F42; }
.cartel-fila {
  max-width: 1120px; margin: 0 auto; padding: 22px 20px 18px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.cartel-logo { grid-column: 2; }
.cartel-logo img { width: min(440px, 78vw); }
.cartel-boton { grid-column: 3; justify-self: end; min-height: 48px; font-size: 16px; }

/* ---------- Pizarrón (portada + ofertas) ---------- */
.vereda { background: #EDEBE6; padding: 40px 16px 48px; }
.pizarron {
  max-width: 820px; margin: 0 auto;
  background:
    radial-gradient(ellipse at 18% 12%, rgba(255, 255, 255, .07), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(255, 255, 255, .05), transparent 50%),
    var(--pizarra);
  color: var(--tiza);
  border: 14px solid var(--madera);
  border-radius: 8px;
  box-shadow: inset 0 0 0 2px var(--pizarra-borde);
  padding: 36px 36px 40px;
}
.pizarron h1 { font-size: clamp(38px, 7.5vw, 68px); margin-bottom: .3em; }
.pizarron-intro { font-size: 20px; max-width: 34em; color: #DCDDD6; }

.pizarron-titulo {
  display: inline-block; margin: 18px 0 8px;
  color: var(--oro-tiza); font-size: clamp(28px, 4.5vw, 38px);
  border-bottom: 3px solid var(--oro-tiza); padding-bottom: 2px;
}

.ofertas { list-style: none; margin: 0 0 28px; padding: 0; }
.ofertas li {
  display: flex; align-items: center; gap: 18px;
  padding: 16px 0; border-bottom: 2px dashed rgba(244, 243, 238, .22);
}
.oferta-linea { flex: 1; display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 22px; font-weight: 700; }
.oferta-puntos { flex: 1; min-width: 20px; border-bottom: 3px dotted rgba(244, 243, 238, .45); transform: translateY(-5px); }
.oferta-precio { color: var(--oro-tiza); font-size: 32px; font-weight: 900; white-space: nowrap; }
.boton-tiza { background: transparent; color: var(--tiza); border-color: var(--tiza); min-width: 120px; }
.boton-tiza:hover { background: var(--tiza); color: var(--pizarra); }
.pizarron-boton { width: 100%; }

.pizarron-lista { list-style: none; margin: 4px 0 30px; padding: 0; }
.pizarron-lista li {
  position: relative; padding: 12px 0 12px 40px;
  font-size: 22px; font-weight: 700;
  border-bottom: 2px dashed rgba(244, 243, 238, .22);
}
.pizarron-lista li::before {
  content: "✓"; position: absolute; left: 4px; top: 9px;
  color: var(--oro-tiza); font-size: 26px; font-weight: 900;
}
.pizarron-nota { margin: 16px 0 0; text-align: center; font-size: 17px; }
.pizarron-nota a { color: #DCDDD6; text-underline-offset: 3px; }
.pizarron-nota a:hover { color: var(--tiza); }

.pizarron-chico { max-width: none; margin: 28px 0 64px; padding: 28px 32px 12px; }
.pizarron-chico .pizarron-titulo { margin-top: 0; }
.pizarron-chico .ofertas { margin-bottom: 0; }
.pizarron-chico .ofertas li:last-child { border-bottom: 0; }
.subtitulo { font-size: clamp(26px, 4vw, 36px); }

/* ---------- Bloques generales ---------- */
.bloque { padding: 72px 0; }
.bajada { color: var(--gris); font-size: 19px; }

/* ---------- Lista de precios ---------- */
.fecha { font-size: 19px; max-width: 46em; }
.fecha strong { background: var(--oro); padding: 1px 6px; }

.medidas {
  list-style: none; padding: 0; margin: 28px 0 36px;
  display: flex; flex-wrap: wrap; gap: 14px 40px;
}
.medidas li { display: flex; align-items: center; gap: 14px; font-size: 17px; line-height: 1.35; }
.dibujo { width: 64px; height: 54px; flex-shrink: 0; }
.dibujo-doble { display: flex; gap: 4px; }

.lista { width: 100%; border-collapse: collapse; }
.lista caption { caption-side: bottom; text-align: left; color: var(--gris); font-size: 16px; padding-top: 14px; }
.lista thead th {
  text-align: left; font-size: 16px; font-weight: 700; color: var(--gris);
  padding: 0 12px 10px; border-bottom: 3px solid var(--tinta);
}
.lista tbody th, .lista td { padding: 18px 12px; border-bottom: 1px solid var(--linea); text-align: left; vertical-align: middle; }
.lista tbody th { font-size: 21px; font-weight: 800; white-space: nowrap; }
.lista tbody th small, .lista td small { display: block; font-size: 14px; font-weight: 400; color: var(--gris); }
.lista tbody th small { margin-left: 34px; }
.lista td b { display: block; font-size: 24px; font-weight: 900; white-space: nowrap; }
.lista td small { white-space: nowrap; }
.celda-pedir { text-align: right; }
.celda-pedir .boton { width: 100%; min-width: 210px; font-size: 16px; }

.cascara {
  display: inline-block; width: 22px; height: 27px; margin-right: 12px; vertical-align: -5px;
  border-radius: 50% 50% 50% 50% / 58% 58% 42% 42%;
  border: 2px solid var(--tinta);
}
.cascara-blanca { background: #FFFDF7; }
.cascara-colorada { background: #D9894A; }

.agotado th, .agotado td { background: #FBF3F3; }
.agotado th { color: var(--gris); }
.celda-agotado { color: var(--gris); }
.sello {
  display: inline-block; margin-right: 10px;
  color: var(--rojo); border: 3px solid var(--rojo); border-radius: 6px;
  padding: 2px 10px; font-weight: 900; font-size: 18px;
  transform: rotate(-3deg);
}

/* ---------- Mayoristas ---------- */
.mayoristas { background: var(--rosa); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.mayoristas-texto { padding: 72px 48px 72px max(20px, calc((100vw - 1120px) / 2 + 20px)); align-self: center; max-width: 640px; justify-self: end; }
.mayoristas-intro { font-size: 22px; font-weight: 600; }
.mayoristas-foto { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }

/* ---------- Mosaico de fotos ---------- */
.mosaico {
  max-width: 1120px; margin: 28px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 220px); gap: 8px;
  grid-template-areas:
    "a a b c"
    "d e b c"
    "d e f f";
}
.mosaico figure { margin: 0; position: relative; overflow: hidden; }
.mosaico img { width: 100%; height: 100%; object-fit: cover; }
.mosaico figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: #fff; color: var(--tinta); padding: 4px 10px; border-radius: 4px;
  font-size: 15px; font-weight: 700;
}
.m-a { grid-area: a; } .m-b { grid-area: b; } .m-c { grid-area: c; }
.m-d { grid-area: d; } .m-e { grid-area: e; } .m-f { grid-area: f; }

/* ---------- Preguntas ---------- */
.bloque-preguntas { background: #F6F5F1; }
.preguntas-grilla { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: start; }
.preguntas details { border-top: 2px solid var(--tinta); }
.preguntas details:last-child { border-bottom: 2px solid var(--tinta); }
.preguntas summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 20px 48px 20px 0; font-size: 20px; font-weight: 700;
}
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 32px; font-weight: 400; line-height: 1;
}
.preguntas details[open] summary::after { content: "−"; }
.preguntas details > p { max-width: 38em; }
.preguntas details > .boton { margin-bottom: 20px; }

/* ---------- Dónde estamos ---------- */
.visitanos { background: var(--oro); padding: 72px 0; }
.visitanos-grilla { display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: center; }
.direccion { margin-bottom: 28px; }
.direccion-calle {
  display: block; font-size: clamp(46px, 9vw, 96px); font-weight: 900; font-style: italic;
  line-height: .95; letter-spacing: -.03em;
}
.direccion-resto { display: block; font-size: clamp(22px, 3vw, 30px); font-weight: 700; margin-top: 8px; }
.horarios { border-collapse: collapse; margin-bottom: 28px; font-size: 19px; }
.horarios th, .horarios td { text-align: left; vertical-align: top; padding: 10px 24px 10px 0; border-top: 2px solid var(--tinta); }
.horarios th { font-weight: 800; }
.visitanos-botones { display: flex; flex-wrap: wrap; gap: 12px; }
.visitanos-foto {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 35%;
  border: 10px solid #fff; transform: rotate(2deg);
}

/* ---------- Pie ---------- */
.pie { background: #fff; border-top: 10px solid #3B3F42; padding: 36px 20px; text-align: center; }
.pie-logo { width: 170px; margin: 0 auto 12px; }
.pie-chico { font-size: 15px; color: var(--gris); }

.barra-wa { display: none; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .mayoristas { grid-template-columns: 1fr; }
  .mayoristas-texto { padding: 56px 20px; max-width: none; justify-self: stretch; }
  .mayoristas-foto { min-height: 0; height: 360px; }
  .preguntas-grilla, .visitanos-grilla { grid-template-columns: 1fr; gap: 24px; }
  .visitanos-foto { max-width: 420px; }

  /* La lista pasa a un bloque por tipo de huevo */
  .lista thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lista, .lista tbody, .lista tr { display: block; }
  .lista tr { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 3px solid var(--tinta); padding: 16px 0 20px; }
  .lista tbody th, .lista td { display: block; border: 0; padding: 4px 8px 4px 0; }
  .lista tbody th { grid-column: 1 / -1; padding-bottom: 12px; }
  .lista td[data-medida]::before { content: attr(data-medida); display: block; font-size: 14px; font-weight: 700; color: var(--gris); }
  .lista td b { font-size: 22px; }
  .celda-pedir { grid-column: 1 / -1; padding-top: 14px; }
  .celda-pedir .boton { min-width: 0; font-size: 18px; }
  .celda-agotado { grid-column: 1 / -1; }
  .agotado { background: #FBF3F3; padding-left: 12px; padding-right: 12px; }
  .agotado th, .agotado td { background: none; }
  .lista caption { display: block; padding: 0 0 12px; }
}

/* ---------- Celular ---------- */
@media (max-width: 700px) {
  body { padding-bottom: 76px; }
  h2 { font-size: 34px; }
  .cartel-fila { grid-template-columns: 1fr; justify-items: center; padding: 16px 16px 12px; }
  .cartel-logo { grid-column: 1; }
  .cartel-boton { display: none; }

  .vereda { padding: 16px 10px 28px; }
  .pizarron { border-width: 10px; padding: 26px 18px 24px; }
  .pizarron-intro { font-size: 18px; }
  .ofertas li { flex-direction: column; align-items: stretch; gap: 10px; }
  .oferta-linea { font-size: 19px; flex-wrap: wrap; }
  .oferta-nombre { flex: 1 1 60%; }
  .oferta-puntos { display: none; }
  .oferta-precio { font-size: 28px; }
  .boton-tiza { width: 100%; }
  .pizarron-lista li { font-size: 19px; padding: 10px 0 10px 34px; }
  .pizarron-lista li::before { font-size: 22px; top: 7px; }
  .pizarron-chico { padding: 22px 16px 8px; margin: 20px -10px 48px; }

  .bloque, .visitanos { padding: 52px 0; }
  .medidas { flex-direction: column; gap: 12px; margin: 20px 0 28px; }

  .mosaico {
    grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(6, 150px); gap: 6px; padding: 0 10px;
    grid-template-areas: "a a" "b c" "b c" "d e" "d e" "f f";
  }
  .mosaico figcaption { font-size: 13px; left: 6px; bottom: 6px; padding: 3px 7px; }

  .boton-grande, .visitanos-botones .boton { width: 100%; }
  .visitanos-foto { transform: none; }

  .barra-wa {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    min-height: 64px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--verde); color: #fff;
    font-size: 20px; font-weight: 800; text-decoration: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
  }
  .barra-wa:hover { background: var(--verde-oscuro); }
}
