/* ===== Tokens de marca Zeiba ===== */
:root {
  --green-deep: #14211a;      /* fondo selva */
  --green-forest: #1e3326;    /* superficies verdes */
  --green-sage: #8fa382;      /* salvia */
  --sand: #b3a184;            /* arena / taupe */
  --ivory: #f4f0e6;           /* marfil */
  --ivory-soft: #ece6d8;
  --ink: #24302a;             /* texto sobre marfil */
  --ink-soft: #4c5a52;
  --line: rgba(36, 48, 42, 0.16);
  --line-light: rgba(244, 240, 230, 0.22);

  --font-display: "Cormorant", Georgia, serif;
  --font-body: "Montserrat", -apple-system, sans-serif;

  --radius: 14px;
  --shadow: 0 12px 34px rgba(20, 33, 26, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 400ms;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.65;
  font-size: 1rem;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.6em;
}
h2 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: 0.01em; }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.6rem); }
h2.light { color: var(--ivory); }

a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--green-sage);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--green-forest); color: var(--ivory);
  padding: 0.6rem 1.1rem; border-radius: 0 0 10px 10px;
  z-index: 100; transition: top 200ms var(--ease);
  text-decoration: none; font-size: 0.9rem;
}
.skip-link:focus { top: 0; }

/* ===== Botones ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.95rem 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-forest);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--green-deep); }

.btn--ghost {
  border-color: var(--ivory);
  color: var(--ivory);
  background: transparent;
}
.btn--ghost:hover { background: rgba(244, 240, 230, 0.12); }

.btn--ghost-light {
  border-color: var(--line-light);
  color: var(--ivory);
  background: transparent;
}
.btn--ghost-light:hover { background: rgba(244, 240, 230, 0.1); border-color: var(--ivory); }

.btn--wide { width: 100%; }
.btn--nav { padding: 0.6rem 1.4rem; font-size: 0.8rem; background: var(--ivory); color: var(--green-deep); }
.btn--nav:hover { background: var(--ivory-soft); }

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: rgba(20, 33, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ivory);
}
.nav__brand {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}
.nav__links {
  display: flex; gap: clamp(1rem, 3vw, 2.2rem);
  list-style: none; margin: 0; padding: 0;
}
.nav__links a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity var(--dur) var(--ease);
}
.nav__links a:hover { opacity: 1; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: min(92svh, 56rem);
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(143, 163, 130, 0.16), transparent 60%),
    linear-gradient(180deg, var(--green-deep) 0%, var(--green-forest) 100%);
  color: var(--ivory);
  padding: clamp(4rem, 10vh, 7rem) 1.5rem 5rem;
  overflow: hidden;
}
.hero__leaves {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%238fa382' stroke-opacity='0.12' stroke-width='1.4'%3E%3Cpath d='M60 340c40-90 30-170 90-250M150 90c0 0 24 36 6 78s-54 48-54 48 0-42 12-72 36-54 36-54z'/%3E%3Cpath d='M330 380c-30-70-10-130-60-190M270 190c0 0-18 28-4 60s42 36 42 36 0-32-10-54-28-42-28-42z'/%3E%3Cpath d='M370 60c-50 20-70 70-80 120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 420px 420px;
}
.hero__inner { position: relative; max-width: 46rem; }
.hero__logo {
  width: clamp(200px, 34vw, 310px);
  height: auto;
  margin-bottom: 1.5rem;
  animation: rise 900ms var(--ease) both;
}
.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  margin: 0 0 0.8rem;
  color: var(--ivory);
  animation: rise 900ms var(--ease) 120ms both;
}
.hero__sub {
  max-width: 34rem;
  margin: 0 auto 2.2rem;
  color: rgba(244, 240, 230, 0.78);
  font-weight: 300;
  animation: rise 900ms var(--ease) 220ms both;
}
.hero__actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  animation: rise 900ms var(--ease) 320ms both;
}
.hero__scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  color: rgba(244, 240, 230, 0.6);
  padding: 0.5rem;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Secciones ===== */
