/* Mielva: capa premium sobre el kit (intro, portada a pantalla completa, revelados, cursor, cinta).
   Todo el estado oculto vive bajo html.lux-js, así sin JavaScript la página se ve completa. */
:root {
  --lux-ease: cubic-bezier(.22, 1, .36, 1);
  --lux-move: cubic-bezier(.77, 0, .175, 1);
  --lux-ink: #2b241e;
  --lux-cream: #f6f1e7;
}

/* ---------- tipografía ---------- */
html[data-type="place"] h2 { font-size: clamp(34px, 3.6vw, 58px); line-height: 1.04; letter-spacing: -0.02em; }
h1 em, h2 em, .lux-italic { font-style: italic; font-variation-settings: "SOFT" 100, "WONK" 1; }

/* ---------- intro ---------- */
.lux-intro { display: none; }
html.lux-js .lux-intro {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200;
  background: var(--lux-ink); color: var(--lux-cream); cursor: pointer;
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--lux-move);
}
html.lux-intro-out .lux-intro { clip-path: inset(0 0 100% 0); }
html.lux-intro-gone .lux-intro { display: none; }
.lux-intro__word { display: flex; overflow: hidden; font: 400 clamp(64px, 14vw, 200px)/1 var(--font-display); font-style: italic; letter-spacing: -0.04em; }
.lux-intro__word span { display: inline-block; transform: translateY(110%); animation: lux-up 1s var(--lux-ease) forwards; animation-delay: calc(var(--i) * 70ms + 150ms); }
.lux-intro__bar { position: absolute; left: 50%; bottom: 14vh; width: 120px; height: 1px; translate: -50% 0; background: rgba(246, 241, 231, .25); overflow: hidden; }
.lux-intro__bar::after { content: ""; position: absolute; inset: 0; background: var(--lux-cream); transform-origin: left; transform: scaleX(0); animation: lux-bar 1.25s var(--lux-ease) .2s forwards; }
@keyframes lux-up { to { transform: none; } }
@keyframes lux-bar { to { transform: scaleX(1); } }

/* ---------- nav transparente sobre la portada ---------- */
.nav { transition: background-color .5s var(--lux-ease), border-color .5s var(--lux-ease), color .5s var(--lux-ease); }
html.lux-top .nav { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html.lux-top .nav .nav__logo, html.lux-top .nav .nav__link, html.lux-top .nav .nav__toggle { color: #fff; }
html.lux-top .nav .mark { background-color: #fff; color: #fff; }
html.lux-top .nav .nav__toggle { border-color: rgba(255, 255, 255, .5); background: transparent; }

/* ---------- portada ---------- */
.hero.hero-lux { position: relative; height: 100svh; min-height: 620px; padding: 0 !important; overflow: hidden; background: #1d1712; color: #fff; display: block; }
.lux-hero__media { position: absolute; inset: 0; overflow: hidden; }
.lux-hero__img { position: absolute; inset: -6% 0 0 0; width: 100%; height: 112%; object-fit: cover; object-position: 50% 45%;
  transform: translate3d(0, var(--lux-py, 0px), 0) scale(1); will-change: transform; }
html.lux-js .lux-hero__img { transform: translate3d(0, var(--lux-py, 0px), 0) scale(1.14); transition: transform 2.6s var(--lux-ease); }
html.lux-js.lux-ready .lux-hero__img { transform: translate3d(0, var(--lux-py, 0px), 0) scale(1); }
.lux-hero__media::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, .45) 0%, rgba(20, 14, 10, 0) 26%, rgba(20, 14, 10, 0) 42%, rgba(20, 14, 10, .78) 100%); }
.lux-hero__inner { position: absolute; left: 50%; bottom: clamp(28px, 7vh, 84px); translate: -50% 0; width: min(100% - 2 * var(--gut), 1200px); z-index: 1; }
.lux-eyebrow { font: 500 13px/1.4 var(--font-text); letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .82); margin: 0 0 var(--s-5); }
.lux-h1 { font: 400 clamp(46px, 7.6vw, 128px)/.95 var(--font-display) !important; letter-spacing: -0.035em; color: #fff; margin: 0; max-width: 12ch; }
.lux-h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.lux-h1 .ln > span { display: inline-block; }
.lux-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-5) var(--s-7); margin-top: var(--s-7); }
.lux-lead { margin: 0; max-width: 38ch; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.lux-notice { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 var(--s-5); font-size: 14px; color: rgba(255, 255, 255, .9); }
.lux-notice::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #e9a27f; box-shadow: 0 0 0 4px rgba(233, 162, 127, .25); }
.hero-lux .btn--primary { background: var(--lux-cream) !important; color: var(--lux-ink) !important; border-color: var(--lux-cream) !important; }
.lux-scroll { position: absolute; left: 50%; translate: -50% 0; bottom: 18px; z-index: 1; display: grid; justify-items: center; gap: 10px;
  color: rgba(255, 255, 255, .8); font-size: 0; text-decoration: none; }
.lux-scroll::after { content: ""; width: 1px; height: 44px; background: linear-gradient(rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)); animation: lux-drip 2.2s var(--lux-ease) infinite; transform-origin: top; }
@keyframes lux-drip { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 639px) { .lux-scroll { display: none; } .lux-hero__foot .btn-row, .lux-hero__foot .btn { width: 100%; } }

