/* ==========================================================================
   Bodega Studios · colores del logo: granate #550c15 + crema #f5f4df
   ========================================================================== */
:root {
  --wine-950: #1a0306;
  --wine-900: #26050a;
  --wine-800: #3a0810;
  --wine: #550c15;
  --wine-600: #6e1520;
  --wine-400: #9a3442;
  --cream: #f5f4df;
  --cream-200: #ebe9c9;
  --cream-300: #ddd9b0;
  --cream-dim: rgba(245, 244, 223, .68);
  --cream-line: rgba(245, 244, 223, .14);
  --wine-line: rgba(85, 12, 21, .16);

  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-serif: "Instrument Serif", Georgia, serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --radius: 22px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wine-950);
  color: var(--cream);
  font-family: var(--f-display);
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.6;
  font-optical-sizing: auto;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
::selection { background: var(--cream); color: var(--wine); }

main { overflow-x: clip; }
.container { width: min(1320px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(96px, 13vw, 180px); position: relative; }
.section--cream { background: var(--cream); color: var(--wine); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  margin: 0 0 1.4rem; opacity: .8;
}
.title {
  font-size: clamp(2.4rem, 5.6vw, 5rem);
  line-height: 1; font-weight: 700; letter-spacing: -.035em;
  margin: 0 0 1.6rem;
}
.title em { font-size: 1.08em; }
.section__head { max-width: 780px; margin-bottom: clamp(48px, 6vw, 88px); }
.section__head--split { max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.section__sub { font-size: 1.12rem; opacity: .75; margin: 0; max-width: 46ch; }

/* ---------- Botones ---------- */
.btn {
  --bg: var(--cream); --fg: var(--wine);
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  padding: 1.05em 1.7em; border-radius: 999px;
  font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  background: var(--bg); color: var(--fg);
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), transform .35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--wine-600); border-radius: inherit;
  transform: translateY(101%); transition: transform .55s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--cream); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 1.5px var(--cream-line); }
.btn--ghost::before { background: var(--cream); }
.btn--ghost:hover { color: var(--wine); }
.btn--wine { --bg: var(--wine); --fg: var(--cream); }
.btn--wine::before { background: var(--wine-950); }
.btn--sm { padding: .75em 1.3em; font-size: .9rem; }
.btn__arrow { font-style: normal; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px) rotate(-45deg); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; align-content: center; gap: 22px;
  background: var(--wine);
  transition: clip-path 1.1s var(--ease-in-out);
  clip-path: inset(0 0 0 0);
}
.preloader__blob { width: 120px; aspect-ratio: 1; animation: blobPulse 1.6s var(--ease) infinite; }
.preloader__blob img { width: 100%; border-radius: 50%; }
.preloader__count { font-size: 3.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.preloader__label { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; opacity: .7; }
body.is-loaded .preloader { clip-path: inset(0 0 100% 0); }
@keyframes blobPulse { 0%,100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.08) rotate(6deg); } }

/* ---------- Grano ---------- */
.grain {
  position: fixed; inset: 0; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0%,100% { background-position: 0 0; } 20% { background-position: -40px 30px; } 40% { background-position: 25px -55px; }
  60% { background-position: -60px -12px; } 80% { background-position: 45px 40px; }
}


