/* === Kids Kingdom — Extras CSS === */

/* ----- Scroll progress ----- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px;
  z-index: 70; background: rgba(75, 69, 145, 0.08);
}
.scroll-progress span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--kk-gold), var(--kk-red), var(--kk-purple));
  transition: width 0.06s linear;
}

/* ----- Ambient background blobs ----- */
.ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}
.ambient .ab {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.18;
  will-change: transform;
}
.ambient .b1 { width: 480px; height: 480px; background: var(--kk-gold);   top: 10%;  left: -10%; animation: drift1 22s ease-in-out infinite; }
.ambient .b2 { width: 380px; height: 380px; background: var(--kk-green);  top: 50%;  right: -8%; animation: drift2 26s ease-in-out infinite; }
.ambient .b3 { width: 420px; height: 420px; background: var(--kk-purple); top: 120%; left: 30%;  animation: drift3 30s ease-in-out infinite; }
.ambient .b4 { width: 320px; height: 320px; background: var(--kk-red);    top: 200%; right: 10%; animation: drift1 24s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px, -30px); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 40px); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px, -50px); } }

body > * { position: relative; z-index: 1; }
.ambient { z-index: 0 !important; }

/* ----- Confetti canvas ----- */
.kk-confetti {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 90;
}

/* ----- WhatsApp FAB ----- */
.wa-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 65;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.wa-fab.in { opacity: 1; transform: translateY(0); pointer-events: auto; }
.wa-btn {
  position: relative;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: white;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
  transition: transform 0.2s;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-pulse {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25D366;
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-bubble {
  width: min(300px, calc(100vw - 60px));
  background: white; color: var(--kk-ink);
  border-radius: 18px; padding: 14px;
  box-shadow: 0 22px 50px -18px rgba(0,0,0,0.35);
  animation: pop 0.3s cubic-bezier(.5,1.6,.5,1);
}
.wa-bubble-h { display: flex; align-items: center; gap: 10px; }
.wa-av {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--kk-purple);
  display: grid; place-items: center; flex-shrink: 0;
}
.wa-bubble-h strong { display: block; font-family: var(--font-display); font-size: 16px; line-height: 1.1; }
.wa-bubble-h small { color: var(--kk-gray); font-size: 12px; }
.wa-bubble-h > div { flex: 1; }
.wa-x { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--kk-cream); display: grid; place-items: center; color: var(--kk-gray); }
.wa-msg {
  background: var(--kk-cream); padding: 12px 14px;
  border-radius: 14px 14px 14px 4px; margin: 12px 0;
  font-size: 14px; color: var(--kk-ink);
}
.wa-cta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366; color: white; padding: 12px;
  border-radius: 12px; font-weight: 800; font-size: 14px;
}
.wa-cta:hover { background: #1ebe5d; }

@media (max-width: 600px) {
  .wa-fab { right: 14px; bottom: 14px; }
  .wa-btn { width: 56px; height: 56px; }
}

/* ================================================================
   EDADES
   ================================================================ */
.edades-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap;
  margin-bottom: 36px;
}

.edades-strip {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 12px; margin-bottom: 32px;
}
@media (max-width: 900px) {
  .edades-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .edades-strip { grid-template-columns: 1fr; }
}

.edad-pill {
  background: white; border-radius: 18px; padding: 16px 18px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  border: 1.5px solid rgba(26,17,24,.06);
  text-align: left; cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.edad-pill .num { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--c, var(--kk-purple)); opacity: 0.5; letter-spacing: 0.1em; }
.edad-pill .nm  { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1; }
.edad-pill .ed  { font-size: 12px; font-weight: 700; color: var(--kk-gray); text-transform: uppercase; letter-spacing: 0.08em; }
.edad-pill:hover { transform: translateY(-2px); }
.edad-pill.active {
  border-color: var(--c);
  box-shadow: 0 18px 30px -22px var(--c), inset 0 0 0 1px var(--c);
}
.edad-pill.active .num { opacity: 1; }

