/* =========================================================
   Restaurante El Jardín — La Manga del Mar Menor
   Palette drawn from the house sign: night slate, leaf green,
   sea blue (used sparingly), on a warm linen canvas.
   ========================================================= */

:root {
  --night: #12171b;
  --night-2: #1a2126;
  --night-3: #232b31;
  --cream: #f1ebe1;
  --linen: #e7dfd2;
  --stone: #cfc4b3;
  --muted: #877f73;
  --espresso: #5a554d;
  --ink: #22272a;
  --leaf: #86ad5f;
  --leaf-soft: #a9c58a;
  --sea: #5aa6d8;
  --on-dark: #ece5d9;
  --on-dark-muted: rgba(236, 229, 217, .62);
  --hair-dark: rgba(236, 229, 217, .18);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Great Vibes", cursive;

  --ease: cubic-bezier(.2, .7, .15, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --section: clamp(96px, 13vw, 168px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; overscroll-behavior-x: none; }
main, footer, section { max-width: 100%; overflow-x: clip; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip;
  touch-action: pan-y pinch-zoom;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
figure { margin: 0; }
::selection { background: var(--leaf); color: #fff; }
:focus-visible { outline: 1px solid var(--leaf); outline-offset: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.muted { color: var(--muted); }

/* ---------- Type primitives ---------- */
.label {
  margin: 0 0 28px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--light { color: var(--on-dark-muted); }

.heading {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(46px, 7.4vw, 112px);
  line-height: .88;
  letter-spacing: -.03em;
  text-transform: uppercase;
  color: var(--ink);
}
.heading--light { color: var(--on-dark); }

.statement {
  margin: 0;
  max-width: 17ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.statement em { font-style: italic; color: var(--leaf); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  transition: background-color .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
  white-space: nowrap;
}
.btn--ghost { color: var(--on-dark); border-color: rgba(236, 229, 217, .5); }
.btn--ghost:hover { background: var(--on-dark); color: var(--night); border-color: var(--on-dark); }
.btn--dark { color: var(--ink); border-color: var(--ink); }
.btn--dark:hover { background: var(--ink); color: var(--cream); }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.link-arrow::after {
  content: "";
  width: 34px; height: 1px;
  background: currentColor;
  transition: width .6s var(--ease);
}
.link-arrow:hover::after { width: 56px; }

/* ---------- Logo (built from the sign) ---------- */
.logo { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1; color: var(--on-dark); }
.logo__top {
  font-size: 8.5px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase;
  color: var(--sea); margin-left: 4px;
}
.logo__script {
  position: relative;
  font-family: var(--script);
  font-size: 38px;
  line-height: .95;
  letter-spacing: 0;
  padding-right: 18px;
}
.logo__leaf {
  position: absolute;
  top: -6px; right: -10px;
  width: 30px; height: 15px;
  color: var(--leaf);
}
.logo__bottom {
  align-self: flex-end;
  margin-top: -2px;
  font-size: 7.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark-muted);
}
.logo--lg .logo__script { font-size: 64px; }
.logo--lg .logo__top { font-size: 10px; }
.logo--lg .logo__bottom { font-size: 9px; }
.logo--lg .logo__leaf { width: 46px; height: 23px; top: -10px; right: -16px; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 22px var(--gutter);
  color: var(--on-dark);
  transition: background-color .6s var(--ease), padding .6s var(--ease), border-color .6s var(--ease), transform .6s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(18, 23, 27, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding-top: 12px; padding-bottom: 12px;
  border-color: var(--hair-dark);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__links { display: flex; gap: 34px; margin-right: auto; margin-left: 40px; }
.nav__links a,
.nav__phone {
  position: relative;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--on-dark);
  opacity: .88;
  transition: opacity .4s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--leaf); transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease);
}
.nav__links a:hover, .nav__phone:hover { opacity: 1; }
.nav__links a:hover::after, .nav__links a.is-current::after { transform: scaleX(1); transform-origin: left; }

.nav__right { display: flex; align-items: center; gap: 26px; }
.nav__right .btn { padding: 13px 20px; }

.nav__burger { display: none; width: 34px; height: 34px; position: relative; }
.nav__burger span {
  position: absolute; left: 6px; right: 6px; height: 1px; background: var(--on-dark);
  transition: transform .5s var(--ease), top .5s var(--ease);
}
.nav__burger span:first-child { top: 13px; }
.nav__burger span:last-child { top: 21px; }
.nav__burger[aria-expanded="true"] span:first-child { top: 17px; transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { top: 17px; transform: rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 120px var(--gutter) 40px;
  background: var(--night);
  color: var(--on-dark);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.drawer.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
.drawer__links { display: flex; flex-direction: column; gap: 6px; }
.drawer__links a {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 11vw, 64px);
  line-height: 1.1; text-transform: uppercase; letter-spacing: -.02em;
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.drawer.is-open .drawer__links a { opacity: 1; transform: none; }
.drawer.is-open .drawer__links a:nth-child(2) { transition-delay: .06s; }
.drawer.is-open .drawer__links a:nth-child(3) { transition-delay: .12s; }
.drawer.is-open .drawer__links a:nth-child(4) { transition-delay: .18s; }
.drawer.is-open .drawer__links a:nth-child(5) { transition-delay: .24s; }
.drawer__foot { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.drawer__foot p { margin: 0; font-size: 12px; color: var(--on-dark-muted); letter-spacing: .06em; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
}
.hero__media { position: absolute; inset: 0; will-change: transform; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%;
  transform: scale(1.12);
  animation: heroZoom 2.8s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1.02); } }

.hero__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(18,23,27,.25) 0%, rgba(18,23,27,.55) 75%),
    linear-gradient(180deg, rgba(18,23,27,.7) 0%, rgba(18,23,27,.42) 38%, rgba(18,23,27,.6) 70%, rgba(18,23,27,.92) 100%);
}

.hero__content {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  will-change: transform, opacity;
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(54px, 10.6vw, 168px);
  line-height: .84;
  letter-spacing: -.035em;
  text-transform: uppercase;
  text-align: center;
}
.hero__title .line { display: block; overflow: hidden; padding: .04em 0; }
.hero__title .line > span {
  display: block;
  transform: translateY(105%);
  animation: rise 1.6s var(--ease) forwards;
}
.hero__title .line:nth-child(2) > span { animation-delay: .14s; }
@keyframes rise { to { transform: none; } }

.hero__meta {
  margin: 0;
  font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--on-dark-muted);
  white-space: nowrap;
  opacity: 0;
  animation: fade 1.4s var(--ease) .9s forwards;
}
.hero__meta--left { justify-self: start; }
.hero__meta--right { justify-self: end; }

.hero__intro {
  position: absolute; left: var(--gutter); bottom: 40px;
  max-width: 330px; margin: 0;
  font-size: 13px; line-height: 1.6; color: var(--on-dark-muted);
  opacity: 0; animation: fade 1.4s var(--ease) 1.1s forwards;
}
.hero__scroll {
  position: absolute; right: var(--gutter); bottom: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  font-size: 10px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0; animation: fade 1.4s var(--ease) 1.3s forwards;
}
.hero__scroll i { position: relative; width: 1px; height: 54px; background: var(--hair-dark); overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: var(--on-dark);
  animation: drip 2.4s var(--ease) infinite;
}
@keyframes drip { 0% { top: -40%; } 70%, 100% { top: 100%; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* =========================================================
   LA CASA
   ========================================================= */
.casa .statement { margin-bottom: clamp(64px, 9vw, 120px); }
.casa__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 4fr);
  gap: clamp(40px, 8vw, 130px);
  align-items: end;
}
.casa__img { aspect-ratio: 4 / 5; }
.casa__text > p { max-width: 38ch; margin: 0 0 56px; color: var(--espresso); font-size: 15px; }

.stats { list-style: none; margin: 0 0 56px; padding: 0; border-top: 1px solid var(--stone); }
.stats li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  padding: 22px 0; border-bottom: 1px solid var(--stone);
}
.stats strong {
  font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1; letter-spacing: -.02em;
}
.stats span { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-align: right; }

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
  padding: 30px 0;
  border-top: 1px solid var(--hair-dark);
}
.marquee__track {
  display: flex; align-items: center; gap: 40px;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee span {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(26px, 3vw, 40px); white-space: nowrap; letter-spacing: -.01em;
}
.marquee i {
  width: 7px; height: 7px; flex: none;
  background: var(--leaf);
  border-radius: 0 100% 0 100%;
  transform: rotate(-20deg);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   COCINA / GALLERY
   ========================================================= */
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(56px, 8vw, 104px); }
.section__head .label { margin: 0; order: 2; }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  row-gap: clamp(32px, 4vw, 56px);
}
.g figcaption {
  margin-top: 16px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.g .frame { position: relative; overflow: hidden; }
.g img { width: 100%; height: 100%; object-fit: cover; }
/* Editorial grid: two large frames of equal height, then four equal portraits */
.g--a { grid-column: span 8; }
.g--b { grid-column: span 4; }
.g--a .frame, .g--b .frame { height: clamp(320px, 40vw, 600px); }
.g--c, .g--d, .g--e, .g--f { grid-column: span 3; }
.g--c .frame, .g--d .frame, .g--e .frame, .g--f .frame { aspect-ratio: 4 / 5; }

/* =========================================================
   BAND (full-bleed image)
   ========================================================= */
.band {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background: var(--night);
  color: var(--on-dark);
}
.band__media { position: absolute; inset: -12% 0; will-change: transform; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(18,23,27,.82) 0%, rgba(18,23,27,.45) 50%, rgba(18,23,27,.1) 100%),
    linear-gradient(180deg, rgba(18,23,27,.2) 0%, rgba(18,23,27,.4) 55%, rgba(18,23,27,.85) 100%);
}
.band__content { position: relative; padding-top: var(--section); padding-bottom: clamp(56px, 8vw, 110px); }
.band__text { max-width: 36ch; margin: 36px 0 0; color: var(--on-dark-muted); }

/* =========================================================
   CARTA
   ========================================================= */
.carta { background: var(--linen); }
.carta__head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.carta__aside { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.carta__aside p { margin: 0; font-size: 13px; color: var(--espresso); display: flex; align-items: center; gap: 12px; }
.carta__aside .link-arrow { margin-top: 18px; }
.dot { width: 6px; height: 6px; background: var(--leaf); border-radius: 0 100% 0 100%; flex: none; }

.tabs {
  display: flex; gap: clamp(20px, 3vw, 44px);
  border-bottom: 1px solid var(--stone);
  margin-bottom: clamp(40px, 5vw, 64px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  position: relative; flex: none;
  padding: 0 0 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
  transition: color .4s;
}
.tabs button::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .6s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }

.panel { animation: panelIn .8s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.panel__note { margin: 0 0 28px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

.menu {
  list-style: none; margin: 0; padding: 0;
  columns: 2; column-gap: clamp(40px, 7vw, 120px);
}
.menu li {
  break-inside: avoid;
  display: flex; justify-content: space-between; align-items: baseline; gap: 28px;
  padding: 18px 0;
  border-bottom: 1px solid var(--stone);
}
.menu .n {
  font-family: var(--serif); font-weight: 400; font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2; letter-spacing: -.005em;
}
.menu .n small {
  display: block; margin-top: 4px;
  font-family: var(--sans); font-weight: 500; font-size: 12px; line-height: 1.5;
  letter-spacing: 0; color: var(--muted);
}
.menu .p {
  flex: none;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--espresso);
  font-variant-numeric: tabular-nums;
}

.carta__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 64px);
}
.carta__foot p { margin: 0; font-size: 13px; color: var(--espresso); }
.carta__foot em { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink); margin-right: 6px; }
.carta__foot .muted { font-size: 12px; }

