/* ═══════════════════════════════════════════════
   ATLANTA GARDEN IBIZA — styles.css
   v20260611
   ═══════════════════════════════════════════════ */

/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f3ede2;
  --cream-2: #e8dfd0;
  --sand:    #c9b99a;
  --terra:   #b85c30;
  --terra-d: #8f4520;
  --ink:     #1c150d;
  --ink-2:   #2e2318;
  --night:   #0d0904;
  --night-2: #160f07;
  --gold:    #c8a86a;
  --gold-d:  #a08040;
  --white:   #faf6f0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --nav-h: 72px;
  --max-w: 1320px;
  --gap:   clamp(1.5rem, 4vw, 3rem);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

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

/* ── Typography helpers ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
em { font-style: italic; }

.section-tag {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 1.2rem;
}

.body-text {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-2);
  max-width: 55ch;
  line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s, color .25s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--terra);
  color: var(--white);
}
.btn--primary:hover { background: var(--terra-d); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.45);
}
.btn--ghost:hover { background: rgba(255,255,255,.1); }

.btn--terra {
  background: var(--terra);
  color: var(--white);
}
.btn--terra:hover { background: var(--terra-d); }

.btn--gold {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
}
.btn--gold:hover { background: var(--gold); color: var(--night); }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.22,.61,.36,1), transform .75s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
/* Safety: split text elements never hidden by JS conflict */
.reveal[data-split] { opacity: 1; transform: none; }

/* ══════════════════════════════════════
   NAV
══════════════════════════════════════ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s;
}
#nav.scrolled {
  background: rgba(243, 237, 226, .92);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.nav-logo {
  width: 60px;
  height: 60px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-logo img { object-fit: contain; background: var(--white); }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.2rem);
}
.nav-links a {
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .2s, opacity .2s;
  opacity: .9;
}
.nav-links a:hover { opacity: 1; color: var(--white); }
#nav.scrolled .nav-links a { color: var(--ink); }
#nav.scrolled .nav-links a:hover { color: var(--terra); }

.nav-cta {
  background: var(--terra) !important;
  color: var(--white) !important;
  padding: .5rem 1.2rem;
  border-radius: 2px;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--terra-d) !important; }

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-left: .5rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255,255,255,.2);
}
#nav.scrolled .lang-switcher { border-color: rgba(0,0,0,.12); }

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  padding: .2rem .25rem;
  border-radius: 3px;
  opacity: .45;
  transition: opacity .2s, transform .2s;
}
.lang-btn:hover { opacity: .8; transform: scale(1.15); }
.lang-btn.active { opacity: 1; transform: scale(1.1); }

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--white);
  transition: transform .3s, opacity .3s, background .3s;
}
#nav.scrolled .burger span { background: var(--ink); }
.burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-img-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(13,9,4,.55) 0%,
    rgba(13,9,4,.35) 60%,
    rgba(13,9,4,.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 900px;
}

.hero-eyebrow {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 2rem;
}
.hero-title em {
  color: var(--gold);
  font-style: italic;
}

.hero-pills {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.pill {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .5rem 1.2rem;
  border-radius: 100px;
  backdrop-filter: blur(8px);
}
.pill--am {
  background: rgba(255,255,255,.18);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.3);
}
.pill--pm {
  background: rgba(200,168,106,.2);
  color: var(--gold);
  border: 1px solid rgba(200,168,106,.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.6));
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .3; transform: scaleY(1); transform-origin: top; }
  50% { opacity: .9; transform: scaleY(1.2); transform-origin: top; }
}

/* ══════════════════════════════════════
   EL LOCAL
══════════════════════════════════════ */
.section-local {
  background: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
}

.local-intro {
  max-width: var(--max-w);
  margin: 0 auto clamp(4rem, 8vw, 6rem);
}
.local-intro h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.local-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 8vw, 7rem);
}

.local-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.local-item--rev { direction: rtl; }
.local-item--rev > * { direction: ltr; }

.local-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 3px;
}
.local-img-wrap img {
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.local-img-wrap:hover img { transform: scale(1.04); }

.local-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 1rem;
}
.local-text p {
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  font-weight: 300;
  color: var(--ink-2);
  line-height: 1.8;
  max-width: 48ch;
}

/* ══════════════════════════════════════
   DIVIDER
══════════════════════════════════════ */
.section-divider {
  background: var(--ink);
  padding: clamp(4rem, 8vw, 6rem) 2rem;
  text-align: center;
}
.divider-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--cream-2);
  line-height: 1.4;
}
.divider-quote em { color: var(--gold); }

/* ══════════════════════════════════════
   CARTA — COMPARTIDA
══════════════════════════════════════ */
.section-carta {
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
}

