/* ================================================================
   FREECLIP.WIN — Viral Visual System v2.0
   MÁXIMO IMPACTO VISUAL: Aurora · Neon · Morph · Typing · Glow
================================================================ */

/* ── Canvas de partículas ── */
#heroCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── AURORA MESH BACKGROUND — efecto gradiente vivo que se mueve ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(168,85,247,0.22) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 80%, rgba(6,182,212,0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 70% at 50% 50%, rgba(244,63,94,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: auroraShift 18s ease-in-out infinite alternate;
}
@keyframes auroraShift {
  0%   { opacity: 0.7; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1;   transform: scale(1.08) rotate(1deg); }
  100% { opacity: 0.8; transform: scale(1.03) rotate(-1deg); }
}

/* ── Orbes flotantes intensos ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  animation: orbFloat 14s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(168,85,247,0.28) 0%, transparent 70%);
  top: -200px; left: -150px;
  animation-delay: 0s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.22) 0%, transparent 70%);
  bottom: -120px; right: -100px;
  animation-delay: -5s;
}
.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(244,63,94,0.14) 0%, transparent 70%);
  top: 35%; left: 45%;
  animation-delay: -10s;
}
.orb-4 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  top: 20%; right: 15%;
  animation-delay: -3s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(25px, -35px) scale(1.06); }
  50%       { transform: translate(-15px, 20px) scale(0.94); }
  75%       { transform: translate(30px, 10px) scale(1.03); }
}

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 9px 20px;
  background: rgba(168,85,247,0.04);
  border-bottom: 1px solid rgba(168,85,247,0.1);
  position: relative;
  z-index: 2;
  backdrop-filter: blur(8px);
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}
.stat-item strong { color: #94a3b8; }

/* ── HERO SECTION — impacto máximo ── */
.freeclip-hero {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 48px 20px 28px;
  max-width: 900px;
  margin: 0 auto;
}

/* Badge pulsante con brillo ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(168,85,247,0.18), rgba(6,182,212,0.1));
  border: 1px solid rgba(168,85,247,0.4);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 800;
  color: #d8b4fe;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 22px;
  animation: badgePulse 2.8s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(168,85,247,0.15);
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 20px rgba(168,85,247,0.15), 0 0 0 0 rgba(168,85,247,0.3); }
  50%       { box-shadow: 0 0 30px rgba(168,85,247,0.3), 0 0 0 10px rgba(168,85,247,0); }
}

/* Título con gradiente vivo y typing ── */
.hero-title {
  font-size: clamp(30px, 5.5vw, 62px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 30%, #a855f7 55%, #06b6d4 80%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 5s ease infinite;
  background-size: 300% 300%;
  text-shadow: none;
  filter: drop-shadow(0 0 40px rgba(168,85,247,0.3));
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-sub {
  font-size: clamp(15px, 2.5vw, 19px);
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.hero-sub strong { color: #e2e8f0; }

/* ── Contador animado ── */
.viral-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(16,185,129,0.1), rgba(6,182,212,0.06));
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 700;
  color: #34d399;
  margin-bottom: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(16,185,129,0.08);
}
.viral-counter:hover {
  background: linear-gradient(135deg, rgba(16,185,129,0.16), rgba(6,182,212,0.1));
  box-shadow: 0 0 35px rgba(16,185,129,0.2);
  transform: scale(1.02);
}
.counter-dot {
  width: 9px; height: 9px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
  animation: counterBlink 1.2s ease-in-out infinite;
}
@keyframes counterBlink {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #10b981; }
  50%       { opacity: 0.3; box-shadow: 0 0 2px #10b981; }
}
.counter-num {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
}

/* ── BEFORE / AFTER DEMO — LA QUE ENTRA POR LOS OJOS ── */
.hero-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 28px auto 8px;
  max-width: 640px;
  flex-wrap: wrap;
}
.demo-phone {
  position: relative;
  width: 120px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(168,85,247,0.4),
    0 0 40px rgba(168,85,247,0.25),
    0 20px 60px rgba(0,0,0,0.5);
  animation: phoneBob 3s ease-in-out infinite;
}
.demo-phone:nth-child(3) { animation-delay: -1.5s; }
@keyframes phoneBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%       { transform: translateY(-12px) rotate(1deg); }
}
.demo-phone-screen {
  background: linear-gradient(180deg, #1a0030 0%, #080c14 50%, #001a0f 100%);
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 12px 8px;
}
.demo-phone-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(168,85,247,0.15), rgba(6,182,212,0.1));
  animation: phoneBgPulse 4s ease-in-out infinite;
}
@keyframes phoneBgPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1; }
}
.demo-arrow {
  font-size: 28px;
  color: rgba(168,85,247,0.6);
  animation: arrowPulse 1.5s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.3); opacity: 1; }
}
.demo-label {
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  color: #64748b;
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.demo-label.after { color: #a855f7; }
.demo-platform-icon {
  font-size: 24px;
  animation: iconSpin 6s linear infinite;
}
@keyframes iconSpin {
  0%   { content: '📱'; }
}

/* ── Feature pills en hero ── */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.hero-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: default;
}
.hero-pill:hover {
  background: rgba(168,85,247,0.12);
  border-color: rgba(168,85,247,0.45);
  color: #e9d5ff;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 20px rgba(168,85,247,0.2);
}

/* ── GLOW NEON en cards ── */
.step-card {
  animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  transition: box-shadow 0.3s, transform 0.3s;
}
.step-card:nth-child(1) { animation-delay: 0.05s; }
.step-card:nth-child(2) { animation-delay: 0.12s; }
.step-card:nth-child(3) { animation-delay: 0.19s; }
.step-card:nth-child(4) { animation-delay: 0.26s; }
@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(168,85,247,0.35),
    0 12px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(168,85,247,0.12) !important;
}

