/* =========================================================
   El Astrónomo · café & cocina de mercado
   Hoja de estilos (sin framework, compatible con CSP estricta)
   ========================================================= */

/* ---------- Fuentes autoalojadas (OFL) ---------- */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }

/* ---------- Paleta ---------- */
:root {
  --papel:  #F4EFE6;   /* fondo */
  --noche:  #171A2B;   /* texto y secciones oscuras */
  --teja:   #B4462B;   /* acento, CTAs */
  --arena:  #E2D8C6;   /* bordes, tarjetas */
  --luna:   #E8C26A;   /* destellos, estrellas */
  --niebla: #ECE5D8;   /* fondo alterno */

  --teja-osc: #973820;
  --tinta-70: rgba(23, 26, 43, .74);
  --tinta-55: rgba(23, 26, 43, .62);
  --papel-80: rgba(244, 239, 230, .84);
  --papel-60: rgba(244, 239, 230, .68);
  --linea:    rgba(23, 26, 43, .14);
  --linea-clara: rgba(244, 239, 230, .16);

  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-body: "Barlow", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --header-h: 72px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -22px rgba(23, 26, 43, .45);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--papel);
  color: var(--noche);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.05; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
address { font-style: normal; }
small { font-size: .82em; }
abbr[title] { text-decoration: none; }
::selection { background: rgba(180, 70, 43, .22); color: var(--noche); }

:focus-visible { outline: 2px solid var(--teja); outline-offset: 3px; border-radius: 4px; }
.sky :focus-visible, .site-header:not(.scrolled) :focus-visible { outline-color: var(--luna); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--noche); color: var(--papel); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* Fondo de cielo estrellado */
.sky {
  background-color: var(--noche);
  background-image:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(232, 194, 106, .10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(180, 70, 43, .14), transparent 65%),
    url("../assets/img/cielo-estrellas.svg");
  background-size: auto, auto, 640px 640px;
  color: var(--papel);
}

