/* Café Luna · estilos propios */
:root {
  --bg: #131209;
  --bg-alt: #181818;
  --bg-deep: #000000;
  --text: #f3ead9;
  --muted: #b9ad98;
  --dim: #8a7f6b;
  --accent: #d9ae6e;
  --accent-hover: #e6c28c;
  --on-accent: #131209;
  --line: rgba(243, 234, 217, 0.16);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: "Manrope", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; }
section[id] { scroll-margin-top: 96px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -64px; z-index: 50;
  padding: 8px 12px; background: var(--accent); color: var(--on-accent);
  font-weight: 600; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 44px;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

.eyebrow {
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.h2 { font-size: 1.875rem; line-height: 2.25rem; letter-spacing: -0.01em; max-width: 680px; }
.h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--muted); max-width: 680px; margin-top: 24px; }
.muted { color: var(--muted); }
.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; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--accent { color: var(--accent); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 8px 12px;
  background: var(--accent); color: var(--on-accent);
  font: 600 1rem/1.5rem var(--font); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 12px; cursor: pointer;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease), border-color 700ms var(--ease), color 700ms var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-color: var(--text); }
.btn--lg { min-height: 48px; }
.btn--sm { min-height: 44px; font-size: 0.875rem; line-height: 1.25rem; border-radius: 9999px; padding: 8px 16px; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { background: rgba(243, 234, 217, 0.08); border-color: var(--accent); color: var(--text); }

/* Navegación en isla */
.nav-wrap { position: fixed; top: 24px; left: 0; right: 0; z-index: 40; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  width: max-content; max-width: 100%;
  padding: 4px;
  background: rgba(19, 18, 9, 0.72);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid var(--line); border-radius: 9999px;
}
.nav__brand { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 9999px; color: var(--accent); transition: background-color 700ms var(--ease); }
.nav__brand:hover { background: rgba(243, 234, 217, 0.08); }
.nav__moon { width: 24px; height: 24px; color: var(--accent); }
.nav__link {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; text-decoration: none;
  color: var(--text); border-radius: 9999px;
  transition: background-color 700ms var(--ease), color 700ms var(--ease);
}
.nav__link:hover { background: rgba(243, 234, 217, 0.08); }
.nav__link[aria-current="true"] { color: var(--accent); background: rgba(217, 174, 110, 0.12); }

/* Portada */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  view-timeline: --hero block;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 50%; transform: scale(1.02); transform-origin: 48% 55%; will-change: transform; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(19, 18, 9, 0.96) 0%, rgba(19, 18, 9, 0.78) 38%, rgba(19, 18, 9, 0.2) 72%, rgba(19, 18, 9, 0.35) 100%);
}
.tag {
  display: inline-block; padding: 4px 8px;
  font-size: 0.75rem; line-height: 1rem; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text); background: rgba(0, 0, 0, 0.66); border-radius: 9999px;
}
.hero__tag { position: absolute; right: 16px; top: 96px; z-index: 1; }
.hero__content { width: 100%; max-width: 1152px; margin: 0 auto; padding: 0 24px 64px; }
.hero__title {
  font-size: 3.75rem; line-height: 1; letter-spacing: -0.03em; max-width: 680px;
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff 0%, #9b9b9b 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: 4px;
}
.hero__lead { font-size: 1.125rem; line-height: 1.75rem; color: var(--text); max-width: 680px; margin: 16px 0 32px; }
.hero__proof { margin-top: 24px; font-size: 0.875rem; line-height: 1.25rem; color: var(--muted); }
.br-md { display: none; }

/* Movimiento de la portada: la foto del café se acerca al bajar (solo realza; todo se ve sin esto) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero__media img { animation: cafe-acerca linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    .hero__content { animation: portada-sube linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
  }
  .hero.is-js .hero__media img { transform: translate3d(0, calc(var(--p, 0) * 6%), 0) scale(calc(1.02 + var(--p, 0) * 0.26)) rotate(calc(var(--p, 0) * -2deg)); }
  .hero.is-js .hero__content { transform: translate3d(0, calc(var(--p, 0) * -64px), 0); }
}
@keyframes cafe-acerca {
  from { transform: translate3d(0, 0, 0) scale(1.02) rotate(0deg); }
  to { transform: translate3d(0, 6%, 0) scale(1.28) rotate(-2deg); }
}
@keyframes portada-sube {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -64px, 0); }
}

/* La casa */
.casa__grid { display: grid; gap: 48px; }
.pilares { display: grid; gap: 32px; }
.pilar { display: grid; gap: 8px; }
.pilar__num { font-size: 0.875rem; line-height: 1.25rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; }
.pilar p { color: var(--muted); }