/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; gap: 32px; padding-inline: var(--gutter);
  transition: transform .6s var(--ease), background .4s, backdrop-filter .4s, height .4s var(--ease);
}
.header.is-scrolled {
  background: rgba(38, 5, 10, .72); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  height: 68px; box-shadow: 0 1px 0 var(--cream-line);
}
.header.is-hidden { transform: translateY(-100%); }
.header__logo img { height: 40px; width: auto; transition: transform .5s var(--ease); }
.header__logo:hover img { transform: rotate(-3deg) scale(1.04); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  position: relative; padding: .5em .9em; font-size: .93rem; font-weight: 500; border-radius: 999px;
  transition: background .3s, color .3s;
}
.nav a:hover { background: var(--cream-line); }
.nav a.is-active { background: var(--cream); color: var(--wine); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--cream); position: relative; z-index: 120; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--wine); transition: transform .5s var(--ease); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 25px; }
body.menu-open .burger span:first-child { transform: translateY(3px) rotate(45deg); }
body.menu-open .burger span:last-child { transform: translateY(-3px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--wine);
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - var(--gutter) - 23px) 42px);
  transition: clip-path .9s var(--ease-in-out); visibility: hidden;
}
body.menu-open .menu { clip-path: circle(150% at calc(100% - var(--gutter) - 23px) 42px); visibility: visible; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.15;
  display: flex; align-items: baseline; gap: .5em;
  opacity: 0; transform: translateY(40px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu__nav small { font-size: .9rem; font-weight: 500; opacity: .55; letter-spacing: 0; }
body.menu-open .menu__nav a { opacity: 1; transform: none; }
body.menu-open .menu__nav a:nth-child(1) { transition-delay: .25s; } body.menu-open .menu__nav a:nth-child(2) { transition-delay: .3s; }
body.menu-open .menu__nav a:nth-child(3) { transition-delay: .35s; } body.menu-open .menu__nav a:nth-child(4) { transition-delay: .4s; }
body.menu-open .menu__nav a:nth-child(5) { transition-delay: .45s; } body.menu-open .menu__nav a:nth-child(6) { transition-delay: .5s; }
.menu__foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; opacity: .75; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(24px, 4vw, 72px);
  padding: calc(var(--header-h) + 40px) max(var(--gutter), (100% - 1600px) / 2) clamp(110px, 11vw, 180px);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .7; }
.hero__glow--1 { width: 55vw; height: 55vw; background: var(--wine); top: -20%; right: -15%; animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--2 { width: 35vw; height: 35vw; background: var(--wine-600); bottom: -25%; left: -10%; opacity: .45; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-8vw, 6vh) scale(1.15); } }

.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4b5c; box-shadow: 0 0 0 0 rgba(255,75,92,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,75,92,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,92,0); } }

.hero__title {
  font-size: clamp(3rem, 7.4vw, 7.6rem); line-height: .92; letter-spacing: -.05em; font-weight: 800;
  margin: 0 0 1.8rem;
}
.hero__title em { font-size: 1.1em; color: var(--cream-300); }
.hero__lead { font-size: clamp(1.05rem, 1.3vw, 1.25rem); color: var(--cream-dim); max-width: 44ch; margin: 0 0 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* split words */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-word > span { display: inline-block; transform: translateY(110%) rotate(6deg); transform-origin: left bottom; transition: transform 1.1s var(--ease); }
body.is-ready .split-word > span { transform: none; }
[data-hero] { opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); }
body.is-ready [data-hero] { opacity: 1; transform: none; }
body.is-ready [data-hero="1"] { transition-delay: .1s; }
body.is-ready [data-hero="2"] { transition-delay: .55s; }
body.is-ready [data-hero="3"] { transition-delay: .75s; }

.hero__media { position: relative; aspect-ratio: 1 / 1.05; width: 100%; max-width: 680px; justify-self: end; }
.hero__blob {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 52% 48% 44% 56% / 55% 44% 56% 45%;
  animation: morph 12s ease-in-out infinite;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.6);
  transform: translateZ(0);
}
.hero__blob img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes morph {
  0%,100% { border-radius: 52% 48% 44% 56% / 55% 44% 56% 45%; }
  33% { border-radius: 40% 60% 58% 42% / 45% 58% 42% 55%; }
  66% { border-radius: 58% 42% 50% 50% / 40% 52% 48% 60%; }
}
@keyframes kenburns { to { transform: scale(1.28) translate(-3%, 2%); } }

