/* Baby Heroe · web de marca babyheroe.es */

:root {
  --brand: #2AB5AC;
  --deep: #0E7C74;
  --deeper: #0A5A54;
  --ink: #1C3A3F;
  --muted: #456A6E;
  --surface: #EEF7F6;
  --line: #D5E8E6;
  --sun: #F0B93B;
  --amz: #FFA41C;
  --amz-hover: #FF9900;
  --amz-ink: #131921;
  --r: 16px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2 { font-family: 'Baloo 2', 'Nunito Sans', sans-serif; line-height: 1.14; text-wrap: balance; }
h1 { font-size: clamp(2rem, 5.5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.25rem); font-weight: 700; color: var(--ink); margin-bottom: .6em; }
p { text-wrap: pretty; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 2rem); }
.wrap-narrow { max-width: 720px; }
.lead { color: var(--muted); max-width: 52ch; margin-bottom: 2rem; }

/* ---------- barra superior ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .6rem clamp(1rem, 4vw, 2rem);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(8px);
  transition: box-shadow .25s var(--ease);
}
.topbar.scrolled { box-shadow: 0 2px 14px rgba(10, 90, 84, .12); }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--deeper); }
.brand img { border-radius: 50%; }
.brand span { font-family: 'Baloo 2', sans-serif; font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.topbar nav { display: none; gap: 1.4rem; margin-left: auto; }
.topbar nav a { text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.topbar nav a:hover { color: var(--deep); }
.topbar .btn-mini { margin-left: auto; }
@media (min-width: 760px) {
  .topbar nav { display: flex; }
  .topbar .btn-mini { margin-left: 0; }
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 800 1.0625rem/1 'Nunito Sans', sans-serif;
  text-decoration: none;
  border-radius: 999px;
  padding: .95rem 1.7rem;
  min-height: 48px;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-amazon { background: var(--amz); color: var(--amz-ink); box-shadow: 0 6px 18px rgba(255, 153, 0, .35); }
.btn-amazon:hover { background: var(--amz-hover); }
.btn-mini { padding: .6rem 1.1rem; min-height: 40px; font-size: .95rem; box-shadow: none; white-space: nowrap; }
.btn-big { font-size: 1.2rem; padding: 1.15rem 2.2rem; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .75); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-light { background: #fff; color: var(--deeper); box-shadow: 0 6px 18px rgba(0, 0, 0, .16); }

/* ---------- héroe ---------- */
.hero {
  position: relative;
  background: linear-gradient(168deg, #10877E 0%, var(--deep) 40%, var(--deeper) 100%);
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%;
  background: rgba(255, 255, 255, .05); right: -160px; top: -120px; pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 2rem) clamp(4.5rem, 9vw, 6.5rem);
  display: grid; gap: 2.5rem; align-items: center;
}
.hero-kicker { font-weight: 800; font-size: .9rem; letter-spacing: .02em; color: rgba(255, 255, 255, .85); margin-bottom: 1rem; }
.hero h1 { margin-bottom: 1.1rem; max-width: 21ch; }
.hero-sub { font-size: 1.15rem; font-weight: 600; color: rgba(255, 255, 255, .95); max-width: 44ch; margin-bottom: 1.1rem; }
.hero-sub strong { color: #fff; }
.hero-trust { font-weight: 800; font-size: .95rem; margin-bottom: 1.6rem; }
.hero-trust svg { display: inline-block; vertical-align: -3px; margin-right: .35rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: .9rem; }
.hero-note { font-size: .875rem; font-weight: 700; color: rgba(255, 255, 255, .8); }
.hero-photo { justify-self: center; width: min(420px, 86vw); }
.hero-photo img { border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.hero .wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 56px; z-index: 1; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
}

/* ---------- secciones ---------- */
.sect { padding: clamp(3.5rem, 9vw, 5.5rem) 0; }
.sect-tint { background: var(--surface); }
.wrap-split { display: grid; gap: 2.25rem; align-items: center; }
.wrap-split figure img { border-radius: var(--r); }
@media (min-width: 880px) { .wrap-split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.destacado {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: var(--surface); border-radius: var(--r);
  font-weight: 800; color: var(--deep);
}
#problema p + p { margin-top: .9rem; }

/* pasos */
.steps { list-style: none; display: grid; gap: 2rem; margin: 1.5rem 0 2.5rem; }
.steps figure { position: relative; border-radius: var(--r); overflow: hidden; }
.steps img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.step-n {
  position: absolute; top: .75rem; left: .75rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--deep); color: #fff;
  font: 700 1.25rem/1 'Baloo 2', sans-serif;
  display: grid; place-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .25);
}
.steps p { margin-top: .7rem; font-weight: 700; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } .steps p { font-size: .95rem; } }
.video-frame { border-radius: var(--r); overflow: hidden; box-shadow: 0 14px 40px rgba(10, 90, 84, .18); max-width: 760px; margin: 0 auto; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #06322e; }

/* beneficios */
.checks { list-style: none; display: grid; gap: 1.4rem; margin-top: 1.5rem; }
.checks li { display: flex; gap: .9rem; align-items: flex-start; }
.checks .ic { flex: none; width: 28px; height: 28px; color: var(--brand); margin-top: .1em; }
.checks b { color: var(--deeper); }
@media (min-width: 760px) { .checks { grid-template-columns: 1fr 1fr; gap: 1.6rem 2.5rem; } }

/* banda opiniones */
.band { background: var(--deeper); color: #fff; text-align: center; padding: clamp(3.5rem, 9vw, 5rem) 0; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .92); max-width: 52ch; margin: 0 auto 1.8rem; }
.band p strong { color: #fff; }
.band .stars-big { font-size: 1.9rem; letter-spacing: .18em; color: var(--sun); margin-bottom: .4rem; }
.stars-big .half { opacity: .45; }

/* marca */
.marco-emocional img { aspect-ratio: 16 / 10; object-fit: cover; }
#marca p + p { margin-top: .9rem; }
.banner-claim { margin-top: 1.5rem; border-radius: 12px; }

/* FAQ */
#preguntas details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1rem 1.25rem; margin-bottom: .8rem;
}
#preguntas summary {
  cursor: pointer; font-weight: 800; color: var(--ink);
  list-style: none; position: relative; padding-right: 2rem;
}
#preguntas summary::-webkit-details-marker { display: none; }
#preguntas summary::after {
  content: "+"; position: absolute; right: .1rem; top: 50%;
  transform: translateY(-50%);
  font: 700 1.4rem/1 'Baloo 2', sans-serif; color: var(--brand);
  transition: transform .2s var(--ease);
}
#preguntas details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
#preguntas details p { margin-top: .7rem; color: var(--muted); }

/* CTA final */
.final { text-align: center; }
.final .lead { margin-inline: auto; }
.final .hero-note { color: var(--muted); margin-top: 1rem; }

/* ---------- footer ---------- */
footer { background: var(--deeper); color: #fff; text-align: center; padding: clamp(3rem, 8vw, 4.5rem) 0; }
footer .claim {
  font-family: 'Baloo 2', sans-serif;
  font-size: clamp(1.375rem, 4vw, 1.7rem); font-weight: 700; line-height: 1.3;
  margin-bottom: 1.4rem; text-wrap: balance;
}
footer a { color: #fff; font-weight: 700; }
.f-links { margin-bottom: 1.4rem; }
.f-legal, .f-brand { font-size: .875rem; color: rgba(255, 255, 255, .82); max-width: 56ch; margin: 0 auto; }
.f-brand { margin-top: .4rem; }

/* ---------- motion ---------- */
.rv.pre { opacity: 0; transform: translateY(12px); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s var(--ease), transform .6s var(--ease); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv.pre { opacity: 1; transform: none; }
  .btn, .topbar { transition: none; }
}
