/* ============================================================
   MUNDO KIDS CRIATIVO — style.css
   ============================================================ */

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

/* ── Variables ── */
:root {
  --yellow:  #FFD93D;
  --orange:  #FF6B35;
  --pink:    #FF6B9D;
  --purple:  #A855F7;
  --blue:    #3B82F6;
  --cyan:    #06B6D4;
  --green:   #22C55E;
  --lime:    #84CC16;
  --red:     #EF4444;
  --dark:    #1E1B4B;
  --white:   #FFFFFF;
  --font-title: 'Fredoka One', cursive;
  --font-body:  'Nunito', sans-serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  background: #fdf6ff;
  color: var(--dark);
  overflow-x: hidden;
}

/* ── BG Bubbles ── */
.bg-shapes { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.shape {
  position: absolute; border-radius: 50%; opacity: .12;
  animation: floatShape 8s ease-in-out infinite;
}
.shape:nth-child(1)  { width:180px;height:180px;background:var(--pink);   top:5%;  left:2%;  animation-delay:0s;   animation-duration:9s;  }
.shape:nth-child(2)  { width:120px;height:120px;background:var(--cyan);   top:12%; right:5%; animation-delay:1s;   animation-duration:7s;  }
.shape:nth-child(3)  { width:90px; height:90px; background:var(--yellow); top:35%; left:1%;  animation-delay:2s;   animation-duration:10s; }
.shape:nth-child(4)  { width:150px;height:150px;background:var(--green);  top:50%; right:2%; animation-delay:.5s;  animation-duration:8s;  }
.shape:nth-child(5)  { width:70px; height:70px; background:var(--orange); top:70%; left:4%;  animation-delay:3s;   animation-duration:6s;  }
.shape:nth-child(6)  { width:110px;height:110px;background:var(--purple); top:80%; right:6%; animation-delay:1.5s; animation-duration:11s; }
.shape:nth-child(7)  { width:60px; height:60px; background:var(--lime);   top:92%; left:45%; animation-delay:4s;   animation-duration:7s;  }
.shape:nth-child(8)  { width:200px;height:200px;background:var(--blue);   top:45%; left:48%; animation-delay:2.5s; animation-duration:12s; opacity:.06; }
@keyframes floatShape {
  0%,100% { transform: translateY(0) rotate(0deg) scale(1); }
  33%      { transform: translateY(-30px) rotate(8deg) scale(1.05); }
  66%      { transform: translateY(15px) rotate(-5deg) scale(.97); }
}

/* ── HEADER ── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.logo {
  font-family: var(--font-title);
  font-size: 1.45rem; color: var(--yellow);
  display: flex; align-items: center; gap: 8px;
  text-decoration: none;
}
nav { display: flex; gap: 6px; }
nav a {
  color: white; text-decoration: none;
  font-weight: 700; font-size: .85rem;
  padding: 6px 14px; border-radius: 20px;
  transition: background .2s, transform .15s;
}
nav a:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }

/* ── PROMO BANNER ── */
.promo-banner {
  position: relative; z-index: 99;
  background: linear-gradient(90deg,#FF6B35,#FF6B9D,#FF6B35);
  background-size: 200% auto;
  animation: promoShift 3s linear infinite;
  padding: 10px 20px; text-align: center;
}
@keyframes promoShift { to { background-position: 200% center; } }
.promo-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
}
.promo-fire { font-size: 1.3rem; animation: fireShake .5s ease-in-out infinite alternate; }
@keyframes fireShake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
.promo-text {
  color: white; font-family: var(--font-title); font-size: 1rem;
  text-shadow: 1px 1px 0 rgba(0,0,0,.2);
}
.countdown { display: flex; align-items: center; gap: 4px; }
.cd-block {
  background: rgba(0,0,0,.25); border-radius: 8px; padding: 4px 10px;
  display: flex; flex-direction: column; align-items: center; min-width: 44px;
}
.cd-block span { color: var(--yellow); font-family: var(--font-title); font-size: 1.2rem; line-height: 1; }
.cd-block small { color: rgba(255,255,255,.8); font-size: .62rem; font-weight: 700; }
.cd-sep { color: white; font-family: var(--font-title); font-size: 1.3rem; margin-bottom: 10px; }

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 80px 2rem 60px;
  background: linear-gradient(160deg,#2d0a6d 0%,#1e1b4b 40%,#0a2e5c 100%);
  overflow: hidden;
}
.stars { position: absolute; inset: 0; pointer-events: none; }
.star-dot { position: absolute; border-radius: 50%; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity:.3; transform:scale(1); } 50% { opacity:1; transform:scale(1.4); } }
.hero-arc {
  position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 350px; border-radius: 700px 700px 0 0;
  background: conic-gradient(from 180deg at 50% 100%,#FF6B9D,#FF6B35,#FFD93D,#22C55E,#06B6D4,#A855F7,#FF6B9D);
  opacity: .18; filter: blur(2px);
}
.hero-badge {
  display: inline-block;
  background: var(--yellow); color: var(--dark);
  font-family: var(--font-title); font-size: .95rem;
  padding: 6px 22px; border-radius: 30px; margin-bottom: 20px;
  animation: badgePop .6s cubic-bezier(.34,1.56,.64,1) both .2s;
}
@keyframes badgePop { from { transform:scale(0); opacity:0; } to { transform:scale(1); opacity:1; } }
.hero h1 {
  font-family: var(--font-title);
  font-size: clamp(3rem,8vw,5.5rem);
  line-height: 1.05; color: white;
  text-shadow: 4px 4px 0 rgba(0,0,0,.3);
  animation: heroFadeUp .8s ease both .4s;
}
.hero h1 .accent  { color: var(--yellow); }
.hero h1 .accent2 { color: var(--cyan); }
@keyframes heroFadeUp { from { transform:translateY(40px); opacity:0; } to { transform:translateY(0); opacity:1; } }
.hero-sub {
  font-size: clamp(1rem,2.5vw,1.3rem); color: rgba(255,255,255,.85);
  max-width: 560px; margin: 18px auto 32px; font-weight: 600;
  animation: heroFadeUp .8s ease both .6s;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: heroFadeUp .8s ease both .8s; }
.hero-illu {
  display: flex; justify-content: center; gap: 28px; margin-top: 50px;
  animation: heroFadeUp .8s ease both 1s; flex-wrap: wrap;
}
.illu-card {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.2); border-radius: 20px;
  padding: 18px 22px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .3s, background .3s; cursor: default;
}
.illu-card:hover { transform: translateY(-8px) rotate(-2deg); background: rgba(255,255,255,.18); }
.illu-card .emoji { font-size: 2.8rem; line-height: 1; }
.illu-card span   { color: white; font-size: .8rem; font-weight: 700; opacity: .85; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-title); font-size: 1.1rem;
  padding: 14px 32px; border-radius: 50px; border: none; cursor: pointer;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 12px 30px rgba(0,0,0,.3); }
