/* ====================================================
   HIP 2027 — XXIX Congreso Interamericano de Pediatría
   Sistema visual: selva-aventura, infantil-pediátrico
   ==================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&family=Caveat:wght@600;700&display=swap');

:root {
  /* Colores extraídos del cartel */
  --lime: #B8DC2E;
  --lime-deep: #8FB81A;
  --lime-soft: #DCE98C;
  --magenta: #E91E8C;
  --pink: #FF6FB5;
  --pink-soft: #FFD1E6;
  --purple: #6B2C91;
  --purple-deep: #4A1D6B;
  --purple-soft: #C9A6E0;
  --cyan: #1FA9E0;
  --cyan-soft: #B8E4F5;
  --orange: #FF7A2E;
  --orange-soft: #FFD0AF;
  --blue: #2E78D6;
  --yellow: #FFD23F;
  --cream: #FFF8E7;
  --paper: #FFFDF6;
  --leaf: #3A7D2C;
  --leaf-deep: #1F5417;
  --wood: #8B5A2B;
  --wood-deep: #5A3818;
  --ink: #2A1F4A;
  --ink-soft: #5A4E7E;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 36px;
  --radius-xl: 60px;

  --shadow-pop: 0 12px 0 -2px rgba(74, 29, 107, 0.18), 0 24px 40px -10px rgba(74, 29, 107, 0.25);
  --shadow-soft: 0 18px 40px -16px rgba(42, 31, 74, 0.25);
  --shadow-press: 0 4px 0 -1px rgba(74, 29, 107, 0.25);

  --ff-display: 'Fredoka', system-ui, sans-serif;
  --ff-body: 'Nunito', system-ui, sans-serif;
  --ff-hand: 'Caveat', cursive;

  --maxw: 1280px;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; }
body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--purple-deep);
}
h1 { font-size: clamp(2.1rem, 4.8vw, 4.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.3rem; color: var(--ink-soft); max-width: 60ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ============ HEADER / NAV ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(107, 44, 145, 0.08);
}
.site-header .inner {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 28px;
  max-width: var(--maxw); margin: 0 auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--purple-deep);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-mark {
  width: 44px; height: 44px;
  background: var(--lime);
  border-radius: 14px;
  display: grid; place-items: center;
  color: var(--purple-deep);
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--lime-deep);
  position: relative;
  transform: rotate(-4deg);
  transition: transform 0.3s ease;
}
.brand:hover .brand-mark { transform: rotate(4deg) scale(1.05); }
.brand-name { font-size: 1.1rem; line-height: 1; white-space: nowrap; }
.brand-sub { font-size: 0.85rem; color: var(--magenta); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }

.nav {
  display: flex; gap: 4px; margin-left: auto;
  align-items: center;
}
.nav a {
  padding: 10px 16px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  color: var(--ink);
  position: relative;
  transition: all 0.2s ease;
}
.nav a:hover { color: var(--magenta); background: var(--pink-soft); }
.nav a.active { color: white; background: var(--magenta); }

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  background: var(--magenta);
  color: white !important;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 999px;
  box-shadow: 0 6px 0 #B01270, 0 14px 24px -6px rgba(233, 30, 140, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
  cursor: pointer;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #B01270, 0 18px 28px -6px rgba(233, 30, 140, 0.55); }
