/* ============ Tokens ============ */
:root {
  --ink-black: oklch(16% 0.015 55);
  --ink-black-2: oklch(11% 0.012 55);
  --gold: oklch(72% 0.13 80);
  --gold-bright: oklch(84% 0.14 92);
  --gold-deep: oklch(52% 0.11 65);
  --ivory: oklch(95% 0.02 80);
  --ink-text: oklch(22% 0.02 50);

  /* TODO: sustituir por "EFCO Brookshire" en cuanto tengas los archivos con licencia.
     Ver el bloque @font-face comentado más abajo para activarla. */
  --font-display: "Cinzel Decorative", serif;
  --font-body: "Work Sans", sans-serif;
  --font-condensed: "Bebas Neue", sans-serif;

  --gold-gradient: linear-gradient(120deg, var(--gold-deep), var(--gold-bright) 45%, var(--gold) 60%, var(--gold-deep));

  --z-content: 10;
  --z-overlay: 20;
}

/* ============ EFCO Brookshire (logotipo) ============
   Cuando tengas los archivos con licencia, crea la carpeta fonts/,
   copia dentro brookshire.woff2 (y .woff si lo tienes) y descomenta esto.
   Luego cambia --font-display arriba a: "EFCO Brookshire", "Cinzel Decorative", serif;

@font-face {
  font-family: "EFCO Brookshire";
  src: url("../fonts/brookshire.woff2") format("woff2"),
       url("../fonts/brookshire.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
*/

/* ============ Fuentes (alojadas localmente, sin depender de Google Fonts) ============ */
@font-face {
  font-family: "Bebas Neue";
  src: url("../fonts/bebas-neue-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cinzel Decorative";
  src: url("../fonts/cinzel-decorative-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--ink-black);
  color: var(--ivory);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.85rem 1.5rem;
  background: var(--gold-gradient);
  color: var(--ink-black-2);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease-out;
}
.skip-link:focus { top: 1rem; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
[data-parallax] { transform: scale(1.08); transform-origin: center; will-change: transform; }
.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.35) 30%, rgba(10,8,6,0.72) 100%);
}
.hero__content {
  position: relative;
  z-index: var(--z-content);
  text-align: center;
  padding: 3rem 1.75rem;
  max-width: 640px;
}
.logo-mark {
  position: relative;
  margin: 0 auto;
  width: clamp(230px, 58vw, 460px);
}
.logo-mark::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 155%;
  height: 155%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(6,5,4,0.62) 0%, rgba(6,5,4,0.32) 45%, rgba(6,5,4,0) 72%);
  pointer-events: none;
}
.logo-mark img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 30px rgba(0,0,0,0.5));
}
.logo-mark__foil,
.logo-mark__shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  -webkit-mask-image: url("../images/logo-gold-mask.webp");
  mask-image: url("../images/logo-gold-mask.webp");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: luminance;
  mask-mode: luminance;
}
.logo-mark__foil {
  z-index: 2;
  background: linear-gradient(135deg, var(--gold-deep) 0%, var(--gold-bright) 45%, var(--gold) 65%, var(--gold-deep) 100%);
  mix-blend-mode: color;
}
.logo-mark__shine {
  z-index: 3;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.7) 50%, transparent 58%);
  background-size: 300% 300%;
  background-position: 160% 0%;
  mix-blend-mode: screen;
  animation: cta-shine 9s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark__shine { animation: none; opacity: 0; }
}
.cta {
  position: relative;
  z-index: var(--z-content);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  background: var(--gold-gradient);
  color: var(--ink-black-2);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1), box-shadow 0.35s cubic-bezier(0.16,1,0.3,1);
}
.cta:hover, .cta:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1) inset; }
.cta:active { transform: translateY(0) scale(0.97); box-shadow: 0 4px 16px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08) inset; }
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.55) 50%, transparent 58%);
  background-size: 300% 300%;
  background-position: 160% 0%;
  mix-blend-mode: overlay;
  animation: cta-shine 9s linear infinite;
}
.cta--outline::after { mix-blend-mode: screen; background: linear-gradient(115deg, transparent 42%, rgba(255,255,255,0.32) 50%, transparent 58%); background-size: 300% 300%; }
@keyframes cta-shine {
  0%, 100% { background-position: 160% 0%; }
  50% { background-position: -60% 0%; }
}
@media (prefers-reduced-motion: reduce) {
  .cta::after { animation: none; opacity: 0; }
}
.cta__icon { width: 1.15rem; height: 1.15rem; position: relative; z-index: 3; }
.cta span { position: relative; z-index: 3; }
.cta--outline {
  background: transparent;
  color: var(--ivory);
  box-shadow: 0 0 0 1.5px var(--gold) inset;
}
.cta--outline:hover, .cta--outline:focus-visible { background: rgba(233,199,107,0.1); }
.cta--outline:active { background: rgba(233,199,107,0.18); transform: scale(0.97); }

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--z-content);
  color: var(--gold-bright);
  animation: hint-bob 2.4s ease-out-quart infinite;
}
.scroll-hint svg { width: 1.6rem; height: 1.6rem; }
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.6; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint { animation: none; }
}

