/* =====================================================================================================================
   clímax v3 — MOVIMIENTO (26-nov-2026). Portada con apertura, máscaras entre secciones, anillo de la hora, tarjetas de
   lo que incluye, ruta de reserva, marco de la tarjeta del precio y botón flotante de WhatsApp.
   Regla de todo este archivo: SIN animación (reducir movimiento, ahorro de datos, sin JavaScript) todo se ve completo y
   quieto. Nada queda escondido esperando una animación.
   ===================================================================================================================== */

/* ---------------------------------------------------------------- PORTADA «EL PASILLO» */
.cxp { position: relative; background: #0f0b09; color: #EFE6DA; overflow-x: clip; }
.cxp__fija { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; }
/* Con animación la portada mide en vh, igual que la escena de la película (100vh): así el arco a pantalla completa y la
   película quedan EXACTAMENTE una sobre otra. La película va montada debajo del último tramo de la portada (margen
   negativo) y la portada va encima (z-index): al terminar de entrar por el arco, la portada se oculta y debajo ya está la
   película en el mismo cuadro, fija, que sigue sin corte. */
.anim .cxp { height: 220vh; z-index: 3; background: transparent; }   /* transparente: si no, su oscuro tapa la película montada debajo */
.anim .cxp__fija { position: sticky; top: 0; height: 100vh; background: #0f0b09; }
.anim #inicio { margin-top: -100vh; }
.anim .cxp--dentro .cxp__fija { visibility: hidden; }
.cxp__medio, .cxp__zoom { position: absolute; inset: 0; overflow: hidden; }
.cxp__img, .cxp__gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cxp__img { object-fit: cover; object-position: 50% 15%; filter: brightness(.55) saturate(.9); }
.cxp__haz { position: absolute; top: -30%; bottom: -30%; left: -10%; right: -10%; display: none; pointer-events: none; mix-blend-mode: screen;
            background: linear-gradient(107deg, rgba(255, 204, 133, 0) 40%, rgba(255, 204, 133, .26) 49%, rgba(255, 214, 160, .32) 50%, rgba(255, 204, 133, .26) 51%, rgba(255, 204, 133, 0) 60%); }
.anim .cxp:not(.cxp--gl) .cxp__haz { display: block; }
.cxp__negro { position: absolute; inset: 0; background: #0f0b09; opacity: 0; pointer-events: none; }
.cxp__velo { position: absolute; inset: 0; pointer-events: none;
             background: radial-gradient(ellipse 75% 65% at 50% 48%, rgba(15, 11, 9, 0) 40%, rgba(15, 11, 9, .7) 100%); }
.cxp__polvo { position: absolute; inset: 0; pointer-events: none; display: none; }
.anim .cxp__polvo { display: block; }
.cxp__polvo i { position: absolute; width: 4px; height: 4px; border-radius: 50%; opacity: 0;
                background: radial-gradient(circle, rgba(255, 226, 178, .95), rgba(255, 226, 178, 0) 70%); }
.cxp__polvo i:nth-child(1) { left: 14%; top: 78%; } .cxp__polvo i:nth-child(2) { left: 27%; top: 64%; }
.cxp__polvo i:nth-child(3) { left: 38%; top: 86%; } .cxp__polvo i:nth-child(4) { left: 49%; top: 70%; }
.cxp__polvo i:nth-child(5) { left: 58%; top: 90%; } .cxp__polvo i:nth-child(6) { left: 66%; top: 60%; }
.cxp__polvo i:nth-child(7) { left: 74%; top: 82%; } .cxp__polvo i:nth-child(8) { left: 85%; top: 68%; }
.cxp__polvo i:nth-child(9) { left: 20%; top: 50%; } .cxp__polvo i:nth-child(10) { left: 80%; top: 46%; }
.cxp__polvo i:nth-child(11) { left: 45%; top: 56%; } .cxp__polvo i:nth-child(12) { left: 91%; top: 88%; }
.cxp__ui { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; }   /* encima del arco */
.cxp__centro { position: relative; text-align: center; padding: 0 1.2rem; }
.cxp__marca { margin: 0; font: 300 clamp(4.6rem, 19vw, 15rem)/.9 var(--f-titulo, Georgia, serif); letter-spacing: .14em; padding-left: .14em;
              color: #F1E7DA; text-shadow: 0 0 40px rgba(201, 168, 106, .35); }
.cxp__filo { display: block; width: min(64vw, 440px); height: 10px; margin: 1rem auto 0; overflow: visible; }
.cxp__filo path { fill: none; stroke: #C9A86A; stroke-width: 1; }
.cxp__filo circle { fill: #C9A86A; }
.cxp__sub { margin: 1rem 0 0; font: 400 .72rem/1.4 var(--f-texto, system-ui, sans-serif); letter-spacing: .5em; padding-left: .5em;
            text-transform: uppercase; color: #C9A86A; }
.cxp__micro { position: absolute; top: calc(var(--wg-alto-barra, 72px) + 1.1rem); margin: 0;
              font: 400 .6rem/1.3 var(--f-texto, system-ui, sans-serif); letter-spacing: .34em; text-transform: uppercase; color: rgba(233, 223, 211, .75); }
.cxp__micro--a { left: clamp(1rem, 4vw, 3rem); }
.cxp__micro--b { right: clamp(1rem, 4vw, 3rem); }
.cxp__baja { --cxp-linea: 1; position: absolute; bottom: clamp(1.2rem, 4vh, 2.4rem); bottom: calc(clamp(1.2rem, 4vh, 2.4rem) + (100vh - 100svh)); left: 50%; margin: 0; transform: translateX(-50%);
             font: 400 .6rem/1 var(--f-texto, system-ui, sans-serif); letter-spacing: .4em; padding-left: .4em; text-transform: uppercase; color: #C9A86A; }
.cxp__baja::after { content: ""; display: block; width: 1px; height: 2.4rem; margin: .7rem auto 0; background: linear-gradient(#C9A86A, transparent);
                    transform-origin: 50% 0; transform: scaleY(var(--cxp-linea)); }
/* La puerta del fondo: dentro CORRE la escena que sigue (los primeros cuadros de la película, en un lienzo); al bajar,
   la cámara entra por el arco y esa misma escena queda a pantalla completa. */
.cxp__puerta { position: absolute; inset: 0; z-index: 4; margin: 0; visibility: hidden; pointer-events: none; }
.cxp__dentro { position: absolute; inset: 0; transform-origin: 50% 50%; }
.cxp__dentro picture, .cxp__dentro img, .cxp__dentro canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.cxp__dentro img { object-fit: cover; object-position: 50% 50%; }
.cxp__puerta-velo { position: absolute; inset: 0; opacity: 0; pointer-events: none;
                    background: linear-gradient(to right, rgba(28,22,17,.72), rgba(28,22,17,0) 55%), linear-gradient(to top, rgba(28,22,17,.5), transparent 40%); }
@media (max-width: 819px), (max-width: 1099px) and (orientation: portrait) {
  .cxp__puerta-velo { background: linear-gradient(to top, rgba(28,22,17,.85), rgba(28,22,17,0) 55%); }
}
html:not(.anim) .cxp__puerta { display: none; }
/* Las dos hojas de la puerta y el monograma (apertura) */
.cxp__puertas { position: absolute; inset: 0; z-index: 6; display: none; pointer-events: none; }
.anim .cxp__puertas { display: block; }
.cxp__puertas[hidden] { display: none !important; }
.cxp__hoja { position: absolute; top: 0; bottom: 0; width: 50.6%;
             background: repeating-linear-gradient(90deg, rgba(201, 168, 106, .035) 0 1px, transparent 1px 9px),
                         linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .45)),
                         linear-gradient(90deg, #130e0a, #1b140f 70%, #0f0b09); }
.cxp__hoja--izq { left: 0; box-shadow: inset -1px 0 0 rgba(201, 168, 106, .22); }
.cxp__hoja--der { right: 0; box-shadow: inset 1px 0 0 rgba(201, 168, 106, .22); transform: scaleX(-1); }
.cxp__mono { position: absolute; left: 50%; top: 50%; width: min(52vw, 250px); height: auto; margin: calc(min(52vw, 250px) / -2) 0 0 calc(min(52vw, 250px) / -2);
             overflow: visible; }
.cxp__mono circle, .cxp__mono line { fill: none; stroke: #C9A86A; stroke-width: 1; stroke-linecap: round; }
.cxp__mono .mono__rayo { stroke-width: .8; opacity: .9; }
.cxp__mono .mono__c { font: italic 500 78px/1 var(--f-titulo, Georgia, serif); fill: #EADFCF; }
.cxp__costura { position: absolute; left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; overflow: visible; }
.cxp__costura line { stroke: #E2C489; stroke-width: 1.4; }
/* Plan B si el JavaScript llega tarde (CDN lento): las hojas se abren solas con CSS. Si llega a tiempo, manda GSAP. */
@keyframes cxpIzq { to { transform: translateX(-101%); } }
@keyframes cxpDer { to { transform: scaleX(-1) translateX(-101%); } }
@keyframes cxpFuera { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }
@keyframes cxpVer { from { opacity: 0; } to { opacity: 1; } }
/* El monograma se DIBUJA con el primer pintado, sin esperar al JavaScript (con red lenta el JavaScript llega a los
   1-3 s y la apertura no puede esperar a eso). Largos medidos: aro r=54 → 339,3; aro r=58,5 → 367,6; topes 20; rayos 16 y 8.
   Cuando llega GSAP, DrawSVG le pasa una luz alrededor del anillo y abre la puerta. La costura la dibuja GSAP; si el
   JavaScript tarda, aparece quieta a los 1,6 s. */
@keyframes cxpTrazo { to { stroke-dashoffset: 0; } }
@keyframes cxpLatido { 0%, 100% { opacity: .9; } 50% { opacity: .45; } }
.anim .cxp__mono .mono__aro--a { stroke-dasharray: 340; stroke-dashoffset: 340; animation: cxpTrazo 1s cubic-bezier(.45, 0, .2, 1) .12s forwards; }
.anim .cxp__mono .mono__aro--b { stroke-dasharray: 368; stroke-dashoffset: 368; animation: cxpTrazo 1.1s cubic-bezier(.45, 0, .2, 1) .22s forwards; }
.anim .cxp__mono .mono__tope { stroke-dasharray: 20; stroke-dashoffset: 20; animation: cxpTrazo .5s ease-out .3s forwards; }
.anim .cxp__mono .mono__rayo--l { stroke-dasharray: 16; stroke-dashoffset: 16; animation: cxpTrazo .45s ease-out .42s forwards, cxpLatido 2.4s ease-in-out 1.6s infinite; }
.anim .cxp__mono .mono__rayo--c { stroke-dasharray: 8; stroke-dashoffset: 8; animation: cxpTrazo .4s ease-out .58s forwards, cxpLatido 2.4s ease-in-out 2.8s infinite; }
.anim .cxp__mono .mono__c { opacity: 0; animation: cxpVer .8s ease .45s forwards; }
.cxp__mono .mono__brillo { fill: none; stroke: #F6E2AE; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 400; }
.anim .cxp__costura { opacity: 0; }
.anim .cxp__hoja--izq { animation: cxpIzq 1.1s cubic-bezier(.72, 0, .16, 1) 6s forwards; }
.anim .cxp__hoja--der { animation: cxpDer 1.1s cubic-bezier(.72, 0, .16, 1) 6s forwards; }
.anim .cxp__mono { animation: cxpFuera .5s ease 5.7s forwards; }
.anim .cxp__costura { animation: cxpVer .6s ease 1.6s forwards, cxpFuera .5s ease 5.7s forwards; }
.anim .cxp__puertas { animation: cxpFuera .01s linear 7.3s forwards; }
.cxp-js .cxp__hoja, .cxp-js .cxp__mono, .cxp-js .cxp__costura, .cxp-js .cxp__puertas { animation: none; }
.cxp-js .cxp__hoja--der { transform: scaleX(-1); }

/* ---------------------------------------------------------------- MÁSCARAS ENTRE SECCIONES (las pone motion.js) */
.portada-sec__regla { height: 2px; background: none; overflow: visible; }
.portada-sec__regla line { stroke: var(--ps-num); stroke-width: 1.2; }
.portada-sec { will-change: auto; }

/* ---------------------------------------------------------------- QUÉ INCLUYE: tarjetas (Flip) */
.inc-rejilla { list-style: none; padding: 0; margin: clamp(2.2rem, 6vw, 4rem) 0 0; display: grid; gap: clamp(.6rem, 1.6vw, 1.1rem);
               grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.inc { position: relative; min-width: 0; }
.inc.es-grande { grid-column: 1 / -1; order: -1; }
.inc__btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.inc__btn:focus-visible { outline: 2px solid var(--dorado-texto); outline-offset: 4px; border-radius: 16px; }
.inc__foto { position: relative; margin: 0; overflow: hidden; border-radius: 14px; background: #d8c9ba; aspect-ratio: 3 / 4; }
.inc.es-grande .inc__foto { aspect-ratio: 16 / 10; border-radius: 18px; }
.inc__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inc__foto--masaje img { object-position: 50% 40%; }
.inc__foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(145, 115, 70, .35); pointer-events: none; }
.inc__pie { display: flex; align-items: baseline; gap: .55rem; padding: .7rem .15rem 0; }
.inc__num { flex: none; font: 400 .7rem/1 var(--f-texto); letter-spacing: .2em; color: var(--dorado-texto); }
.inc__nombre { font: 500 clamp(1.05rem, 2.2vw, 1.5rem)/1.12 var(--f-titulo); }
.inc.es-grande .inc__nombre { font-size: clamp(1.9rem, 4.6vw, 3rem); }
.inc__nota { display: none; margin: .35rem 0 0; padding: 0 .15rem; font-size: .95rem; color: var(--tinta-suave); }
.inc.es-grande .inc__nota { display: block; }
.inc__btn[aria-pressed="false"] .inc__foto img { filter: saturate(.85) brightness(.96); }
.inc-pista { margin: 1rem 0 0; font: 400 .72rem/1.4 var(--f-texto); letter-spacing: .2em; text-transform: uppercase; color: var(--dorado-texto); }
html:not(.anim) .inc-pista { display: none; }
@media (min-width: 820px) {
  .inc-rejilla { grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); }
  .inc.es-grande { grid-column: auto; }
  .inc.es-grande .inc__foto { aspect-ratio: 4 / 3; }
}
/* sin animación: las cuatro iguales, quietas (nadie tiene que tocar nada para verlas) */
html:not(.anim) .inc-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html:not(.anim) .inc.es-grande { grid-column: auto; order: 0; }
html:not(.anim) .inc.es-grande .inc__foto { aspect-ratio: 3 / 4; }
html:not(.anim) .inc .inc__nota { display: block; }
html:not(.anim) .inc.es-grande .inc__nombre { font-size: clamp(1.05rem, 2.2vw, 1.5rem); }
@media (min-width: 820px) { html:not(.anim) .inc-rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------- LA HORA: el anillo de 60 minutos */
.cxf__reloj { position: relative; display: grid; place-items: center; width: min(76vw, 52vh, 500px); aspect-ratio: 1; margin: 0 auto; }
.cxf__anillo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.cxf__aro-base { fill: none; stroke: rgba(233, 223, 211, .14); stroke-width: .6; }
.cxf__aro { fill: none; stroke: #C9A86A; stroke-width: 1.2; stroke-linecap: round; }
.cxf__marcas line { stroke: rgba(233, 223, 211, .38); stroke-width: .7; }
.cxf__marcas line.cinco { stroke: #C9A86A; stroke-width: 1.1; }
.cxf__aguja { fill: #F1E7DA; }
.cxf__reloj .cxf__num { position: relative; }
.cxf__reloj .cxf__num, .cxf__reloj .cxf__unidad { grid-area: 1 / 1; }
.cxf__reloj .cxf__unidad { align-self: end; margin-bottom: 22%; }
.cxf__reloj .cxf__num { font-size: clamp(5.6rem, 22vw, 12rem); align-self: center; margin-top: -6%; }
.cxf__precio { margin: clamp(1rem, 2.6vw, 1.6rem) 0 0; font: 400 .7rem/1.3 var(--f-texto, system-ui, sans-serif); letter-spacing: .34em; padding-left: .34em;
               text-transform: uppercase; color: #C9A86A; }
.cxf__precio b { display: inline-block; margin-right: .4em; font: 500 1.5rem/1 var(--f-titulo, Georgia, serif); letter-spacing: .06em; color: #F1E7DA; vertical-align: -.12em; }
.cxf--vivo { background: transparent; }   /* el iris se abre sobre el color de la página, no sobre su propio oscuro */
.cxf--vivo .cxf__frase { margin-top: clamp(1rem, 3vh, 2rem); }
@media (max-width: 599px) { .cxf--vivo .cxf__micro--c { bottom: calc(5.4rem + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 819px) { .cxf--vivo .cxf__frase { font-size: clamp(1.5rem, 6.4vw, 2.2rem); } }

/* ---------------------------------------------------------------- CÓMO RESERVAR: la ruta de 3 pasos */
.ruta { position: relative; }
.ruta__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.ruta__base { fill: none; stroke: rgba(145, 115, 70, .28); stroke-width: 1; stroke-dasharray: 2 5; }
.ruta__linea { fill: none; stroke: #917346; stroke-width: 1.6; stroke-linecap: round; }
.ruta__punto { position: absolute; left: 0; top: 0; z-index: 2; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #917346;
               box-shadow: 0 0 0 5px rgba(145, 115, 70, .18), 0 0 18px rgba(145, 115, 70, .55); visibility: hidden; pointer-events: none; }
.ruta--viva .ruta__punto { visibility: visible; }
.ruta .pasos { position: relative; z-index: 1; }
.ruta .pasos li { position: relative; border-top: 0; padding-top: 0; padding-left: 3.6rem; min-height: 3rem; }
.ruta .pasos li::before { position: absolute; left: 0; top: -.2rem; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin: 0;
                          border: 1px solid rgba(145, 115, 70, .6); border-radius: 50%; background: var(--crema-clara);
                          font: 500 1.05rem/1 var(--f-titulo); color: var(--dorado); transition: background-color .45s, color .45s, border-color .45s; }
.ruta .pasos li.llego::before, html:not(.anim) .ruta .pasos li::before { background: #917346; border-color: #917346; color: #F6F0E8; }
.ruta .pasos { gap: clamp(1.6rem, 5vw, 2.6rem); }
@media (min-width: 820px) {
  .ruta .pasos li { padding-left: 0; padding-top: 3.8rem; }
  .ruta .pasos li::before { top: 0; }
}

/* ---------------------------------------------------------------- 60 MINUTOS: el marco de la tarjeta se dibuja */
.tarjeta { position: relative; }
.tarjeta__marco { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; display: none; }
.tarjeta__marco rect { fill: none; stroke: #917346; stroke-width: 1.2; }
.anim .tarjeta.con-marco { border-color: transparent; }
.anim .tarjeta.con-marco .tarjeta__marco { display: block; }
.tarjeta__precio .char { display: inline-block; }

/* ---------------------------------------------------------------- LÍNEA DE ORO bajo cada capítulo de la película */
.cap__linea { display: block; width: min(12rem, 46%); height: 2px; margin-top: 1rem; overflow: visible; }
.cap__linea line { stroke: #C9A86A; stroke-width: 1.4; }

/* ---------------------------------------------------------------- BOTÓN FLOTANTE DE WHATSAPP (fuera del envoltorio) */
.wa-flota { position: fixed; z-index: 880; right: clamp(.9rem, 3vw, 1.6rem); bottom: calc(clamp(.9rem, 3vw, 1.6rem) + env(safe-area-inset-bottom, 0px));
            display: inline-flex; align-items: center; gap: .55rem; height: 54px; padding: 0 1.1rem 0 .95rem; border-radius: 999px; text-decoration: none;
            background: #1C1611; color: #F3EADF; box-shadow: 0 10px 30px rgba(28, 22, 17, .35), inset 0 0 0 1px rgba(201, 168, 106, .45);
            font: 500 .72rem/1 var(--f-texto); letter-spacing: .14em; text-transform: uppercase;
            transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .35s, visibility 0s linear 0s; }
.wa-flota svg { width: 22px; height: 22px; fill: #C9A86A; flex: none; }
.wa-flota::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(201, 168, 106, .5); pointer-events: none; }
.anim .wa-flota:not(.ver) { transform: translateY(140%); opacity: 0; visibility: hidden; transition: transform .45s, opacity .35s, visibility 0s linear .45s; }
.anim .wa-flota.ver::before { animation: waLatido 2.8s ease-out 1s infinite; }
@keyframes waLatido { 0% { box-shadow: 0 0 0 0 rgba(201, 168, 106, .45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(201, 168, 106, 0); } }
@media (max-width: 599px) { .wa-flota { width: 54px; padding: 0; justify-content: center; } .wa-flota span { position: absolute; left: -9999px; } }
@media (prefers-reduced-motion: reduce) { .wa-flota::before { animation: none !important; } }

/* ---------------------------------------------------------------- ScrollSmoother (escritorio con ratón) */
.wg-suave .ss-fijo { position: relative !important; top: auto !important; }

/* ---------------------------------------------------------------- El pie conserva su crema (al acercarse el anexo la
   página entera se vuelve azul marino; sin esto el texto oscuro del pie quedaba sobre azul) */
.anim .pie[data-wg-fondo] { background: var(--sec-fondo); color: var(--sec-tinta); }

/* ---------------------------------------------------------------- Simulador de WhatsApp: atajo tocado mientras se
   escribe la respuesta = queda EN ESPERA (se ve marcado y se pregunta al terminar) */
#anexo .cx-tel__chips button.cx-en-cola { border-style: dashed; background: #EAF4F1; opacity: .8; }