/* ---------- Tipografía común ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 600; font-size: .95rem;
  letter-spacing: .16em; text-transform: uppercase; color: var(--teja);
  margin: 0 0 14px;
}
.eyebrow-luna { color: var(--luna); }
.eyebrow-star { width: 16px; height: 16px; fill: currentColor; flex: none; }

.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.section-head { max-width: 920px; margin-bottom: 44px; }
@media (max-width: 520px) { .eyebrow-place, .hide-sm { display: none; } }
@media (min-width: 960px) { .section-head { margin-bottom: 60px; } }
.section-head-split { max-width: none; display: grid; gap: 18px; }
@media (min-width: 960px) {
  .section-head-split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 60px; }
  .section-head-split .section-intro { margin-bottom: 6px; }
}
.section-title {
  font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.5rem, 7vw, 4.4rem); letter-spacing: -.005em; line-height: .96;
}
.section-title em {
  font-family: var(--f-serif); font-style: italic; font-weight: 400; text-transform: none;
  color: var(--teja); letter-spacing: 0; font-size: 1.04em;
}
.section-title-light em { color: var(--luna); }
.section-intro { font-size: 1.125rem; color: var(--tinta-70); margin: 18px 0 0; max-width: 56ch; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; color: var(--teja);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease-out); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.08rem; letter-spacing: .07em; text-transform: uppercase;
  text-decoration: none; border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn svg:not(.btn-icon) { width: 18px; height: 18px; fill: currentColor; }

.btn-teja { background: var(--teja); color: #fff; box-shadow: 0 10px 24px -14px rgba(180, 70, 43, .9); }
.btn-teja:hover { background: var(--teja-osc); }
.btn-noche { background: var(--noche); color: var(--papel); }
.btn-noche:hover { background: #262a42; }
.btn-outline { border-color: rgba(23, 26, 43, .35); color: var(--noche); background: transparent; }
.btn-outline:hover { border-color: var(--noche); background: rgba(23, 26, 43, .05); }
.btn-ghost-light { border-color: rgba(244, 239, 230, .45); color: var(--papel); }
.btn-ghost-light:hover { border-color: var(--luna); color: var(--luna); }
.btn-ghost-dark { border-color: rgba(23, 26, 43, .3); color: var(--noche); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  color: var(--papel);
  transition: background-color .35s, color .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(244, 239, 230, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  color: var(--noche);
  border-bottom-color: var(--linea);
}
.nav {
  height: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
@media (min-width: 768px) { .nav { padding: 0 32px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-star { width: 26px; height: 26px; fill: var(--luna); flex: none; transition: transform .6s var(--ease-out); }
.brand:hover .brand-star { transform: rotate(45deg); }
.site-header.scrolled .brand-star { fill: var(--teja); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-sub { font-family: var(--f-display); font-weight: 600; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; opacity: .7; margin-top: 3px; }

.nav-links { display: none; }
@media (min-width: 1080px) {
  .nav-links { display: flex; gap: 30px; }
  .nav-links a {
    position: relative; text-decoration: none; font-weight: 500; font-size: .98rem; opacity: .82;
    padding: 10px 0; transition: opacity .2s;
  }
  .nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1.5px;
    background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
  }
  .nav-links a:hover, .nav-links a[aria-current="true"] { opacity: 1; }
  .nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  display: none; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: .98rem;
  min-height: 44px; padding: 0 6px;
}
.nav-phone svg { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 1180px) { .nav-phone { display: inline-flex; } }
.nav-cta { display: none; }
@media (min-width: 600px) { .nav-cta { display: inline-flex; } }

.nav-toggle {
  width: 46px; height: 46px; border-radius: 14px; border: 1px solid rgba(244, 239, 230, .3);
  background: rgba(23, 26, 43, .35); display: inline-flex; align-items: center; justify-content: center;
}
.site-header.scrolled .nav-toggle { border-color: var(--linea); background: rgba(23, 26, 43, .04); }
@media (min-width: 1080px) { .nav-toggle { display: none; } }
.ham { position: relative; width: 20px; height: 14px; display: block; }
.ham span { position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s, opacity .3s, top .3s; }
.ham span:nth-child(1) { top: 0; }
.ham span:nth-child(2) { top: 6px; width: 70%; }
.ham span:nth-child(3) { top: 12px; }

/* ---------- Menú móvil (hermano del header) ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 60; visibility: hidden; pointer-events: none; }
.mobile-menu.is-open { visibility: visible; pointer-events: auto; }
.mobile-menu-bg { position: absolute; inset: 0; background: rgba(12, 13, 22, .66); opacity: 0; transition: opacity .35s; }
.mobile-menu.is-open .mobile-menu-bg { opacity: 1; }
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background-color: #F4EFE6 !important;
  color: var(--noche);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s var(--ease-out);
  -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; isolation: isolate;
  box-shadow: -20px 0 60px rgba(0, 0, 0, .25);
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-menu.is-open .mobile-menu-panel { transform: translateX(0); }
.mm-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 14px 22px; border-bottom: 1px solid var(--arena); }
.mm-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; }
.mm-brand .brand-star { fill: var(--teja); width: 22px; height: 22px; }
.mm-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--niebla); display: inline-flex; align-items: center; justify-content: center; }
.mm-close svg { width: 18px; height: 18px; fill: none; stroke: var(--noche); stroke-width: 2; stroke-linecap: round; }
.mm-links { padding: 8px 22px; flex: 1; }
.mm-links li { border-bottom: 1px solid var(--arena); }
.mm-links a {
  display: flex; align-items: baseline; gap: 14px; padding: 16px 0; text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: 1.75rem; text-transform: uppercase; letter-spacing: .02em;
  opacity: 0; transform: translateX(18px); transition: opacity .3s, transform .3s, color .2s;
}
.mm-links a:hover { color: var(--teja); }
.mm-num { font-family: var(--f-body); font-weight: 600; font-size: .78rem; color: var(--teja); letter-spacing: .05em; width: 22px; }
.mobile-menu.is-open .mm-links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mm-links li:nth-child(1) a { transition-delay: .10s; }
.mobile-menu.is-open .mm-links li:nth-child(2) a { transition-delay: .15s; }
.mobile-menu.is-open .mm-links li:nth-child(3) a { transition-delay: .20s; }
.mobile-menu.is-open .mm-links li:nth-child(4) a { transition-delay: .25s; }
.mobile-menu.is-open .mm-links li:nth-child(5) a { transition-delay: .30s; }
.mm-foot { padding: 18px 22px 26px; border-top: 1px solid var(--arena); display: grid; gap: 10px; }
.mm-hours { margin: 6px 0 0; text-align: center; font-size: .9rem; color: var(--tinta-55); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 36px) 0 84px;
}
@media (min-width: 960px) {
  .hero { min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 96px; }
}
.hero-grid { display: grid; gap: 52px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; } }

.hero-title { margin: 0 0 22px; }
.hero-brand {
  display: block; font-family: var(--f-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(3.4rem, 15.2vw, 7rem); line-height: .86; letter-spacing: -.01em; color: var(--papel);
}
@media (min-width: 960px) { .hero-brand { font-size: clamp(4.2rem, 7.3vw, 7rem); } }
.hero-lead {
  display: block; margin-top: 12px;
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(1.75rem, 6.4vw, 2.9rem); line-height: 1.08; color: var(--luna);
}
.hero-text { color: var(--papel-80); font-size: 1.1rem; max-width: 50ch; margin-bottom: 24px; }
@media (min-width: 960px) { .hero-text { font-size: 1.2rem; } }

.hero-status { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.status-pill, .moon-pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 36px;
  padding: 6px 14px; border-radius: 999px; font-size: .92rem; font-weight: 500;
  background: rgba(244, 239, 230, .08); border: 1px solid var(--linea-clara); color: var(--papel);
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--papel-60); flex: none; }
.status-pill.is-open .status-dot { background: #7DD39A; box-shadow: 0 0 0 0 rgba(125, 211, 154, .6); animation: pulse 2.2s infinite; }
.status-pill.is-soon .status-dot { background: var(--luna); }
.status-pill.is-closed .status-dot { background: #E58B73; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(125, 211, 154, .55); } 70% { box-shadow: 0 0 0 8px rgba(125, 211, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(125, 211, 154, 0); } }
.moon-pill[hidden] { display: none; }
.moon-icon { width: 20px; height: 20px; flex: none; }
.moon-dark { fill: #2b2f48; stroke: rgba(244, 239, 230, .35); stroke-width: 1; }
.moon-lit { fill: #F1E6C8; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas .btn { flex: 1 1 auto; }
@media (min-width: 480px) { .hero-ctas .btn { flex: 0 0 auto; } }
.hero-call { margin: 16px 0 0; color: var(--papel-60); font-size: .98rem; }
.hero-call a { color: var(--papel); font-weight: 600; text-decoration-color: rgba(232, 194, 106, .7); text-underline-offset: 3px; }

/* Telescopio: foto circular con anotaciones */
.telescope { position: relative; margin: 0 auto; width: min(82vw, 480px); }
@media (min-width: 960px) { .telescope { width: min(100%, 480px); margin-right: 20px; } }
.telescope-scope { position: relative; }
.telescope-lens {
  position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 6px rgba(23, 26, 43, .9), 0 0 0 8px rgba(232, 194, 106, .75), 0 40px 80px -20px rgba(0, 0, 0, .7);
  background: #2b2f48;
}
.telescope-lens img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease-out); }
.telescope:hover .telescope-lens img { transform: scale(1.07); }
.telescope-lens::after { /* viñeta de ocular */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 58%, rgba(10, 11, 20, .55) 100%);
  pointer-events: none;
}
.orbit { position: absolute; border-radius: 50%; pointer-events: none; border: 1px solid rgba(244, 239, 230, .16); }
.orbit-1 { inset: -26px; border-style: dashed; border-color: rgba(232, 194, 106, .38); animation: spin 90s linear infinite; }
.orbit-2 { inset: -58px; }
@media (max-width: 520px) { .orbit-1 { inset: -16px; } .orbit-2 { inset: -34px; } }
.orbit-moon { position: absolute; top: 50%; right: -6px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--luna); box-shadow: 0 0 14px rgba(232, 194, 106, .8); }
@keyframes spin { to { transform: rotate(360deg); } }