.cta:active { transform: translateY(3px); box-shadow: 0 3px 0 #B01270; }

.cta.cta-lime { background: var(--lime); color: var(--purple-deep) !important; box-shadow: 0 6px 0 var(--lime-deep), 0 14px 24px -6px rgba(184, 220, 46, 0.45); }
.cta.cta-lime:hover { box-shadow: 0 8px 0 var(--lime-deep), 0 18px 28px -6px rgba(184, 220, 46, 0.55); }
.cta.cta-lime:active { box-shadow: 0 3px 0 var(--lime-deep); }

.cta.cta-purple { background: var(--purple-deep); box-shadow: 0 6px 0 #2D0F47, 0 14px 24px -6px rgba(74, 29, 107, 0.45); }
.cta.cta-ghost { background: transparent; color: var(--purple-deep) !important; box-shadow: inset 0 0 0 3px var(--purple-deep); }
.cta.cta-ghost:hover { background: var(--purple-deep); color: white !important; box-shadow: 0 6px 0 #2D0F47; }

.nav-toggle { display: none; }

@media (max-width: 920px) {
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; padding: 24px; gap: 6px; background: var(--cream); border-bottom: 4px solid var(--lime); transform: translateY(-120%); transition: transform 0.3s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; }
  .nav-toggle { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; background: var(--lime); border-radius: 12px; box-shadow: 0 4px 0 var(--lime-deep); }
  .cta-header { display: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(184, 220, 46, 0.4), transparent 60%),
    radial-gradient(ellipse at 90% 30%, rgba(233, 30, 140, 0.25), transparent 55%),
    linear-gradient(180deg, #FFFDF6 0%, #F3FBD0 100%);
  padding: 60px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: white;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--purple-deep);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}
.hero-eyebrow .dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--magenta);
  color: white;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-size: 0.95rem;
}
.hero h1 {
  letter-spacing: -0.02em;
}
.hero h1 .roman {
  display: inline-block;
  color: var(--magenta);
  font-size: 1.4em;
  line-height: 0.85;
  vertical-align: top;
  position: relative;
}
.hero h1 .roman::after {
  content: '';
  position: absolute;
  left: -8%; right: -8%;
  bottom: 4%;
  height: 18%;
  background: var(--lime);
  border-radius: 999px;
  z-index: -1;
  transform: rotate(-2deg);
}
.hero h1 .line2 { display: block; color: var(--purple-deep); font-size: 0.62em; margin-top: 6px; }
.hero h1 .year { display: inline-block; background: var(--purple-deep); color: var(--lime); padding: 0 18px; border-radius: 18px; font-size: 0.62em; margin-top: 14px; transform: rotate(-1deg); }

.hero-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 12px; }
.meta-chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: white;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-soft);
}
.meta-chip svg { width: 20px; height: 20px; }
.meta-chip.lime { background: var(--lime); color: var(--purple-deep); }
.meta-chip.pink { background: var(--pink); color: white; }
.meta-chip.cyan { background: var(--cyan); color: white; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 28px; }

.hero-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(74, 29, 107, 0.4);
  transform: rotate(1deg);
  border: 6px solid white;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Countdown */
.countdown {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 36px;
  max-width: 560px;
}
.count-cell {
  background: white;
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: 0 6px 0 rgba(107, 44, 145, 0.12), var(--shadow-soft);
  border: 2px solid rgba(107, 44, 145, 0.08);
  position: relative;
  overflow: hidden;
}
.count-cell:nth-child(1) { background: var(--lime); }
.count-cell:nth-child(2) { background: var(--cyan); color: white; }
.count-cell:nth-child(3) { background: var(--magenta); color: white; }
.count-cell:nth-child(4) { background: var(--orange); color: white; }
.count-num { font-family: var(--ff-display); font-weight: 700; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1; color: inherit; }
.count-cell:nth-child(1) .count-num { color: var(--purple-deep); }
.count-label { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; opacity: 0.9; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { order: -1; max-width: 460px; margin: 0 auto; }
}

/* ============ MASCOTAS / DECORACIONES ============ */
.mascot {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: drop-shadow(0 12px 18px rgba(74, 29, 107, 0.18));
}
.mascot.interactive { pointer-events: auto; cursor: grab; }
.mascot.interactive:active { cursor: grabbing; }

.float { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float 7s ease-in-out -2s infinite; }
.float-3 { animation: float 8s ease-in-out -4s infinite; }
.sway { animation: sway 8s ease-in-out infinite; transform-origin: top center; }
.sway-2 { animation: sway 9s ease-in-out -3s infinite; transform-origin: top center; }
.spin-slow { animation: spinSlow 30s linear infinite; }
.wiggle { animation: wiggle 4s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-18px) rotate(calc(var(--r, 0deg) + 3deg)); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg) scale(1); } 50% { transform: rotate(2deg) scale(1.03); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

.blink { transform-origin: center; animation: blink 4s ease-in-out infinite; }

/* ============ WAVES / DIVIDERS ============ */
.wave-divider { display: block; width: 100%; height: 80px; }
.wave-divider svg { width: 100%; height: 100%; display: block; }

/* ============ CARDS ============ */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-soft);
  border: 2px solid rgba(107, 44, 145, 0.05);
  position: relative;
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1), box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 30px 50px -20px rgba(74, 29, 107, 0.3); }

.card-icon {
  width: 72px; height: 72px;
  border-radius: 22px;
  display: grid; place-items: center;
  margin-bottom: 16px;
  font-size: 2rem;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.08);
}

