/* Mel de Romer — web pública
   Paleta: madera oscura, miel y romero. */

:root {
  --bg: #14110f;
  --bg-2: #1c1815;
  --bg-3: #26201b;
  --ink: #f3ece1;
  --muted: #b6aa98;
  --honey: #d9a441;
  --honey-2: #f0c26a;
  --rosemary: #8aa677;
  --line: rgba(243, 236, 225, .14);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  --wrap: 72rem;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 300 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; top: 0; background: var(--honey); color: var(--bg); padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }

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

/* ---------- Tipografía ---------- */

.eyebrow {
  font: 500 .78rem/1.2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: .9rem;
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

.h1, .h2, .h3, .hero__title { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0 0 .5em; }
.h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
.h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.h3 { font-size: 1.6rem; color: var(--honey-2); }

.dropcap { color: var(--honey); font-size: 1.25em; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 38rem; }
.prose p { color: var(--muted); }
.prose p:first-child { color: var(--ink); }

.ornament { display: block; color: var(--rosemary); font-size: 1.4rem; margin: .2rem 0 1.4rem; }

.link { color: var(--honey-2); text-decoration: none; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--ink); }

/* ---------- Botones ---------- */

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.actions--center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: .7rem 1.5rem;
  border: 1px solid var(--line); border-radius: 999px;
  font: 500 .95rem/1 var(--sans); letter-spacing: .03em;
  text-decoration: none; color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn:hover { border-color: var(--honey); color: var(--honey-2); }
.btn--primary { background: var(--honey); border-color: var(--honey); color: #1a1208; }
.btn--primary:hover { background: var(--honey-2); border-color: var(--honey-2); color: #1a1208; }

/* ---------- Cabecera ---------- */

.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(20, 17, 15, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.brand img { width: 130px; height: auto; }

.nav-toggle { display: none; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { text-decoration: none; font-size: .95rem; letter-spacing: .04em; color: var(--muted); padding-block: .4rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px var(--honey); }
.nav .nav__cta { color: var(--honey-2); border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; }

@media (max-width: 760px) {
  .topbar__inner { flex-wrap: wrap; }
  .nav-toggle {
    display: grid; gap: 5px; place-content: center;
    width: 2.75rem; height: 2.75rem; cursor: pointer;
    background: none; border: 1px solid var(--line); border-radius: 10px;
  }
  .nav-toggle span { display: block; width: 18px; height: 1.5px; background: var(--ink); }
  .nav { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 1rem; }
  /* Sin JavaScript el menú queda siempre visible. */
  .js .nav:not([data-open]) { display: none; }
  .nav a { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--honey-2); }
  .nav .nav__cta { margin-top: 1rem; text-align: center; }
}

/* ---------- Portada ---------- */

.hero { padding-block: clamp(2.5rem, 7vw, 6rem); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__title { font-size: clamp(2.8rem, 7vw, 5.2rem); }
.hero__title em { color: var(--honey); font-style: italic; }
.hero__media { margin: 0; position: relative; }
.hero__media img {
  border-radius: 200px 200px var(--radius) var(--radius);
  aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.hero__media::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: 200px 200px var(--radius) var(--radius);
  z-index: -1;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 26rem; justify-self: center; width: 100%; }
}

/* ---------- Secciones ---------- */

.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-top: clamp(1.5rem, 4vw, 3rem); }
.section__head { text-align: center; max-width: 40rem; margin: 0 auto 2.5rem; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); padding-block: clamp(3rem, 7vw, 5rem); }
.band--honey { background: linear-gradient(135deg, #2a2016, #1c1815 60%); }

.split { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.split--top { grid-template-columns: 1.3fr .7fr; }
@media (max-width: 760px) { .split, .split--top { grid-template-columns: 1fr; } }

/* ---------- Tarjetas de categorías ---------- */

.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem;
}
.card {
  display: flex; flex-direction: column; height: 100%;
  text-decoration: none; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(217, 164, 65, .5); }
.card__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card__img--empty {
  display: grid; place-items: center; font-size: 2.5rem; color: var(--rosemary);
  background: radial-gradient(circle at 30% 30%, #2f261d, var(--bg-3));
}
.card__body { padding: 1.1rem 1.25rem 1.4rem; display: grid; gap: .35rem; }
.card__title { font: 500 1.7rem/1.1 var(--serif); }
.card__text { color: var(--muted); font-size: .95rem; }

/* ---------- Cabecera de página ---------- */

.page-head { position: relative; text-align: center; padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2rem, 5vw, 3.5rem); isolation: isolate; }
.page-head .lead { margin-inline: auto; }
.page-head--image { padding-block: clamp(5rem, 14vw, 9rem) clamp(3rem, 7vw, 5rem); }
.page-head__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-head--image::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(20, 17, 15, .55), rgba(20, 17, 15, .92));
}
.page-head--image .lead { color: var(--ink); }

/* ---------- Pestañas de la carta ---------- */

.tabs { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 4.5rem); z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs__inner { display: flex; gap: .4rem; overflow-x: auto; padding-block: .7rem; scrollbar-width: none; }
.tabs__inner::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; text-decoration: none; padding: .45rem 1rem; border-radius: 999px;
  color: var(--muted); border: 1px solid transparent; font-size: .95rem;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--honey); }

