/* Prueba de efectos del perfil (solo en la copia). No toca perfil.css.
   Reveal de caja (clip-path + zoom-out) al entrar en pantalla y parallax continuo dentro de la caja. Sin opacidad.
   Referencias: efecto-reveal-tarjeta.html (inset(14% 8% 0) -> 0, 1.5 s; zoom 1.2 -> 1, 1.73 s; cubic-bezier(.16,1,.3,1))
   y efecto-parallax-scroll.html (GSAP ScrollTrigger, scrub .5). */

:root { --fx-ease: cubic-bezier(.16, 1, .3, 1); }

/* Caja de precio: solo aparece (sin la animación que la "dibuja" de arriba abajo) */
.intro--entra .ficha, .intro--entra .vitrina { animation: none; }

/* ---------- Fotos: envoltorios que crea el js (.fx-par = parallax, .fx-zoom = zoom del reveal) ---------- */
.fx-par { position: absolute; left: 0; right: 0; top: -13%; bottom: -13%; will-change: transform; pointer-events: none; }
.relato__lista .fx-par { top: -12%; bottom: -12%; }                /* paneles: sobrante 12 % por lado (recorrido máx. 9 % x 1.24 = 11.2 %); antes 19 % agrandaba la foto 1.38x y se pixelaba */
.videos .fx-par { top: -29%; bottom: -29%; }                      /* cajas bajas y anchas: más margen = más recorrido sin huecos (17.8 % x 1.58 = 28.1 %) */
@media (max-width: 700px) { .videos .fx-par { top: -26%; bottom: -26%; } }   /* celular: 16 % x 1.52 = 24.3 % */
.fx-par--c { top: 0; bottom: 0; pointer-events: auto; }          /* carrusel: mismo tamaño que el marco; se agranda con scale (GSAP) */
.fx-zoom { position: absolute; inset: 0; }

/* ---------- Reveal de caja (una sola pieza) ---------- */
.relato__lista { --fx-r: 20px; }
.acerca { --fx-r: 28px; }
@media (max-width: 980px) { .acerca { --fx-r: 22px; } }

.fx-listo .fx-caja:not(.fx-in):not(.fx-hecho) { clip-path: inset(14% 8% 0 round var(--fx-r, 0px)); }
.fx-listo .fx-caja:not(.fx-in):not(.fx-hecho) .fx-zoom { scale: 1.2; }
.fx-caja.fx-in { animation: fx-abre 1.5s var(--fx-ease) forwards; }
.fx-caja.fx-in .fx-zoom { animation: fx-zoom 1.73s var(--fx-ease) both; animation-delay: var(--fx-d, 0s); }
.fx-caja.fx-hecho { animation: none; clip-path: none; }
.fx-caja.fx-hecho .fx-zoom { animation: none; scale: 1; }
@keyframes fx-abre { from { clip-path: inset(14% 8% 0 round var(--fx-r, 0px)); } to { clip-path: inset(0 round var(--fx-r, 0px)); } }
@keyframes fx-abre-sombra { from { clip-path: inset(14% 8% 0 round var(--fx-r, 0px)); } to { clip-path: inset(-100px -100px -140px -100px round var(--fx-r, 0px)); } }
@keyframes fx-zoom { from { scale: 1.2; } to { scale: 1; } }

/* Cajas con sombra fuera del marco (carrusel, miniatura, hoja blanca, cinta de reseñas): el recorte termina por fuera */
.fx-caja--c.fx-in, .fx-caja--m.fx-in, .fx-caja--s.fx-in { animation-name: fx-abre-sombra; }

/* Hoja blanca: las 3 tarjetas suben en cascada (recorte desde abajo + translateY), sin opacidad */
.fx-listo .acerca.fx-caja:not(.fx-in):not(.fx-hecho) .datos > .dato { clip-path: inset(100% 0 0 0); transform: translateY(18px); }
.acerca.fx-caja.fx-in .datos > .dato { animation: fx-carta .9s var(--fx-ease) both; }
.acerca.fx-caja.fx-in .datos > .dato:nth-child(1) { animation-delay: .2s; }
.acerca.fx-caja.fx-in .datos > .dato:nth-child(2) { animation-delay: .3s; }
.acerca.fx-caja.fx-in .datos > .dato:nth-child(3) { animation-delay: .4s; }
@keyframes fx-carta { from { clip-path: inset(100% 0 0 0); transform: translateY(18px); } to { clip-path: inset(-10% -10% -10% -10%); transform: none; } }
/* (las notas olfativas ya entran en cascada por columna con la animación propia de perfil.css: .paso li span) */

/* ---------- Títulos de sección: entrada por recorte de línea ---------- */
.fx-titulo { transition: clip-path .9s var(--fx-ease), transform .9s var(--fx-ease); }
.fx-listo .fx-titulo:not(.fx-t-in) { clip-path: inset(0 0 100% 0); transform: translateY(14px); }
.fx-titulo.fx-t-in { clip-path: inset(-30% -5% -30% -5%); transform: none; }

/* ---------- Pantalla completa del carrusel: sin parallax ni zoom del efecto ---------- */
.vitrina-sala .fx-par, .vitrina-sala .fx-zoom { transform: none !important; scale: none !important; animation: none !important; }
.vitrina-sala .fx-par { top: 0; bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  .fx-caja, .fx-caja .fx-zoom, .fx-caja .dato { animation: none !important; clip-path: none !important; scale: 1 !important; transform: none !important; }
  .fx-par { transform: none !important; }
  .fx-titulo { clip-path: none !important; transform: none !important; transition: none; }
}


/* «Cómo se siente»: el desenfoque ya no se anima (era lo que escalonaba al abrir).
   Foto nítida debajo + copia quieta desenfocada encima que se destapa. En PC la foto tiene
   ancho fijo (el de la caja abierta), así ninguna capa se vuelve a dibujar mientras la caja crece. */
.relato__panel .fx-zoom > img { filter: none; will-change: transform; }
.relato__panel .fx-zoom > img.fx-velo { filter: grayscale(1) brightness(.6) blur(4px); will-change: transform, opacity;
  transition: transform 1.6s cubic-bezier(.22, 1, .36, 1), opacity 1.1s cubic-bezier(.22, 1, .36, 1); }
.relato__panel.abierto .fx-velo { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .relato__panel .fx-velo { transition: none; } }
.relato__panel .fx-zoom > img.fx-velo--hecho { filter: none; }   /* el desenfoque ya viene en la imagen */
.relato__panel.fx-velo-espera:not(.abierto) .fx-zoom > img:not(.fx-velo) { filter: grayscale(1) brightness(.6) blur(4px); }
