/* La Posta de Antonio — paleta tomada de la fachada: pared mostaza, zócalo bordó, humo azul. */
@font-face { font-family: "Gloock"; src: url("fonts/gloock.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --pared: #e3ae3f;
  --zocalo: #7b1527;
  --zocalo-oscuro: #5c0f1d;
  --humo: #1f3442;
  --brasa: #2a1812;
  --mantel: #fdfbf8;
  --wa: #0e7a41;
  --wa-hover: #0a6636;

  --f-display: "Gloock", Georgia, "Times New Roman", serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 6.5rem);
  --radius: 14px;
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.55; color: var(--brasa); background: var(--mantel); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: 1.05; margin: 0; font-synthesis: none; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--humo); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--mantel); color: var(--brasa); padding: .75rem 1rem; border-radius: 8px; }
.skip:focus { top: .75rem; }
.wrap { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .75rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--small { min-height: 44px; padding: .5rem 1.1rem; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--ghost { color: var(--zocalo-oscuro); border-color: var(--zocalo-oscuro); }
.btn--ghost:hover { background: var(--zocalo-oscuro); color: #fff; }
.btn--wa-dark { background: var(--zocalo); color: #fff; }
.btn--wa-dark:hover { background: var(--zocalo-oscuro); }
.btn--light { background: var(--pared); color: var(--zocalo-oscuro); }
.btn--light:hover { background: #f0c25f; }
.btn--ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--humo); }
.icon { width: 1.35rem; height: 1.35rem; flex: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--zocalo); color: #fff; }
.top__inner { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; min-height: var(--header-h); display: flex; align-items: center; gap: 1rem; }
.brand { margin-right: auto; text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--f-display); font-size: clamp(1.15rem, 4.6vw, 1.5rem); }
.brand__sub { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; margin-top: 3px; }
.nav { display: none; }
.nav a { text-decoration: none; padding: .5rem .25rem; font-weight: 600; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top .btn--wa { background: var(--pared); color: var(--zocalo-oscuro); }
.top .btn--wa:hover { background: #f0c25f; }

.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:focus-visible { outline-color: #fff; }
.menu__bars, .menu__bars::before, .menu__bars::after { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; content: ""; position: relative; }
.menu__bars::before { position: absolute; top: -7px; }
.menu__bars::after { position: absolute; top: 7px; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 15rem; background: var(--mantel); color: var(--brasa); border-radius: var(--radius); padding: .5rem; box-shadow: 0 14px 40px rgba(42,24,18,.35); display: grid; }
.menu__panel a { text-decoration: none; padding: .85rem 1rem; border-radius: 10px; font-weight: 600; }
.menu__panel a:hover { background: #f3ecdf; }

/* Hero: pared mostaza + zócalo bordó, como la fachada */
.hero { position: relative; background: var(--pared); color: var(--zocalo-oscuro); padding-top: clamp(2rem, 7vw, 4.5rem); overflow: hidden; }
.hero__inner { width: min(100% - 2 * var(--gutter), 72rem); margin-inline: auto; display: grid; gap: 2rem; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.6rem, 11.5vw, 5.6rem); letter-spacing: -.01em; max-width: 12ch; }
.hero__lead { margin-top: 1.25rem; font-size: clamp(1.1rem, 3.6vw, 1.3rem); max-width: 34ch; }
.hero__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__plate { margin: 0; width: min(78vw, 400px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; justify-self: center; box-shadow: 0 22px 50px rgba(92,15,29,.35); margin-bottom: calc(clamp(3.5rem, 8vw, 5rem) * -0.5); animation: plate-in .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.hero__band { position: relative; z-index: 0; margin: 0; background: var(--zocalo); color: #fff; padding: clamp(2.25rem, 6vw, 3rem) var(--gutter) clamp(1rem, 3vw, 1.5rem); text-align: center; font-weight: 600; font-size: 1rem; }
@keyframes plate-in { from { opacity: 0; transform: scale(.92) rotate(-6deg); } to { opacity: 1; transform: none; } }

/* Secciones */
.section { padding-block: var(--section-y); }
.section h2 { font-size: clamp(2rem, 6.2vw, 3.4rem); max-width: 16ch; }

/* Carta */
.carta__grid { display: grid; gap: 2.5rem; }
.dishes { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.dishes li { padding-block: 1.1rem; border-bottom: 1px solid #e3d9c8; }
.dishes li:first-child { border-top: 1px solid #e3d9c8; }
.dishes h3 { font-size: 1.6rem; color: var(--zocalo); }
.dishes p { margin-top: .35rem; max-width: 42ch; }
.carta__note { margin: 1.5rem 0 1.25rem; max-width: 42ch; color: #5a463e; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; grid-template-areas: "b b" "a c"; }
.mosaic figure { margin: 0; overflow: hidden; border-radius: var(--radius); background: #eee2cf; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; }
.mosaic__a { grid-area: a; aspect-ratio: 3 / 4; }
.mosaic__b { grid-area: b; aspect-ratio: 16 / 10; }
.mosaic__c { grid-area: c; aspect-ratio: 3 / 4; }

/* Fechas */
.fechas { background: var(--zocalo); color: #fff; }
.fechas .section h2, .fechas h2 { color: #fff; }
.fechas__grid { display: grid; gap: 2rem; align-items: center; }
.fechas__photo { margin: 0; border-radius: var(--radius); overflow: hidden; }
.fechas__photo img { width: 100%; height: auto; }
.fechas__text p { margin-top: 1.25rem; max-width: 46ch; font-size: 1.125rem; }
.fechas__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.link-light { color: #fff; font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; min-height: 44px; display: inline-flex; align-items: center; }
.link-light:hover { color: var(--pared); }

/* Horarios y ubicación */
.visit { background: var(--humo); color: #fff; }
.visit h2 { color: var(--pared); }
.visit__grid { display: grid; gap: 2.25rem; }
.visit address { margin-top: 1.25rem; font-style: normal; font-size: 1.2rem; }
.hours { margin-top: 1.75rem; border-collapse: collapse; width: 100%; max-width: 30rem; }
.hours th, .hours td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid rgba(255,255,255,.18); font-weight: 400; }
.hours th { font-weight: 600; width: 36%; }
.hours tr.is-today { background: rgba(227,174,63,.18); }
.hours tr.is-today th::after { content: " (hoy)"; color: var(--pared); font-weight: 600; }
.visit__note { margin-top: 1rem; max-width: 40ch; color: rgba(255,255,255,.85); font-size: .95rem; }
.visit__actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.visit__map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: #2d4757; }
.visit__map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }

/* Footer */
.foot { background: var(--brasa); color: #f1e6d6; padding-block: 2.5rem 6rem; }
.foot__inner { display: grid; gap: .75rem; }
.foot__brand { font-family: var(--f-display); font-size: 1.5rem; }
.foot__brand span { display: block; font-family: var(--f-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.foot__links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot__links a { min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 5px; }
.foot__legal { font-size: .9rem; opacity: .75; }

/* WhatsApp flotante */
.wa-float { position: fixed; z-index: 60; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: .6rem; min-height: 56px; padding: 0 1.25rem 0 1rem; border-radius: 999px; background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); transition: background-color .2s; }
.wa-float:hover { background: var(--wa-hover); }
.wa-float .icon { width: 1.75rem; height: 1.75rem; }
.wa-float:focus-visible { outline-color: #fff; box-shadow: 0 0 0 3px var(--wa), 0 8px 24px rgba(0,0,0,.3); }

/* Tablet y escritorio */
@media (min-width: 48em) {
  :root { --header-h: 72px; }
  .menu { display: none; }
  .nav { display: flex; gap: 1.5rem; margin-right: .5rem; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 3rem; padding-bottom: 0; }
  .hero__plate { width: min(100%, 460px); align-self: end; margin-bottom: -2.5rem; }
  .hero__band { padding-top: 1.75rem; padding-bottom: 1.25rem; text-align: left; padding-left: max(var(--gutter), calc((100vw - 72rem) / 2)); }
  .carta__grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .carta__text { position: sticky; top: calc(var(--header-h) + 1.5rem); }
  .mosaic { gap: 1rem; }
  .fechas__grid { grid-template-columns: 1.1fr 1fr; gap: 4rem; }
  .visit__grid { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: stretch; }
  .foot { padding-bottom: 5rem; }
  .foot__inner { grid-template-columns: 1fr auto; align-items: end; }
  .foot__legal { grid-column: 1 / -1; }
}
@media (min-width: 64em) {
  .hero h1 { max-width: 13ch; }
}
@media (max-width: 22em) {
  .wa-float__label { display: none; }
  .wa-float { padding-right: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__plate { animation: none; }
  * { transition-duration: .01ms !important; }
}