/* Carta */
.carta { background: var(--bg-alt); }
.carta__inner { max-width: 816px; }
.menu { margin-top: 48px; border: 1px solid var(--line); border-radius: 16px; padding: 8px 24px; }
.menu__row { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px; padding: 24px 0; }
.menu__row + .menu__row { box-shadow: 0 -1px 0 var(--line); }
.menu__name { font-size: 1.25rem; line-height: 1.75rem; font-weight: 600; min-width: 0; flex: 1 0 100%; }
.menu__dots { flex: 1 1 24px; min-width: 16px; border-bottom: 2px dotted rgba(217, 174, 110, 0.45); transform: translateY(-6px); }
.menu__price { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.carta__foot { margin-top: 32px; display: grid; gap: 24px; justify-items: start; }

/* Frase grande */
.frase { padding: 96px 0; }
.frase__text { font-size: 2.25rem; line-height: 2.5rem; font-weight: 700; letter-spacing: -0.02em; max-width: 680px; text-wrap: balance; }
.frase__text .w { transition: color 700ms var(--ease); }
.frase__text.is-armed .w { color: var(--dim); }
.frase__text.is-armed .w.on { color: var(--text); }

/* Visítanos */
.visita { background: var(--bg-alt); }
.visita__grid { display: grid; gap: 48px; align-items: center; }
.visita__foto { position: relative; }
.visita__foto img { width: 100%; height: auto; border-radius: 16px; background: #272727; }
.visita__foto figcaption { position: absolute; left: 12px; bottom: 12px; border-radius: 4px; }
.dato { display: flex; gap: 16px; margin-top: 32px; }
.dato .icon { margin-top: 2px; }
.dato p { color: var(--muted); margin-top: 4px; font-size: 1.125rem; line-height: 1.75rem; }
.mapa { margin-top: 40px; }
.mapa iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 16px; background: var(--bg); }

/* Cierre */
.cierre { padding: 96px 0; }
.cierre__inner { display: grid; justify-items: center; text-align: center; }
.cierre__inner .h2, .cierre__inner .lead { margin-left: auto; margin-right: auto; }
.cierre__inner .lead { margin-bottom: 32px; }
.cierre__moon { width: 48px; height: 48px; color: var(--accent); margin-bottom: 24px; }
.cierre__tel { margin-top: 24px; }
.cierre__tel a { display: inline-block; padding: 12px 4px; color: var(--text); font-weight: 600; text-underline-offset: 4px; }
.cierre__tel a:hover { color: var(--accent); }

/* Pie */
.footer { background: var(--bg-deep); padding: 48px 0; font-size: 0.875rem; line-height: 1.25rem; }
.footer__inner { display: grid; gap: 12px; }
.footer__brand { display: flex; align-items: center; gap: 8px; font-size: 1rem; line-height: 1.5rem; font-weight: 700; }
.footer__links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }
.footer__links a:hover { color: var(--accent); }

/* Computador */
@media (min-width: 768px) {
  .section { padding: 96px 0; }
  .h2 { font-size: 3rem; line-height: 1; }
  .hero__title { font-size: 6rem; }
  .hero__lead { font-size: 1.25rem; line-height: 1.75rem; }
  .hero__content { padding-bottom: 96px; }
  .hero__tag { right: 24px; }
  .br-md { display: inline; }
  .pilares { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .menu { padding: 8px 40px; }
  .menu__name { flex: 0 1 auto; }
  .hero__media::after { background: linear-gradient(to right, rgba(19, 18, 9, 0.94) 0%, rgba(19, 18, 9, 0.72) 42%, rgba(19, 18, 9, 0.18) 75%, rgba(19, 18, 9, 0.3) 100%); }
  .menu__name, .menu__price { font-size: 1.5rem; line-height: 2rem; }
  .frase { padding: 96px 0; }
  .frase__text { font-size: 3.75rem; line-height: 1; }
  .footer__inner { grid-template-columns: auto auto 1fr; align-items: center; gap: 24px; }
  .footer__note { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .casa__grid { gap: 64px; }
  .visita__grid { grid-template-columns: 7fr 5fr; gap: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
