:root {
  --pink: #E364A7;
  --pink-dark: #c94e8f;
  --pink-light: #ffd9ec;
  --ink: #140f26;
  --ink-2: #1d1935;
  --white: #ffffff;
  --cream: #fff7fb;
  --gold: #ffc93c;
  --green: #35d28a;
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-soft: 0 20px 45px rgba(20, 15, 38, 0.18);
  --font-head: 'Baloo 2', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.1;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--pink);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(227, 100, 167, 0.35);
}
.btn-primary:hover { background: var(--pink-dark); }

.btn-cta {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 25px rgba(255, 201, 60, 0.4);
}
.btn-cta:hover { background: #ffd666; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(20,19,39,0.15);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.btn-outline {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); }

.btn-lg { padding: 16px 32px; font-size: 1rem; }

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 15, 38, 0.6);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo-img { height: 36px; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  font-size: 0.92rem;
  transition: color .15s;
}
.main-nav a:hover { color: var(--pink); }

.header-cta { display: flex; gap: 12px; }
.header-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.header-cta .btn-ghost:hover { border-color: var(--pink); color: var(--pink); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  width: 24px; height: 2px; background: #fff; border-radius: 2px;
}

/* ===== TORN PAPER EDGES ===== */
.torn-edge {
  position: absolute;
  left: 0;
  width: 100%;
  height: 70px;
  display: block;
  z-index: 5;
  pointer-events: none;
}
.torn-edge-hero,
.torn-edge-bottom { bottom: -1px; fill: var(--cream); }

/* ===== HERO (full-bleed, dark, collage) ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
  padding-top: 76px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 40px 110px;
}

.pill-tag {
  display: inline-block;
  background: rgba(227,100,167,0.18);
  border: 1px solid rgba(227,100,167,0.5);
  color: #ffd1ea;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-text h1 .highlight { color: var(--pink); }

.hero-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.hero-code {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem;
}
.code-chip-inline {
  background: rgba(227,100,167,0.12);
  color: var(--pink);
  border: 2px dashed var(--pink);
  padding: 6px 12px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 1.15em;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background .15s;
}
.code-chip-inline:hover { background: rgba(227,100,167,0.22); }

/* ---- collage ---- */
.hero-collage {
  position: relative;
  height: 560px;
}

.collage-mascot {
  position: absolute;
  right: -40px;
  bottom: -40px;
  height: 640px;
  width: auto;
  z-index: 3;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
  animation: float 5s ease-in-out infinite;
}

.collage-item {
  position: absolute;
  z-index: 4;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0,0,0,0.45);
}
.collage-ps5 {
  width: 190px;
  top: 10px;
  left: 10px;
  transform: rotate(-8deg);
  animation: float 4.5s ease-in-out infinite;
}
.collage-fifa {
  width: 150px;
  bottom: 40px;
  left: 60px;
  transform: rotate(7deg);
  animation: float 5.5s ease-in-out infinite reverse;
}