.hero__badge { position: absolute; width: clamp(120px, 13vw, 180px); aspect-ratio: 1; left: -6%; bottom: 8%; }
.hero__badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; fill: var(--cream); font-size: 14.5px; font-weight: 600; letter-spacing: .18em; }
.hero__badge img { position: absolute; inset: 27%; width: 46%; border-radius: 50%; animation: blobPulse 4s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__eq {
  position: absolute; right: 6%; bottom: -2%; display: flex; align-items: flex-end; gap: 5px; height: 70px;
  padding: 14px 18px; border-radius: 18px; background: rgba(26, 3, 6, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--cream-line);
}
.hero__eq span { width: 5px; height: 100%; border-radius: 3px; background: var(--cream); transform-origin: bottom; animation: eq 1.1s ease-in-out infinite alternate; }
.hero__eq span:nth-child(3n) { animation-duration: .8s; } .hero__eq span:nth-child(3n+1) { animation-duration: 1.3s; animation-delay: -.4s; }
.hero__eq span:nth-child(4n) { animation-delay: -.7s; } .hero__eq span:nth-child(5n) { animation-duration: .95s; background: var(--cream-300); }
@keyframes eq { 0% { transform: scaleY(.15); } 50% { transform: scaleY(.9); } 100% { transform: scaleY(.35); } }

.hero__rec {
  position: absolute; top: 8%; right: 2%; display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: var(--cream); color: var(--wine);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em;
}
.hero__rec i { width: 8px; height: 8px; border-radius: 50%; background: #d91f33; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__scroll { position: absolute; left: 50%; bottom: clamp(90px, 10vw, 160px); translate: -50% 0; display: grid; justify-items: center; gap: 8px; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase; opacity: .6; }
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--cream), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--wine-950); animation: scrollLine 2s var(--ease-in-out) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--wine); padding-block: 18px 34px; overflow-x: clip; position: relative; z-index: 4; }
.marquee__track { display: flex; align-items: center; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-size: clamp(2rem, 4.4vw, 3.8rem); font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.marquee span em { text-transform: none; font-weight: 400; color: var(--cream-300); }
.marquee b { font-size: 1.6rem; color: var(--cream-300); animation: spin 6s linear infinite; display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- Separadores orgánicos (olas animadas) ---------- */
.wave, .edge {
  --wave-h: clamp(70px, 9vw, 150px);
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: var(--wave-h);
  z-index: 3; pointer-events: none;
}
.edge { --wave-h: clamp(46px, 6.5vw, 104px); }
.edge--down { bottom: auto; top: calc(100% - 1px); }
.wave svg, .edge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wave--cream, .edge--cream { --c1: var(--cream-300); --c2: var(--cream-200); --c3: var(--cream); }
.wave--wine, .edge--wine { --c1: var(--wine-400); --c2: var(--wine-600); --c3: var(--wine); }
.wave--dark, .edge--dark { --c1: var(--wine-600); --c2: var(--wine); --c3: var(--wine-950); }
.wave path, .edge path { fill: var(--c3); }
.wave path.back { fill: var(--c1); }
.wave path.mid { fill: var(--c2); }
.edge path.back { fill: var(--c2); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(46px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about { overflow: hidden; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.about__text p { font-size: 1.12rem; max-width: 52ch; }
.about__text .title em { color: var(--wine-600); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 44px; }
.stat { padding: 22px 24px; border-radius: var(--radius); background: var(--cream-200); transition: background .4s, color .4s, transform .4s var(--ease); }
.stat:hover { background: var(--wine); color: var(--cream); transform: translateY(-4px) rotate(-1deg); }
.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; letter-spacing: -.05em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat > span { font-size: .9rem; opacity: .75; }

.about__media { position: relative; height: clamp(480px, 52vw, 720px); }
.about__img { position: absolute; margin: 0; overflow: hidden; border-radius: var(--radius); box-shadow: 0 30px 80px -30px rgba(85, 12, 21, .5); }
.about__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about__img:hover img { transform: scale(1.06); }
.about__img--a { inset: 0 18% 22% 0; }
.about__img--b { width: 46%; aspect-ratio: 3/4; right: 0; bottom: 0; border: 8px solid var(--cream); }
.about__sticker {
  position: absolute; left: 8%; bottom: 4%; width: clamp(130px, 13vw, 170px); aspect-ratio: 1;
  display: grid; place-items: center; text-align: center; line-height: 1.1; font-weight: 700; font-size: .95rem;
  background: var(--wine); color: var(--cream);
  border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%; animation: morph 9s ease-in-out infinite;
}
.about__sticker em { font-size: 1.35em; }

/* ---------- Estudios ---------- */
.studios { background: linear-gradient(var(--wine-950) 0, transparent 260px), radial-gradient(1200px 600px at 80% 10%, var(--wine-800), transparent 70%), var(--wine-950); }
.studios .title em { color: var(--cream-300); }
.studios__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.studio {
  --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--wine-900); box-shadow: inset 0 0 0 1px var(--cream-line);
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), box-shadow .4s, opacity 1s var(--ease), translate 1.1s var(--ease);
}
.studio.reveal { transform: perspective(1200px) translateY(46px); }
.studio.reveal.is-in { transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); }
.studio:nth-child(2) { --d: .1s; } .studio:nth-child(4) { --d: .1s; }
.studio:hover { box-shadow: inset 0 0 0 1px rgba(245,244,223,.35), 0 40px 80px -40px rgba(0,0,0,.8); }
.studio__img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.studio__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.4); transition: transform 1.4s var(--ease), filter .8s; filter: saturate(.85) sepia(.15); }
.studio:hover .studio__img img { transform: scale(1.5); filter: none; }
.studio:nth-child(1) .studio__img img { filter: saturate(.9) sepia(.35) hue-rotate(-20deg); }
.studio:nth-child(2) .studio__img img { filter: saturate(.8) sepia(.25) brightness(1.05); }
.studio:nth-child(3) .studio__img img { filter: saturate(.7) sepia(.4) brightness(1.08); }
.studio__tag { position: absolute; z-index: 1; top: 18px; left: 18px; padding: 6px 14px; border-radius: 999px; background: var(--cream); color: var(--wine); font-size: .78rem; font-weight: 700; letter-spacing: .04em; }
.studio__body { --ns: clamp(3rem, 6vw, 5.4rem); position: relative; padding: 0 clamp(22px, 3vw, 40px) clamp(26px, 3vw, 40px); z-index: 1; }
.studio__name {
  /* el título pisa la línea entre la foto y el texto: mitad sobre cada uno */
  font-size: var(--ns); line-height: 1; letter-spacing: -.05em; font-weight: 800;
  margin: calc(var(--ns) * -.52) 0 .35em; color: var(--cream);
  text-shadow: 0 6px 30px rgba(26, 3, 6, .45);
  transition: transform .7s var(--ease), letter-spacing .7s var(--ease);
}
.studio:hover .studio__name { transform: translateX(6px); letter-spacing: -.035em; }
.studio__notes { margin: 0 0 18px; color: var(--cream-dim); font-size: .95rem; }
.studio__notes span { display: block; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; color: var(--cream); }
.studio__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 14px 0; border-top: 1px solid var(--cream-line); font-weight: 600; }
.studio__toggle i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--cream-line); transition: transform .5s var(--ease), background .3s; font-size: 1.2rem; }
.studio__toggle[aria-expanded="true"] i { transform: rotate(135deg); background: var(--cream); color: var(--wine); }
.studio__rider {
  list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden;
  transition: max-height .7s var(--ease);
}
.studio__rider li { padding: 8px 0 8px 22px; position: relative; font-size: .93rem; color: var(--cream-dim); border-bottom: 1px dashed var(--cream-line); }
.studio__rider li::before { content: "✦"; position: absolute; left: 0; font-size: .7rem; top: 11px; color: var(--cream-300); }
.studio__cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; position: relative; }
.studio__cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: currentColor; transform: scaleX(.25); transform-origin: left; transition: transform .5s var(--ease); }
.studio__cta:hover::after { transform: scaleX(1); }
.studio__cta i { font-style: normal; transition: transform .4s var(--ease); }
.studio__cta:hover i { transform: translateX(6px); }