.sticker {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.sticker.lime { background: var(--lime); color: var(--purple-deep); }
.sticker.pink { background: var(--pink); color: white; }
.sticker.cyan { background: var(--cyan); color: white; }
.sticker.purple { background: var(--purple); color: white; }
.sticker.orange { background: var(--orange); color: white; }
.sticker.yellow { background: var(--yellow); color: var(--purple-deep); }

/* Wood sign */
.wood-sign {
  position: relative;
  background:
    repeating-linear-gradient(180deg, rgba(0,0,0,0.04) 0 2px, transparent 2px 12px),
    linear-gradient(180deg, #C28855 0%, #9C6638 100%);
  color: var(--cream);
  border-radius: 18px;
  padding: 28px 32px;
  font-family: var(--ff-hand);
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 700;
  box-shadow: 0 12px 0 var(--wood-deep), 0 24px 40px -12px rgba(0, 0, 0, 0.35);
  border: 3px solid var(--wood-deep);
  transform: rotate(-2deg);
}

/* ============ SECTIONS COMUNES ============ */
.section { padding: 100px 0; position: relative; }
.section.tight { padding: 60px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; position: relative; z-index: 2; }
.section-head .sticker { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 14px; }
.section-head .lede { margin: 0 auto; }

.bg-lime { background: var(--lime); }
.bg-lime-soft { background: var(--lime-soft); }
.bg-cream { background: var(--cream); }
.bg-purple { background: var(--purple-deep); color: white; }
.bg-purple h2, .bg-purple h3 { color: white; }
.bg-pink-soft { background: var(--pink-soft); }
.bg-cyan-soft { background: var(--cyan-soft); }
.bg-jungle {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(184, 220, 46, 0.35), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(31, 169, 224, 0.25), transparent 50%),
    linear-gradient(180deg, #1F5417 0%, #0F2E0B 100%);
  color: var(--cream);
}
.bg-jungle h2, .bg-jungle h3 { color: var(--lime); }

/* ============ REVEAL ON SCROLL (animation-based for reliability) ============ */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.in { animation: revealIn 0.75s cubic-bezier(.2, .8, .2, 1) forwards; }
.reveal-stagger > * { opacity: 0; transform: translateY(30px); }
.reveal-stagger.in > * { animation: revealIn 0.65s cubic-bezier(.2, .8, .2, 1) forwards; }
.reveal-stagger.in > *:nth-child(1) { animation-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { animation-delay: 0.08s; }
.reveal-stagger.in > *:nth-child(3) { animation-delay: 0.16s; }
.reveal-stagger.in > *:nth-child(4) { animation-delay: 0.24s; }
.reveal-stagger.in > *:nth-child(5) { animation-delay: 0.32s; }
.reveal-stagger.in > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes revealIn {
  to { opacity: 1; transform: none; }
}

/* ============ AUDIENCIA CARDS ============ */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.aud-card {
  background: white;
  border-radius: 28px;
  padding: 24px 18px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 3px solid transparent;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.aud-card::before {
  content: '';
  position: absolute; inset: auto -20% -20% -20%;
  height: 50%;
  background: var(--c, var(--lime));
  border-radius: 50%;
  opacity: 0.15;
  transition: transform 0.4s ease;
}
.aud-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: var(--c); }
.aud-card:hover::before { transform: scale(1.4) translateY(-10%); opacity: 0.25; }
.aud-icon {
  width: 84px; height: 84px;
  margin: 0 auto 14px;
  background: var(--c, var(--lime));
  border-radius: 50%;
  display: grid; place-items: center;
  position: relative;
  z-index: 1;
}
.aud-name { font-family: var(--ff-display); font-weight: 700; font-size: 1.15rem; color: var(--purple-deep); margin-bottom: 4px; }
.aud-meta { font-size: 1rem; color: var(--ink-soft); position: relative; z-index: 1; }

@media (max-width: 920px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ STATS ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.stat {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}
.stat .num { font-family: var(--ff-display); font-weight: 700; font-size: 3.4rem; line-height: 0.95; color: var(--magenta); }
.stat .num small { font-size: 0.55em; }
.stat .label { font-weight: 700; color: var(--purple-deep); font-size: 1rem; margin-top: 8px; }
.stat .sub { color: var(--ink-soft); font-size: 1rem; margin-top: 6px; }
.stat:nth-child(2) .num { color: var(--cyan); }
.stat:nth-child(3) .num { color: var(--lime-deep); }
.stat:nth-child(4) .num { color: var(--orange); }

@media (max-width: 920px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ SPEAKERS PREVIEW ============ */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.speaker-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.3s;
}
.speaker-card:hover { transform: translateY(-6px); }
.speaker-photo {
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--c1, var(--lime)), var(--c2, var(--cyan)));
  position: relative;
  overflow: hidden;
}
.speaker-photo::after {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 38%;
  background: linear-gradient(180deg, transparent, rgba(42, 31, 74, 0.85));
}
.speaker-photo .initials {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  font-family: var(--ff-display);
  font-size: 4rem;
  color: white;
  font-weight: 700;
  opacity: 0.55;
}
.speaker-info {
  padding: 18px 20px;
}
.speaker-name { font-family: var(--ff-display); font-weight: 700; color: var(--purple-deep); font-size: 1.05rem; line-height: 1.1; margin-bottom: 4px; }
.speaker-role { color: var(--ink-soft); font-size: 1rem; }
.speaker-flag {
  position: absolute; top: 14px; left: 14px;
  background: white; color: var(--purple-deep);
  padding: 5px 13px; border-radius: 999px;
  font-size: 1.02rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
}

@media (max-width: 920px) { .speakers-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ PROGRAMA TIMELINE ============ */
.day-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.day-tab {
  padding: 14px 28px;
  background: white;
  border-radius: 999px;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--purple-deep);
  box-shadow: var(--shadow-soft);
  border: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}
.day-tab:hover { transform: translateY(-2px); }
.day-tab.active { background: var(--magenta); color: white; border-color: var(--purple-deep); }

.timeline { position: relative; max-width: 920px; margin: 0 auto; padding-left: 44px; }
.timeline::before {
  content: '';
  position: absolute; left: 18px; top: 14px; bottom: 14px;
  width: 4px;
  background: repeating-linear-gradient(180deg, var(--lime) 0 12px, transparent 12px 18px);
  border-radius: 4px;
}
.t-item {
  position: relative;
  margin-bottom: 24px;
  background: white;
  border-radius: 22px;
  padding: 20px 24px;
  box-shadow: var(--shadow-soft);
  display: grid; grid-template-columns: 120px 1fr auto; gap: 18px;
  align-items: center;
}
.t-item::before {
  content: '';
  position: absolute; left: -34px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--c, var(--magenta));
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--c, var(--magenta));
}
.t-time { font-family: var(--ff-display); font-weight: 600; color: var(--magenta); font-size: 1.05rem; }
.t-title { font-family: var(--ff-display); font-weight: 600; color: var(--purple-deep); font-size: 1.1rem; line-height: 1.2; }
.t-meta { font-size: 1rem; color: var(--ink-soft); margin-top: 4px; }
.t-room { font-size: 1.05rem; font-weight: 700; color: var(--purple); background: var(--purple-soft); padding: 6px 14px; border-radius: 999px; }

