/* =====================================================================
   Olea Stay · capa de movimiento (se carga después de web.css)
   Mismos colores y mismo contenido; aquí solo se añade vida.
   - Lo que depende de JS cuelga de html.mov (lo pone movimiento.js solo si GSAP cargó y no hay «reducir movimiento»).
   - Sin JS o con «reducir movimiento» la web se ve igual que la normal.
   ===================================================================== */

/* ---------- cambio de página: la nueva aparece poco a poco encima de la anterior (sin pasar por ningún color) ---------- */
@view-transition { navigation: auto; }
.cabecera { view-transition-name: cabecera; }
::view-transition-old(cabecera) { display: none; }
::view-transition-new(cabecera) { animation: none; }
::view-transition-group(root) { animation-duration: .45s; }
::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-entra .45s ease both; mix-blend-mode: normal; }
@keyframes vt-entra { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

/* ---------- Lenis (scroll suave) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* ---------- lo que no necesita JS: botones que se rellenan, subrayados que se dibujan, paneles que se abren ---------- */
.boton { transition: background-color .25s, color .25s, border-color .25s; }   /* el botón no se mueve: solo cambia de relleno */
.enlace-flecha { padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; }
.enlace-flecha:hover { background-size: 100% 1px; }

.panel:not([hidden]), .calendario:not([hidden]) { animation: panel-entra .4s var(--curva); transform-origin: top center; }
@keyframes panel-entra { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.cookies:not([hidden]) { animation: cookies-entra .9s var(--curva) .7s backwards; }
@keyframes cookies-entra { from { opacity: 0; transform: translateY(40px) scale(.96); } }

.whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ping 6s ease-out 3s infinite; pointer-events: none; }
@keyframes ping { 0% { transform: scale(1); opacity: .35; } 40%, 100% { transform: scale(1.3); opacity: 0; } }

.tarjeta-tipo { transition: transform .5s var(--curva), background-color .3s; }
.tarjeta:hover .tarjeta-tipo { transform: translateY(-3px); background: var(--arena); }
.tarjeta-precio strong { transition: color .3s; }
.tarjeta:hover .tarjeta-precio strong { color: var(--azul); }
.destino-texto { transition: transform .7s var(--curva); }
.destino:hover .destino-texto { transform: translateY(-8px); }
.contacto-caja { transition: background-color .3s; }
.contacto-caja:hover { background: var(--arena); }
.fila-flechas button { transition: background-color .3s; }

/* ---------- a partir de aquí, solo con JS y movimiento permitido ---------- */
.mov .revela { opacity: 1 !important; transform: none !important; transition: none; }
.mov .portada-img { animation: none; }
.mov .portada-texto, .mov .portada .buscador, .mov .capsula-fila { transition: none; }
.mov .con-intro .portada-texto, .mov .con-intro .portada .buscador { animation: none; opacity: 1; transform: none; }   /* la cápsula no: sigue escondida hasta que acaba la intro */
.mov .portada-texto p { opacity: .92; }
.mov .contacto-caja:hover { transform: none; }

/* titulares que suben palabra a palabra desde una máscara */
.mw { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .05em .2em; margin: -.1em -.05em -.2em; }
.mw-i { display: inline-block; }

/* fotos que se abren con una máscara y se mueven dentro de su marco */
.mov .partida-foto, .mov .banda-foto, .mov-marco { overflow: hidden; border-radius: var(--radio-l); }
.mov .partida-foto img, .mov .banda-foto img, .mov-marco img { border-radius: 0; }

/* brillo que sigue al ratón en las tarjetas */
.mov-brillo { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 55%); }
.mov-sobre .mov-brillo { opacity: 1; }
.tarjeta-foto, .destino { transform-style: flat; }

@media (prefers-reduced-motion: reduce) {
  .whatsapp::after, .panel:not([hidden]), .calendario:not([hidden]), .cookies:not([hidden]) { animation: none; }
}
