/* =========================================================
   Kurtze Bekoa — Stylesheet
   Paleta: tierra, madera, brasa. Tipografía: Cormorant + Inter.
   ========================================================= */

:root {
  --bg: #faf6ef;
  --bg-warm: #f3ebdc;
  --paper: #ffffff;
  --ink: #1f1612;
  --ink-soft: #4a3a31;
  --muted: #7a6a5e;
  --line: #e3d9c8;
  --line-strong: #c9b89e;

  --brand: #6b2a1a;        /* borgoña/brasa */
  --brand-dark: #4a1c10;
  --brand-soft: #a2553f;
  --gold: #b88a3e;         /* dorado acento */
  --wood: #5c3a28;         /* madera */
  --leaf: #4a5d3f;         /* verde discreto */

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --shadow-sm: 0 2px 8px rgba(48, 28, 18, 0.06);
  --shadow: 0 10px 30px rgba(48, 28, 18, 0.12);
  --shadow-lg: 0 24px 60px rgba(48, 28, 18, 0.18);

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max-w: 1200px;
  --header-h: 84px;
  --topbar-h: 36px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--brand);
  margin: 0 0 1rem;
  position: relative;
  padding-left: 32px;
}
.eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 22px;
  height: 1px;
  background: var(--brand);
}

.section { padding: clamp(4rem, 10vw, 7rem) 0; }
.section-head { max-width: 720px; margin: 0 0 3rem; }
.section-head-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--ink-soft); font-size: 1.0625rem; max-width: 640px; }
.section-head-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ---------- Top Bar ---------- */
.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 51;
  background: rgba(15, 8, 5, 0.55);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: rgba(255,255,255,0.85);
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.top-bar.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
}
.top-bar-tagline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
}
.top-bar-tagline svg { color: var(--gold); }
.top-bar-sep {
  color: rgba(255,255,255,0.35);
  margin: 0 0.2rem;
}
.top-bar-social {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.top-bar-social a {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.top-bar-social a:hover {
  color: var(--gold);
  background: rgba(255,255,255,0.06);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 50;
  background: rgba(15, 8, 5, 0.32);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  color: #fff;
}
.site-header.is-scrolled {
  top: 0;
  background: rgba(250, 246, 239, 0.96);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
}
.site-header.is-scrolled .brand-name,
.site-header.is-scrolled .nav-list a,
.site-header.is-scrolled .phone-link {
  color: var(--ink);
}
.site-header.is-scrolled .brand-tag {
  color: var(--muted);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(15, 8, 5, 0.85);
  color: #faf6ef;
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 1.2rem;
  box-shadow: inset 0 0 0 2px rgba(250,246,239,0.5);
}
.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 50%;
  background: transparent;
  display: block;
}
.brand-mark-fallback { display: none; }
/* Si la imagen del logo falla, JS añade .no-logo al brand y se muestra el fallback */
.brand.no-logo .brand-logo { display: none; }
.brand.no-logo .brand-mark-fallback { display: grid; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: inherit;
}
.brand-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.65);
  margin-top: 0.3rem;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0; margin: 0;
}
.nav-list a {
  position: relative;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: inherit;
  padding: 0.5rem 0.15rem;
  transition: color 0.2s ease;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.6;
}
.nav-list a:hover::after { transform: scaleX(1); }
.site-header.is-scrolled .nav-list a:hover { color: var(--brand); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 3px;
  background: rgba(15,8,5,0.35);
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .lang-switcher {
  border-color: var(--line-strong);
  background: var(--paper);
}
.lang-btn {
  background: transparent;
  border: 0;
  padding: 0.4rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.7);
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 600;
}
.site-header.is-scrolled .lang-btn { color: var(--muted); }
.lang-btn:hover { color: #fff; }
.site-header.is-scrolled .lang-btn:hover { color: var(--ink); }
.lang-btn.is-active {
  background: var(--brand);
  color: #fff;
}
.site-header.is-scrolled .lang-btn.is-active { color: #fff; }

.phone-link {
  display: none;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 0.95rem;
  color: inherit;
  font-weight: 600;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}
.phone-link svg { color: var(--gold); }
.site-header.is-scrolled .phone-link svg { color: var(--brand); }
.phone-link:hover { background: rgba(255,255,255,0.08); }
.site-header.is-scrolled .phone-link:hover { color: var(--brand); background: transparent; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(15,8,5,0.35);
  position: relative;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled .menu-toggle {
  border-color: var(--line-strong);
  background: var(--paper);
}
.menu-toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 16px; height: 1.5px;
  background: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease, opacity 0.2s ease, background-color 0.3s ease;
}
.site-header.is-scrolled .menu-toggle span { background: var(--ink); }
.menu-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.menu-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
.menu-toggle.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  padding: calc(var(--topbar-h) + var(--header-h) + 4rem) 0 4rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  background:
    url("../images/chuleton-padron-1.jpg")
    center / cover no-repeat;
  transform: scale(1.05);
  filter: saturate(110%) contrast(106%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg,
      rgba(15,8,5,0.85) 0%,
      rgba(15,8,5,0.65) 30%,
      rgba(15,8,5,0.30) 55%,
      rgba(15,8,5,0.10) 80%,
      rgba(15,8,5,0.35) 100%
    ),
    linear-gradient(180deg,
      rgba(15,8,5,0.45) 0%,
      transparent 25%,
      transparent 75%,
      rgba(15,8,5,0.55) 100%
    );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.eyebrow-hero {
  color: #f5e0bf;
  padding-left: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
}
.eyebrow-hero::before { display: none; }
.eyebrow-hero svg { color: var(--gold); }
.hero-title {
  color: #fff;
  font-weight: 500;
  margin-bottom: 0.5rem;
  max-width: 14ch;
  font-size: clamp(2.75rem, 6.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
}
.hero-divider {
  display: block;
  width: 64px;
  height: 2px;
  background: var(--gold);
  margin: 0.75rem 0 1.5rem;
  border-radius: 2px;
}
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.85);
  max-width: 460px;
  margin-bottom: 2.25rem;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 3rem;
}
.hero .btn { padding: 1rem 1.85rem; font-size: 0.95rem; }
.hero .btn svg { flex-shrink: 0; }
.btn-ghost-light {
  color: #fff;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.btn-ghost-light:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: #fff;
}

/* CTA principal del hero: Habla con Iker */
.btn-iker-hero {
  background: linear-gradient(135deg, var(--gold) 0%, #d09a4a 100%);
  color: #2A1F1A;
  border: 0;
  font-weight: 600;
  font-size: 1rem;
  padding: 1.05rem 2rem !important;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(184,138,62,0.45);
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn-iker-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(184,138,62,0.6);
  color: #2A1F1A;
}
.btn-iker-hero[data-state="talking"] {
  background: linear-gradient(135deg, #c84a37 0%, #8b2e1f 100%);
  color: #fff;
  animation: ikerTalkingPulse 1.2s ease-in-out infinite;
}
.btn-iker-hero[data-state="connecting"] {
  background: linear-gradient(135deg, #f5e0bf 0%, #d4b785 100%);
  pointer-events: none;
}
.iker-pulse-mini {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(42,31,26,0.85);
  position: relative;
  flex-shrink: 0;
}
.iker-pulse-mini::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(42,31,26,0.5);
  animation: ikerPulse 1.8s ease-out infinite;
}
.btn-iker-hero[data-state="talking"] .iker-pulse-mini,
.btn-iker-hero[data-state="talking"] .iker-pulse-mini::before {
  background: rgba(255,255,255,0.9);
}

.hero-alt-action {
  margin: 0.85rem 0 0;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
}
.hero-alt-action a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.hero-alt-action a:hover {
  color: #fff;
  border-color: #fff;
}

/* Floating Action Button — Iker siempre visible (especialmente móvil) */
.iker-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.15rem 0.85rem 0.85rem;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(48,28,18,0.4), 0 0 0 4px rgba(184,138,62,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.iker-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 40px rgba(48,28,18,0.5), 0 0 0 6px rgba(184,138,62,0.25);
}
.iker-fab:active { transform: translateY(0) scale(0.98); }
.iker-fab-ring {
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 2px solid rgba(184,138,62,0.6);
  animation: ikerFabRing 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes ikerFabRing {
  0%   { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.25); opacity: 0; }
}
.iker-fab-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  flex-shrink: 0;
}
.iker-fab-label {
  white-space: nowrap;
}
.iker-fab[data-state="talking"] {
  background: linear-gradient(135deg, #c84a37 0%, #8b2e1f 100%);
}
.iker-fab[data-state="talking"] .iker-fab-ring {
  animation-duration: 0.8s;
  border-color: rgba(255,255,255,0.6);
}
.iker-fab[data-state="connecting"] {
  background: linear-gradient(135deg, #b88a3e 0%, #8b6324 100%);
  pointer-events: none;
}
/* Oculta el FAB cuando el visor ya está mirando la card de Iker (no duplicar) */
.iker-fab.is-near-card {
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

/* Píldora glass de info rápida */
.hero-meta {
  list-style: none;
  padding: 1.25rem 1.75rem;
  margin: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: rgba(15, 8, 5, 0.55);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.5rem;
  position: relative;
}
.hero-meta-item + .hero-meta-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,0.12);
}
.hero-meta-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--gold);
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-meta-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.hero-meta-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.hero-meta-value {
  font-size: 0.92rem;
  color: #fff;
  font-weight: 500;
  line-height: 1.35;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  background: rgba(15,8,5,0.35);
  backdrop-filter: blur(8px);
  z-index: 2;
  animation: scrollBob 2.4s ease-in-out infinite;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.scroll-cue:hover { background: rgba(15,8,5,0.55); }
@keyframes scrollBob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ---------- About ---------- */
.section-about { background: var(--bg); }
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text p { color: var(--ink-soft); font-size: 1.05rem; }
.about-points {
  list-style: none;
  padding: 0;
  margin: 2.25rem 0 0;
  display: grid;
  gap: 1.25rem;
}
.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 1.1rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--brand);
}
.about-points strong {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 600;
}
.about-points span {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-1 {
  grid-row: span 2;
  aspect-ratio: 3 / 4;
}
.about-photo-2 {
  aspect-ratio: 4 / 3;
  align-self: end;
}
.about-badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 280px;
}
.about-badge-num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}
.about-badge-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* ---------- Menu ---------- */
.section-menu { background: var(--bg-warm); position: relative; }
.section-menu::before, .section-menu::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 60px;
  pointer-events: none;
}
.section-menu::before { top: 0; background: linear-gradient(180deg, var(--bg), transparent); }
.section-menu::after { bottom: 0; background: linear-gradient(0deg, var(--bg), transparent); }

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0;
}
.menu-tab {
  background: transparent;
  border: 0;
  padding: 0.85rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.menu-tab:hover { color: var(--ink); }
.menu-tab.is-active {
  color: var(--brand);
  border-color: var(--brand);
}

.menu-panels { position: relative; }
.menu-panel { display: none; }
.menu-panel.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3.5rem;
  animation: fadeIn 0.45s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.dish {
  padding: 1.25rem 0;
  border-bottom: 1px dashed var(--line-strong);
}
.dish:last-child { border-bottom: 0; }
.dish-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}
.dish-head h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin: 0;
  font-weight: 600;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
}
.dish-tag {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.dish-price {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}
.dish-price small {
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.15rem;
}
.dish p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.dish-star {
  background: rgba(184,138,62,0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border-bottom: 0;
  position: relative;
}
.dish-star::before {
  content: "";
  position: absolute;
  left: 0; top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 3px;
  background: var(--gold);
}

.menu-foot {
  margin-top: 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}
.menu-foot .btn {
  margin-top: 1.25rem;
  font-style: normal;
}
.btn-sm {
  padding: 0.6rem 1.1rem;
  font-size: 0.85rem;
}

.menu-subhead {
  grid-column: 1 / -1;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--brand);
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-strong);
  position: relative;
}
.menu-subhead::after {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: 60px;
  height: 2px;
  background: var(--brand);
}
@media (max-width: 980px) {
  .menu-subhead { margin-top: 1.5rem; }
}

