:root {
  --bg: #0f0e0c;
  --bg-2: #171512;
  --ivory: #f4efe6;
  --gold: #b89a6a;
  --muted: rgba(244, 239, 230, .62);
  --line: rgba(244, 239, 230, .14);
  --ease: cubic-bezier(.19, 1, .22, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ivory); font-family: var(--sans); font-weight: 300; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; cursor: pointer; }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
::selection { background: var(--gold); color: var(--bg); }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(96px, 14vw, 180px) 0; }
.kicker { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--gold); font-weight: 400; display: inline-flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.kicker::before { content: ""; width: 38px; height: 1px; background: currentColor; }
h1, h2 { font-family: var(--serif); font-weight: 300; line-height: 1.02; letter-spacing: -.01em; }
h2 { font-size: clamp(42px, 6.4vw, 92px); }
h1 em, h2 em { font-style: italic; color: var(--gold); }
.lead { color: var(--muted); font-size: 17px; max-width: 46ch; }
.sec-head { margin-bottom: clamp(48px, 7vw, 90px); }
.sec-head.center { text-align: center; }
.sec-head.center .kicker::after { content: ""; width: 38px; height: 1px; background: currentColor; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; font-weight: 400; transition: all .6s var(--ease); position: relative; overflow: hidden; white-space: nowrap; }
.btn-gold { background: var(--gold); color: var(--bg); isolation: isolate; }
.btn-gold::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ivory); transform: translateY(101%); transition: transform .6s var(--ease); }
.btn-gold:hover::after { transform: none; }
.btn-ghost { border: 1px solid rgba(244,239,230,.4); }
.btn-ghost:hover { background: var(--ivory); color: var(--bg); border-color: var(--ivory); }
.btn-line { border: 1px solid var(--gold); color: var(--gold); padding: 13px 24px; }
.btn-line:hover { background: var(--gold); color: var(--bg); }
.btn-block { width: 100%; }

/* grain + cursor */
.grain { position: fixed; inset: -50%; z-index: 200; 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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(6) infinite; }
@keyframes grain { 0%,100% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,3%); } }
.cursor { display: none; }
@media (pointer: fine) {
  .cursor { display: block; position: fixed; left: 0; top: 0; z-index: 210; pointer-events: none; width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1px solid rgba(184,154,106,.7); border-radius: 50%; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .4s, border-color .4s; mix-blend-mode: difference; }
  .cursor span { position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px; background: var(--gold); border-radius: 50%; }
  .cursor.hover { width: 76px; height: 76px; margin: -38px 0 0 -38px; background: rgba(184,154,106,.18); border-color: transparent; }
}