.edad-detail {
  display: grid; grid-template-columns: 0.9fr 1.2fr; gap: 36px;
  background: white; border-radius: 32px; padding: 32px;
  border: 1px solid rgba(26,17,24,.05);
  box-shadow: var(--shadow-soft);
  animation: pop 0.4s ease;
}
@media (max-width: 900px) { .edad-detail { grid-template-columns: 1fr; } }

.edad-visual {
  position: relative;
  border-radius: 24px;
  aspect-ratio: 1/1.05;
  background: linear-gradient(160deg, var(--c) 0%, color-mix(in oklch, var(--c), black 20%) 120%);
  overflow: hidden;
  display: grid; place-items: center;
}
.edad-num {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 220px);
  color: rgba(255,255,255,0.18);
  font-weight: 700; line-height: 1;
  position: absolute; left: 8%; top: -10%;
}
.edad-orbit, .edad-orbit.two {
  position: absolute; border: 2px dashed rgba(255,255,255,0.25);
  border-radius: 50%; animation: spin 30s linear infinite;
}
.edad-orbit { width: 70%; height: 70%; }
.edad-orbit.two { width: 95%; height: 95%; animation-duration: 50s; animation-direction: reverse; border-style: dotted; }
.edad-bubble {
  position: absolute; width: 70px; height: 70px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  right: 12%; bottom: 15%;
  animation: floatY 4s ease-in-out infinite;
}
.edad-emo {
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: grid; place-items: center;
  animation: floatY 5s ease-in-out infinite;
  position: relative; z-index: 2;
  border: 1px solid rgba(255,255,255,0.3);
}

.edad-text { display: flex; flex-direction: column; gap: 14px; }
.edad-tag {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  color: white; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; align-self: flex-start;
}
.edad-text h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  margin: 4px 0; line-height: 1.05;
}
.edad-text > p {
  color: var(--kk-gray);
  font-size: 16px; margin: 0;
}
.edad-grid {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 8px;
}
@media (max-width: 600px) { .edad-grid { grid-template-columns: 1fr; } }
.edad-card {
  background: var(--kk-paper); border-radius: 18px; padding: 18px 20px;
}
.edad-card small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--kk-gray); margin-bottom: 10px; }
.edad-card ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; }
.edad-card ul li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.edad-card ul li .bullet { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.edad-card.alt { color: white; display: flex; flex-direction: column; justify-content: center; }
.edad-hora { font-family: var(--font-display); font-size: 24px; font-weight: 600; }

/* ================================================================
   TIMELINE
   ================================================================ */
.timeline {
  position: relative; max-width: 920px; margin: 0 auto;
  padding: 20px 0;
}
.timeline-line {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 3px;
  background: repeating-linear-gradient(to bottom, var(--kk-purple) 0 8px, transparent 8px 16px);
  transform: translateX(-50%);
}
@media (max-width: 720px) { .timeline-line { left: 30px; } }

.t-row {
  display: grid; grid-template-columns: 1fr 90px 1fr;
  gap: 20px; align-items: center; margin-bottom: 26px;
}
.t-row.r .t-card { grid-column: 3; }
.t-row.l .t-card { grid-column: 1; text-align: right; }
.t-row.r .t-card .t-ic { margin-left: 0; }
.t-row.l .t-card .t-ic { margin-left: auto; }

.t-card {
  background: white; border-radius: 22px; padding: 22px;
  border: 1px solid rgba(26,17,24,.05);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease;
}
.t-card:hover { transform: translateY(-3px); }
.t-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: white; margin-bottom: 10px;
}
.t-card h4 { margin: 0 0 6px; font-family: var(--font-display); font-size: 20px; }
.t-card p { margin: 0; color: var(--kk-gray); font-size: 14.5px; }

.t-time {
  grid-column: 2; justify-self: center;
  width: 70px; height: 70px; border-radius: 50%;
  color: white; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  box-shadow: 0 0 0 6px var(--kk-cream), 0 14px 28px -10px rgba(0,0,0,0.25);
  position: relative; z-index: 2;
}

