﻿/* ═══════════════════════════════════════════════════════════════
   SANLILAS — Animations Library
   Keyframes y clases de animación premium reutilizables
   ═══════════════════════════════════════════════════════════════ */

/* ─── Floating ─── */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-15px) rotate(1deg); }
  66% { transform: translateY(8px) rotate(-1deg); }
}

@keyframes float-horizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}

/* ─── Glow & Shimmer ─── */
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; filter: blur(40px); }
  50% { opacity: 0.8; filter: blur(60px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes light-sweep {
  0% { left: -100%; }
  100% { left: 200%; }
}

@keyframes glass-refraction {
  0%, 100% { 
    background-position: 0% 50%;
    filter: hue-rotate(0deg);
  }
  50% { 
    background-position: 100% 50%;
    filter: hue-rotate(15deg);
  }
}

/* ─── Scale & Reveal ─── */
@keyframes scale-in {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes scale-out {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.1); opacity: 0; }
}

@keyframes blur-in {
  from { filter: blur(20px); opacity: 0; transform: scale(1.05); }
  to { filter: blur(0); opacity: 1; transform: scale(1); }
}

@keyframes mask-reveal-up {
  from { clip-path: inset(100% 0 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes mask-reveal-left {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes mask-reveal-center {
  from { clip-path: inset(50% 50% 50% 50%); }
  to { clip-path: inset(0 0 0 0); }
}

/* ─── Rotate & Spin ─── */
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* ─── Gradient Animation ─── */
@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes gradient-flow {
  0% { background-position: 0% 0%; }
  50% { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

/* ─── Ripple ─── */
@keyframes ripple {
  0% { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(4); opacity: 0; }
}

/* ─── Draw SVG ─── */
@keyframes draw-line {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* ─── Breathe ─── */
@keyframes breathe {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.03); opacity: 1; }
}

/* ─── Slide Entrances ─── */
@keyframes slide-up {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-down {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-left {
  from { transform: translateX(100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-right {
  from { transform: translateX(-100px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Fade ─── */
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ─── Parallax Layer Classes ─── */
.parallax-slow { will-change: transform; }
.parallax-medium { will-change: transform; }
.parallax-fast { will-change: transform; }

/* ─── Ken Burns cinematográfico (fallback de video) ─── */
@keyframes ken-burns {
  0% { transform: scale(1.02) translate(0, 0); }
  100% { transform: scale(1.14) translate(-1.2%, 1.4%); }
}

/* ─── Orbs aurora del hero ─── */
@keyframes hero-orb-float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4vw, 3vh) scale(1.12); }
  100% { transform: translate(-3vw, -2vh) scale(0.96); }
}

/* ─── Línea del indicador de scroll ─── */
@keyframes scroll-line-drop {
  0% { top: -100%; }
  55%, 100% { top: 100%; }
}

/* ─── Bokeh flotante (lookbook / secciones) ─── */
@keyframes bokeh-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate3d(3vw, -4vh, 0) scale(1.2); opacity: 0.8; }
  100% { transform: translate3d(-2vw, 2vh, 0) scale(0.9); opacity: 0.5; }
}

@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5vw, -4vh) scale(1.15); }
}

/* ─── Animation utility classes ─── */
.anim-float { animation: float 6s ease-in-out infinite; }
.anim-float-slow { animation: float-slow 8s ease-in-out infinite; }
.anim-float-h { animation: float-horizontal 7s ease-in-out infinite; }
.anim-glow { animation: glow-pulse 4s ease-in-out infinite; }
.anim-rotate { animation: rotate-slow 20s linear infinite; }
.anim-rotate-rev { animation: rotate-reverse 25s linear infinite; }
.anim-breathe { animation: breathe 5s ease-in-out infinite; }
.anim-gradient { 
  background-size: 200% 200%;
  animation: gradient-shift 8s ease-in-out infinite; 
}

.anim-shimmer {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* ─── Delay utilities ─── */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-700 { animation-delay: 0.7s; }
.delay-1000 { animation-delay: 1s; }
.delay-1500 { animation-delay: 1.5s; }
.delay-2000 { animation-delay: 2s; }

/* ─── Image hover effects ─── */
.img-reveal {
  overflow: hidden;
  position: relative;
}

.img-reveal img {
  transition: transform 1.2s var(--ease-out-expo);
}

.img-reveal:hover img {
  transform: scale(1.08);
}

.img-reveal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(var(--chocolate-rgb), 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.6s;
}

.img-reveal:hover::after {
  opacity: 1;
}

/* ─── Magnetic button effect helper ─── */
.magnetic {
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: transform 0.35s var(--ease-out-expo);
}

/* ─── Split text animation helper ─── */
.split-text .char,
.split-text .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.6s var(--ease-out-expo),
              transform 0.6s var(--ease-out-expo);
}

.split-text.is-visible .char,
.split-text.is-visible .word {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Line decoration ─── */
.line-draw {
  position: relative;
}

.line-draw::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--terracota));
  transition: width 1s var(--ease-out-expo);
}

.line-draw.is-visible::after {
  width: 100%;
}

/* ─── Perspective card tilt ─── */
.tilt-card {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.tilt-card__inner {
  transition: transform 0.6s var(--ease-out-expo);
  transform-style: preserve-3d;
}