.btn-primary   { background: var(--yellow); color: var(--dark); }
.btn-secondary { background: var(--pink); color: white; }
.btn-outline   { background: transparent; color: white; border: 2px solid rgba(255,255,255,.5); }
.btn-dark      { background: var(--dark); color: var(--yellow); }

/* ── RIBBON ── */
.ribbon { background: var(--dark); overflow: hidden; white-space: nowrap; padding: 14px 0; position: relative; z-index: 2; }
.ribbon-track { display: inline-block; animation: scroll 18s linear infinite; font-family: var(--font-title); font-size: 1rem; }
.ribbon-track span { margin: 0 28px; }
.ribbon-track .dot { color: var(--yellow); font-size: 1.4rem; vertical-align: middle; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── SECTIONS SHARED ── */
section { position: relative; z-index: 1; }
.section-label {
  display: inline-block; font-family: var(--font-title); font-size: .9rem;
  padding: 5px 18px; border-radius: 20px; margin-bottom: 12px;
}
.section-title { font-family: var(--font-title); font-size: clamp(2rem,4vw,2.8rem); line-height: 1.15; }
.section-sub   { font-size: 1.05rem; color: #64748b; max-width: 520px; margin: 10px auto 0; font-weight: 600; }

/* ── WHY ── */
.why { padding: 80px 2rem; background: white; text-align: center; }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 24px; max-width: 960px; margin: 48px auto 0;
}
.why-card { padding: 30px 22px; border-radius: 24px; transition: transform .3s, box-shadow .3s; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,.12); }
.why-card .icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 16px;
}
.why-card h3 { font-family: var(--font-title); font-size: 1.2rem; margin-bottom: 8px; }
.why-card p  { font-size: .92rem; color: #475569; font-weight: 600; line-height: 1.5; }

/* ── CARTILHAS ── */
.cartilhas { padding: 80px 2rem; background: linear-gradient(180deg,#1e1b4b,#0a2e5c); text-align: center; }
.cartilhas .section-sub { color: rgba(255,255,255,.7); }
.cartilhas-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
  gap: 24px; max-width: 1000px; margin: 48px auto 0;
}
.cartilha-card {
  border-radius: 24px; overflow: hidden;
  transition: transform .3s, box-shadow .3s; cursor: pointer; position: relative;
}
.cartilha-card:hover { transform: scale(1.04) rotate(-1deg); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.cartilha-cover {
  height: 240px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; position: relative; overflow: hidden; padding: 24px;
}
.cartilha-cover::before {
  content:''; position:absolute; inset:0;
  background: radial-gradient(circle at 30% 30%,rgba(255,255,255,.18),transparent 60%);
}
.cartilha-cover .big-emoji { font-size: 4rem; filter: drop-shadow(2px 4px 6px rgba(0,0,0,.3)); }
.cartilha-cover h4 {
  font-family: var(--font-title); font-size: 1.2rem;
  color: white; text-shadow: 1px 2px 4px rgba(0,0,0,.4);
  text-align: center; line-height: 1.2;
}
.cartilha-cover p { color: rgba(255,255,255,.8); font-size: .8rem; font-weight: 700; text-align: center; }
.cartilha-footer {
  background: rgba(255,255,255,.1); backdrop-filter: blur(8px);
  padding: 12px 18px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px;
}
.cartilha-price-old { font-size: .78rem; color: rgba(255,255,255,.55); text-decoration: line-through; display: block; font-weight: 700; }
.cartilha-price-new { font-family: var(--font-title); font-size: 1.3rem; color: var(--yellow); }
.tag {
  background: var(--yellow); color: var(--dark);
  font-family: var(--font-title); font-size: .75rem;
  padding: 3px 10px; border-radius: 12px;
}
.discount-seal {
  position: absolute; top: 12px; left: 12px;
  background: var(--yellow); color: var(--dark);
  font-family: var(--font-title); font-size: .85rem;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.08);} }
.best-value-ribbon {
  position: absolute; top: 18px; right: -6px; z-index: 10;
  background: var(--red); color: white;
  font-family: var(--font-title); font-size: .75rem;
  padding: 5px 16px; border-radius: 4px 0 0 4px;
  box-shadow: 0 3px 10px rgba(0,0,0,.3);
}
.best-value-ribbon::after {
  content:''; position:absolute; right:0; bottom:-6px;
  border: 3px solid transparent;
  border-left-color: #991B1B; border-top-color: #991B1B;
}
.buy-btn {
  width: 100%; margin-top: 8px; padding: 9px;
  background: var(--yellow); color: var(--dark);
  border: none; border-radius: 12px; cursor: pointer;
  font-family: var(--font-title); font-size: .9rem;
  transition: transform .2s, background .2s;
}
.buy-btn:hover { transform: translateY(-2px); background: #f5c800; }

/* ── PRODUCTS ── */
.products { padding: 80px 2rem; background: linear-gradient(180deg,#f0f9ff,#fdf6ff); text-align: center; }
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 28px; max-width: 1100px; margin: 48px auto 0;
}
.product-card {
  background: white; border-radius: 28px; overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s; position: relative;
}
.product-card:hover { transform: translateY(-10px); box-shadow: 0 24px 50px rgba(0,0,0,.15); }
.badge-new {
  position: absolute; top: 16px; right: 16px;
  background: var(--red); color: white;
  font-family: var(--font-title); font-size: .8rem;
  padding: 4px 12px; border-radius: 20px;
}
.product-thumb {
  height: 180px;
  display: flex; align-items: center; justify-content: center; font-size: 5rem;
}
.product-body { padding: 20px 22px 24px; text-align: left; }
.product-body h3 { font-family: var(--font-title); font-size: 1.25rem; margin-bottom: 6px; }
.product-body p  { font-size: .88rem; color: #64748b; font-weight: 600; margin-bottom: 14px; line-height: 1.5; }
.product-price   { display: flex; align-items: center; justify-content: space-between; }
.price-old { font-size: .8rem; color: #94a3b8; text-decoration: line-through; display: block; margin-bottom: 2px; font-weight: 700; }
.price-val { font-family: var(--font-title); font-size: 1.5rem; }

/* ── GARANTIA BAR ── */
.garantia-bar {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  max-width: 960px; margin: 48px auto 0;
  background: white; border-radius: 20px; padding: 24px 32px;
  box-shadow: 0 8px 30px rgba(0,0,0,.07);
}
.garantia-item { display: flex; align-items: center; gap: 12px; }
.garantia-item span    { font-size: 1.8rem; }
.garantia-item strong  { display: block; font-size: .9rem; color: var(--dark); }
.garantia-item small   { font-size: .78rem; color: #64748b; font-weight: 700; }

/* ── TESTIMONIALS ── */
.testimonials { padding: 80px 2rem; background: white; text-align: center; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 22px; max-width: 900px; margin: 48px auto 0;
}
.testi-card { border-radius: 20px; padding: 26px 22px; text-align: left; position: relative; }
.testi-card::before {
  content:'"'; font-size: 5rem; font-family: var(--font-title);
  position: absolute; top: -8px; left: 16px; opacity: .18; line-height: 1;
}
.stars-row  { color: var(--yellow); font-size: 1.1rem; margin-bottom: 10px; }
.testi-card p { font-size: .92rem; line-height: 1.6; font-weight: 600; color: #374151; margin-bottom: 14px; }
.testi-author { display: flex; align-items: center; gap: 10px; }
.avatar { width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:1.3rem; }
.testi-author strong { font-weight:800;font-size:.9rem;display:block; }
.testi-author span   { font-size:.78rem;color:#64748b;font-weight:600; }

/* ── CTA BAND ── */
.cta-band { padding: 80px 2rem; background: linear-gradient(135deg,#FF6B9D,#FF6B35,#FFD93D); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:''; position:absolute; inset:0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='3' fill='white' opacity='0.1'/%3E%3C/svg%3E"); }
.cta-band h2 { font-family:var(--font-title);font-size:clamp(2rem,5vw,3.2rem);color:white;text-shadow:2px 3px 0 rgba(0,0,0,.15);margin-bottom:16px;position:relative; }
.cta-band p  { color:rgba(255,255,255,.9);font-size:1.1rem;font-weight:700;max-width:500px;margin:0 auto 32px;position:relative; }
.cta-band .btn { position:relative; }

/* ── NEWSLETTER ── */
.newsletter { padding: 70px 2rem; background: #f8faff; text-align: center; }
.newsletter-box { max-width:480px;margin:32px auto 0;display:flex;gap:10px;flex-wrap:wrap;justify-content:center; }
.newsletter-box input {
  flex:1;min-width:220px;padding:14px 20px;border-radius:50px;
  border:2px solid #e2e8f0;font-family:var(--font-body);font-size:.95rem;
  font-weight:700;outline:none;transition:border-color .2s;
}
.newsletter-box input:focus { border-color:var(--purple); }

/* ── FOOTER ── */
.footer-rainbow { height: 5px; background: linear-gradient(90deg,var(--pink),var(--orange),var(--yellow),var(--green),var(--cyan),var(--purple)); }
footer { background: var(--dark); padding: 50px 2rem 30px; color: rgba(255,255,255,.75); position: relative; z-index: 2; }
.footer-inner { max-width:1000px;margin:0 auto;display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:36px; }
footer h4 { font-family:var(--font-title);font-size:1.05rem;color:var(--yellow);margin-bottom:14px; }
footer ul { list-style:none; }
footer ul li { margin-bottom:8px; }
footer ul li a { color:rgba(255,255,255,.65);text-decoration:none;font-weight:700;font-size:.9rem;transition:color .2s; }
footer ul li a:hover { color:var(--yellow); }
.footer-brand p { font-size:.88rem;margin-top:10px;line-height:1.6; }
.social-row { display:flex;gap:10px;margin-top:16px; }
.social-btn { width:38px;height:38px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:1.1rem;text-decoration:none;transition:transform .2s,opacity .2s; }
.social-btn:hover { transform:scale(1.15);opacity:.9; }
.footer-bottom { max-width:1000px;margin:36px auto 0;border-top:1px solid rgba(255,255,255,.1);padding-top:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;font-size:.82rem; }

/* ── FLOAT CTA ── */
.float-cta {
  position:fixed;bottom:28px;right:28px;z-index:999;
  background:var(--pink);color:white;
  font-family:var(--font-title);font-size:.95rem;
  padding:14px 22px;border-radius:50px;border:none;cursor:pointer;
  text-decoration:none;box-shadow:0 8px 30px rgba(255,107,157,.55);
  animation:floatBtn 2.5s ease-in-out infinite;
  display:flex;align-items:center;gap:8px;
}
.float-cta:hover { background:var(--orange); }
@keyframes floatBtn { 0%,100%{transform:translateY(0) scale(1);} 50%{transform:translateY(-6px) scale(1.03);} }

/* ── SCROLL REVEAL ── */
.reveal { opacity:0;transform:translateY(36px);transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1;transform:translateY(0); }
.reveal-delay-1 { transition-delay:.1s; }
.reveal-delay-2 { transition-delay:.2s; }
.reveal-delay-3 { transition-delay:.3s; }
.reveal-delay-4 { transition-delay:.4s; }


/* ── CONTACT FORM ── */
.contact-section { padding: 80px 2rem; background: #fff; position: relative; overflow: hidden; }
.contact-section::before {
  content: ''; position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,.08), transparent 70%);
  pointer-events: none;
}
.contact-form {
  max-width: 560px;
  margin: 32px auto 0;
  display: flex; flex-direction: column; gap: 18px;
}
.cfield {
  display: flex; flex-direction: column; gap: 7px;
}
.cfield label {
  font-weight: 800; font-size: .85rem;
  color: var(--dark); letter-spacing: .02em;
}
.cfield input,
.cfield textarea {
  width: 100%;
  padding: 13px 18px;
  border: 2.5px solid #e5e7eb;
  border-radius: 16px;
  font-family: var(--font-body);
  font-size: .97rem; font-weight: 700;
  color: var(--dark);
  background: #fafafa;
  outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
  resize: vertical;
}
.cfield input::placeholder,
.cfield textarea::placeholder {
  color: #c4b5d4; font-weight: 600;
}
.cfield input:focus,
.cfield textarea:focus {
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(168,85,247,.1);
}
.contact-note {
  font-size: .9rem; font-weight: 700; color: var(--text-light);
  text-align: center; margin-top: 4px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero h1 { font-size: 2.8rem; }
  nav a:not(:first-child) { display:none; }
  .float-cta { bottom:16px;right:16px;padding:12px 16px;font-size:.85rem; }
}
