/* ════════════════════════════════════════════════════════════════════
   Lazzo Bienestar · Pantalla intro animada (C2.2)
   Replicación fiel del diseño Claude Design (zip presentacion).
   Todas las clases anidadas bajo #bcl-intro-overlay para aislar scope
   y no chocar con welcome.css ni con CSS global.
   ════════════════════════════════════════════════════════════════════ */

#bcl-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: auto;
  animation: bcl-intro-in 0.18s ease-out;
}
#bcl-intro-overlay.closing {
  animation: bcl-intro-out 0.36s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes bcl-intro-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes bcl-intro-out {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.04); }
}

#bcl-intro-overlay .bcl-intro {
  position: absolute; inset: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #b794dc 0%, transparent 55%),
    radial-gradient(120% 100% at 50% 100%, #ffb185 0%, transparent 55%),
    linear-gradient(165deg, #9b7fd4 0%, #c290c4 45%, #f4956a 100%);
  color: white;
  isolation: isolate;
  font-family: 'DM Sans', -apple-system, system-ui, sans-serif;
}

/* ── Capa 1: orbes flotantes (parallax) ── */
#bcl-intro-overlay .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(28px);
  opacity: 0;
  animation: bcl-orbFloat 12s ease-in-out infinite, bcl-orbFadeIn 1s ease 0.1s forwards;
  mix-blend-mode: screen;
  pointer-events: none;
}
#bcl-intro-overlay .orb.o1 {
  width: 240px; height: 240px;
  left: -60px; top: -40px;
  background: radial-gradient(circle, rgba(255,200,170,0.85), rgba(255,200,170,0));
  animation-duration: 14s, 1s;
}
#bcl-intro-overlay .orb.o2 {
  width: 200px; height: 200px;
  right: -50px; top: 20%;
  background: radial-gradient(circle, rgba(196,179,230,0.95), rgba(196,179,230,0));
  animation-duration: 18s, 1s;
  animation-delay: 0s, 0.2s;
}
#bcl-intro-overlay .orb.o3 {
  width: 180px; height: 180px;
  left: 20%; bottom: -60px;
  background: radial-gradient(circle, rgba(255,255,255,0.55), rgba(255,255,255,0));
  animation-duration: 16s, 1s;
  animation-delay: 0s, 0.3s;
}
#bcl-intro-overlay .orb.o4 {
  width: 140px; height: 140px;
  right: 15%; bottom: 18%;
  background: radial-gradient(circle, rgba(255,180,150,0.7), rgba(255,180,150,0));
  animation-duration: 13s, 1s;
  animation-delay: 0s, 0.4s;
}
@keyframes bcl-orbFloat {
  0%   { transform: translate(0,0) scale(1); }
  33%  { transform: translate(20px,-18px) scale(1.08); }
  66%  { transform: translate(-15px,12px) scale(0.95); }
  100% { transform: translate(0,0) scale(1); }
}
@keyframes bcl-orbFadeIn { to { opacity: 1; } }

/* ── Capa 2: grano sutil ── */
#bcl-intro-overlay .bcl-intro::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.4;
  pointer-events: none;
  z-index: 1;
}

/* ── Capa 3: rayo de luz que barre ── */
#bcl-intro-overlay .bcl-intro::after {
  content: "";
  position: absolute;
  top: -50%; left: -100%;
  width: 80%; height: 200%;
  background: linear-gradient(115deg,
    transparent 30%,
    rgba(255,255,255,0.18) 48%,
    rgba(255,255,255,0.32) 50%,
    rgba(255,255,255,0.18) 52%,
    transparent 70%);
  transform: rotate(8deg);
  animation: bcl-lightSweep 4.5s ease-in-out 0.6s infinite;
  pointer-events: none;
  z-index: 2;
}
@keyframes bcl-lightSweep {
  0%   { transform: translateX(0) rotate(8deg); opacity: 0; }
  10%  { opacity: 1; }
  60%  { opacity: 1; }
  100% { transform: translateX(280%) rotate(8deg); opacity: 0; }
}