/* ============ Hero load-in choreography ============ */
.hero-reveal {
  animation: hero-fade-up 0.8s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: var(--hd, 0s);
}
@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-reveal { animation: none; opacity: 1; transform: none; }
}

/* ============ About ============ */
.about {
  background: var(--ivory);
  color: var(--ink-text);
  display: grid;
  grid-template-columns: 1fr;
}
.about__frame { position: relative; }
.about__frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.about__text {
  padding: 3.5rem 1.75rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  max-width: 62ch;
  margin-inline: auto;
}
.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  font-weight: 700;
  color: var(--ink-black-2);
  text-wrap: balance;
}
.about__text p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-text);
  text-wrap: pretty;
}
.about__text strong { color: var(--ink-black-2); }

@media (min-width: 860px) {
  .about { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .about__frame img { aspect-ratio: auto; min-height: 100%; }
  .about__text { padding: 5rem 4rem; margin-inline: 0; max-width: 52ch; justify-content: center; }
}

/* ============ La Carta ============ */
.menu { background: var(--ivory); color: var(--ink-text); padding: 5rem 1.5rem; }
.menu__content { max-width: 900px; margin-inline: auto; }
.menu__content > h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--ink-black-2);
  text-align: center;
  text-wrap: balance;
}
.menu__note {
  text-align: center;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-text);
  opacity: 0.7;
  margin-top: 0.6rem;
  margin-bottom: 3rem;
}
.menu__category { margin-bottom: 3.5rem; }
.menu__category:last-child { margin-bottom: 0; }
.menu__category h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--ink-black-2);
  text-align: center;
  margin-bottom: 0.6rem;
}
.menu__category h3::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  background: var(--gold-gradient);
  border-radius: 2px;
  margin: 0.6rem auto 2rem;
}
.menu__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 3rem;
}
@media (min-width: 720px) {
  .menu__grid { grid-template-columns: 1fr 1fr; }
}
.menu__item-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.menu__item h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; color: var(--ink-black-2); text-wrap: balance; }
.menu__price { font-weight: 600; color: var(--ink-black-2); white-space: nowrap; }
.menu__item p { font-size: 0.92rem; line-height: 1.6; color: var(--ink-text); opacity: 0.85; }
.menu__item-note { display: block; font-size: 0.78rem; font-style: italic; opacity: 0.6; margin-top: 0.3rem; }

/* ============ Location ============ */
.location { position: relative; padding: 5rem 1.5rem; overflow: hidden; }
.location__bg { position: absolute; inset: 0; z-index: 0; }
.location__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.location__scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,8,6,0.86), rgba(10,8,6,0.93)); }
.location__content { position: relative; z-index: var(--z-content); max-width: 720px; margin-inline: auto; text-align: center; }
.location__content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  color: var(--ivory);
  margin-bottom: 2.5rem;
}
.location__grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.location__card {
  padding-top: 2rem;
  border-top: 1px solid rgba(233,199,107,0.25);
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.location__card:first-child {
  padding-top: 0;
  border-top: none;
}
.location__card h3 {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 400;
  margin-bottom: 0.6rem;
}
.location__card p { font-size: 1.05rem; color: var(--ivory); }
.location__card a { text-decoration: none; border-bottom: 1px solid var(--gold); }

.hours {
  max-width: 380px;
  margin: 0 auto 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(233,199,107,0.25);
}
.hours h3 {
  font-family: var(--font-condensed);
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  font-weight: 400;
  margin-bottom: 1.1rem;
}
.hours__list { margin: 0; }
.hours__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(233,199,107,0.14);
}
.hours__row:last-child { border-bottom: none; }
.hours__row dt { margin: 0; font-size: 0.95rem; color: rgba(245,239,224,0.75); text-align: left; }
.hours__row dd { margin: 0; font-size: 0.95rem; color: var(--ivory); font-weight: 500; text-align: left; white-space: nowrap; }

