/* =========================================================
   EL GALLINERO TABERNA — styles.css
   Paleta: fondo oscuro elegante + dorado mostaza de acento
   Tipografía: Fraunces (display) + Jost (cuerpo)
   ========================================================= */

:root {
  /* Color */
  --bg: #1A1A1A;
  --bg-alt: #1F1D1A;
  --bg-card: #242424;
  --bg-darker: #111111;
  --gold: #D4A853;
  --gold-bright: #F5B841;
  --cream: #F5F1E8;
  --muted: #B3AA9A;
  --line: rgba(212, 168, 83, 0.25);
  --overlay: rgba(10, 9, 7, 0.62);

  /* Type */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;
  --header-h: 84px;
  --radius: 4px;
}

/* ---------- Reset base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow.center { text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  color: var(--cream);
  margin-bottom: 1.3rem;
  letter-spacing: -0.01em;
}
.section-title.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 680px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1305;
  font-weight: 500;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212, 168, 83, 0.25); }
.btn-outline {
  background: transparent;
  border-color: rgba(245, 241, 232, 0.5);
  color: var(--cream);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(26, 26, 26, 0.28);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, height 0.35s ease;
}
.site-header.scrolled {
  background: rgba(20, 19, 17, 0.96);
  border-bottom-color: var(--line);
  height: 70px;
}

.header-inner {
  max-width: var(--max-w);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-logo {
  width: auto; height: 70px;
  transition: width 0.35s ease, height 0.35s ease;
}

.main-nav { display: flex; align-items: center; gap: 2.1rem; }
.nav-link {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  color: var(--cream);
  position: relative;
  padding-bottom: 4px;
}
.nav-link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-cta { margin-left: 0.4rem; padding: 0.6rem 1.4rem; font-size: 0.82rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at 30% 20%, #2a2419 0%, #1a1a1a 55%, #100f0c 100%);
}

/* Textura de madera/rejilla de granero sutil, sin depender de imágenes externas */
.hero-texture {
  position: absolute; inset: 0;
  z-index: -2;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 9px),
    repeating-linear-gradient(25deg, rgba(0,0,0,0.35) 0px, rgba(0,0,0,0.35) 2px, transparent 2px, transparent 60px);
}
.hero-vignette {
  position: absolute; inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(10,9,7,0.75) 100%);
}

.hero-content { max-width: 780px; }
.hero .eyebrow { justify-content: center; display: flex; }
.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.08;
  color: var(--cream);
  letter-spacing: -0.01em;
}
.hero-subtitle {
  margin: 1.6rem auto 0;
  max-width: 520px;
  font-size: 1.12rem;
  color: var(--muted);
  font-weight: 300;
}
.hero-actions {
  margin-top: 2.6rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 2.4rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.scroll-cue-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* =========================================================
   SOBRE NOSOTROS
   ========================================================= */
.about {
  padding: 7rem 1.5rem;
  background: var(--bg);
}
.about-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
}
.about-media-art {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}

.about-copy .lede { font-size: 1.12rem; color: var(--cream); margin-bottom: 1.1rem; }
.about-copy p { color: var(--muted); margin-bottom: 1rem; }

.values-list {
  margin: 2.1rem 0 2.3rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.values-list li { display: flex; align-items: flex-start; gap: 1rem; }
.value-text { color: var(--muted); font-size: 0.95rem; }
.value-text strong { color: var(--cream); font-family: var(--font-body); font-weight: 500; display: block; margin-bottom: 0.15rem; }

.chef-quote {
  border-left: 2px solid var(--gold);
  padding-left: 1.3rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  line-height: 1.5;
}
.chef-quote cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* =========================================================
   CARTA / MENU
   ========================================================= */
.menu-section {
  padding: 7rem 1.5rem;
  background: var(--bg-alt);
  text-align: center;
}

.menu-gallery {
  max-width: 900px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.menu-gallery-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.menu-gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}
.menu-gallery-item:hover img { transform: scale(1.03); }

@media (max-width: 600px) {
  .menu-gallery { grid-template-columns: 1fr; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact { padding: 7rem 1.5rem; background: var(--bg); }
.contact-grid {
  max-width: var(--max-w);
  margin: 3.5rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
}

.info-list { display: flex; flex-direction: column; gap: 1.3rem; margin-bottom: 1.8rem; }
.info-list li { display: flex; align-items: flex-start; gap: 1rem; color: var(--muted); font-size: 0.96rem; }
.info-list a:hover { color: var(--gold); }
.info-icon { flex: none; width: 22px; margin-top: 2px; }
.info-icon svg { width: 22px; height: 22px; fill: var(--gold); }

.social-links { display: flex; gap: 0.8rem; margin-bottom: 2rem; }
.social-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.social-icon svg { width: 18px; height: 18px; fill: var(--gold); }
.social-icon:hover { border-color: var(--gold); transform: translateY(-2px); }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--bg-darker); border-top: 1px solid var(--line); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand { display: flex; flex-direction: column; gap: 0.9rem; }
.footer-logo { width: 220px;}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: var(--muted); font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }

.footer-contact { color: var(--muted); font-size: 0.92rem; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-contact a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 1.5rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--muted);
}
.footer-legal { display: flex; gap: 1.3rem; }
.footer-legal a:hover { color: var(--gold); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-darker);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 2.4rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    border-left: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .nav-cta { margin-left: 0; }
  .hamburger { display: flex; }

  /*.form-row, .form-row-3 { grid-template-columns: 1fr; }*/
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
}

@media (max-width: 480px) {
  .about, .menu-section, .contact { padding: 4.5rem 1.2rem; }
  .menu-card { padding: 2.2rem 1.4rem; }
  /*.reservation-form { padding: 1.6rem; }*/
}

/* =========================================================
   PÁGINA LEGAL (Política de Privacidad)
   ========================================================= */
.legal-page {
  padding: calc(var(--header-h) + 4rem) 1.5rem 6rem;
  background: var(--bg);
  min-height: 100vh;
}
.legal-container {
  max-width: 780px;
  margin: 0 auto;
}
.legal-page .section-title { margin-bottom: 0.4rem; }
.legal-updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 3rem;
}

.legal-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold);
  margin: 2.6rem 0 1rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--cream);
  margin: 1.6rem 0 0.6rem;
}
.legal-body p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 1rem;
}
.legal-body ul {
  margin: 0 0 1.2rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.legal-body li {
  color: var(--muted);
  font-size: 0.98rem;
  padding-left: 1.2rem;
  position: relative;
}
.legal-body li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}
.legal-body strong { color: var(--cream); font-weight: 500; }
.legal-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--gold-bright); }