/* =========================================================
   SPLIT
   ========================================================= */
.split {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  min-height: 90vh;
  background: var(--cream);
}
.split__img { height: 100%; min-height: 60vh; }
.split__text {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: var(--section) var(--gutter);
}
.split__text > p:not(.label) { max-width: 34ch; margin: 36px 0 44px; color: var(--espresso); }

/* =========================================================
   OPINIONES
   ========================================================= */
.opiniones { background: var(--night); color: var(--on-dark); }
.op__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap;
  padding-bottom: 28px; border-bottom: 1px solid var(--hair-dark);
  margin-bottom: clamp(56px, 8vw, 110px);
}
.op__head .label { margin: 0; }
.op__score { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); display: flex; align-items: center; gap: 14px; }
.stars { color: var(--leaf); letter-spacing: .18em; font-size: 13px; }

.slider__viewport { position: relative; display: grid; overflow: hidden; }
.slide {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0; visibility: hidden;
  transform: translateX(var(--from, 30px));
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), visibility 0s 1s;
}
.slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 1s var(--ease) .15s, transform 1.1s var(--ease) .15s, visibility 0s;
}
.slide p {
  margin: 0;
  max-width: 30ch;
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(28px, 3.5vw, 52px);
  line-height: 1.12; letter-spacing: -.015em;
}
.slide footer { display: flex; align-items: baseline; gap: 18px; margin-top: 44px; flex-wrap: wrap; }
.slide footer strong { font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.slide footer span { font-size: 12px; color: var(--on-dark-muted); letter-spacing: .06em; }

.slider__controls {
  display: flex; align-items: center; justify-content: flex-end; gap: 28px;
  margin-top: clamp(48px, 6vw, 80px);
}
.slider__count { font-size: 12px; letter-spacing: .2em; color: var(--on-dark-muted); font-variant-numeric: tabular-nums; }
.slider__count span { color: var(--on-dark); }
.arrow {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  border: 1px solid var(--hair-dark); border-radius: 50%;
  color: var(--on-dark);
  transition: background-color .5s var(--ease), border-color .5s var(--ease), color .5s var(--ease);
}
.arrow svg { width: 28px; height: 10px; transition: transform .5s var(--ease); }
.arrow:hover { background: var(--on-dark); color: var(--night); border-color: var(--on-dark); }
#prev:hover svg, #lbPrev:hover svg { transform: translateX(-4px); }
#next:hover svg, #lbNext:hover svg { transform: translateX(4px); }

/* =========================================================
   VISITA
   ========================================================= */
.visita__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 8vw, 120px); align-items: stretch; }
.info { margin: clamp(48px, 6vw, 80px) 0 48px; border-top: 1px solid var(--stone); }
.info > div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--stone); }
.info dt { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.info dd { margin: 0; font-size: 15px; color: var(--ink); }
.info dd a { border-bottom: 1px solid var(--stone); transition: border-color .4s; }
.info dd a:hover { border-color: var(--ink); }
.visita__ctas { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; }
.visita__map { min-height: 460px; background: var(--linen); }
.visita__map iframe {
  width: 100%; height: 100%; min-height: 460px; border: 0; display: block;
  filter: grayscale(1) contrast(.92) brightness(1.02) sepia(.12);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--night); color: var(--on-dark); padding: clamp(72px, 9vw, 120px) 0 40px; }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 56px 40px; align-items: end; }