.section { padding: clamp(4rem, 9vw, 6.5rem) clamp(1.25rem, 5vw, 3rem); }
.section--ivory { background: var(--ivory); }
.section--green {
  background: linear-gradient(180deg, var(--green-forest), var(--green-deep));
  color: var(--ivory);
}
.section__inner { max-width: 72rem; margin: 0 auto; }
.section__inner--narrow { max-width: 44rem; }
.section__lead { color: var(--ink-soft); max-width: 38rem; margin-bottom: 2.2rem; }

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sand);
  font-weight: 600;
  margin: 0 0 0.8rem;
}
.kicker--light { color: var(--green-sage); }

.center { text-align: center; margin-top: 2.5rem; }

/* ===== Cards experiencia ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--green-forest);
  color: var(--ivory);
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.card p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ===== Menú destacados ===== */
.dishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.75rem;
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
}
.dish h3 { margin: 1rem 0 0.35rem; color: var(--ivory); }
.dish p { margin: 0; font-size: 0.92rem; color: rgba(244, 240, 230, 0.72); font-weight: 300; }
.dish__media { aspect-ratio: 4 / 3; border-radius: var(--radius); }

.menu-note {
  margin-top: 2.2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(244, 240, 230, 0.65);
  font-weight: 300;
}
.section--ivory .menu-note { color: var(--ink-soft); }

/* ===== Placeholder de fotos (provisional, inequívoco) ===== */
.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(143, 163, 130, 0.12) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, rgba(143, 163, 130, 0.22), rgba(179, 161, 132, 0.18));
  border: 1.5px dashed rgba(143, 163, 130, 0.55);
  overflow: hidden;
}
.placeholder__tag {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-sage);
  background: rgba(20, 33, 26, 0.55);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.section--ivory .placeholder__tag { background: rgba(244, 240, 230, 0.85); color: var(--ink-soft); }

/* ===== Reserva ===== */
.reserve { margin-top: 1rem; }
.reserve__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem 1.25rem;
  margin-bottom: 1.1rem;
}
@media (max-width: 560px) { .reserve__grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.1rem; }
.reserve__grid .field { margin-bottom: 0; }
.field label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-soft);
}
.optional { font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.95rem;
  transition: border-color var(--dur) var(--ease);
  width: 100%;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(143, 163, 130, 0.25);
}
.field input[aria-invalid="true"] { border-color: #b3532f; }
.field__error { color: #a34424; font-size: 0.85rem; margin: 0; }

.reserve__hint {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}

/* ===== Horarios / ubicación ===== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
}
@media (max-width: 720px) { .split { grid-template-columns: 1fr; } }

.hours { border-collapse: collapse; width: 100%; max-width: 26rem; margin-top: 0.5rem; }
.hours th, .hours td {
  text-align: left;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-light);
  font-weight: 400;
}
.hours th { color: rgba(244, 240, 230, 0.85); font-weight: 500; }
.hours td { color: var(--green-sage); text-align: right; font-variant-numeric: tabular-nums; }

.address {
  font-style: normal;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}
.contact-line { margin: 0 0 1.6rem; color: rgba(244, 240, 230, 0.8); font-weight: 300; }
.contact-line a { text-decoration-color: var(--green-sage); text-underline-offset: 3px; }

/* ===== Galería ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery__item { aspect-ratio: 1; border-radius: var(--radius); }
.gallery__item:nth-child(1) { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1) { grid-column: span 2; aspect-ratio: 2 / 1; }
}
#galeria .menu-note a { color: var(--ink); text-underline-offset: 3px; }

/* ===== Footer ===== */
.footer {
  background: var(--green-deep);
  color: rgba(244, 240, 230, 0.75);
  text-align: center;
  padding: 3.5rem 1.5rem 2.5rem;
  font-weight: 300;
  font-size: 0.92rem;
}
.footer__logo { width: 170px; height: auto; margin-bottom: 1.4rem; opacity: 0.95; }
.footer__line { margin: 0 0 0.8rem; }
.footer__line a, .footer__social a { color: var(--ivory); text-decoration-color: var(--green-sage); text-underline-offset: 3px; }
.footer__social { display: flex; gap: 0.7rem; justify-content: center; margin-bottom: 1.6rem; }
.footer__copy { margin: 0; font-size: 0.8rem; color: rgba(244, 240, 230, 0.45); }

/* ===== WhatsApp flotante ===== */
.whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 33, 26, 0.35);
  transition: transform var(--dur) var(--ease);
}
.whatsapp-fab:hover { transform: scale(1.08); }