@media (max-width: 720px) {
  .t-item { grid-template-columns: 1fr; gap: 4px; }
  .t-room { justify-self: start; }
}

/* ============ INSCRIPCIÓN PRICING ============ */
.tier-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.tier {
  background: white;
  border-radius: 28px;
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  position: relative;
  border: 3px solid transparent;
  transition: transform 0.3s;
}
.tier:hover { transform: translateY(-8px); border-color: var(--c, var(--magenta)); }
.tier.featured { transform: scale(1.04); border-color: var(--magenta); box-shadow: 0 30px 50px -20px rgba(233, 30, 140, 0.45); }
.tier.featured:hover { transform: scale(1.04) translateY(-8px); }
.tier-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--magenta); color: white; font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tier-icon { width: 64px; height: 64px; margin: 0 auto 14px; background: var(--c, var(--lime)); border-radius: 50%; display: grid; place-items: center; }
.tier-name { font-family: var(--ff-display); font-weight: 700; color: var(--purple-deep); font-size: 1.15rem; }
.tier-price { font-family: var(--ff-display); font-weight: 700; font-size: 2.2rem; color: var(--magenta); margin: 12px 0 4px; line-height: 1; }
.tier-price small { font-size: 0.45em; color: var(--ink-soft); }
.tier-old { text-decoration: line-through; color: var(--ink-soft); font-size: 1rem; }
.tier-feats { list-style: none; padding: 0; margin: 18px 0; text-align: left; }
.tier-feats li { padding: 7px 0 7px 28px; font-size: 1.02rem; position: relative; }
.tier-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--lime-deep); font-weight: 800; }