/* ── Top bar (logo + skip) ── */
#bcl-intro-overlay .w-top {
  position: relative; z-index: 6;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 22px 0;
  opacity: 0;
  animation: bcl-fadeIn 0.5s ease 0.3s forwards;
}
#bcl-intro-overlay .w-mini-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.65rem; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 700;
  opacity: 0.92;
  color: white;
}
#bcl-intro-overlay .w-mini-logo .ml-dot {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: rgba(255,255,255,0.96);
  padding: 3px;
  display: inline-flex;
  box-shadow: 0 4px 12px rgba(89,40,108,0.25);
}
#bcl-intro-overlay .w-mini-logo .ml-dot img {
  width: 100%; height: 100%; object-fit: contain;
  display: block;
}
#bcl-intro-overlay .w-skip {
  font: inherit;
  font-size: 0.72rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  padding: 7px 13px;
  border-radius: 99px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#bcl-intro-overlay .w-skip:hover { background: rgba(255,255,255,0.24); }
#bcl-intro-overlay .w-skip:active { transform: scale(0.97); }

/* ── Hero: blob con imagen + orbits ── */
#bcl-intro-overlay .w-hero {
  position: relative; z-index: 5;
  margin-top: 36px;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 0 22px;
}
#bcl-intro-overlay .blob-stage {
  position: relative;
  width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  animation: bcl-blobIn 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}
@keyframes bcl-blobIn {
  to { opacity: 1; transform: scale(1); }
}

#bcl-intro-overlay .blob-halo {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255,255,255,0.55) 0%,
    rgba(255,255,255,0.15) 38%,
    transparent 70%);
  filter: blur(8px);
  animation: bcl-haloPulse 3s ease-in-out infinite;
}
@keyframes bcl-haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.08); opacity: 1; }
}

#bcl-intro-overlay .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  opacity: 0;
  animation: bcl-ringOut 3s ease-out infinite;
}
#bcl-intro-overlay .ring.r2 { animation-delay: 1s; }
#bcl-intro-overlay .ring.r3 { animation-delay: 2s; }
@keyframes bcl-ringOut {
  0%   { transform: scale(0.85); opacity: 0; }
  20%  { opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

#bcl-intro-overlay .blob-mask {
  position: relative;
  width: 200px; height: 200px;
  border-radius: 62% 38% 55% 45% / 50% 55% 45% 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7f0, #ffe7d8);
  box-shadow:
    0 22px 50px rgba(89,40,108,0.35),
    0 8px 18px rgba(89,40,108,0.18),
    inset 0 0 0 3px rgba(255,255,255,0.55);
  animation: bcl-blobMorph 8s ease-in-out infinite;
}
@keyframes bcl-blobMorph {
  0%, 100% { border-radius: 62% 38% 55% 45% / 50% 55% 45% 50%; }
  33%      { border-radius: 45% 55% 38% 62% / 58% 42% 58% 42%; }
  66%      { border-radius: 55% 45% 62% 38% / 42% 58% 42% 58%; }
}
#bcl-intro-overlay .blob-mask img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transform: scale(1.05);
  display: block;
}