/* loader */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; align-content: center; gap: 28px; transition: transform 1.2s var(--ease) .1s, visibility 0s 1.4s; }
.loader img { width: 170px; opacity: 0; transform: translateY(14px); animation: lIn 1.1s var(--ease) .1s forwards; }
.loader-line { width: 140px; height: 1px; background: var(--line); overflow: hidden; }
.loader-line i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; animation: lBar 1.3s var(--ease) .2s forwards; }
@keyframes lIn { to { opacity: 1; transform: none; } }
@keyframes lBar { to { transform: scaleX(1); } }
.loader.done { transform: translateY(-100%); visibility: hidden; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; padding: 26px 0; transition: padding .6s var(--ease), background .6s, backdrop-filter .6s; }
.nav.solid { padding: 14px 0; background: rgba(15,14,12,.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 40px; }
.brand img { height: 52px; width: auto; transition: height .6s var(--ease); }
.nav.solid .brand img { height: 42px; }
.links { display: flex; gap: 34px; margin-left: auto; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; }
.links a { position: relative; padding: 4px 0; opacity: .85; transition: opacity .3s; }
.links a:hover { opacity: 1; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .6s var(--ease); }
.links a:hover::after { transform: scaleX(1); }
.burger { display: none; width: 44px; height: 44px; margin-left: auto; position: relative; z-index: 2; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ivory); transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.nav.open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav.open .burger span:last-child { top: 22px; transform: rotate(-45deg); }

/* hero */
/* la portada crece si el contenido no entra: el pie queda siempre debajo de los botones */
.hero { position: relative; min-height: 100svh; overflow: hidden; display: flex; flex-direction: column; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.18); transition: opacity 2.2s ease, transform 9s cubic-bezier(.2,.6,.3,1); }
.hero-slide.on { opacity: 1; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 55%, rgba(15,14,12,.25), rgba(15,14,12,.85) 75%), linear-gradient(180deg, rgba(15,14,12,.6), transparent 30%, transparent 60%, var(--bg)); }
.hero-in { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; margin-block: auto; padding: 110px 0 40px; }
.hero-kicker::after { content: ""; width: 38px; height: 1px; background: currentColor; }
.hero-title { font-size: clamp(48px, min(8vw, 12.5vh), 124px); margin-bottom: 26px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .ln > span { display: block; transform: translateY(110%) rotate(2deg); transform-origin: left; }
.go .hero-title .ln > span { animation: up 1.6s var(--ease) forwards; }
.hero-sub { max-width: 52ch; color: var(--muted); font-size: clamp(15px, 1.6vw, 18px); opacity: 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; justify-content: center; opacity: 0; }
.hero-kicker { opacity: 0; }
.go .hero-kicker { animation: fade 1.4s var(--ease) .3s forwards; }
.go .hero-sub { animation: fade 1.4s var(--ease) 1s forwards; }
.go .hero-ctas { animation: fade 1.4s var(--ease) 1.2s forwards; }
@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.hero-foot { position: relative; padding-bottom: 34px; display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.agenda { display: inline-flex; align-items: center; gap: 12px; }
.agenda i { width: 7px; height: 7px; border-radius: 50%; background: #7bd88f; box-shadow: 0 0 0 0 rgba(123,216,143,.6); animation: pulse 2.2s infinite; }
.agenda b { font-weight: 400; color: var(--ivory); }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(123,216,143,0); } 100% { box-shadow: 0 0 0 0 rgba(123,216,143,0); } }
.scroll { display: inline-flex; align-items: center; gap: 14px; }
.scroll em { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.scroll em::after { content: ""; position: absolute; inset: 0; background: var(--gold); animation: slide 2.4s var(--ease) infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }

/* marquee */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 40s linear infinite; }
.marquee-track span { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4vw, 54px); font-weight: 300; padding: 0 36px; white-space: nowrap; display: inline-flex; align-items: center; gap: 72px; }
.marquee-track span::after { content: "✦"; font-style: normal; font-size: .4em; color: var(--gold); }
@keyframes marq { to { transform: translateX(-50%); } }

/* manifesto */
.manifesto-in { position: relative; }
.manifesto-text { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 66px); line-height: 1.2; font-weight: 300; max-width: 22ch; position: relative; z-index: 1; }
.manifesto-text .wd { opacity: .14; transition: opacity .5s ease; }
.manifesto-text .wd.lit { opacity: 1; }
.manifesto-text em { font-style: italic; color: var(--gold); }
.manifesto-pics { position: relative; height: clamp(380px, 52vw, 700px); margin-top: clamp(40px, 6vw, 80px); }
.pic { position: absolute; overflow: hidden; }
.pic img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
/* dos fotos verticales en escalera, sin pisarse */
.pic-a { left: 4%; top: 0; width: 40%; height: 90%; }
.pic-b { right: 8%; bottom: 0; width: 34%; height: 72%; }
.pic::after { content: ""; position: absolute; inset: 0; background: var(--bg); transform-origin: top; transition: transform 1.6s var(--ease); }
.pic.in::after { transform: scaleY(0); }

