/* ─── Design tokens ──────────────────────────────────────── */
:root {
  --bg:       #0c1a16;
  --bg-2:     #111f1b;
  --bg-3:     #0a1612;
  --accent:   #587e7a;
  --accent-lt:#6fa09a;
  --gold:     #c4a35a;
  --text:     #f0ece4;
  --muted:    rgba(240,236,228,0.55);
  --border:   rgba(240,236,228,0.09);
  --card:     #162824;
  --r:        12px;
}

/* ─── Reset & base ───────────────────────────────────────── */
*,*::before,*::after { box-sizing:border-box; margin:0; padding:0 }
html { scroll-behavior:smooth }
body {
  font-family: Inter, system-ui, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display:block; max-width:100%; height:auto }
a   { color:inherit; text-decoration:none }
ul  { list-style:none }

/* ─── Typography helpers ─────────────────────────────────── */
.section-label {
  display: block;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--text);
}
.section-title em { font-style:italic; color: var(--accent-lt) }
.section-header   { margin-bottom: 3rem }

/* ─── Layout ─────────────────────────────────────────────── */
.container        { max-width:1100px; margin:0 auto; padding:0 28px }
.container-narrow { max-width:740px;  margin:0 auto; padding:0 28px }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  transition: background .22s, border-color .22s, color .22s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: var(--text);
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-lt); border-color: var(--accent-lt) }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(240,236,228,0.3);
}
.btn-ghost:hover { border-color: var(--text) }

/* ─── Navigation ─────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 1.6rem 2rem;
  transition: background .3s, padding .3s, backdrop-filter .3s;
}
.nav--scrolled {
  background: rgba(10,22,18,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: .82rem;
  letter-spacing: .07em;
  color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text) }
.nav-cta {
  background: var(--accent) !important;
  color: var(--text) !important;
  padding: .55rem 1.3rem;
  border-radius: 4px;
  letter-spacing: .06em;
}
.nav-cta:hover { background: var(--accent-lt) !important; color: var(--text) !important }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: .25s;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  transform: scale(1.06);
  transition: transform 10s ease;
}
.hero:hover .hero-bg { transform: scale(1) }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,22,18,0.62) 0%,
    rgba(10,22,18,0.48) 45%,
    rgba(10,22,18,0.78) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 28px;
  max-width: 820px;
}
.hero-eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}
.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3.8rem, 11vw, 7.5rem);
  font-weight: 300;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-title em { font-style:italic; color: var(--accent-lt) }
.hero-sub {
  font-size: clamp(.9rem, 2vw, 1.1rem);
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
}
.hero-actions { display:flex; gap:1rem; justify-content:center; flex-wrap:wrap }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
.hero-scroll span {
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(240,236,228,.45), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity:.35 }
  50%      { opacity:1 }
}

/* ─── Filosofia ──────────────────────────────────────────── */
.filosofia {
  background: var(--bg);
  padding: 9rem 0 7rem;
  text-align: center;
}
.filosofia-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--text);
  margin: 0 0 2rem;
}
.filosofia-body {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.85;
  max-width: 580px;
  margin: 0 auto 4rem;
}
.founders-img {
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 16/7;
}
.founders-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

/* ─── Carta ──────────────────────────────────────────────── */
.carta {
  background: var(--bg-2);
  padding: 8rem 0;
}
.carta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.carta-card {
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s ease, box-shadow .3s ease;
}
.carta-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(0,0,0,.4);
}
.carta-img {
  aspect-ratio: 16/9;
  overflow: hidden;
}
.carta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.carta-card:hover .carta-img img { transform: scale(1.06) }
.carta-body { padding: 1.75rem }
.carta-tag {
  display: inline-block;
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.carta-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 400;
  margin-bottom: .7rem;
}
.carta-body p { color: var(--muted); font-size: .9rem; line-height: 1.72 }

.carta-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.carta-card--featured .carta-img {
  aspect-ratio: auto;
  min-height: 300px;
}

/* ─── Galería ────────────────────────────────────────────── */
.galeria {
  background: var(--bg);
  padding: 8rem 0 0;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: 240px 240px;
  gap: 5px;
  margin-top: 3rem;
}
.gallery-item { overflow:hidden }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.gallery-item:hover img { transform: scale(1.07) }
.gallery-item--tall { grid-row: span 2 }

/* ─── Visita ─────────────────────────────────────────────── */
.visita {
  background: var(--bg-2);
  padding: 9rem 0;
}
.visita-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.visita-text > p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.82;
  margin: 1.5rem 0 2.5rem;
}
.visita-details {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-bottom: 2.75rem;
}
.detail-item { display:flex; flex-direction:column; gap:.3rem }
.detail-label {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.detail-val { color: var(--text); font-size: .92rem; line-height: 1.6 }
.detail-val a { color: var(--accent-lt); transition: color .2s }
.detail-val a:hover { color: var(--text) }
.visita-img {
  border-radius: var(--r);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.visita-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

/* ─── Reserva page ───────────────────────────────────────── */
.reserva-main {
  min-height: 80dvh;
  display: flex;
  align-items: center;
  padding: 10rem 0 7rem;
}
.reserva-content { text-align: center }
.reserva-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.reserva-horario {
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-3);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
.footer-wordmark {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-copy { color: var(--muted); font-size: .82rem; letter-spacing: .03em }

/* ─── Responsive: tablet ─────────────────────────────────── */
@media (max-width: 900px) {
  .carta-grid { grid-template-columns: 1fr }
  .carta-card--featured {
    grid-column: 1;
    grid-template-columns: 1fr;
  }
  .carta-card--featured .carta-img { min-height: 220px }
  .gallery-track {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 180px 180px 180px;
  }
  .gallery-item--tall { grid-row: span 1 }
  .visita-inner { grid-template-columns: 1fr; gap: 3rem }
  .visita-img { aspect-ratio: 16/9 }
}

/* ─── Responsive: mobile ─────────────────────────────────── */
@media (max-width: 640px) {
  .nav { padding: 1.2rem 1.25rem }
  .nav--scrolled { padding: .9rem 1.25rem }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10,22,18,0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 99;
  }
  .nav-links a { font-size: 1rem; color: var(--text) }
  .nav--open .nav-links { display: flex }
  .nav-burger { display: flex; z-index: 101 }
  .gallery-track {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 160px);
  }
  .gallery-item:last-child { display: none }
  .filosofia { padding: 6rem 0 5rem }
  .carta { padding: 6rem 0 }
  .visita { padding: 6rem 0 }
}