/* ── Iconitos orbitando ── */
#bcl-intro-overlay .orbiter {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.96);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(89,40,108,0.25);
  opacity: 0;
}
#bcl-intro-overlay .orbiter svg { width: 18px; height: 18px; }
#bcl-intro-overlay .orbiter.heart  { top: 8px;     right: 4px;  color: #e07a4f; }
#bcl-intro-overlay .orbiter.leaf   { bottom: 16px; left: -2px;  color: #7e62b7; }
#bcl-intro-overlay .orbiter.spark  { top: 38%;     left: -10px; color: #d99a3d; }
#bcl-intro-overlay .orbiter.shield { bottom: 6px;  right: 12px; color: #4a8de0; }
#bcl-intro-overlay .orbiter.float-a { animation: bcl-orbiterIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.2s forwards, bcl-floatA 5s ease-in-out 1.8s infinite; }
#bcl-intro-overlay .orbiter.float-b { animation: bcl-orbiterIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.35s forwards, bcl-floatB 6s ease-in-out 1.95s infinite; }
#bcl-intro-overlay .orbiter.float-c { animation: bcl-orbiterIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.5s forwards, bcl-floatC 5.5s ease-in-out 2.1s infinite; }
#bcl-intro-overlay .orbiter.float-d { animation: bcl-orbiterIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 1.65s forwards, bcl-floatD 6.5s ease-in-out 2.25s infinite; }
@keyframes bcl-orbiterIn { to { opacity: 1; } }
@keyframes bcl-floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes bcl-floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }
@keyframes bcl-floatC { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
@keyframes bcl-floatD { 0%,100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

/* ── Sparkle particles ── */
#bcl-intro-overlay .sparkle {
  position: absolute;
  width: 10px; height: 10px;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,0.4) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}
#bcl-intro-overlay .sparkle.s1 { top: 16%; left: 12%; animation: bcl-sparkPop 2.5s ease-out 1.4s infinite; }
#bcl-intro-overlay .sparkle.s2 { top: 8%;  right: 18%; animation: bcl-sparkPop 2.5s ease-out 1.7s infinite; width: 6px; height: 6px; }
#bcl-intro-overlay .sparkle.s3 { bottom: 22%; left: 8%; animation: bcl-sparkPop 2.5s ease-out 2.0s infinite; width: 8px; height: 8px; }
#bcl-intro-overlay .sparkle.s4 { bottom: 14%; right: 14%; animation: bcl-sparkPop 2.5s ease-out 2.3s infinite; }
#bcl-intro-overlay .sparkle.s5 { top: 38%; right: 6%; animation: bcl-sparkPop 2.5s ease-out 2.6s infinite; width: 5px; height: 5px; }
#bcl-intro-overlay .sparkle.s6 { top: 60%; left: 4%; animation: bcl-sparkPop 2.5s ease-out 2.9s infinite; width: 7px; height: 7px; }
@keyframes bcl-sparkPop {
  0%   { opacity: 0; transform: scale(0.3); }
  20%  { opacity: 1; transform: scale(1.2); }
  60%  { opacity: 0.6; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(0.4); }
}

/* ── Bloque texto ── */
#bcl-intro-overlay .w-copy {
  position: relative; z-index: 5;
  margin-top: 38px;
  padding: 0 30px;
  text-align: center;
}
#bcl-intro-overlay .w-tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; font-weight: 700;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 6px 13px;
  border-radius: 99px;
  margin-bottom: 14px;
  color: white;
  opacity: 0;
  animation: bcl-tagIn 0.6s cubic-bezier(0.16,1,0.3,1) 0.9s forwards;
}
#bcl-intro-overlay .w-tag .tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.3);
  animation: bcl-tagDot 1.6s ease-in-out infinite;
}
@keyframes bcl-tagDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,255,255,0.3); }
  50%      { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}
@keyframes bcl-tagIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

#bcl-intro-overlay .w-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  font-size: 2.45rem;
  line-height: 1; letter-spacing: -0.02em;
  margin: 0;
  position: relative;
  display: inline-block;
  color: white;
}
#bcl-intro-overlay .w-title .line {
  display: block;
  overflow: hidden;
}
#bcl-intro-overlay .w-title .line span {
  display: inline-block;
  transform: translateY(110%);
  animation: bcl-titleRise 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}
#bcl-intro-overlay .w-title .line.l1 span { animation-delay: 1.05s; }
#bcl-intro-overlay .w-title .line.l2 span {
  background: linear-gradient(110deg,
    #fff 0%, #ffe7d8 30%, #fff 50%, #ffe7d8 70%, #fff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: bcl-titleRise 0.9s cubic-bezier(0.16,1,0.3,1) 1.25s forwards,
             bcl-shimmer 4s linear 2.2s infinite;
  font-style: italic;
}
@keyframes bcl-titleRise { to { transform: translateY(0); } }
@keyframes bcl-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

