/* =========================================================
   Pelu Kids · Estilos
   Colores y tipografías en las variables de :root
   ========================================================= */
:root {
  --bg: #fffaf2;           /* blanco cálido */
  --ink: #2b2540;          /* texto principal */
  --ink-soft: #6b6480;
  --yellow: #ffe28a;
  --sky: #bfe3ff;
  --pink: #ffc8dc;
  --lilac: #d9cdff;
  /* Colores vivos (tomados de la fachada) */
  --v-orange: #ff7a2f;
  --v-yellow: #ffbe1a;
  --v-blue: #2f7de1;
  --v-purple: #7b3fd0;
  --v-pink: #e8318c;
  --v-green: #8cc63f;
  --rainbow: linear-gradient(90deg, var(--v-orange), var(--v-yellow), var(--v-green), var(--v-blue), var(--v-purple), var(--v-pink));
  --font-display: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 28px;
  --shadow: 0 18px 40px -18px rgba(43, 37, 64, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ---------- Decoraciones ---------- */
.decor { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .7; }
.blob--yellow { width: 420px; height: 420px; background: var(--yellow); top: -120px; left: -120px; }
.blob--sky { width: 380px; height: 380px; background: var(--sky); top: 20%; right: -140px; }
.blob--pink { width: 340px; height: 340px; background: var(--pink); bottom: -100px; left: 10%; }
.blob--lilac { width: 300px; height: 300px; background: var(--lilac); bottom: 20%; right: 15%; opacity: .5; }

.float { position: absolute; animation: float 7s ease-in-out infinite; }
.star { width: 28px; }
.s1 { top: 14%; left: 8%; fill: var(--v-yellow); }
.s2 { top: 30%; right: 9%; width: 20px; fill: var(--v-pink); animation-delay: -2s; }
.s3 { top: 62%; left: 5%; width: 18px; fill: var(--v-blue); animation-delay: -4s; }
.bubble { border-radius: 50%; border: 3px solid var(--v-blue); opacity: .35; }
.b1 { width: 26px; height: 26px; top: 22%; left: 20%; animation-delay: -1s; }
.b2 { width: 16px; height: 16px; top: 48%; right: 20%; border-color: var(--v-purple); animation-delay: -3s; }
.b3 { width: 36px; height: 36px; top: 75%; right: 6%; border-color: var(--v-pink); animation-delay: -5s; }
.tool { opacity: .55; }
.scissors { width: 54px; top: 9%; right: 16%; stroke: var(--v-purple); transform: rotate(-20deg); }
.comb { width: 70px; top: 55%; left: 12%; stroke: var(--v-orange); animation-delay: -2.5s; }

@keyframes float {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -16px; rotate: 6deg; }
}

header, main, footer { position: relative; z-index: 1; }

/* ---------- Header ---------- */
.header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.5rem 0;
}
.logo { text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; }
.logo__pelu { color: var(--ink); }
.logo__kids { margin-left: .2em; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header__note { font-size: .9rem; color: var(--ink-soft); font-weight: 600; text-align: right; }

/* ---------- Hero ---------- */
.hero { max-width: 980px; margin: 0 auto; padding: clamp(3rem, 9vw, 6.5rem) 1.5rem 3rem; text-align: center; }
.tag {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .14em;
  padding: .55rem 1.1rem; border-radius: 999px; background: var(--ink); color: var(--yellow);
}
.tag--soft { background: var(--lilac); color: var(--ink); }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.6rem); line-height: 1.02; letter-spacing: -.03em;
  margin: 1.4rem 0 1.2rem;
}
.rainbow-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.hero__sub { max-width: 620px; margin: 0 auto; font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--ink-soft); }

