/* LIPA WOW — intro cinematográfica, jefe del día, compartir progreso */

/* ——— Intro Lipi ——— */
.lipa-wow-intro {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 20%, #1a1035 0%, #0a0612 55%, #050308 100%);
  animation: wow-intro-bg 400ms ease;
}

.lipa-wow-intro.is-exiting {
  animation: wow-intro-out 500ms ease forwards;
  pointer-events: none;
}

@keyframes wow-intro-bg {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes wow-intro-out {
  to { opacity: 0; transform: scale(1.04); }
}

.lipa-wow-intro__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.9), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,.7), transparent),
    radial-gradient(2px 2px at 80% 20%, rgba(46,211,166,.8), transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(155,126,222,.7), transparent),
    radial-gradient(1px 1px at 90% 50%, rgba(255,255,255,.5), transparent);
  background-size: 100% 100%;
  animation: wow-stars-drift 8s linear infinite;
  opacity: .85;
}

@keyframes wow-stars-drift {
  from { transform: translateY(0); }
  to { transform: translateY(-20px); }
}

.lipa-wow-intro__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 24px;
  max-width: 420px;
}

.lipa-wow-intro__lipi {
  font-size: clamp(72px, 18vw, 110px);
  line-height: 1;
  filter: drop-shadow(0 0 40px rgba(46, 211, 166, .6));
  animation: wow-lipi-drop 900ms cubic-bezier(0.34, 1.4, 0.64, 1) both;
  display: block;
  margin-bottom: 12px;
}

@keyframes wow-lipi-drop {
  0% { transform: translateY(-120vh) rotate(-15deg) scale(0.3); opacity: 0; }
  70% { transform: translateY(8px) rotate(4deg) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) rotate(0) scale(1); }
}

.lipa-wow-intro__title {
  font-family: 'Nunito', 'Orbitron', system-ui, sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.85rem);
  font-weight: 900;
  color: #fff;
  margin: 0 0 8px;
  text-shadow: 0 0 30px rgba(46, 211, 166, .5);
  animation: wow-fade-up 600ms 400ms ease both;
}

.lipa-wow-intro__sub {
  color: #b8c4e8;
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 20px;
  animation: wow-fade-up 600ms 550ms ease both;
}

.lipa-wow-intro__streak {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(234, 88, 12, .25), rgba(245, 158, 11, .2));
  border: 1px solid rgba(251, 146, 60, .5);
  color: #fdba74;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
  animation: wow-fade-up 600ms 650ms ease both;
}

@keyframes wow-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.lipa-wow-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  animation: wow-fade-up 600ms 750ms ease both;
}

.lipa-wow-intro__cta {
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  background: linear-gradient(135deg, #2ed3a6, #9b7ede);
  color: #0a0612;
  box-shadow: 0 8px 28px rgba(46, 211, 166, .35);
}

.lipa-wow-intro__skip {
  padding: 12px 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  background: transparent;
  color: #9fb0d8;
  font-size: 14px;
  cursor: pointer;
}

/* ——— Compartir progreso ——— */
.lipa-share-zone {
  margin: 1.25rem 0;
  padding: 1.15rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(46,211,166,.08), rgba(155,126,222,.08));
  border: 1px solid rgba(46,211,166,.25);
  text-align: center;
}

.lipa-share-zone__title {
  font-weight: 800;
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.lipa-share-zone__sub {
  font-size: 14px;
  color: var(--brain-text-muted, #667085);
  margin: 0 0 12px;
}

.lipa-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.lipa-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}

.lipa-share-btn--wa {
  background: #25d366;
  color: #fff !important;
}

.lipa-share-btn--img {
  background: #fff;
  color: #4338ca !important;
  border: 2px solid #818cf8;
}

.lipa-share-preview {
  max-width: 280px;
  margin: 12px auto 0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.home-cards-teaser {
  max-width: 640px;
  margin: 0 auto 1.25rem;
}

.home-cards-teaser .cards-teaser {
  margin: 0;
}

/* ——— Ceremonia sobres (mejoras) ——— */
.pack-ceremony--flash {
  animation: ceremony-flash 400ms ease;
}

@keyframes ceremony-flash {
  0%, 100% { filter: brightness(1); }
  40% { filter: brightness(2.2); }
}

.pack-ceremony__pack--explode {
  animation: pack-explode 600ms ease forwards !important;
}

@keyframes pack-explode {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.8); opacity: 1; filter: brightness(2); }
  100% { transform: scale(3); opacity: 0; }
}

.pack-ceremony--legendary-bg {
  background: radial-gradient(circle at 50% 40%, #3d2a00, #1a0f00 60%, #0a0600) !important;
}

.ceremony-card--legendary-reveal.is-flipped {
  animation: legendary-pulse 1.2s ease infinite;
}

@keyframes legendary-pulse {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(255, 209, 102, .6)); }
  50% { filter: drop-shadow(0 0 28px rgba(255, 209, 102, 1)); }
}

@media (prefers-reduced-motion: reduce) {
  .lipa-wow-intro__lipi,
  .lipa-wow-intro__stars,
  .ceremony-card--legendary-reveal.is-flipped {
    animation: none !important;
  }
}

.home-cards-teaser:empty {
  display: none;
}

body.home--returning .lipi-fun-chips,
body.home--returning .home-como-funciona,
body.home--returning .home-padres-teaser--editorial {
  display: none !important;
}

body.home--returning .hero-actions .btn-hero-secondary:not(.hero-actions__keep) {
  display: none !important;
}

body.home--returning .home-verano-banner__detail {
  display: none !important;
}

body.home--returning .home-verano-banner {
  padding: 0.75rem 1.25rem !important;
  margin-bottom: 1rem !important;
}

.home-neonverso-fold {
  max-width: var(--lipa-max-wide, 1100px);
  margin: 0 auto 1.25rem;
  padding: 0 1.25rem;
}

.home-neonverso-fold__summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(46, 211, 166, 0.08));
  border: 1px solid rgba(124, 58, 237, 0.2);
  font-weight: 800;
  font-size: 15px;
  color: var(--brain-text-main, #172033);
  text-align: center;
}

.home-neonverso-fold__summary::-webkit-details-marker {
  display: none;
}

.home-neonverso-fold__summary::after {
  content: ' ▾';
  opacity: 0.5;
  font-size: 12px;
}

.home-neonverso-fold[open] .home-neonverso-fold__summary::after {
  content: ' ▴';
}
