/* =========================================================
   BAR GELIDA — sistema visual editorial / vibrante
   Playfair Display + DM Sans · acento coral · muy redondeado
   Misma estructura HTML de siempre; solo cambia el lenguaje visual.
   ========================================================= */

:root {
  /* --- Paleta --- */
  --primary:      #D54F2B;
  --accent:       #AA3F22;
  --primary-light:#F2A488; /* variante clara del primario, para texto sobre fondos oscuros */
  --surface:      #FFFFFF;
  --elevated:     #FBF5F0;
  --text:         #1A1A1A;
  --muted:        #6B6B6B;
  --muted-on-dark:rgba(255,255,255,0.72);
  --border:       #1A1A1A;
  --tint:         #FCE7DE; /* lavado muy claro del primario, para fondos de sección */
  --line:         rgba(26,26,26,0.12);
  --line-on-dark: rgba(255,255,255,0.16);

  --gradient-primary: linear-gradient(135deg, #D54F2B 0%, #B23F1F 100%);

  /* --- Elevación --- */
  --shadow-sm:    0 6px 20px rgba(0,0,0,0.08);
  --shadow-md:    0 40px 80px -20px rgba(0,0,0,0.45);
  --shadow-hover: 0 18px 40px -10px rgba(213,79,43,0.45);

  /* --- Radios --- */
  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-sm:   6px;

  /* --- Escala de espaciado (grid de 4px) --- */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px; --sp-5:20px;
  --sp-6:24px; --sp-7:28px; --sp-8:32px; --sp-9:36px; --sp-10:40px;

  /* --- Tipografía --- */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', -apple-system, 'Segoe UI', sans-serif;

  /* --- Motion --- */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 0.2s;
  --dur-slow: 0.45s;

  --container: 1280px;
}

/* --- Reset base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.8px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--text); }
h1 { font-size: clamp(2.75rem, 8vw, 6.4rem); font-weight: 500; line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.015em; }
h3 { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--text);
  color: var(--surface);
  padding: 0.75em 1.2em;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 52px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: var(--sp-1); }
.main-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-5);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.main-nav a:hover { background: var(--tint); transform: translateY(-1px); }
.main-nav a.active {
  background: var(--primary);
  color: var(--surface);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding-left: var(--sp-4);
  border-left: 1px solid var(--line);
}
.lang-switch a { padding: 4px 3px; color: var(--muted); transition: color var(--dur-fast) var(--ease); }
.lang-switch a.active { color: var(--primary); font-weight: 700; }
.lang-switch a:hover { color: var(--text); }
.lang-switch span { color: var(--line); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0;
  margin-left: var(--sp-2);
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 18px; background: var(--text); margin: 0 auto; transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--surface);
  overflow: hidden;
}
.hero--banner { min-height: 46vh; align-items: center; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,26,0.20) 0%, rgba(26,26,26,0.35) 45%, rgba(26,26,26,0.86) 100%);
}
.hero--banner::before {
  background: linear-gradient(90deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.5) 55%, rgba(26,26,26,0.2) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6) 56px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--surface);
  background: var(--gradient-primary);
  padding: var(--sp-2) var(--sp-5);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--sp-5);
}
.hero h1 {
  max-width: 15ch;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0,0,0,0.35);
}
.hero p {
  font-size: 1.15rem;
  max-width: 46ch;
  margin-top: var(--sp-5);
  color: rgba(255,255,255,0.88);
}
.hero-actions { display: flex; gap: var(--sp-4); margin-top: var(--sp-8); flex-wrap: wrap; }

/* =========================================================
   BOTONES
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-7);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.btn--primary { background: var(--primary); color: var(--surface); }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn--outline { border-color: rgba(255,255,255,0.7); color: var(--surface); }
.btn--outline:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }
.btn--dark { background: var(--text); color: var(--surface); }
.btn--dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* =========================================================
   SECCIONES
   ========================================================= */
.section { padding: var(--sp-10) 0 88px; }
.section--tight { padding: 52px 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--text); color: var(--surface); }
.section--dark .eyebrow { color: var(--primary-light); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-9); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: var(--sp-2);
}
.section-head p { margin-top: var(--sp-4); font-size: 1.08rem; color: var(--muted); }
.section--dark .section-head p { color: var(--muted-on-dark); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  margin: 6px 0 var(--sp-9);
  color: var(--primary);
}
.divider::before, .divider::after { content: ""; height: 1px; width: 72px; background: var(--line); }
.divider svg { width: 30px; height: 30px; }

/* =========================================================
   FIRMA — panel de plato bandera (gradiente de marca)
   ========================================================= */
.chalk-panel {
  background: var(--gradient-primary);
  color: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-md);
}
.chalk-panel-inner { padding: var(--sp-9); }
.chalk-label {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  margin-bottom: var(--sp-3);
}
.chalk-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  font-weight: 700;
  color: #fff;
}
.chalk-panel p { color: rgba(255,255,255,0.9); margin-top: var(--sp-3); font-size: 1.05rem; max-width: 52ch; }
.chalk-price {
  display: inline-block;
  margin-top: var(--sp-5);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  background: var(--surface);
  padding: var(--sp-2) var(--sp-6);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   TEXTO / BLOQUES
   ========================================================= */
.prose { max-width: 68ch; color: var(--muted); }
.prose p + p { margin-top: 1em; }
.prose-lg p { font-size: 1.15rem; }

.intro-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-9);
  align-items: center;
}
.intro-grid img { border-radius: var(--radius-card); box-shadow: var(--shadow-md); }

/* =========================================================
   PLATOS / MENÚ
   ========================================================= */