.footer__nav { display: flex; gap: 30px; flex-wrap: wrap; }
.footer__nav a { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); transition: color .4s; }
.footer__nav a:hover { color: var(--on-dark); }
.footer__legal { grid-column: 1 / -1; margin: 0; padding-top: 28px; border-top: 1px solid var(--hair-dark); font-size: 12px; color: var(--on-dark-muted); }

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px;
  padding: 70px var(--gutter) 28px;
  background: rgba(14, 18, 21, .96);
  color: var(--on-dark);
  opacity: 0; transition: opacity .6s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; width: 100%; }
.lightbox__fig img { max-width: min(1100px, 100%); max-height: 100%; object-fit: contain; transition: opacity .4s var(--ease); }
.lightbox__close {
  position: absolute; top: 24px; right: var(--gutter);
  font-size: 11px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--on-dark-muted);
}
.lightbox__close:hover { color: var(--on-dark); }
.lightbox__nav { display: flex; align-items: center; gap: 24px; font-size: 12px; letter-spacing: .2em; color: var(--on-dark-muted); }
.lightbox .arrow { width: 52px; height: 52px; }

/* =========================================================
   SCROLL REVEALS
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.2s var(--ease) var(--d, 0s), transform 1.2s var(--ease) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; transform: none; }

.reveal-img { position: relative; overflow: hidden; }
.reveal-img > img { width: 100%; height: 100%; object-fit: cover; }
.js .reveal-img { clip-path: inset(12% 0 0 0); transition: clip-path 1.6s var(--ease) var(--d, 0s); }
.js .reveal-img img,
.js .reveal-img .frame img { transform: scale(1.14); transition: transform 2.2s var(--ease) var(--d, 0s); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-in img { transform: scale(1); }
.js .reveal-img { opacity: 0; transition: clip-path 1.6s var(--ease) var(--d, 0s), opacity 1.2s var(--ease) var(--d, 0s); }
.js .reveal-img.is-in { opacity: 1; }

/* gallery figure: animate the frame, keep caption */
.g.reveal-img { overflow: visible; clip-path: none; }
.js .g.reveal-img .frame { clip-path: inset(14% 0 0 0); transition: clip-path 1.6s var(--ease) var(--d, 0s); }
.js .g.reveal-img.is-in .frame { clip-path: inset(0 0 0 0); }
.g img:hover { transform: scale(1.03) !important; transition: transform 1.4s var(--ease) !important; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__burger { display: block; }
}