.marker {
  position: absolute; z-index: 2; width: 28px; height: 28px; margin: -14px 0 0 -14px;
  display: grid; place-items: center; border-radius: 50%;
  font-family: var(--f-display); font-weight: 700; font-size: .95rem; line-height: 1;
  color: var(--noche); background: var(--luna); box-shadow: 0 0 0 4px rgba(232, 194, 106, .3), 0 4px 10px rgba(0, 0, 0, .35);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.marker[data-marker="1"] { left: 40%; top: 29%; }
.marker[data-marker="2"] { left: 27%; top: 47%; }
.marker[data-marker="3"] { left: 58%; top: 56%; }
.marker[data-marker="4"] { left: 30%; top: 76%; }
.marker.is-active { transform: scale(1.25); box-shadow: 0 0 0 7px rgba(232, 194, 106, .35), 0 4px 10px rgba(0, 0, 0, .35); }

.telescope-legend { margin-top: 56px; text-align: center; }
@media (max-width: 520px) { .telescope-legend { margin-top: 42px; } }
.legend-title { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; color: var(--luna); margin-bottom: 10px; }
.telescope-legend ol { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; counter-reset: leg; font-size: .93rem; color: var(--papel-80); }
.telescope-legend li { counter-increment: leg; display: inline-flex; align-items: center; gap: 7px; cursor: default; transition: color .2s; }
.telescope-legend li::before {
  content: counter(leg); display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
  font-family: var(--f-display); font-weight: 700; font-size: .78rem; color: var(--noche); background: var(--luna);
}
.telescope-legend li:hover, .telescope-legend li.is-active { color: var(--papel); }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 44px; height: 44px; display: none; place-items: center; }
@media (min-width: 960px) { .scroll-cue { display: grid; } }
.scroll-cue span { width: 1.5px; height: 34px; background: rgba(244, 239, 230, .25); position: relative; overflow: hidden; border-radius: 2px; }
.scroll-cue span::after { content: ""; position: absolute; left: 0; top: -12px; width: 100%; height: 12px; background: var(--luna); animation: drop 2.2s var(--ease-out) infinite; }
@keyframes drop { to { top: 34px; } }