/* entrada de la portada (después de la intro) */
html.lux-js .lux-h1 .ln > span { transform: translateY(105%); transition: transform 1.2s var(--lux-ease); transition-delay: calc(var(--i, 0) * 110ms + 120ms); }
html.lux-js .lux-eyebrow, html.lux-js .lux-lead, html.lux-js .lux-hero__foot .btn-row, html.lux-js .lux-notice, html.lux-js .lux-scroll {
  opacity: 0; transform: translateY(18px); transition: opacity 1s var(--lux-ease), transform 1s var(--lux-ease); transition-delay: var(--d, .5s); }
html.lux-js.lux-ready .lux-h1 .ln > span, html.lux-js.lux-ready .lux-eyebrow, html.lux-js.lux-ready .lux-lead,
html.lux-js.lux-ready .lux-hero__foot .btn-row, html.lux-js.lux-ready .lux-notice, html.lux-js.lux-ready .lux-scroll { opacity: 1; transform: none; }

/* ---------- revelados al entrar en pantalla ---------- */
.lux-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.lux-w > span { display: inline-block; }
html.lux-js [data-lux-split] .lux-w > span { transform: translateY(110%); transition: transform 1s var(--lux-ease); transition-delay: calc(var(--i, 0) * 45ms); }
html.lux-js [data-lux-split].is-in .lux-w > span { transform: none; }
html.lux-js [data-lux-fade] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--lux-ease), transform 1s var(--lux-ease); transition-delay: calc(var(--i, 0) * 90ms + 120ms); }
html.lux-js [data-lux-fade].is-in { opacity: 1; transform: none; }
html.lux-js [data-lux-img] { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--lux-move); transition-delay: calc(var(--i, 0) * 110ms); }
html.lux-js [data-lux-img] img { transform: scale(1.22); transition: transform 1.8s var(--lux-ease) !important; transition-delay: calc(var(--i, 0) * 110ms) !important; }
html.lux-js [data-lux-img].is-in { clip-path: inset(0 0 0 0); }
html.lux-js [data-lux-img].is-in img { transform: scale(1); }
@media (hover: hover) and (pointer: fine) { html.lux-js a.tile:hover [data-lux-img].is-in img { transform: scale(1.05); transition-duration: .9s !important; transition-delay: 0s !important; } }

/* ---------- ramos ---------- */
#ramos .tile__head h3 { font: 400 22px/1.2 var(--font-display); letter-spacing: -0.01em; }
#ramos .tile__price { font-size: 15px; color: var(--muted); }
#ramos .tile__media { border-radius: 2px; }
#ramos .tile__num { font: 400 13px/1 var(--font-text); color: var(--muted); letter-spacing: .08em; }

/* ---------- cinta de flores ---------- */
.lux-marquee { position: relative; overflow: hidden; padding: clamp(28px, 4vw, 56px) 0; background: var(--lux-ink); color: var(--lux-cream); }
.lux-marquee__track { display: flex; width: max-content; animation: lux-marq 46s linear infinite; }
.lux-marquee:hover .lux-marquee__track { animation-duration: 90s; }
.lux-marquee.is-paused .lux-marquee__track { animation-play-state: paused; }
.lux-marquee__item { display: inline-flex; align-items: center; gap: .45em; padding-right: .45em; white-space: nowrap;
  font: 400 clamp(44px, 7vw, 112px)/1 var(--font-display); font-style: italic; letter-spacing: -0.03em; }
.lux-marquee__item i { font-style: normal; color: #e9a27f; font-size: .5em; }
.lux-marquee__item .o { color: transparent; -webkit-text-stroke: 1px rgba(246, 241, 231, .6); }
@keyframes lux-marq { to { transform: translateX(-50%); } }
.lux-marquee__pause { position: absolute; right: var(--gut); bottom: 12px; z-index: 1; border: 1px solid rgba(246, 241, 231, .4); background: transparent; color: var(--lux-cream);
  font: 500 12px/1 var(--font-text); padding: 8px 12px; min-height: 32px; border-radius: 999px; cursor: pointer; }

/* ---------- frase grande ---------- */
#manana .mo-wh__text { font: 400 clamp(34px, 4.6vw, 76px)/1.08 var(--font-display) !important; letter-spacing: -0.025em; max-width: 22ch; }
#manana .mo-wh__text strong { font-style: italic; font-weight: 400; }

/* ---------- cursor propio ---------- */
.lux-cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  html.lux-js .lux-cursor { display: grid; place-items: center; position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none;
    width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--p-accent); color: #fff;
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0); transition: width .45s var(--lux-ease), height .45s var(--lux-ease), margin .45s var(--lux-ease), background-color .3s; }
  html.lux-js .lux-cursor span { opacity: 0; font: 500 13px/1 var(--font-text); letter-spacing: .04em; transition: opacity .25s; }
  html.lux-js .lux-cursor.is-big { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
  html.lux-js .lux-cursor.is-big span { opacity: 1; }
  html.lux-js .lux-cursor.is-hidden { opacity: 0; }
}