@media (max-width: 1080px) { .tier-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .tier-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: white;
  border-radius: 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--purple-deep);
  text-align: left;
}
.faq-q .plus { width: 32px; height: 32px; background: var(--lime); border-radius: 50%; display: grid; place-items: center; transition: transform 0.3s; flex-shrink: 0; margin-left: 12px; }
.faq-item.open .plus { transform: rotate(45deg); background: var(--magenta); color: white; }
.faq-a { padding: 0 24px; max-height: 0; overflow: hidden; transition: all 0.3s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { padding: 0 24px 20px; max-height: 500px; }

/* ============ FOOTER ============ */
.footer {
  background: var(--purple-deep);
  color: var(--cream);
  padding: 80px 0 30px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer h4 { color: var(--lime); font-family: var(--ff-display); margin-bottom: 14px; }
.footer a { display: block; padding: 4px 0; opacity: 0.85; transition: opacity 0.2s, color 0.2s; }
.footer a:hover { opacity: 1; color: var(--lime); }
.footer .brand-name { color: white; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; font-size: 1rem; opacity: 0.8; }

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ============ SPONSORS STRIP ============ */
.sponsor-strip {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  align-items: center;
}
.sponsor-logo {
  background: white;
  border-radius: 18px;
  padding: 18px;
  text-align: center;
  font-family: var(--ff-display);
  font-weight: 600;
  color: var(--purple-deep);
  font-size: 0.95rem;
  height: 140px;
  display: grid; place-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s;
}
.sponsor-logo:hover { transform: scale(1.05) rotate(-1deg); }
/* .sponsor-logo img { max-height: 46px; max-width: 100%; width: auto; object-fit: contain; } */

/* ============ HERO v2 (imagen de fondo + personajes) ============ */
.hero-v2 {
  position: relative;
  background: url("hero-bg.jpg") center center / cover no-repeat;
  padding: 70px 0 0;
  overflow-x: hidden;
}
.hero-v2::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(255,253,246,0.94) 0%, rgba(255,253,246,0.75) 32%, rgba(255,253,246,0.15) 55%, transparent 75%);
  z-index: 1;
}
.hero-v2-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: stretch; min-height: 780px; }
.hero-v2-cast { position: relative; height: 100%; min-height: 780px; }
.hero-v2-logo { width: min(360px, 78%); filter: drop-shadow(0 20px 30px rgba(74,29,107,0.35)); position: relative; z-index: 4; }
@media (max-width: 880px) {
  .hero-v2-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-v2::before { background: linear-gradient(180deg, rgba(255,253,246,0.96) 0%, rgba(255,253,246,0.85) 55%, rgba(255,253,246,0.5) 100%); }
  .hero-v2-cast { min-height: 380px; }
}
.sponsor-logo small { display: block; font-size: 0.95rem; font-weight: 800; letter-spacing: 0.1em; color: var(--magenta); margin-bottom: 6px; text-transform: uppercase; }

@media (max-width: 920px) { .sponsor-strip { grid-template-columns: repeat(3, 1fr); } }

/* ============ HEADERS DE PÁGINA ============ */
.page-head {
  position: relative;
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 220, 46, 0.55), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(31, 169, 224, 0.25), transparent 55%),
    linear-gradient(180deg, var(--cream) 0%, #F3FBD0 100%);
  padding: 80px 0 100px;
  text-align: center;
  overflow: hidden;
}
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.page-head .lede { margin: 16px auto 0; }
.page-head .sticker { margin-bottom: 18px; }

/* ============ UTILS ============ */
.parallax-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.35'/></svg>");
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: multiply;
}

.text-hand { font-family: var(--ff-hand); font-weight: 700; color: var(--magenta); font-size: 1.4em; }
.dim { opacity: 0.7; }
.center { text-align: center; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.scribble-underline {
  position: relative;
  display: inline-block;
}
.scribble-underline::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -8px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'><path d='M2 6 Q 20 1 40 5 T 80 5 T 118 4' fill='none' stroke='%23B8DC2E' stroke-width='5' stroke-linecap='round'/></svg>") center/100% 100% no-repeat;
}