/* ── Botón CORTAR VIDEO — shimmer + glow ── */
.btn-process {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-process::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  animation: shimmer 2.2s ease-in-out infinite;
}
.btn-process:hover {
  transform: translateY(-2px) scale(1.01) !important;
  box-shadow: 0 0 30px rgba(168,85,247,0.4), 0 8px 25px rgba(0,0,0,0.3) !important;
}
@keyframes shimmer {
  0%        { left: -100%; }
  60%, 100% { left: 160%; }
}

/* ── Drop zone glow animado ── */
.drop-zone {
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.drop-zone:hover {
  border-color: rgba(168,85,247,0.6) !important;
  box-shadow: 0 0 30px rgba(168,85,247,0.15), inset 0 0 30px rgba(168,85,247,0.05);
}
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(168,85,247,0.07) 0%,
    transparent 50%,
    rgba(6,182,212,0.05) 100%);
  animation: dropZoneSweep 5s ease-in-out infinite;
}
@keyframes dropZoneSweep {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.02); }
}

/* ── TYPING TEXT ── */
.typing-text {
  display: inline;
  border-right: 2px solid #a855f7;
  animation: typingBlink 0.8s step-end infinite;
  padding-right: 2px;
}
@keyframes typingBlink {
  0%, 100% { border-color: #a855f7; }
  50%       { border-color: transparent; }
}

/* ── Share button ── */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: rgba(168,85,247,0.1);
  border: 1px solid rgba(168,85,247,0.3);
  border-radius: 100px;
  color: #c084fc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Outfit', sans-serif;
}
.btn-share:hover {
  background: rgba(168,85,247,0.2);
  box-shadow: 0 0 20px rgba(168,85,247,0.25);
  transform: translateY(-2px) scale(1.03);
}

/* ── NEON GLOW utils ── */
.glow-purple { box-shadow: 0 0 20px rgba(168,85,247,0.35); }
.glow-cyan   { box-shadow: 0 0 20px rgba(6,182,212,0.35); }
.glow-green  { box-shadow: 0 0 20px rgba(16,185,129,0.35); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── TikTok promo ── */
.tiktok-promo {
  background: linear-gradient(135deg, rgba(0,200,150,0.1), rgba(255,0,80,0.06));
  border: 1px solid rgba(0,200,150,0.2);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.tiktok-promo:hover {
  border-color: rgba(0,200,150,0.5);
  box-shadow: 0 0 25px rgba(0,200,150,0.15);
  transform: translateY(-2px);
}
.tiktok-promo-text strong { display:block; font-size:13px; font-weight:800; color:#00c896; }
.tiktok-promo-text span   { font-size:11px; color:#64748b; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Viral mode btn hover ── */
#btnViralMode:hover {
  background: linear-gradient(135deg, rgba(168,85,247,0.28), rgba(6,182,212,0.2)) !important;
  box-shadow: 0 0 22px rgba(168,85,247,0.3);
  transform: translateY(-2px);
}

/* ══ RESPONSIVE ══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .freeclip-hero { padding: 28px 16px 18px; }
  .hero-title    { font-size: 28px; }
  .stats-bar     { gap: 10px; font-size: 11px; }
  .hero-pills    { gap: 6px; }
  .stats-bar .stat-item:nth-child(3),
  .stats-bar .stat-item:nth-child(4) { display: none; }
  .hero-demo { gap: 12px; }
  .demo-phone { width: 90px; }
}