/* ---------- Manifesto ---------- */
.manifesto { background: var(--wine); padding-block: clamp(110px, 16vw, 220px); }
.manifesto__text { font-size: clamp(1.8rem, 4.2vw, 3.8rem); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; margin: 0; max-width: 22ch; }
.manifesto__text .w { opacity: .16; transition: opacity .4s; }
.manifesto__text .w.is-lit { opacity: 1; }
.manifesto__sign { margin-top: 40px; font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; opacity: .7; }

/* ---------- Amenities ---------- */
.amenities .title em { color: var(--wine-600); }
.amenities__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amenity {
  position: relative; padding: 30px 26px 28px; border-radius: var(--radius); background: var(--cream-200); overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease), transform .5s var(--ease);
}
.amenity::before {
  content: ""; position: absolute; z-index: -1; width: 0; height: 0; left: var(--mx, 50%); top: var(--my, 50%);
  border-radius: 50%; background: var(--wine); transform: translate(-50%, -50%);
  transition: width .7s var(--ease), height .7s var(--ease);
}
.amenity:hover { color: var(--cream); transform: translateY(-6px); }
.amenity:hover::before { width: 900px; height: 900px; }
.amenity:nth-child(4n+2) { --d: .08s; } .amenity:nth-child(4n+3) { --d: .16s; } .amenity:nth-child(4n+4) { --d: .24s; }
.amenity svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 40px; transition: transform .6s var(--ease); }
.amenity:hover svg { transform: rotate(-10deg) scale(1.12); }
.amenity svg path, .amenity svg rect, .amenity svg circle { stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 1.8s var(--ease) .3s; }
.amenity.is-in svg path, .amenity.is-in svg rect, .amenity.is-in svg circle { stroke-dashoffset: 0; }
.amenity h3 { margin: 0 0 6px; font-size: 1.35rem; letter-spacing: -.02em; }
.amenity p { margin: 0; font-size: .93rem; opacity: .75; }