@media (max-width: 720px) {
  .t-row { grid-template-columns: 60px 1fr; gap: 16px; }
  .t-row.l .t-card, .t-row.r .t-card { grid-column: 2; text-align: left; }
  .t-row .t-card .t-ic { margin-left: 0; }
  .t-time { grid-column: 1; width: 60px; height: 60px; font-size: 14px; box-shadow: 0 0 0 5px var(--kk-cream), 0 10px 20px -8px rgba(0,0,0,0.25); }
}

/* ================================================================
   TESTIMONIOS
   ================================================================ */
.testi-wrap {
  position: relative;
  background: white;
  border-radius: 36px;
  padding: 70px 50px;
  border: 1px solid rgba(26,17,24,.05);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
@media (max-width: 600px) { .testi-wrap { padding: 50px 26px; border-radius: 28px; } }

.testi-quote {
  position: absolute; top: -30px; right: 30px;
  font-family: var(--font-display); font-weight: 700;
  font-size: 280px; color: rgba(75, 69, 145, 0.06);
  line-height: 1;
}
.testi-head { position: relative; z-index: 2; max-width: 600px; margin-bottom: 28px; }
.testi-head .kk-h2 { margin: 16px 0 0; }

.testi-card {
  position: relative; z-index: 2;
  animation: fadeIn 0.6s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.testi-text {
  font-family: var(--font-display);
  font-weight: 500; font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.3; letter-spacing: -0.01em;
  margin: 0 0 30px; max-width: 750px;
  color: var(--kk-ink);
}
.testi-foot { display: flex; align-items: center; gap: 14px; }
.testi-av {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  color: white; font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.testi-foot strong { display: block; font-family: var(--font-display); font-size: 18px; }
.testi-foot small { color: var(--kk-gray); font-size: 13px; }

.testi-nav {
  display: flex; align-items: center; gap: 16px;
  margin-top: 32px; position: relative; z-index: 2;
}
.t-arr {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--kk-ink); color: white;
  display: grid; place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.t-arr:not(.fw) { transform: rotate(180deg); }
.t-arr:hover { background: var(--kk-red); }
.t-arr.fw:hover { transform: scale(1.08); }
.t-arr:not(.fw):hover { transform: rotate(180deg) scale(1.08); }

.t-dots { display: flex; gap: 8px; flex: 1; }
.t-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(26,17,24,.15);
  transition: background 0.2s, width 0.2s;
}
.t-dot.on { background: var(--kk-purple); width: 28px; border-radius: 999px; }

/* ================================================================
   FAQ
   ================================================================ */
.faq-grid {
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 60px; align-items: start;
}
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 30px; } }

.faq-side { position: sticky; top: 110px; }
@media (max-width: 900px) { .faq-side { position: static; } }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: white; border-radius: 18px;
  border: 1px solid rgba(26,17,24,.06);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--kk-purple); box-shadow: var(--shadow-soft); }
.faq-q {
  width: 100%; padding: 22px 24px; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-family: var(--font-display); font-weight: 600; font-size: 19px;
  background: transparent;
}
.faq-toggle {
  position: relative; width: 24px; height: 24px; flex-shrink: 0;
}
.faq-toggle span {
  position: absolute; left: 4px; top: 50%; width: 16px; height: 2.5px; background: var(--kk-purple); border-radius: 2px;
  transition: transform 0.3s ease;
}
.faq-toggle span:last-child { transform: translateY(-50%) rotate(90deg); }
.faq-item.open .faq-toggle span:last-child { transform: translateY(-50%) rotate(0); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.5,0,.5,1);
}
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p {
  margin: 0; padding: 0 24px 22px;
  color: var(--kk-gray); font-size: 15px; line-height: 1.6;
}

/* ----- Reduced-motion respect ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ----- Image-tile slight tilt on hover ----- */
.tile { transition: transform 0.4s cubic-bezier(.2,.7,.2,1); }
.tile:hover { transform: translateY(-4px) rotate(-0.5deg); }

/* ----- Section transition gentle background ----- */
section.kk-section { transition: background 0.4s ease; }

/* Improve nav active state */
.nav .menu a.active { background: var(--kk-purple); color: white; }