/* ---------- Gallery ---------- */
.section-gallery { background: var(--bg); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20,12,8,0.4) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item-large { grid-column: span 2; grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,8,5,0.93);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  animation: fadeIn 0.2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(1100px, 95vw);
  max-height: 90vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); }

/* ---------- Reservations ---------- */
.section-reservations {
  background:
    linear-gradient(180deg, rgba(108,42,26,0.04), transparent 30%),
    var(--bg-warm);
}
.reservations-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}
.reservations-info p { color: var(--ink-soft); }
.info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 1rem;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--ink-soft);
}
.info-list svg {
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 2px;
}
.info-list strong {
  color: var(--ink);
  font-weight: 600;
  display: inline-block;
  margin-right: 0.25rem;
}

/* ---- Habla con Iker (Vapi voice bot card) ---- */
.iker-card {
  margin-top: 2.25rem;
  padding: 1.75rem 1.9rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #6b2a1a 0%, #2a0d05 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate; /* crea nuevo stacking context para que el texto SIEMPRE quede sobre el glow */
}
.iker-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(245,224,191,0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.iker-card > * {
  position: relative;
  z-index: 1; /* todo el contenido por encima del glow decorativo */
}
.iker-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.95rem;
}
.iker-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f5d27a;
  flex-shrink: 0;
  position: relative;
  margin-top: 8px;
  box-shadow: 0 0 0 0 rgba(245, 210, 122, 0.6);
}
.iker-pulse::before,
.iker-pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #f5d27a;
  animation: ikerPulse 2s ease-out infinite;
}
.iker-pulse::after { animation-delay: 1s; }
@keyframes ikerPulse {
  0%   { transform: scale(1);   opacity: 0.55; }
  100% { transform: scale(2.6); opacity: 0; }
}
.iker-card .iker-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f5d27a;
  margin: 0 0 0.4rem;
}
.iker-card .iker-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}
.iker-card .iker-text {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.95);
  margin: 0 0 1.35rem;
  line-height: 1.55;
}
.btn-iker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.65rem;
  border-radius: 999px;
  background: var(--gold);
  color: #2A1F1A;
  border: 0;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  z-index: 1;
}
.btn-iker:hover {
  background: #d09a4a;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(184,138,62,0.35);
}
.btn-iker:active { transform: translateY(0); }
.btn-iker .iker-icon {
  display: inline-flex;
}
.btn-iker[data-state="connecting"] {
  background: #f5e0bf;
  pointer-events: none;
}
.btn-iker[data-state="talking"] {
  background: #b73d2a;
  color: #fff;
  animation: ikerTalkingPulse 1.2s ease-in-out infinite;
}
@keyframes ikerTalkingPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(183,61,42,0.5); }
  50%      { box-shadow: 0 0 0 12px rgba(183,61,42,0); }
}
.btn-iker[data-state="error"] {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
}
.iker-card .iker-status {
  margin: 0.95rem 0 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  font-weight: 400;
}
@media (max-width: 620px) {
  .iker-card { padding: 1.25rem; }
  .iker-title { font-size: 1.2rem; }
  .btn-iker { width: 100%; justify-content: center; }
}