@media (max-width: 1180px) {
  .hero__content { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 28px; }
  .hero__meta--left, .hero__meta--right { justify-self: center; }
  .hero__meta--left { order: -1; }
}

@media (max-width: 860px) {
  .hero__intro { right: var(--gutter); max-width: none; bottom: 110px; text-align: center; }
  .hero__scroll { left: 50%; right: auto; transform: translateX(-50%); bottom: 24px; }
  .hero__scroll i { height: 36px; }

  .casa__grid, .visita__grid, .split { grid-template-columns: 1fr; }
  .split__img { min-height: 0; aspect-ratio: 4 / 3; }
  .split__text { padding-top: 72px; }

  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .g--a, .g--b { grid-column: 1 / -1; }
  .g--a .frame, .g--b .frame { height: auto; aspect-ratio: 4 / 3; }
  .g--c, .g--d, .g--e, .g--f { grid-column: span 1; }

  .menu { columns: 1; }
  .nav__right .btn { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  body { font-size: 14px; }
  .logo__script { font-size: 32px; }
  .info > div { grid-template-columns: 1fr; gap: 6px; }
  .arrow { width: 54px; height: 54px; }
  .slider__controls { justify-content: space-between; }
  .g figcaption { font-size: 10px; letter-spacing: .14em; }
  .band { min-height: 80vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
}