/* events */
.events { position: relative; }
.ev-list { list-style: none; border-top: 1px solid var(--line); }
.ev { border-bottom: 1px solid var(--line); }
.ev a { display: grid; grid-template-columns: 70px 1fr minmax(0, 38ch) 40px; align-items: center; gap: 30px; padding: clamp(26px, 3.4vw, 44px) 0; position: relative; }
.ev-n { font-size: 12px; letter-spacing: .3em; color: var(--gold); }
.ev-name { font-family: var(--serif); font-size: clamp(38px, 5.6vw, 84px); font-weight: 300; line-height: 1; transition: transform .8s var(--ease), color .5s; }
.ev-txt { color: var(--muted); font-size: 15px; }
.ev-arrow { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: all .6s var(--ease); }
.ev a:hover .ev-name { transform: translateX(22px); font-style: italic; color: var(--gold); }
.ev a:hover .ev-arrow { background: var(--gold); border-color: var(--gold); color: var(--bg); transform: rotate(-45deg); }
.ev-pic { display: none; }
.ev-float { position: fixed; left: 0; top: 0; width: 320px; height: 420px; pointer-events: none; z-index: 5; overflow: hidden; opacity: 0; transform: translate(-50%, -50%) scale(.85); transition: opacity .5s, transform .6s var(--ease); }
.ev-float.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.ev-float img { width: 100%; height: 100%; object-fit: cover; }

/* space: carrusel automático (se arrastra con el mouse o el dedo) */
.space { background: var(--bg-2); overflow: hidden; }
.space-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 70px); }
.space-hint { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; }
.space-hint::after { content: ""; width: 60px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.carousel { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.carousel.drag { cursor: grabbing; }
.carousel-track { display: flex; gap: clamp(14px, 2vw, 28px); width: max-content; will-change: transform; }
.panel { flex: none; margin: 0; width: min-content; }
.panel-img { height: clamp(300px, 58vh, 560px); overflow: hidden; }
.panel img { height: 100%; width: auto; max-width: none; display: block; transition: transform 1.6s var(--ease); pointer-events: none; -webkit-user-drag: none; }
.panel:hover img { transform: scale(1.05); }
.panel figcaption { display: flex; align-items: baseline; gap: 14px; margin-top: 16px; }
.panel h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; white-space: nowrap; }
.panel p { color: var(--muted); font-size: 13.5px; max-width: 34ch; }

/* experience */
.exp-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.exp-item { padding: 44px 30px 10px 0; border-right: 1px solid var(--line); margin-right: 30px; }
.exp-item:last-child { border-right: 0; margin-right: 0; }
.exp-item b { display: block; font-family: var(--serif); font-style: italic; font-size: 56px; font-weight: 300; color: var(--gold); line-height: 1; margin-bottom: 26px; }
.exp-item h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin-bottom: 12px; }
.exp-item p { color: var(--muted); font-size: 15px; }

/* quote */
.quote { position: relative; overflow: hidden; padding: clamp(120px, 18vw, 240px) 0; text-align: center; }
.quote-bg { position: absolute; inset: -20% 0; background-size: cover; background-position: center; will-change: transform; }
.quote::after { content: ""; position: absolute; inset: 0; background: rgba(15,14,12,.72); }
.quote-in { position: relative; z-index: 1; }
.stars { color: var(--gold); letter-spacing: .5em; font-size: 14px; margin-bottom: 26px; }
.quote p { font-family: var(--serif); font-size: clamp(34px, 5vw, 72px); font-weight: 300; line-height: 1.12; max-width: 20ch; margin: 0 auto; }
.quote p em { font-style: italic; color: var(--gold); }
.quote span { display: block; margin-top: 28px; font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--muted); }

/* gallery */
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 22vw, 320px); gap: 14px; }
.g-item { position: relative; overflow: hidden; cursor: pointer; }
.g-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-item:nth-child(6) { grid-column: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease), filter .8s; filter: saturate(.85); }
.g-item:hover img { transform: scale(1.08); filter: saturate(1.05); }
.g-item::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 54px; font-weight: 300; background: rgba(15,14,12,.35); opacity: 0; transition: opacity .5s; }
.g-item:hover::after { opacity: 1; }

