/*
 * Calzados Sonia V16.0 · Primavera equilibrada con profundidad delicada
 * Efectos decorativos locales y progresivos. No modifica la fotografía original.
 * Capas: fondo -> luz -> protagonista -> pétalos -> flores -> contenido accesible.
 */
.hero {
  --hero-pointer-x: 0px;
  --hero-pointer-y: 0px;
  position: relative;
  z-index: 2;
  isolation: isolate;
  overflow: visible;
}
.hero .banner-photo { z-index: 0; }
.hero::after { z-index: 1; }
.hero-person-depth {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  user-select: none;
  transform: translate3d(var(--hero-pointer-x), var(--hero-pointer-y), 0);
  transition: transform 1100ms cubic-bezier(.22,.7,.18,1);
  will-change: transform;
}
.hero-person {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  filter: drop-shadow(3px 7px 6px rgb(61 41 44 / .24));
  transform: translate3d(0, 0, 0);
  animation: sonia-portrait-float 10.8s ease-in-out infinite;
  will-change: transform;
}
@keyframes sonia-portrait-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1px, -2px, 0); }
  50% { transform: translate3d(1.5px, -4px, 0); }
  75% { transform: translate3d(2px, -1.5px, 0); }
}
.hero:hover .hero-person {
  filter: drop-shadow(4px 8px 6px rgb(61 41 44 / .26));
}
.hero-petals,
.hero-blooms {
  position: absolute;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
.hero-petals { z-index: 3; overflow: hidden; }
.hero-blooms { z-index: 4; overflow: visible; }
.hero-petal {
  position: absolute;
  top: var(--petal-top, -12%);
  left: var(--petal-left);
  width: max(12px, var(--petal-size, 15px));
  height: calc(max(12px, var(--petal-size, 15px)) * 1.35);
  opacity: 0;
  filter: drop-shadow(1px 2px 2px rgb(95 41 59 / .24));
  will-change: transform, opacity;
  animation: sonia-petal-fall var(--petal-duration, 15s) linear infinite;
  animation-delay: var(--petal-delay, 0s);
}
@keyframes sonia-petal-fall {
  0%   { opacity: 0; transform: translate3d(0, -18px, 0) rotate(-36deg) rotateY(5deg); }
  10%  { opacity: .76; }
  30%  { transform: translate3d(calc(var(--petal-drift) * .3), 125px, 0) rotate(50deg) rotateY(80deg); }
  55%  { opacity: .84; transform: translate3d(calc(var(--petal-drift) * -.2), 270px, 0) rotate(155deg) rotateY(145deg); }
  80%  { opacity: .66; }
  100% { opacity: 0; transform: translate3d(var(--petal-drift), min(550px, 59vw), 0) rotate(350deg) rotateY(195deg); }
}
.hero-bloom {
  position: absolute;
  height: auto;
  filter: drop-shadow(1px 6px 6px rgb(128 35 65 / .2));
  opacity: .93;
  will-change: transform;
  transform-origin: center;
  animation: sonia-bloom-sway 8.7s ease-in-out infinite alternate;
}
.hero-bloom-one { width: clamp(54px, 6.4vw, 99px); top: -7.5%; left: 9.2%; animation-duration: 9.8s; }
.hero-bloom-two { width: clamp(48px, 5.3vw, 88px); top: 13%; right: 0.8%; animation-duration: 12s; animation-delay: -3.2s; }
.hero-bloom-three { width: clamp(62px, 7.8vw, 117px); bottom: -8%; right: 2.3%; animation-duration: 11.6s; animation-delay: -2.1s; }
.hero-bloom-four { width: clamp(34px, 3.8vw, 62px); bottom: 10%; left: 0; opacity: .9; animation-duration: 7.6s; animation-delay: -4s; }
.hero-bloom-five { width: clamp(43px, 5vw, 78px); top: -6%; left: 43%; animation-duration: 10.8s; animation-delay: -2.8s; }
@keyframes sonia-bloom-sway {
  0% { transform: translate3d(-2px, 3px, 0) rotate(-11deg) scale(.97); }
  50% { transform: translate3d(3px, -4px, 0) rotate(4deg) scale(1.01); }
  100% { transform: translate3d(-2px, -9px, 0) rotate(12deg) scale(.985); }
}
.hero .hero-copy {
  z-index: 5;
  isolation: isolate;
}
.hero-copy h1 {
  position: relative;
  text-shadow: 0 2px 5px rgb(255 250 242 / .85);
}
.hero-title-line {
  animation: sonia-title-arrival 1.05s cubic-bezier(.17,.82,.25,1) both;
}
.hero-title-first { animation-delay: .18s; }
.hero-title-second { animation-delay: .42s; }
@keyframes sonia-title-arrival {
  from { opacity: 0; transform: translate3d(0, 23px, 0) rotate(-1deg); filter: blur(3px); }
  to { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); filter: blur(0); }
}
.hero-copy h1 em {
  color: #db126d;
  background: linear-gradient(115deg, #dc126c 0%, #e7207b 32%, #ffb7d5 47%, #e7207b 58%, #dc126c 100%);
  background-size: 250% 100%;
  background-position: 100% 50%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: sonia-script-glimmer 9s linear 2.2s infinite;
}
@keyframes sonia-script-glimmer {
  0%, 13%, 100% { background-position: 100% 50%; }
  27%, 87% { background-position: 0% 50%; }
}
.hero-copy h1 em::after { transform-origin: left center; animation: sonia-marker-draw 1s cubic-bezier(.16,.7,.29,1) .9s both; }
@keyframes sonia-marker-draw { from { opacity: 0; transform: rotate(-7deg) scaleX(.12); } to { opacity: 1; transform: rotate(-7deg) scaleX(1); } }
.hero-copy > p,
.hero-copy > .button {
  animation: sonia-copy-fade .85s ease both;
}
.hero-copy > p { animation-delay: .75s; }
.hero-copy > .button { animation-delay: .98s; }
@keyframes sonia-copy-fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero-copy .button.pink {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 5px 15px rgb(179 8 82 / .23), inset 0 1px 0 rgb(255 255 255 / .27);
  transition: box-shadow 250ms ease, background 250ms ease, translate 250ms ease;
}
.hero-copy .button.pink::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -40% auto -40% -72%;
  width: 37%;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .34), transparent);
  transform: skewX(-22deg);
  animation: sonia-button-shine 8s ease-in-out 2.6s infinite;
}
.hero-copy .button.pink:hover { translate: 0 -2px; box-shadow: 0 8px 20px rgb(179 8 82 / .3); }
@keyframes sonia-button-shine { 0%, 73%, 100% { left: -72%; } 87% { left: 135%; } }
.hero-sparkles {
  position: absolute;
  z-index: -1;
  inset: -14% -7% -9%;
  pointer-events: none;
}
.hero-spark {
  position: absolute;
  left: var(--spark-x);
  top: var(--spark-y);
  width: var(--spark-size, 14px);
  height: var(--spark-size, 14px);
  background: var(--spark-color, #f9c858);
  clip-path: polygon(50% 0, 60% 36%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 38%);
  filter: drop-shadow(0 0 5px rgb(255 255 255 / .6));
  opacity: 0;
  animation: sonia-star-twinkle var(--spark-duration, 3.8s) ease-in-out infinite;
  animation-delay: var(--spark-delay, 0s);
  transform-origin: center;
}
@keyframes sonia-star-twinkle {
  0%, 18%, 55%, 100% { opacity: 0; transform: scale(.2) rotate(0); }
  30% { opacity: .92; transform: scale(1.07) rotate(32deg); }
  42% { opacity: .64; transform: scale(.55) rotate(60deg); }
}
.hero-spark-one { --spark-x: 11%; --spark-y: 9%; --spark-size: 17px; --spark-color: #ffd36e; --spark-duration: 4.1s; --spark-delay: -.9s; }
.hero-spark-two { --spark-x: 75%; --spark-y: 6%; --spark-size: 12px; --spark-color: #ff9fcf; --spark-duration: 5.2s; --spark-delay: -3s; }
.hero-spark-three { --spark-x: 88%; --spark-y: 38%; --spark-size: 20px; --spark-color: #fff2a4; --spark-duration: 3.9s; --spark-delay: -1.4s; }
.hero-spark-four { --spark-x: 23%; --spark-y: 73%; --spark-size: 10px; --spark-color: #ffc4e0; --spark-duration: 4.8s; --spark-delay: -3.5s; }
.hero-spark-five { --spark-x: 95%; --spark-y: 76%; --spark-size: 9px; --spark-color: #fff6c6; --spark-duration: 3.5s; --spark-delay: -1.1s; }
.hero-spark-six { --spark-x: 38%; --spark-y: 5%; --spark-size: 9px; --spark-color: #f6b9d0; --spark-duration: 6s; --spark-delay: -2.1s; }
.hero-spark-seven { --spark-x: 55%; --spark-y: 69%; --spark-size: 13px; --spark-color: #ffe396; --spark-duration: 5.4s; --spark-delay: -4s; }
.hero-spark-eight { --spark-x: 3%; --spark-y: 44%; --spark-size: 10px; --spark-color: #fff2ad; --spark-duration: 4.8s; --spark-delay: -2.2s; }
/* Ocultar trabajo de animación fuera de pantalla para ahorrar recursos. */
.hero.spring-ready:not(.hero-active) .hero-person,
.hero.spring-ready:not(.hero-active) .hero-petal,
.hero.spring-ready:not(.hero-active) .hero-bloom,
.hero.spring-ready:not(.hero-active) .hero-spark,
.hero.spring-ready:not(.hero-active) .hero-copy h1 em,
.hero.spring-ready:not(.hero-active) .hero-copy .button.pink::after { animation-play-state: paused; }
@media (max-width: 900px) {
  .hero { overflow: hidden; }
  /* Fondo y recorte comparten el mismo encuadre móvil, de modo que la
     silueta sigue alineada también en tablet y teléfono. */
  .hero-person-depth { inset: 0 0 auto; width: 100%; height: 285px; }
  .hero-person { object-fit: cover; object-position: 8% center; }
  .hero-blooms { height: 285px; }
  .hero-bloom-one { width: 58px; left: 4%; top: -10px; }
  .hero-bloom-two { width: 48px; right: -13px; top: 50px; }
  .hero-bloom-three { width: 70px; right: 3%; bottom: -23px; }
  .hero-bloom-four { width: 41px; bottom: 15px; left: -9px; }
  .hero-bloom-five { width: 39px; top: 103px; left: -13px; }
  .hero-bloom-six { width: 45px; bottom: -10px; left: 46%; }
  .hero-petals { height: 285px; }
  .hero .hero-copy { z-index: 5; }
  .hero-sparkles { inset: -5% 2% 2%; }
}
@media (max-width: 560px) {
  .hero-bloom-one { width: 49px; }
  .hero-bloom-three { width: 62px; }
  .hero-bloom-four { width: 35px; }
  .hero-bloom-five { width: 33px; top: 120px; }
  .hero-bloom-six { width: 40px; }
  .hero-spark-one, .hero-spark-three, .hero-spark-seven { --spark-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .hero *::before, .hero *::after { animation: none !important; transition: none !important; }
  .hero-petals, .hero-sparkles { display: none; }
  .hero-person, .hero-person-depth { transform: none !important; }
  .hero-title-line, .hero-copy > p, .hero-copy > .button { opacity: 1; filter: none; transform: none; }
  .hero-copy h1 em { background: none; -webkit-text-fill-color: #db126d; }
  .hero-copy h1 em::after { opacity: 1; transform: rotate(-7deg) scaleX(1); }
}