/* ---------- Carta ---------- */

.menu { max-width: 50rem; }
.menu__section { margin-bottom: 3.2rem; scroll-margin-top: 9rem; }
.menu__title {
  font: 500 2rem/1.1 var(--serif); color: var(--honey-2);
  margin: 0 0 .4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line);
}
.menu__note { color: var(--rosemary); font-style: italic; margin: .6rem 0 0; }
.menu__legal { font-size: .9rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }

.dishes { list-style: none; margin: 0; padding: 0; }
.dish { padding: 1rem 0; border-bottom: 1px dashed rgba(243, 236, 225, .08); }
.dish:last-child { border-bottom: 0; }
.dish__line { display: flex; align-items: baseline; gap: .6rem; }
.dish__name { margin: 0; font: 500 1.3rem/1.25 var(--serif); }
.dish__dots { flex: 1; min-width: 1.5rem; border-bottom: 1px dotted rgba(243, 236, 225, .3); transform: translateY(-.3em); }
.dish__price { flex: none; font-weight: 500; color: var(--honey-2); white-space: nowrap; }
.dish__price small { color: var(--muted); font-weight: 300; font-size: .85em; }
.dish__desc { margin: .25rem 0 0; color: var(--muted); font-size: .95rem; max-width: 38rem; }
.dish__note { margin: .25rem 0 0; color: var(--rosemary); font-size: .9rem; font-style: italic; }

@media (max-width: 480px) {
  .dish__line { flex-wrap: wrap; }
  .dish__dots { display: none; }
  .dish__name { flex: 1 1 100%; }
}

/* ---------- Bloques de información ---------- */

.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.2rem; }
.info { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem .8rem; }
.info p { color: var(--muted); }
.info .h3 { margin-top: .2rem; }
.info .h3 + p { margin-top: 0; }
.info__big { font: 500 2rem/1.1 var(--serif); }
.info__big a { color: var(--ink); text-decoration: none; }
.info__big a:hover { color: var(--honey-2); }

/* ---------- Pie ---------- */

.footer { border-top: 1px solid var(--line); background: #100d0b; padding-top: 3rem; margin-top: 2rem; }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
.footer__grid img { width: 140px; margin-bottom: .8rem; }
.footer__title { font: 500 .78rem/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--honey); margin: 0 0 .9rem; }
.footer a { text-decoration: none; color: var(--muted); }
.footer a:hover { color: var(--ink); }
.footer__links { display: grid; gap: .2rem; }
.footer__legal { font-size: .85rem; padding-block: 2rem 1.5rem; margin: 2rem auto 0; border-top: 1px solid var(--line); }