.collage-deco {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.deco-coin-1 { width: 56px; top: 60px; left: -10px; animation: float 3.8s ease-in-out infinite; }
.deco-coin-2 { width: 40px; bottom: 90px; right: 0; animation: float 4.2s ease-in-out infinite reverse; }
.deco-sparkle-1 { width: 44px; top: 140px; right: 10px; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50% { transform: translateY(-18px) rotate(var(--r, 0deg)); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== SECTIONS GENERIC ===== */
.section { padding: 100px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .eyebrow {
  display: inline-block;
  color: var(--pink-dark);
  background: var(--pink-light);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 14px;
  color: var(--ink);
}
.section-head p { color: #5a5470; font-size: 1.02rem; }

.section-head.light .eyebrow {
  background: rgba(255,255,255,0.25);
  color: #fff;
}
.section-head.light h2 { color: #fff; }
.section-head.light p { color: rgba(255,255,255,0.85); }

.center-cta { text-align: center; margin-top: 48px; }

/* ===== INTRO STRIP (cream, minimal, like reference section 2) ===== */
.intro-strip {
  background: var(--cream);
  text-align: center;
  padding: 90px 0 130px;
}
.intro-strip .eyebrow {
  display: inline-block;
  color: var(--pink-dark);
  background: var(--pink-light);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.intro-strip h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 18px;
}
.intro-strip p {
  color: #5a5470;
  max-width: 480px;
  margin: 0 auto 30px;
  font-size: 1.02rem;
}

/* ===== PREMIOS BLOCK (solid pink, collage) ===== */
.premios-block {
  background: var(--pink);
  padding: 120px 0 140px;
}

.prize-collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px 20px;
}

.prize-photo {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 22px 16px 20px;
  text-align: center;
  box-shadow: 0 25px 45px rgba(0,0,0,0.25);
}
.prize-photo img { height: 110px; margin: 0 auto 14px; object-fit: contain; }
.prize-photo figcaption { font-family: var(--font-head); font-weight: 700; font-size: 1.02rem; }
.prize-meta {
  margin-top: 8px;
  font-size: 0.78rem;
  color: #6b6580;
  line-height: 1.5;
}

.photo-week1 { transform: rotate(-5deg) translateY(10px); z-index: 2; }
.photo-week2 { transform: rotate(0deg) translateY(-10px); z-index: 3; }
.photo-week3 { transform: rotate(5deg) translateY(10px); z-index: 2; border: 2px solid var(--gold); }

.prize-tag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--pink-light);
  color: var(--pink-dark);
  font-weight: 800;
  font-size: 0.7rem;
  padding: 5px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.prize-tag-gold {
  background: var(--gold);
  color: var(--ink);
}

.premios-block .collage-deco { position: absolute; }
.deco-confetti-2 { width: 80px; top: -10px; left: 0; }
.deco-sparkle-2 { width: 50px; top: 20px; right: 40px; }

/* ===== PASOS (cream, flat cards) ===== */
.pasos { background: var(--cream); }

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}

.step-card {
  background: #fff;
  border: 2px solid rgba(227,100,167,0.18);
  border-radius: var(--radius-md);
  padding: 36px 26px 30px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.step-number {
  position: absolute;
  top: -18px; left: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 8px 18px rgba(227,100,167,0.5);
}

.step-icon { font-size: 2.2rem; margin: 10px 0 14px; }
.step-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.step-card p { color: #5a5470; font-size: 0.92rem; line-height: 1.55; margin-bottom: 16px; }

.code-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  background: rgba(227,100,167,0.08);
  color: var(--pink);
  border: 2px dashed var(--pink);
  padding: 10px 18px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background .15s;
}
.code-chip:hover { background: rgba(227,100,167,0.18); }

/* ===== COPY-TO-CLIPBOARD FEEDBACK ===== */
.copyable {
  position: relative;
}
.copy-icon {
  width: 0.8em;
  height: 0.8em;
  flex-shrink: 0;
}
.copyable::after {
  content: '¡Copiado!';
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: normal;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.copyable.copied::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.step-link {
  display: block;
  color: var(--pink-dark);
  font-weight: 700;
  font-size: 0.88rem;
}
.step-link:hover { color: var(--pink); }

.step-arrow {
  align-self: center;
  color: rgba(227,100,167,0.4);
  font-size: 1.6rem;
}

/* ===== DINAMICAS ===== */
.dinamicas { background: var(--pink-light); padding-bottom: 160px; }

.dynamics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.dynamics-note {
  text-align: center;
  color: var(--pink-dark);
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 28px;
}

.dynamic-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 32px 26px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(20,15,38,0.06);
  position: relative;
}

.dynamic-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  background: var(--pink-light);
  color: var(--pink-dark);
  margin-bottom: 16px;
}
.dynamic-badge-accent {
  background: var(--pink);
  color: #fff;
}

.dynamic-icon { font-size: 2rem; margin-bottom: 14px; }
.dynamic-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--ink); }
.dynamic-card p { font-size: 0.92rem; color: #6b6580; line-height: 1.55; }

/* ===== MASCOT BANNER (solid pink) ===== */
.mascot-banner {
  background: var(--pink);
  padding: 110px 0 130px;
}
.mascot-banner-inner {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 40px;
  align-items: center;
}
.mascot-banner-img {
  max-height: 320px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 25px rgba(0,0,0,0.25));
}
.mascot-banner-text h2 {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}
.mascot-banner-text p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 26px;
  max-width: 480px;
  line-height: 1.6;
}
.mascot-banner .btn-cta {
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* ===== SLIDER DOTS (reused by pasos/dinamicas on mobile) ===== */
.slider-dots {
  display: none;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.slider-dots span {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(227,100,167,0.25);
  display: inline-block;
  transition: background .2s;
}
.slider-dots span.active { background: var(--pink); }

/* ===== FAQ ===== */
.faq { background: var(--cream); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  background: #fff;
  border: 1px solid rgba(20,15,38,0.08);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--pink);
  transition: transform .2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin-top: 12px;
  color: #6b6580;
  font-size: 0.94rem;
  line-height: 1.6;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { max-width: 420px; }
.footer-logo { height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.88rem; line-height: 1.6; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
.footer-links a:hover { color: var(--pink); }

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
}
.age-badge {
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-head);
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 14px 22px;
  border-radius: 100px;
  box-shadow: 0 12px 30px rgba(227,100,167,0.5);
  z-index: 90;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease, background .2s;
}
.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cta:hover { background: var(--pink-dark); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 140px; }
  .hero-text { order: 2; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-collage { order: 1; height: 420px; margin-top: 0; margin-bottom: 20px; display: flex; justify-content: center; }
  .collage-mascot { position: relative; right: auto; left: auto; height: 440px; bottom: -20px; }
  .collage-ps5 { left: 4%; top: auto; bottom: 40px; }
  .collage-fifa { right: 4%; left: auto; }
  .prize-collage { grid-template-columns: 1fr; max-width: 340px; }
  .photo-week1, .photo-week2, .photo-week3 { transform: none; }
  .premios-block .collage-deco { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); margin: -4px auto; }
  .dynamics-grid { grid-template-columns: 1fr; }
  .mascot-banner-inner { grid-template-columns: 1fr; text-align: center; }
  .mascot-banner-text p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .section { padding: 70px 0; }
  .dinamicas { padding-bottom: 100px; }
  .footer-top { flex-direction: column; }

  .logo-img { height: 26px; }
  .header-cta { gap: 10px; }
  .header-cta .btn-primary { padding: 9px 16px; font-size: 0.78rem; white-space: nowrap; }
  .header-cta .btn-ghost {
    border: none;
    background: none;
    padding: 8px 0;
    font-size: 0.78rem;
    font-weight: 600;
    box-shadow: none;
    white-space: nowrap;
  }

  .hero-code {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  /* pasos + dinamicas become swipeable sliders, one card per screen */
  .steps-grid,
  .dynamics-grid {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    margin: 0 -24px;
    padding: 10px 24px 8px;
    scrollbar-width: none;
  }
  /* step-number badges poke above the card, so that track needs extra clearance */
  .steps-grid { padding-top: 28px; }
  .steps-grid::-webkit-scrollbar,
  .dynamics-grid::-webkit-scrollbar { display: none; }

  .step-card,
  .dynamic-card {
    flex: 0 0 86%;
    scroll-snap-align: center;
  }

  .step-arrow { display: none; }

  .slider-dots { display: flex; }
}

@media (max-width: 480px) {
  .floating-cta { right: 16px; bottom: 16px; padding: 12px 18px; font-size: 0.8rem; }
  .collage-ps5 { width: 130px; }
  .collage-fifa { width: 110px; }
}

/* Mobile nav drawer */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 76px; left: 0; right: 0;
  background: var(--ink);
  padding: 24px;
  gap: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