.reservations-form {
  background: var(--paper);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row:has(select) { grid-template-columns: 1fr 1fr 0.7fr; }

.field { display: block; margin-bottom: 1.1rem; }
.field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-weight: 500;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(108,42,26,0.12);
}
.field textarea { resize: vertical; min-height: 90px; }

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.form-note { color: var(--muted); font-size: 0.85rem; margin: 0; }
.form-success,
.form-error {
  margin: 1.5rem 0 0;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.form-success {
  background: rgba(74,93,63,0.1);
  color: var(--leaf);
  border-left: 3px solid var(--leaf);
}
.form-error {
  background: rgba(107,42,26,0.08);
  color: var(--brand);
  border-left: 3px solid var(--brand);
}

/* ---------- Contact ---------- */
.section-contact { background: var(--bg); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info p { color: var(--ink-soft); }
.contact-list {
  display: grid;
  gap: 1.4rem;
  margin: 2rem 0;
}
.contact-list div { display: grid; gap: 0.25rem; }
.contact-list dt {
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 500;
}
.contact-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}
.contact-list dd a {
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.contact-list dd a:hover { color: var(--brand); border-color: var(--brand); }

.social { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
}
.social a:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.social-sm { gap: 1rem; }
.social-sm a {
  width: auto; height: auto;
  border: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-bottom: 1px solid transparent;
}
.social-sm a:hover {
  background: transparent;
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 450px;
}
.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(20%);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 4rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand-block .footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 50%;
  margin-bottom: 0.85rem;
  display: block;
}
.footer-brand-block.no-logo .footer-logo { display: none; }
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #fff;
  margin: 0 0 0.35rem;
  font-weight: 600;
}
.footer-tag {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.footer-h {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1rem;
  font-weight: 500;
}
.site-footer p { font-size: 0.9rem; line-height: 1.6; }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .phone-link { display: inline-flex; }
}