/* ---------- pie: el nombre sube letra por letra ---------- */
.close__word { font-family: var(--font-display) !important; font-style: italic; }
.close__word .lux-l { display: inline-block; }
html.lux-js .close__word .lux-l { transform: translateY(105%); transition: transform 1.2s var(--lux-ease); transition-delay: calc(var(--i, 0) * 60ms); }
html.lux-js .close__word.is-in .lux-l { transform: none; }

/* ---------- movimiento reducido: todo quieto y visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html.lux-js .lux-intro { display: none; }
  html.lux-js *, html.lux-js *::before, html.lux-js *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  html.lux-js [data-lux-img], html.lux-js [data-lux-img] img, html.lux-js [data-lux-fade], html.lux-js [data-lux-split] .lux-w > span,
  html.lux-js .lux-h1 .ln > span, html.lux-js .close__word .lux-l { clip-path: none !important; transform: none !important; opacity: 1 !important; }
  .lux-marquee__track { animation: none !important; }
}

/* ---------- pasos del pedido ---------- */
.order-steps .rows__name small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 4px; }
.order-steps li { padding-block: 14px; }

/* ---------- ramos: carrusel horizontal fijado al scroll ---------- */
.section.lux-ramos { height: auto !important; min-height: 0 !important; padding: 0 !important; }
.lux-ramos > .lux-ramos__pin { position: relative; height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(20px, 3.5vh, 44px);
  padding-top: var(--nav); overflow: hidden; }
.lux-ramos__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 48px; flex-wrap: wrap; }
.lux-ramos__head h2 { margin: 0; }
.lux-ramos__head p { margin: 0; max-width: 40ch; color: var(--ink); }
.lux-track { display: flex; align-items: flex-start; gap: clamp(16px, 2vw, 32px); width: max-content; padding-inline: max(var(--gut), calc(50vw - 600px)); will-change: transform; }
.lux-card { --cw: clamp(240px, min(27vw, 42vh), 420px); flex: none; width: var(--cw); display: grid; gap: 18px; color: inherit; text-decoration: none; }
.lux-card__media { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 2px; background: var(--p-surface); }
.lux-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--lux-ease); }
@media (hover: hover) and (pointer: fine) { .lux-card:hover .lux-card__media img { transform: scale(1.06); } }
.lux-card__meta { display: grid; gap: 6px; }
.lux-card__num { font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.lux-card__meta h3 { margin: 0; font: 400 clamp(22px, 1.8vw, 28px)/1.15 var(--font-display); letter-spacing: -0.015em; }
.lux-card__meta p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; max-width: 34ch; }
.lux-card__price { font-size: 15px; color: var(--ink); }
.lux-card--end { align-self: stretch; aspect-ratio: auto; place-content: center; justify-items: start; gap: 24px; padding: 40px; border: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); }
.lux-card__end { margin: 0; font: 400 clamp(26px, 2.2vw, 36px)/1.15 var(--font-display); font-style: italic; letter-spacing: -0.02em; }
.lux-ramos__bar { display: flex; }
.lux-progress { position: relative; display: block; width: 100%; height: 1px; background: color-mix(in srgb, var(--ink) 15%, transparent); }
.lux-progress i { position: absolute; inset: 0; background: var(--ink); transform-origin: left; transform: scaleX(0); }
/* sin GSAP (o movimiento reducido): el carrusel se desliza con el dedo o la rueda */
html:not(.lux-gsap) .lux-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
html:not(.lux-gsap) .lux-card { scroll-snap-align: start; }
html:not(.lux-gsap) .lux-ramos__bar { display: none; }
@media (max-width: 639px) { .lux-card { --cw: min(76vw, 46vh); } .lux-card--end { padding: 28px; } }

/* ---------- portada que se aleja (GSAP) ---------- */
html.lux-gsap .lux-hero__media { transform-origin: 50% 50%; will-change: transform, border-radius; }

/* la foto de la visita se mueve dentro de su marco */
#visit .pl-photo { overflow: hidden; border-radius: var(--r-lg); }
#visit .pl-photo > img { border-radius: 0; }