.carta-header {
  max-width: var(--max-w);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.carta-header h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: .75rem;
}
.carta-legend {
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  opacity: .6;
  margin-top: .5rem;
}

.carta-cols {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem);
}

.carta-sub {
  font-size: .8rem;
  font-weight: 300;
  letter-spacing: .08em;
  opacity: .65;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.carta-cat {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: .8rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid currentColor;
  opacity: .9;
}

.menu-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  font-size: .92rem;
}
.menu-list li:last-child { border-bottom: none; }

.item-name { flex: 1; font-weight: 300; }
.item-price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  flex-shrink: 0;
}
.item-note {
  font-size: .78rem;
  opacity: .55;
  font-style: italic;
  justify-content: flex-start !important;
  border: none !important;
  padding-top: .3rem !important;
}
.item-sep {
  height: .75rem;
  border: none !important;
  padding: 0 !important;
}

/* Spirits: copa / chupito */
.menu-list--double li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.item-prices {
  display: flex;
  gap: 1.2rem;
  flex-shrink: 0;
}
.item-prices em {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1rem;
  min-width: 3.2rem;
  text-align: right;
}
.item-prices em:first-child { opacity: 1; }
.item-prices em:last-child { opacity: .55; }

.carta-cta {
  max-width: var(--max-w);
  margin: clamp(3rem, 6vw, 4rem) auto 0;
  text-align: center;
}

/* AM – fondo crema */
.carta--am { background: var(--cream); }
.carta--am .carta-cat { color: var(--terra); border-color: var(--terra); }
.carta--am .item-price { color: var(--terra); }

/* PM – fondo oscuro */
.carta--pm { background: var(--night); }
.carta--pm .section-tag { color: var(--gold); }
.carta--pm h2 { color: var(--white); }
.carta--pm .carta-legend { color: var(--sand); }
.carta--pm .carta-cat { color: var(--gold); border-color: var(--gold-d); }
.carta--pm .menu-list li { border-color: rgba(255,255,255,.08); color: var(--cream-2); }
.carta--pm .item-prices em { color: var(--gold); }
.carta--pm .item-prices em:last-child { opacity: .45; color: var(--sand); }
.carta--pm .item-note { color: var(--sand); }

/* ══════════════════════════════════════
   EVENTOS PRIVADOS
══════════════════════════════════════ */
.section-eventos {
  background: var(--cream-2);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
}

.eventos-header {
  max-width: var(--max-w);
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.eventos-header h2 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.eventos-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.ev-img { overflow: hidden; border-radius: 3px; aspect-ratio: 4/3; }
.ev-img--tall {
  grid-row: span 2;
  aspect-ratio: unset;
}
.ev-img img {
  transition: transform .8s cubic-bezier(.25,.46,.45,.94);
}
.ev-img:hover img { transform: scale(1.04); }

.eventos-cta {
  max-width: var(--max-w);
  margin: clamp(3rem, 5vw, 4rem) auto 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.eventos-cta .body-text { text-align: center; }

/* ══════════════════════════════════════
   VISÍTANOS
══════════════════════════════════════ */
.section-visita {
  background: var(--ink);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 6vw, 4rem);
}

.visita-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.visita-info .section-tag { color: var(--gold); }
.visita-info h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--white);
  margin-bottom: 2.5rem;
}

.visita-data { display: flex; flex-direction: column; gap: 1.2rem; margin-bottom: 2.5rem; }
.visita-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  font-size: .92rem;
  color: var(--cream-2);
}
.visita-label {
  font-weight: 500;
  color: var(--gold);
  letter-spacing: .06em;
}

.contact-link {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--white);
  transition: color .2s;
  margin-bottom: .5rem;
}
.contact-link:hover { color: var(--gold); }

.visita-map iframe {
  border-radius: 4px;
  min-height: 400px;
  filter: grayscale(30%) contrast(1.05);
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: var(--night);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 3px;
  background: var(--night-2);
}
.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--sand);
}
.footer-nav {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a {
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer-nav a:hover { color: var(--gold); }
.footer-copy {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  margin-top: .5rem;
}

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(320px, 85vw);
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-h) + 2rem) 2rem 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { color: var(--cream) !important; font-size: 1rem; }

  .local-item,
  .local-item--rev {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .eventos-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ev-img--tall { grid-row: span 1; aspect-ratio: 4/3; }

  .visita-inner { grid-template-columns: 1fr; }
  .visita-map iframe { min-height: 280px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.4rem, 11vw, 3.5rem); }
  .hero-pills { gap: .6rem; }
  .carta-cols { grid-template-columns: 1fr; }
  .eventos-grid { grid-template-columns: 1fr; }
  .ev-img--tall { aspect-ratio: 4/3; }
  .hero-actions { flex-direction: column; align-items: center; }
}