/* ---------- Momentos ---------- */
.momentos { background: var(--papel); }
.momentos-grid { display: grid; gap: 18px; }
@media (min-width: 860px) { .momentos-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.momento {
  position: relative; background: #FBF8F2; border: 1px solid var(--arena); border-radius: var(--radius);
  padding: 30px 26px 28px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
@media (min-width: 860px) { .momento:hover { transform: translateY(-6px); box-shadow: var(--shadow); } }
.momento-phase { width: 44px; height: 44px; margin-bottom: 22px; }
@media (max-width: 859px) {
  .momento { padding: 24px 22px 22px; }
  .momento-phase { width: 34px; height: 34px; margin-bottom: 14px; }
  .momento-title { font-size: 1.8rem; }
}
.ph-ring { fill: none; stroke: var(--noche); stroke-width: 1.5; }
.ph-fill { fill: var(--noche); }
.momento-when { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--teja); margin-bottom: 6px; }
.momento-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 2rem; line-height: 1; margin-bottom: 14px; }
.momento p:not([class]) { color: var(--tinta-70); }
.momento-price { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--arena); color: var(--tinta-70); }
.momento-price strong { color: var(--noche); font-family: var(--f-display); font-size: 1.3rem; letter-spacing: .02em; }
.momento .link-arrow { align-self: flex-start; }