#bcl-intro-overlay .w-sub {
  font-size: 0.96rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.95);
  margin: 12px auto 0;
  max-width: 280px;
  text-wrap: pretty;
  opacity: 0;
  animation: bcl-fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 1.55s forwards;
}
@keyframes bcl-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

#bcl-intro-overlay .w-chips {
  display: flex; gap: 8px; justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  opacity: 0;
  animation: bcl-fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) 1.85s forwards;
}
#bcl-intro-overlay .w-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  padding: 7px 11px;
  border-radius: 99px;
  color: white;
}
#bcl-intro-overlay .w-chip svg { width: 12px; height: 12px; }

/* ── CTA fijo ── */
#bcl-intro-overlay .w-cta {
  position: absolute;
  left: 22px; right: 22px; bottom: 28px;
  z-index: 7;
  display: flex; flex-direction: column; gap: 10px;
  align-items: center;
  opacity: 0;
  transform: translateY(16px);
  animation: bcl-ctaIn 0.7s cubic-bezier(0.16,1,0.3,1) 2.1s forwards;
}
@keyframes bcl-ctaIn {
  to { opacity: 1; transform: translateY(0); }
}
#bcl-intro-overlay .w-btn {
  width: 100%;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700; font-size: 1rem;
  letter-spacing: -0.005em;
  background: white;
  color: #5e3478;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  cursor: pointer;
  box-shadow:
    0 14px 30px rgba(46,25,55,0.28),
    inset 0 0 0 1px rgba(255,255,255,0.6);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
#bcl-intro-overlay .w-btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(110deg,
    transparent 30%, rgba(155,127,212,0.2) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: bcl-btnSheen 3.5s ease-in-out 3s infinite;
}
@keyframes bcl-btnSheen {
  0%   { transform: translateX(-100%); }
  60%  { transform: translateX(100%); }
  100% { transform: translateX(100%); }
}
#bcl-intro-overlay .w-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(46,25,55,0.32); }
#bcl-intro-overlay .w-btn:active { transform: translateY(0); }
#bcl-intro-overlay .w-btn .arr {
  display: inline-flex;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #9b7fd4, #f4956a);
  color: white;
  align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
#bcl-intro-overlay .w-btn:hover .arr { transform: translateX(3px); }
#bcl-intro-overlay .w-btn .arr svg { width: 12px; height: 12px; }

#bcl-intro-overlay .w-btn.ready { animation: bcl-btnPulse 2.6s ease-in-out 3.2s infinite; }
@keyframes bcl-btnPulse {
  0%, 100% { box-shadow: 0 14px 30px rgba(46,25,55,0.28), inset 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 0 rgba(255,255,255,0.5); }
  50%      { box-shadow: 0 14px 30px rgba(46,25,55,0.28), inset 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 14px rgba(255,255,255,0); }
}

#bcl-intro-overlay .w-foot-note {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 6px;
}
#bcl-intro-overlay .w-foot-note svg { width: 12px; height: 12px; }

@keyframes bcl-fadeIn { to { opacity: 1; } }

/* Reduced motion (accesibilidad) — desactiva animaciones loop */
@media (prefers-reduced-motion: reduce) {
  #bcl-intro-overlay .orb,
  #bcl-intro-overlay .ring,
  #bcl-intro-overlay .sparkle,
  #bcl-intro-overlay .blob-halo,
  #bcl-intro-overlay .blob-mask,
  #bcl-intro-overlay .orbiter,
  #bcl-intro-overlay .bcl-intro::after,
  #bcl-intro-overlay .w-tag .tag-dot,
  #bcl-intro-overlay .w-title .line.l2 span,
  #bcl-intro-overlay .w-btn::before,
  #bcl-intro-overlay .w-btn.ready {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