@media (max-width: 980px) {
  :root { --header-h: 72px; --topbar-h: 32px; }

  .top-bar-tagline span:last-child,
  .top-bar-sep { display: none; }
  .top-bar-tagline { font-size: 0.62rem; letter-spacing: 0.18em; }

  .nav {
    position: fixed;
    inset: calc(var(--topbar-h) + var(--header-h)) 0 0;
    background: #faf6ef !important;
    background-color: #faf6ef !important;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.7,.2,.2,1);
    z-index: 40;
    color: var(--ink);
    overflow-y: auto;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.2);
  }
  .nav.is-open { transform: translateX(0); }
  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
    padding: 2rem 1.5rem;
    background: #faf6ef;
    min-height: 100%;
  }
  .nav-list a {
    display: block;
    font-size: 1.5rem;
    font-family: var(--font-serif);
    padding: 0.5rem 0;
    color: var(--ink);
  }

  .menu-toggle { display: block; }

  .hero-meta {
    grid-template-columns: repeat(2, 1fr);
    border-radius: 28px;
    padding: 1.25rem 1.25rem;
  }
  .hero-meta-item + .hero-meta-item::before { display: none; }

  .about-grid,
  .reservations-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-media { max-width: 540px; margin: 0 auto; }
  .about-badge { left: 0; bottom: -20px; }

  .menu-panel.is-active { grid-template-columns: 1fr; gap: 0; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }
  .gallery-item-large { grid-column: span 2; grid-row: span 2; }
  .gallery-item-wide  { grid-column: span 2; grid-row: span 1; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 620px) {
  /* ---- Brand y header ---- */
  .brand-tag { display: none; }
  .brand-name { font-size: 1.05rem; }
  .brand-mark, .brand-logo { width: 38px; height: 38px; }
  .brand { gap: 0.5rem; }
  .phone-link span { display: none; } /* Solo icono del teléfono en móvil */
  .phone-link { padding: 0.45rem; }
  .header-tools { gap: 0.5rem; }

  /* ---- Hero ---- */
  .hero {
    min-height: 100vh;
    padding-top: calc(var(--topbar-h) + var(--header-h) + 1.5rem);
    padding-bottom: 1.5rem;
  }
  .hero-title {
    font-size: clamp(2.1rem, 8.5vw, 3rem);
    max-width: 100%;
    line-height: 1.08;
    letter-spacing: -0.015em;
  }
  .hero-sub {
    font-size: 1rem;
    margin-bottom: 1.75rem;
  }
  .eyebrow-hero {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
  }
  .hero-divider {
    width: 48px;
    margin: 0.5rem 0 1rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
  }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .btn-iker-hero {
    padding: 1.1rem 1.25rem !important;
    font-size: 0.98rem;
  }
  .hero-alt-action {
    text-align: center;
    margin: 0;
    font-size: 0.85rem;
  }
  .hero-meta {
    grid-template-columns: 1fr;
    border-radius: 18px;
    gap: 0.65rem;
    padding: 1rem 1.1rem;
    margin-top: 1.5rem;
  }
  .hero-meta-item { padding: 0; }
  .hero-meta-item + .hero-meta-item {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .hero-meta-icon { width: 36px; height: 36px; }
  .hero-meta-value { font-size: 0.88rem; }
  .scroll-cue { display: none; } /* Ahorra espacio */

  /* ---- Top bar ---- */
  .top-bar-tagline { font-size: 0.6rem; letter-spacing: 0.14em; }

  /* ---- Secciones ---- */
  .section { padding: 3rem 0; }
  .section-head { margin-bottom: 2rem; }
  h2 { font-size: clamp(1.7rem, 6vw, 2.25rem); }
  .section-lead { font-size: 1rem; }

  /* ---- Menu / Carta ---- */
  .menu-tabs {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    padding: 0 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .menu-tabs::-webkit-scrollbar { display: none; }
  .menu-tab {
    padding: 0.65rem 0.9rem;
    font-size: 0.9rem;
    white-space: nowrap;
  }
  .dish-head h3 { font-size: 1.05rem; gap: 0.4rem; }
  .dish-price { font-size: 1.05rem; }
  .dish p { font-size: 0.9rem; }
  .dish { padding: 1rem 0; }
  .dish-star { padding: 1rem; }
  .menu-subhead {
    font-size: 1.35rem;
    margin-top: 2rem;
  }

  /* ---- Galería ---- */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
    gap: 0.5rem;
  }
  .gallery-item-large,
  .gallery-item-wide {
    grid-column: span 2;
    grid-row: span 1;
  }

  /* ---- Reservas / formulario ---- */
  .reservations-form {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .iker-card {
    padding: 1.25rem;
    margin-top: 1.5rem;
    border-radius: 16px;
  }
  .iker-title { font-size: 1.15rem; }
  .iker-text { font-size: 0.9rem; margin-bottom: 1rem; }
  .field input, .field select, .field textarea {
    font-size: 16px; /* evita el zoom auto de iOS al enfocar inputs */
    padding: 0.95rem 1rem;
  }
  .info-list li { font-size: 0.92rem; }

  /* ---- Contacto ---- */
  .contact-map { height: 280px; }
  .contact-list dd { font-size: 0.95rem; }

  /* ---- FAB Iker en móvil ---- */
  .iker-fab {
    right: 1rem;
    bottom: 1rem;
    padding: 0.75rem 1rem 0.75rem 0.7rem;
    font-size: 0.9rem;
  }
  .iker-fab-icon { width: 32px; height: 32px; }
  .iker-fab-icon svg { width: 22px; height: 22px; }
  /* En móvil, el FAB es la acción principal de la página */

  /* ---- Footer ---- */
  .site-footer { padding: 2.5rem 0 1.25rem; }
  .footer-grid { gap: 1.5rem; padding-bottom: 1.5rem; }
  .footer-brand { font-size: 1.5rem; }
  .footer-bottom { font-size: 0.78rem; }

  .reservations-form { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .form-row:has(select) { grid-template-columns: 1fr; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .form-footer .btn { width: 100%; }

  .menu-tabs { overflow-x: auto; flex-wrap: nowrap; gap: 0.25rem; }
  .menu-tab { white-space: nowrap; }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item-large,
  .gallery-item-wide { grid-column: span 1; grid-row: span 1; }

  .footer-grid { grid-template-columns: 1fr; }
}

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