/* ---------- Platos (bento) ---------- */
.platos { background: var(--niebla); }
.bento { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .bento { grid-template-columns: 1.9fr 1fr; gap: 24px; }
  .dish-chart { grid-column: 1 / -1; }
}
.dish { position: relative; border-radius: var(--radius); overflow: hidden; background: #FBF8F2; border: 1px solid var(--arena); display: flex; flex-direction: column; }
.dish-media { overflow: hidden; aspect-ratio: 4 / 3; background: var(--arena); }
.dish-lg .dish-media { aspect-ratio: 3 / 2; }
@media (min-width: 760px) {
  .dish:not(.dish-lg):not(.dish-chart) .dish-media { flex: 1; aspect-ratio: auto; min-height: 240px; }
}
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.dish:hover .dish-media img { transform: scale(1.04); }
.dish-body { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 20px 24px 22px; }
.dish-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.45rem; line-height: 1.05; letter-spacing: .01em; }
.dish-lg .dish-title { font-size: clamp(1.5rem, 3vw, 2rem); }
.dish-price { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.6rem; color: var(--teja); white-space: nowrap; }

.dish.dish-chart {
  padding: 30px 26px; border: 0; color: var(--papel);
  background: var(--noche) url("../assets/img/cielo-estrellas.svg") 0 0 / 640px 640px;
}
@media (min-width: 960px) {
  .dish.dish-chart { display: grid; grid-template-columns: .8fr 1.2fr; grid-template-rows: auto auto 1fr; column-gap: 56px; padding: 40px 44px; align-items: start; }
  .dish-chart .eyebrow, .dish-chart .chart-title { grid-column: 1; }
  .dish-chart .chart-list { grid-column: 2; grid-row: 1 / span 3; }
  .dish-chart .chart-note { grid-column: 1; grid-row: 3; }
}
.chart-title { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.02; margin-bottom: 18px; color: var(--papel); }
.chart-list li {
  display: flex; justify-content: space-between; gap: 14px; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--linea-clara); font-size: 1rem; color: var(--papel-80);
}
.chart-list li span:first-child { position: relative; padding-left: 20px; }
.chart-list li span:first-child::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 8px; height: 8px;
  background: var(--luna); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.chart-price { color: var(--luna); font-weight: 600; white-space: nowrap; }
.chart-note { margin: 14px 0 0; font-size: .86rem; color: var(--papel-60); }

/* ---------- Carta ---------- */
.carta { background: var(--papel); }
.carta-layout { display: grid; gap: 36px; align-items: start; }
@media (min-width: 960px) {
  .carta-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 660px); gap: 72px; }
  .carta-aside { position: sticky; top: calc(var(--header-h) + 36px); }
}
.carta-lead { font-family: var(--f-serif); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.2; color: var(--noche); margin-bottom: 22px; max-width: 26ch; }
.carta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.carta-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: #FBF8F2; border: 1px solid var(--arena); font-size: .94rem; font-weight: 500;
}
.carta-chips li::before {
  content: ""; width: 9px; height: 9px; background: var(--teja);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.carta-note { display: flex; gap: 12px; color: var(--tinta-70); font-size: .98rem; max-width: 46ch; margin-bottom: 26px; }
.carta-note svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--teja); stroke-width: 1.8; stroke-linecap: round; margin-top: 1px; }
.carta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 520px) { .carta-actions .btn { width: 100%; white-space: normal; text-align: center; } }

.carta-frame {
  width: 100%; max-width: 660px; justify-self: center;
  padding: 10px; border-radius: 22px;
  background: var(--noche) url("../assets/img/cielo-estrellas.svg") 0 0 / 640px 640px;
  box-shadow: 0 0 0 1px rgba(232, 194, 106, .35), 0 40px 70px -30px rgba(23, 26, 43, .55);
}
@media (min-width: 960px) { .carta-frame { justify-self: end; } }
.carta-frame-head {
  display: flex; align-items: center; gap: 10px; padding: 6px 8px 12px;
  font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--luna);
}
.carta-frame-head .brand-star { width: 16px; height: 16px; }
.carta-iframe {
  display: block; width: 100%; height: 800px; border: 0; border-radius: 12px;
  background: var(--papel); color-scheme: light;
}
@media (max-width: 959px) { .carta-iframe { height: min(80vh, 760px); min-height: 560px; } }
@media (max-width: 520px) { .carta-frame { padding: 6px; border-radius: 18px; } .carta-frame-head { padding: 6px 8px 8px; } }