/* ---------- Countdown ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.6rem, 2vw, 1.2rem); max-width: 640px; margin: 2.8rem auto 2rem; }
.unit {
  border-radius: var(--radius); padding: clamp(1rem, 3vw, 1.6rem) .5rem;
  box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center;
  border: 3px solid #fff;
}
.u-yellow { background: var(--yellow); rotate: -2deg; }
.u-sky { background: var(--sky); rotate: 1.5deg; }
.u-pink { background: var(--pink); rotate: -1deg; }
.u-lilac { background: var(--lilac); rotate: 2deg; }
.num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.label { margin-top: .4rem; font-size: clamp(.65rem, 1.8vw, .8rem); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.num.tick { animation: tick .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tick { from { transform: translateY(-30%) scale(.9); opacity: .3; } to { transform: none; opacity: 1; } }
.countdown-done { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 700; margin: 2.5rem 0; color: var(--v-purple); }

/* Llamada visual */
.pill {
  display: inline-flex; align-items: center; gap: .7rem; padding: 1rem 1.6rem;
  border-radius: 999px; background: #fff; font-weight: 800; box-shadow: var(--shadow);
  border: 2px dashed var(--v-pink);
}
.pill__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--v-pink); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.6); opacity: .5; } }

.stripes { display: flex; justify-content: center; gap: 6px; margin-top: 3rem; }
.stripes i { width: 14px; height: 46px; border-radius: 8px; }
.stripes i:nth-child(1) { background: var(--v-orange); }
.stripes i:nth-child(2) { background: var(--v-yellow); }
.stripes i:nth-child(3) { background: var(--v-green); }
.stripes i:nth-child(4) { background: var(--v-blue); }
.stripes i:nth-child(5) { background: var(--v-purple); }
.stripes i:nth-child(6) { background: var(--v-pink); }
.stripes i:nth-child(7) { background: var(--v-orange); }

/* ---------- Galería (mosaico) ---------- */
.gallery-section { max-width: 1240px; margin: 0 auto; padding: 3rem 1.5rem 4rem; }
.section-head { text-align: center; margin-bottom: 2.2rem; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.1; margin-top: 1rem; letter-spacing: -.02em; }
.gallery {
  display: grid; grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 190px); gap: clamp(.6rem, 1.4vw, 1rem);
}
.g { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--lilac); }
/* object-fit: cover recorta sin deformar las fotos */
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .5s; }
.g:hover img { transform: scale(1.06); filter: saturate(1.15); }
.g::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 4px solid transparent; transition: border-color .4s; }
.g:hover::after { border-color: rgba(255, 255, 255, .85); }
.g1 { grid-column: span 4; grid-row: span 3; }
.g2 { grid-column: span 2; grid-row: span 2; border-radius: var(--radius) var(--radius) var(--radius) 80px; }
.g3 { grid-column: span 2; grid-row: span 1; }
.g4 { grid-column: span 3; grid-row: span 2; border-radius: 120px 120px var(--radius) var(--radius); }
.g5 { grid-column: span 3; grid-row: span 2; }
.g6 { grid-column: span 2; grid-row: span 2; }
.g7 { grid-column: span 2; grid-row: span 2; border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
.g8 { grid-column: span 2; grid-row: span 2; }
.g9 { grid-column: span 6; grid-row: span 2; }

/* ---------- Cierre ---------- */
.closing { padding: 2rem 1.5rem 4rem; }
.closing__card {
  max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(2.5rem, 7vw, 4.5rem) 1.5rem;
  border-radius: 48px; background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.closing__card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: var(--rainbow); }
.closing__brand { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 8vw, 4.5rem); line-height: 1; }
.closing__brand .logo__pelu { color: #fff; }
.closing__quote { font-size: clamp(1.15rem, 2.6vw, 1.5rem); margin: 1.2rem auto 0; max-width: 560px; color: var(--sky); font-weight: 600; }
.closing__see { margin-top: 1.4rem; font-family: var(--font-display); font-size: 1.4rem; color: var(--yellow); }

.footer { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; padding: 0 1rem 2.5rem; font-size: .9rem; color: var(--ink-soft); }
.footer a { text-decoration: none; font-weight: 700; }
.footer a:hover { color: var(--v-pink); }

/* ---------- Aparición progresiva ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; }
  .g { grid-column: span 1 !important; grid-row: span 1 !important; }
  .g1, .g4, .g9 { grid-column: span 2 !important; grid-row: span 1 !important; }
  .g1, .g4, .g9 { aspect-ratio: auto; }
  .g4 { border-radius: 90px 90px var(--radius) var(--radius); }
}
@media (max-width: 560px) {
  .header { flex-direction: column; text-align: center; }
  .header__note { text-align: center; }
  .countdown { grid-template-columns: repeat(2, 1fr); max-width: 340px; }
  .gallery { grid-auto-rows: 52vw; }
  .tool, .b1 { display: none; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