/* booking */
.book { position: relative; overflow: hidden; padding: clamp(110px, 14vw, 180px) 0; }
.book-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.book::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, rgba(15,14,12,.6)); z-index: 1; }
.book-in { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.book h2 { margin-bottom: 24px; }
.book-form { background: rgba(23,21,18,.82); backdrop-filter: blur(10px); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); display: grid; gap: 18px; }
.book-form small { color: var(--muted); font-size: 12px; text-align: center; letter-spacing: .04em; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { position: relative; display: block; }
.f input, .f select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(244,239,230,.3); padding: 26px 0 10px; font-size: 16px; outline: none; border-radius: 0; appearance: none; color-scheme: dark; transition: border-color .4s; }
.f select option { background: var(--bg-2); }
.f span { position: absolute; left: 0; top: 24px; color: var(--muted); font-size: 15px; pointer-events: none; transition: all .4s var(--ease); }
.f input:focus, .f select:focus { border-color: var(--gold); }
.f input:focus + span, .f input:not(:placeholder-shown) + span, .f select:focus + span, .f select:valid + span, .f input[type="date"] + span { top: 2px; font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 90px 0 36px; }
.foot-logo { width: 190px; margin-bottom: 60px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-bottom: 60px; border-bottom: 1px solid var(--line); }
.foot-cols h4 { font-size: 11px; letter-spacing: .36em; text-transform: uppercase; color: var(--gold); font-weight: 400; margin-bottom: 18px; }
.foot-cols a, .foot-cols p { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.5; transition: color .3s; }
.foot-cols a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; font-size: 12px; color: var(--muted); letter-spacing: .08em; flex-wrap: wrap; }
.foot-social { display: flex; gap: 22px; text-transform: uppercase; letter-spacing: .26em; font-size: 11px; }
.foot-social a:hover { color: var(--gold); }

/* whatsapp */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--gold); color: var(--bg); display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(0,0,0,.6); transition: transform .5s var(--ease), background .4s; }
.wa-float:hover { transform: scale(1.08); background: var(--ivory); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 250; background: rgba(10,9,8,.94); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .5s; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 84vh; object-fit: contain; transform: scale(.94); transition: transform .7s var(--ease); }
.lightbox.open img { transform: none; }
.lb-x { position: absolute; top: 18px; right: 24px; font-size: 40px; font-weight: 200; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; font-weight: 200; padding: 20px; opacity: .7; }
.lb-nav:hover { opacity: 1; color: var(--gold); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* reveals */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(50px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.stagger.in > * { opacity: 1; transform: none; }
.ev { opacity: 0; transform: translateY(40px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.ev.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 980px) {
  .links { position: fixed; inset: 0; flex-direction: column; align-items: center; justify-content: center; gap: 30px; margin: 0; background: var(--bg); font-family: var(--serif); font-size: 40px; letter-spacing: 0; text-transform: none; font-style: italic; opacity: 0; pointer-events: none; transition: opacity .6s var(--ease); }
  .nav.open .links { opacity: 1; pointer-events: auto; }
  .nav.open { background: transparent; backdrop-filter: none; border-color: transparent; }
  .burger { display: block; }
  .nav-cta { display: none; }
  .brand { position: relative; z-index: 2; }
  .ev a { grid-template-columns: 44px 1fr; gap: 6px 16px; }
  .ev-txt { grid-column: 2; }
  .ev-arrow { display: none; }
  .ev-pic { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 10; overflow: hidden; margin-top: 18px; }
  .ev-pic img { width: 100%; height: 100%; object-fit: cover; }
  .ev-float { display: none; }
  .panel-img { height: 46vh; }
  .panel figcaption { flex-direction: column; gap: 2px; }
  .space-hint { display: none; }
  .exp-grid { grid-template-columns: 1fr 1fr; }
  .exp-item { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 30px; }
  .book-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 600px) {
  .g-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; gap: 8px; }
  .exp-grid { grid-template-columns: 1fr; }
  .hero-foot { justify-content: flex-start; padding-right: 60px; }
  .hero-foot .scroll { display: none; }
  .agenda { white-space: nowrap; letter-spacing: .2em; }
  .hero-kicker::before, .hero-kicker::after { display: none; }
  .hero-kicker { letter-spacing: .3em; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .hero-foot { justify-content: center; }
  .manifesto-pics { height: 128vw; }
  .pic-a { left: 0; width: 54%; height: 86%; }
  .pic-b { right: 0; width: 42%; height: 66%; }
  .f-row { grid-template-columns: 1fr; }
  .btn { padding: 15px 22px; letter-spacing: .2em; }
}
/* ?solo=<id>: vista estática para capturas de revisión */
.solo *, .solo *::before, .solo *::after { transition: none !important; animation-duration: .01ms !important; animation-delay: 0s !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal, .stagger > *, .ev { opacity: 1; transform: none; }
}