/* ---------- Historia ---------- */
.historia { position: relative; overflow: hidden; }
.historia-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 960px) { .historia-grid { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.historia-copy > p:not([class]) { color: var(--papel-80); font-size: 1.1rem; max-width: 58ch; }
.historia-copy .section-title { margin-bottom: 28px; }
.logbook {
  margin: 32px 0 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0;
  border-top: 1px solid var(--linea-clara); border-bottom: 1px solid var(--linea-clara);
}
.logbook > div { padding: 16px 16px 16px 0; }
.logbook dt { font-family: var(--f-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--luna); margin-bottom: 4px; }
.logbook dd { margin: 0; font-family: var(--f-serif); font-size: 1.22rem; line-height: 1.25; color: var(--papel); }
.press { font-size: .96rem; color: var(--papel-60); margin: 0; }
.press a { color: var(--papel); text-decoration-color: rgba(232, 194, 106, .6); text-underline-offset: 3px; }
.press a:hover { color: var(--luna); }

.historia-media { position: relative; min-height: 460px; }
@media (min-width: 560px) { .historia-media { min-height: 560px; } }
.polaroid {
  position: absolute; margin: 0; padding: 12px 12px 14px; background: #FBF8F2; border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65);
}
.polaroid img { border-radius: 3px; }
.polaroid figcaption { margin-top: 10px; font-family: var(--f-serif); font-style: italic; font-size: 1.02rem; color: var(--noche); text-align: center; line-height: 1.2; }
.polaroid-moon { width: min(58%, 300px); left: 0; top: 0; transform: rotate(-4deg); z-index: 2; }
.polaroid-food { width: min(66%, 340px); right: 0; bottom: 0; transform: rotate(3deg); }
@media (min-width: 960px) { .polaroid-moon { left: 4%; } }

/* ---------- Visítanos ---------- */
.visitanos { background: var(--papel); }
.visit-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .visit-grid { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.visit-info { display: grid; gap: 18px; }
.info-card { background: #FBF8F2; border: 1px solid var(--arena); border-radius: var(--radius); padding: 24px 24px 22px; }
.info-card p { color: var(--tinta-70); }
.info-title { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: 1.4rem; letter-spacing: .03em; margin-bottom: 12px; }
.info-title svg { width: 22px; height: 22px; fill: none; stroke: var(--teja); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.info-address { font-family: var(--f-serif); font-size: 1.55rem; line-height: 1.2; margin-bottom: 16px; }
.info-note { font-size: .9rem; margin: 12px 0 0; color: var(--tinta-55) !important; }
.info-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.info-social { margin: 18px 0 0; }
.info-social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--noche); text-decoration: none; min-height: 44px; }
.info-social a:hover { color: var(--teja); }
.info-social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.hours-status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--noche) !important; margin-bottom: 10px; }
.hours-status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--arena); }
.hours-status.is-open::before { background: #3E9A5F; }
.hours-status.is-soon::before { background: #C99A2E; }
.hours-status.is-closed::before { background: var(--teja); }
.hours { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.hours th, .hours td { padding: 9px 0; border-bottom: 1px dotted rgba(23, 26, 43, .22); font-size: 1rem; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; color: var(--teja); }
.hours tr.is-today th::after { content: " · hoy"; font-weight: 500; font-size: .85em; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--arena); background: #FBF8F2; font-size: .92rem; font-weight: 500; }

.visit-media { display: grid; gap: 18px; }
.facade { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--arena); }
.facade img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.facade figcaption {
  position: absolute; left: 14px; bottom: 14px; padding: 8px 14px; border-radius: 999px;
  background: rgba(23, 26, 43, .82); color: var(--papel); font-family: var(--f-serif); font-style: italic; font-size: 1.02rem;
}
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--arena); background: var(--niebla); aspect-ratio: 16 / 10; position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; padding: 24px;
  background:
    linear-gradient(rgba(236, 229, 216, .9), rgba(236, 229, 216, .9)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(23, 26, 43, .08) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(23, 26, 43, .08) 39px 40px);
}
.map-placeholder p { margin: 0; max-width: 34ch; font-size: .95rem; color: var(--tinta-70); }
.map-star { width: 34px; height: 34px; fill: var(--teja); }