/* ---------- Galería (scroll horizontal) ---------- */
.gallery { position: relative; background: var(--wine-950); height: 400vh; }
.gallery__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: 4vh; }
.gallery__head .title { margin: 0; }
.gallery__head .title em { color: var(--cream-300); }
.gallery__track { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding-inline: var(--gutter); width: max-content; will-change: transform; }
.shot { position: relative; margin: 0; flex: none; height: 50vh; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.shot--tall { height: 58vh; aspect-ratio: 3/4; }
.shot img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); transition: transform 1.2s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 16px; bottom: 16px; padding: 6px 14px; border-radius: 999px; background: var(--cream); color: var(--wine);
  font-weight: 700; font-size: .85rem; transform: translateY(150%); transition: transform .5s var(--ease);
}
.shot:hover figcaption { transform: none; }
.gallery__end { flex: none; width: min(420px, 80vw); padding-inline: 4vw; }
.gallery__end p { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.05; font-weight: 700; letter-spacing: -.04em; margin: 0 0 24px; }
.gallery__progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 5vh; height: 2px; background: var(--cream-line); }
.gallery__progress i { position: absolute; inset: 0; background: var(--cream); transform-origin: left; transform: scaleX(0); }

/* ---------- Reservas ---------- */
.booking { background: radial-gradient(900px 500px at 10% 100%, var(--wine-800), transparent 70%), var(--wine-950); overflow: hidden; }
.booking .title em { color: var(--cream-300); }
.booking__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--cream-line); }
.steps li:nth-child(2) { --d: .1s; } .steps li:nth-child(3) { --d: .2s; }
.steps b { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--wine); font-size: 1.1rem; }
.steps h3 { margin: 0; font-size: 1.3rem; letter-spacing: -.02em; }
.steps p { margin: 2px 0 0; color: var(--cream-dim); }

.widget {
  background: var(--cream); color: var(--wine); border-radius: 30px; padding: clamp(20px, 2.6vw, 34px);
  box-shadow: 0 50px 120px -40px rgba(0,0,0,.8), 0 0 0 10px rgba(245,244,223,.06);
  transform: rotate(1.5deg); transition: transform .8s var(--ease), opacity 1s var(--ease);
}
.widget.reveal { transform: translateY(60px) rotate(4deg); }
.widget.reveal.is-in { transform: rotate(1.5deg); }
.widget.reveal.is-in:hover { transform: rotate(0deg) scale(1.01); }
.widget__head { display: flex; align-items: center; gap: 14px; font-weight: 700; padding-bottom: 18px; margin-bottom: 20px; border-bottom: 1px solid var(--wine-line); }
.widget__dots { display: flex; gap: 6px; } .widget__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--wine-line); }
.widget__dots i:first-child { background: var(--wine); }
.widget__block { margin-bottom: 22px; }
.widget__row { display: flex; justify-content: space-between; align-items: center; }
.widget__label { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 10px; opacity: .65; }
.widget__nav { display: flex; gap: 6px; margin-bottom: 10px; }
.widget__nav button { width: 30px; height: 30px; border-radius: 50%; background: var(--cream-200); color: var(--wine); font-size: 1.1rem; transition: background .3s; }
.widget__nav button:hover { background: var(--cream-300); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .day, .slot { transition: background .35s var(--ease), color .35s, transform .35s var(--ease), box-shadow .35s; color: var(--wine); }
.chip { padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--wine-line); font-weight: 600; }
.chip:hover, .day:hover, .slot:not(:disabled):hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--wine); }
.chip.is-active, .day.is-active, .slot.is-active { background: var(--wine); color: var(--cream); box-shadow: none; }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.day { display: grid; padding: 10px 0; border-radius: 14px; background: var(--cream-200); font-weight: 700; font-size: 1.15rem; line-height: 1.1; }
.day small { font-size: .68rem; font-weight: 600; opacity: .6; text-transform: uppercase; letter-spacing: .06em; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.slot { padding: 11px 0; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--wine-line); font-weight: 600; font-variant-numeric: tabular-nums; }
.slot.is-busy { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.widget__summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--cream-200); }
.widget__summary small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.widget__summary strong { font-size: 1.1rem; letter-spacing: -.01em; }
.widget__summary strong.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.06); } }