@media (min-width: 480px) {
  .hours__row {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
  }
  .hours__row dd { text-align: right; }
}

.map {
  margin-top: 2.5rem;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px var(--gold), 0 20px 50px rgba(0,0,0,0.4);
}
.map iframe { width: 100%; height: 340px; border: 0; display: block; filter: grayscale(0.15) contrast(1.05); }
.map__load {
  width: 100%;
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(160deg, var(--ink-black-2), var(--ink-black));
  color: var(--gold-bright);
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.3s ease-out;
}
.map__load:hover, .map__load:focus-visible { background: linear-gradient(160deg, var(--ink-black-2), #241c15); }
.map__load-icon { width: 2rem; height: 2rem; }
.map-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.2rem;
  font-size: 0.9rem;
  color: var(--gold-bright);
  text-decoration: none;
  border-bottom: 1px solid rgba(233,199,107,0.4);
  transition: border-color 0.25s ease-out, opacity 0.15s ease-out;
}
.map-link:hover, .map-link:focus-visible { border-bottom-color: var(--gold-bright); }
.map-link:active { opacity: 0.7; }

@media (min-width: 720px) {
  .location__grid {
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 0;
  }
  .location__card {
    padding: 0 2.5rem;
    border-top: none;
    max-width: none;
  }
  .location__card:first-child { padding-left: 0; }
  .location__card:not(:first-child) {
    border-left: 1px solid rgba(233,199,107,0.25);
  }
}

/* ============ Footer ============ */
.site-footer {
  background: var(--ink-black-2);
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid rgba(233,199,107,0.2);
}
.footer-logotype {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold-bright);
  margin-bottom: 1rem;
}
.footer-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: rgba(245,239,224,0.75);
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
}
.footer-info a { text-decoration: none; border-bottom: 1px solid rgba(233,199,107,0.4); }
.footer-social { display: flex; justify-content: center; gap: 0.9rem; margin-bottom: 1.75rem; }
.footer-social a {
  width: 2.75rem; height: 2.75rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px rgba(233,199,107,0.5) inset;
  color: var(--gold-bright);
  transition: background 0.3s ease-out, transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.footer-social a:hover, .footer-social a:focus-visible { background: rgba(233,199,107,0.12); }
.footer-social a:active { background: rgba(233,199,107,0.2); transform: scale(0.93); }
.footer-social svg { width: 1.15rem; height: 1.15rem; }
.footer-fine { font-size: 0.8rem; color: rgba(245,239,224,0.6); }
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(245,239,224,0.6);
  margin-bottom: 0.75rem;
}
.footer-legal a { text-decoration: none; border-bottom: 1px solid rgba(233,199,107,0.3); }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--gold-bright); border-bottom-color: var(--gold-bright); }

/* ============ Páginas legales ============ */
.legal-header {
  background: var(--ink-black-2);
  padding: 2rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(233,199,107,0.2);
}
.legal-header a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold-bright);
  text-decoration: none;
}
.legal-back {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem !important;
  color: rgba(245,239,224,0.7) !important;
}
.legal-content {
  background: var(--ivory);
  color: var(--ink-text);
  padding: 3.5rem 1.5rem 4rem;
}
.legal-content__inner { max-width: 68ch; margin-inline: auto; }
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--ink-black-2);
  margin-bottom: 0.5rem;
  text-wrap: balance;
}
.legal-content .legal-updated { font-size: 0.85rem; color: var(--ink-text); opacity: 0.65; margin-bottom: 2.5rem; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ink-black-2);
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
}
.legal-content p, .legal-content li { font-size: 1rem; line-height: 1.7; margin-bottom: 1rem; }
.legal-content ul { padding-left: 1.3rem; margin: 0 0 1rem; }
.legal-content a { color: var(--ink-black-2); text-decoration: underline; text-decoration-color: rgba(138,106,46,0.5); }
.legal-content strong { color: var(--ink-black-2); }
.legal-content .placeholder { background: rgba(233,199,107,0.25); padding: 0.1em 0.4em; border-radius: 3px; font-style: italic; }

/* ============ Reveal on scroll ============ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