/* ---------- Footer ---------- */
.site-footer { padding: 72px 0 28px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; } }
.footer-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 700; font-size: 2rem; text-transform: uppercase; letter-spacing: .03em; }
.footer-logo .brand-star { width: 28px; height: 28px; }
.footer-sub { font-family: var(--f-display); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--luna); margin: 4px 0 14px; }
.site-footer p { color: var(--papel-80); font-size: .98rem; }
.footer-title { font-family: var(--f-display); font-weight: 600; font-size: .9rem; letter-spacing: .16em; text-transform: uppercase; color: var(--luna); margin-bottom: 12px; }
.site-footer a { color: var(--papel); text-decoration-color: rgba(244, 239, 230, .35); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--luna); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--linea-clara); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-bottom p { margin: 0; font-size: .88rem; color: var(--papel-60); }

/* ---------- Barra fija móvil ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(244, 239, 230, .97); border-top: 1px solid var(--arena);
  box-shadow: 0 -10px 30px -12px rgba(23, 26, 43, .25);
  transform: translateY(110%); transition: transform .4s var(--ease-out);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { min-height: 48px; padding: 0 14px; }
@media (min-width: 860px) { .sticky-cta { display: none; } }
@media (max-width: 859px) { body { padding-bottom: 76px; } .site-footer { padding-bottom: 28px; } }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .polaroid-moon.reveal { transform: rotate(-4deg) translateY(26px); }
.js .polaroid-moon.reveal.is-visible { transform: rotate(-4deg); }
.js .polaroid-food.reveal { transform: rotate(3deg) translateY(26px); }
.js .polaroid-food.reveal.is-visible { transform: rotate(3deg); }
.momentos-grid .momento:nth-child(2) { transition-delay: .08s; }
.momentos-grid .momento:nth-child(3) { transition-delay: .16s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .polaroid-moon.reveal { transform: rotate(-4deg); }
  .js .polaroid-food.reveal { transform: rotate(3deg); }
}

/* ---------- Páginas secundarias ---------- */
.page-simple { padding: calc(var(--header-h) + 56px) 0 80px; }
.page-simple .container { max-width: 820px; }
.page-simple h1 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(2.4rem, 7vw, 3.6rem); margin-bottom: 24px; }
.page-simple h2 { font-family: var(--f-display); text-transform: uppercase; font-size: 1.6rem; margin: 40px 0 12px; }
.page-simple p, .page-simple li { color: var(--tinta-70); }
.page-simple ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.page-simple a { color: var(--teja); }
.pending { background: var(--niebla); border: 1px dashed var(--arena); border-radius: 10px; padding: 2px 8px; font-size: .92em; }
.site-header.solid { background: rgba(244, 239, 230, .96); color: var(--noche); border-bottom-color: var(--linea); }
.site-header.solid .brand-star { fill: var(--teja); }
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.notfound h1 { font-family: var(--f-display); text-transform: uppercase; font-size: clamp(3rem, 12vw, 6rem); line-height: .9; margin: 18px 0 14px; }
.notfound p { color: var(--papel-80); max-width: 40ch; margin: 0 auto 26px; }

/* Carta en móvil y tableta: la carta digital sube justo después de la entradilla */
@media (max-width: 959px) {
  .carta-layout { gap: 22px; }
  .carta-aside { display: contents; }
  .carta-lead { order: 1; margin: 0; }
  .carta-chips { display: none; }
  .carta-frame { order: 2; }
  .carta-note { order: 3; margin: 6px 0 0; }
  .carta-actions { order: 4; }
}