/* ---------- Contacto ---------- */
.contact .title em { color: var(--wine-600); }
.contact__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.contact__info > p { font-size: 1.12rem; max-width: 40ch; }
.contact__list { list-style: none; padding: 0; margin: 36px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list li:nth-child(2) { --d: .08s; } .contact__list li:nth-child(3) { --d: .16s; }
.contact__list svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 50%; background: var(--wine); stroke: var(--cream); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease); }
.contact__list li:hover svg { transform: rotate(-12deg) scale(1.08); }
.contact__list small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.contact__list a { font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .5s var(--ease); }
.contact__list a:hover { background-size: 100% 1.5px; }
.map { border-radius: var(--radius); overflow: hidden; height: 260px; box-shadow: 0 0 0 1px var(--wine-line); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) sepia(.5) hue-rotate(-30deg) saturate(1.6) contrast(.95); transition: filter .6s; }
.map:hover iframe { filter: none; }

.form { position: relative; background: #fff8; background: rgba(255,255,255,.45); padding: clamp(24px, 3.2vw, 48px); border-radius: 30px; box-shadow: 0 0 0 1px var(--wine-line), 0 40px 90px -50px rgba(85,12,21,.5); }
.form__topics { border: 0; padding: 0; margin: 0 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.form__topics legend { font-weight: 700; font-size: 1.15rem; margin-bottom: 14px; letter-spacing: -.01em; }
.form__topics input { position: absolute; opacity: 0; pointer-events: none; }
.form__topics span { display: inline-block; padding: 10px 18px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--wine-line); font-weight: 600; cursor: pointer; transition: all .35s var(--ease); }
.form__topics label:hover span { box-shadow: inset 0 0 0 1.5px var(--wine); transform: translateY(-2px); }
.form__topics input:checked + span { background: var(--wine); color: var(--cream); box-shadow: none; }
.form__topics input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 3px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--wine); background: var(--cream); border: 0; border-radius: 16px;
  padding: 26px 18px 10px; box-shadow: inset 0 0 0 1.5px var(--wine-line); outline: none; resize: vertical;
  transition: box-shadow .35s var(--ease), background .35s;
}
.field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--wine); background: #fffef2; }
.field label { position: absolute; left: 18px; top: 18px; font-size: 1rem; opacity: .6; pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease), opacity .35s; }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.75); opacity: .85; font-weight: 600; }
.field.is-error input, .field.is-error textarea { box-shadow: inset 0 0 0 2px #c0392b; animation: shake .4s; }
@keyframes shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; margin: 6px 0 24px; cursor: pointer; }
.check input { appearance: none; flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--wine); margin: 1px 0 0; display: grid; place-items: center; cursor: pointer; transition: background .3s; }
.check input::after { content: "✓"; color: var(--cream); font-size: .85rem; font-weight: 700; transform: scale(0); transition: transform .3s var(--ease); }
.check input:checked { background: var(--wine); }
.check input:checked::after { transform: scale(1); }
.check a { text-decoration: underline; text-underline-offset: 3px; }
.form__submit { width: 100%; justify-content: center; padding-block: 1.2em; font-size: 1.05rem; }
.form__ok {
  position: absolute; inset: 0; border-radius: inherit; background: var(--wine); color: var(--cream);
  display: grid; place-items: center; align-content: center; gap: 18px; text-align: center; font-size: 1.2rem;
  clip-path: circle(0 at 50% 100%); transition: clip-path 1s var(--ease-in-out); pointer-events: none;
}
.form__ok img { width: 90px; border-radius: 50%; animation: blobPulse 2s ease-in-out infinite; }
.form__ok strong { font-size: 2rem; letter-spacing: -.03em; }
.form.is-sent .form__ok { clip-path: circle(150% at 50% 100%); pointer-events: auto; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--wine); padding: clamp(90px, 12vw, 160px) 0 30px; overflow-x: clip; }
.footer__cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: clamp(60px, 8vw, 110px); border-bottom: 1px solid var(--cream-line); }
.footer__title { font-size: clamp(3rem, 9vw, 9rem); line-height: .9; letter-spacing: -.055em; font-weight: 800; margin: 0; }
.footer__title em { color: var(--cream-300); }
.footer__circle {
  flex: none; width: clamp(130px, 15vw, 200px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--cream); color: var(--wine); font-weight: 800; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.1;
  transition: background .4s, color .4s;
  animation: morph 8s ease-in-out infinite;
}
.footer__circle:hover { background: var(--wine-950); color: var(--cream); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; padding-block: 50px; }
.footer__logo { width: 200px; height: auto; margin-bottom: 12px; }
.footer h4 { margin: 0 0 10px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.footer p { margin: 0; color: var(--cream-dim); }
.footer p a:hover { color: var(--cream); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 26px; border-top: 1px solid var(--cream-line); font-size: .85rem; opacity: .7; }

/* ---------- Lightbox / toast ---------- */
.lightbox { position: fixed; inset: 0; z-index: 170; background: rgba(26,3,6,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; padding: 60px 16px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 80vh; border-radius: var(--radius); transform: scale(.92); transition: transform .6s var(--ease); }
.lightbox.is-open img { transform: none; }
.lightbox__close { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; background: var(--cream); color: var(--wine); font-size: 1.8rem; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 54px; height: 54px; border-radius: 50%; background: var(--cream-line); font-size: 2rem; transition: background .3s; }
.lightbox__nav:hover { background: var(--wine); }
.lightbox__prev { left: 18px; } .lightbox__next { right: 18px; }
.lightbox__caption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; font-family: var(--f-serif); font-style: italic; font-size: 1.4rem; margin: 0; }

.toast { position: fixed; z-index: 175; left: 50%; bottom: 24px; translate: -50% calc(100% + 60px); padding: 14px 22px; border-radius: 999px; background: var(--cream); color: var(--wine); font-weight: 600; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6); transition: translate .6s var(--ease); max-width: calc(100% - 32px); text-align: center; }
.toast.is-on { translate: -50% 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav, .header__cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .amenities__grid { grid-template-columns: repeat(2, 1fr); }
  .section__head--split { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 30px); gap: 48px; }
  .hero__media { justify-self: center; max-width: 520px; }
  .hero__badge { left: -2%; }
  .hero__scroll { display: none; }
  .about__grid, .booking__grid, .contact__grid { grid-template-columns: 1fr; }
  .studios__list { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__cta { flex-direction: column; align-items: flex-start; }
  .widget, .widget.reveal.is-in { transform: none; }

  /* galería: scroll horizontal nativo */
  .gallery { height: auto; padding-block: 90px; }
  .gallery__sticky { position: static; height: auto; gap: 36px; }
  .gallery__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; transform: none !important; scrollbar-width: none; }
  .gallery__track::-webkit-scrollbar { display: none; }
  .shot, .shot--tall { height: 62vw; max-height: 440px; scroll-snap-align: center; }
  .gallery__progress { display: none; }
}
@media (max-width: 560px) {
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .amenities__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .days { gap: 4px; } .day { font-size: 1rem; }
  .widget__summary { flex-direction: column; align-items: stretch; }
  .widget__summary .btn { justify-content: center; }
  .hero__eq { right: 2%; }
  .about__media { height: 440px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, [data-hero], .split-word > span { opacity: 1 !important; transform: none !important; }
}