.dish-block { margin-bottom: var(--sp-9); }
.dish-block h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}
.dish-list { display: grid; gap: var(--sp-1); }
.dish {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-3) 4px;
  border-bottom: 1px dashed var(--line);
}
.dish:last-child { border-bottom: none; }
.dish-name { font-weight: 700; flex-shrink: 0; }
.dish-desc { color: var(--muted); font-size: 0.94rem; text-align: right; }

.porro-note {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
  background: var(--elevated);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6) var(--sp-7);
  margin: var(--sp-10) 0;
  border-left: 4px solid var(--primary);
}
.porro-note svg { width: 38px; height: 38px; flex-shrink: 0; color: var(--primary); }
.porro-note p { color: var(--muted); }
.porro-note strong { color: var(--text); }

/* =========================================================
   RESEÑAS
   ========================================================= */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  background: var(--elevated);
  border-radius: var(--radius-pill);
  padding: var(--sp-3) var(--sp-6);
  margin-bottom: var(--sp-9);
  box-shadow: var(--shadow-sm);
}
.rating-badge .stars { color: var(--primary); letter-spacing: 2px; font-size: 1.05rem; }
.rating-badge .rating-number { font-weight: 800; font-size: 1.15rem; }
.rating-badge .rating-count { color: var(--muted); font-size: 0.92rem; }

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-5);
}
.review-card {
  background: var(--elevated);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-3); }
.review-name { font-weight: 700; }
.review-stars { color: var(--primary); font-size: 0.92rem; letter-spacing: 1px; white-space: nowrap; }
.review-text { color: var(--muted); font-size: 0.96rem; }

/* =========================================================
   HISTORIA — generaciones
   ========================================================= */
.generations {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  align-items: start;
  margin: var(--sp-5) 0 8px;
}
.gen-item { text-align: center; padding: 0 var(--sp-5); position: relative; }
.gen-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: var(--sp-4);
  box-shadow: var(--shadow-sm);
}
.gen-item h3 { font-family: var(--font-body); font-size: 1.1rem; font-weight: 800; }
.gen-item p { color: var(--muted); margin-top: 4px; font-size: 0.95rem; }
.gen-connector {
  grid-column: span 1;
  align-self: center;
  text-align: center;
  color: var(--primary);
  font-size: 1.4rem;
  margin-top: -70px;
}

.history-block { margin-bottom: var(--sp-10); }
.history-block:last-child { margin-bottom: 0; }
.history-block h2 { margin-bottom: var(--sp-4); }
.history-media { margin: var(--sp-6) 0; }
.history-media img { border-radius: var(--radius-card); box-shadow: var(--shadow-sm); width: 100%; }
.history-media figcaption { font-size: 0.88rem; color: var(--muted); margin-top: var(--sp-2); font-style: italic; }

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}
.photo-placeholder {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-card);
  background: var(--elevated);
  padding: var(--sp-8) var(--sp-5);
  text-align: center;
  color: var(--muted);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}
.photo-placeholder svg { width: 34px; height: 34px; opacity: 0.55; color: var(--primary); }
.photo-placeholder span { font-size: 0.88rem; max-width: 22ch; }

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-9);
  align-items: start;
}
.info-list { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
.info-row { display: flex; gap: var(--sp-4); align-items: flex-start; }
.info-row svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.info-row h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin-bottom: 3px; }
.info-row p, .info-row a { color: var(--muted); }
.info-row a:hover { color: var(--primary); }

.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--sp-2); }
.hours-table td { padding: var(--sp-2) 0; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 700; }

.notice-banner {
  display: flex;
  gap: var(--sp-4);
  align-items: center;
  background: var(--gradient-primary);
  color: var(--surface);
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--radius-card);
  margin-top: var(--sp-7);
  box-shadow: var(--shadow-sm);
}
.notice-banner svg { width: 28px; height: 28px; flex-shrink: 0; }
.notice-banner strong { display: block; font-size: 1.05rem; }
.notice-banner span { font-size: 0.92rem; opacity: 0.92; }

.map-embed {
  position: relative;
  padding-bottom: 92%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--text); color: var(--surface); padding-top: 64px; }
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-10);
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}
.footer-logo { height: 44px; width: auto; margin-bottom: var(--sp-4); filter: brightness(0) invert(1); opacity: 0.92; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: 0.95rem; max-width: 26ch; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--primary-light); margin-bottom: var(--sp-4); font-weight: 700; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.72); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.footer-nav ul { display: grid; gap: var(--sp-3); }
.footer-note { margin-top: var(--sp-4); color: var(--primary-light); font-weight: 700; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: var(--sp-9); }
  .intro-grid .intro-media { order: -1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .main-nav {
    position: fixed;
    inset: 68px 0 0 0;
    background: var(--surface);
    padding: var(--sp-6);
    display: none;
    overflow-y: auto;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: var(--sp-1); }
  .main-nav a { padding: var(--sp-4); font-size: 1.1rem; text-align: center; }
  .header-inner > .lang-switch { display: none; }
  .nav-toggle { display: flex; }
  .lang-switch--mobile {
    display: flex;
    justify-content: center;
    margin-top: var(--sp-6);
    padding: var(--sp-6) 0 0;
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
@media (min-width: 881px) {
  .lang-switch--mobile { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 56px 0 64px; }
  .hero { min-height: 88vh; }
  .hero-content { padding: var(--sp-8) var(--sp-5) var(--sp-9); }
  .generations { grid-template-columns: 1fr; gap: var(--sp-8); }
  .gen-connector { display: none; }
  .chalk-panel-inner { padding: var(--sp-6); }
  .footer-inner { grid-template-columns: 1fr; gap: var(--sp-8); padding-bottom: 100px; }
  .dish { flex-direction: column; gap: 2px; }
  .dish-desc { text-align: left; }
}
