/* Cunitin Baby — hoja de estilos
   Paleta tomada de los propios mordedores: rosa, azul polvo y avena, más salvia. */
:root {
  --ink: #2e3350;
  --ink-soft: #5d6382;
  --paper: #fffcfa;
  --blush: #f8e3e5;
  --blush-deep: #c96f7f;
  --powder: #e2ecf8;
  --powder-deep: #5f86b8;
  --oat: #f3ecdf;
  --sage: #e4ede0;
  --sage-deep: #6f937c;
  --line: #eadfd6;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1160px;
  --radius-s: 12px;
  --radius-m: 22px;
  --radius-l: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--powder-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 0;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 8px 14px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 252, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo img { width: 150px; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
}
.nav a:hover { background: var(--blush); }
.nav a[aria-current="page"] { background: var(--powder); }
.menu-toggle {
  display: none; margin-left: auto; background: none; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #3c4268; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: #fff; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Portada ---------- */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-art { position: relative; aspect-ratio: 1; }
.hero-art .blob {
  position: absolute; inset: -3% -5% -2% -7%;
  background: var(--blush);
  border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%;
}
.hero-art .blob.two {
  inset: 24% -9% -8% 18%; background: var(--powder); opacity: .8;
  border-radius: 58% 42% 50% 50% / 45% 55% 45% 55%;
}
.hero-art img {
  position: relative; mix-blend-mode: multiply;
  animation: settle 1.4s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes settle {
  from { opacity: 0; transform: rotate(-14deg) scale(.92); }
  to { opacity: 1; transform: none; }
}

.facts { border-block: 1px solid var(--line); background: #fff; }
.facts ul {
  list-style: none; margin: 0 auto; padding: 22px 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.facts li { display: flex; gap: 12px; align-items: center; font-weight: 700; line-height: 1.3; }
.facts .dot { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; }
.facts .dot svg { width: 20px; height: 20px; }
.dot.b { background: var(--blush); } .dot.p { background: var(--powder); }
.dot.o { background: var(--oat); } .dot.s { background: var(--sage); }

/* ---------- Secciones ---------- */
.section { padding: 88px 0; }
.section.tint-blush { background: var(--blush); }
.section.tint-powder { background: var(--powder); }
.section.tint-oat { background: var(--oat); }
.section.tint-sage { background: var(--sage); }
.section.night { background: var(--ink); color: #fff; }
.section.night .lead, .section.night p { color: #d9dcec; }
.section.night .btn-primary { background: #fff; color: var(--ink); border-color: #fff; }
.section.night .btn-ghost { color: #fff; border-color: #fff; }
.section.night .btn-ghost:hover { background: rgba(255,255,255,.1); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.photo { border-radius: var(--radius-l); overflow: hidden; }
.photo.round-a { border-radius: 48% 52% 40px 40px / 38% 38% 40px 40px; }

.checks { list-style: none; padding: 0; margin: 0 0 8px; }
.checks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%236f937c' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.section.night .checks li::before { background-color: rgba(255,255,255,.14); }

.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.stage { background: #fff; border-radius: var(--radius-m); padding: 28px; }
.stage .age { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; margin-bottom: 10px; }
.stage:nth-child(1) .age { color: var(--blush-deep); }
.stage:nth-child(2) .age { color: var(--powder-deep); }
.stage:nth-child(3) .age { color: var(--sage-deep); }
.stage p { margin: 0; color: var(--ink-soft); }

.note {
  border-left: 4px solid var(--blush-deep); background: #fff; padding: 16px 20px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0; font-size: .98rem; margin-top: 20px; max-width: 62ch;
}
.section.night .note { background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Página de producto ---------- */
.page-hero { padding: 56px 0 24px; }
.crumbs { font-size: .92rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }
.product-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.product-media { background: var(--blush); border-radius: var(--radius-l); padding: 28px; }
.product-media.powder { background: var(--powder); }
.product-media img { border-radius: var(--radius-m); mix-blend-mode: multiply; }
.specs { width: 100%; border-collapse: collapse; margin: 24px 0 8px; }
.specs th, .specs td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 40%; font-weight: 700; color: var(--ink-soft); padding-right: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 20px 0 0; }
.chips li { padding: 8px 16px; border-radius: 999px; background: #fff; font-weight: 700; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--radius-m); padding: 22px 20px; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--powder); font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--ink-soft); font-size: .96rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.gallery a { border-radius: var(--radius-m); overflow: hidden; display: block; }
.gallery img { transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.03); }

.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-soft); }

/* ---------- Tarjetas de producto ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.product-card { border-radius: var(--radius-l); padding: 28px; display: flex; flex-direction: column; }
.product-card.blush { background: var(--blush); } .product-card.powder { background: var(--powder); }
.product-card img { border-radius: var(--radius-m); mix-blend-mode: multiply; margin-bottom: 24px; }
.product-card p { color: var(--ink-soft); }
.product-card .actions { margin-top: auto; padding-top: 12px; }

/* ---------- Texto largo (legal, blog) ---------- */
.prose { max-width: 720px; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.2em; } .prose li { margin-bottom: .4em; }
.updated { color: var(--ink-soft); font-size: .95rem; }
.guide { background: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 44px); margin-bottom: 28px; }
.guide h2 { margin-top: 0; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; }
.contact-ways { display: grid; gap: 16px; margin-top: 24px; }
.contact-way { display: flex; gap: 16px; align-items: center; background: #fff; border-radius: var(--radius-m); padding: 18px 22px; text-decoration: none; }
.contact-way:hover { background: var(--oat); }
.contact-way small { display: block; color: var(--ink-soft); }
form.card { background: #fff; border-radius: var(--radius-l); padding: clamp(24px, 4vw, 40px); }
label { display: block; font-weight: 700; margin-bottom: 6px; }
input, textarea {
  width: 100%; font: inherit; color: var(--ink); padding: 12px 16px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: var(--paper); margin-bottom: 18px;
}
input:focus, textarea:focus { outline: none; border-color: var(--powder-deep); box-shadow: 0 0 0 3px var(--powder); }
.form-hint { font-size: .9rem; color: var(--ink-soft); }
.form-error { color: #a33b4c; font-weight: 700; min-height: 1.4em; }

/* ---------- Pie ---------- */
.site-footer { background: var(--oat); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; } .footer-grid a:hover { text-decoration: underline; }
.footer-logo img { width: 140px; margin-bottom: 14px; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.socials svg { width: 20px; height: 20px; }
.legal-row { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 20px; font-size: .92rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.legal-row button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- WhatsApp y cookies ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(46,51,80,.25);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.cookie-bar {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 60; max-width: 560px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 22px 24px; box-shadow: 0 12px 36px rgba(46,51,80,.18);
}
.cookie-bar p { font-size: .96rem; margin-bottom: 14px; }
.cookie-bar .actions { margin-top: 0; }
.cookie-bar .btn { padding: 10px 20px; }
.cookie-bar[hidden] { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 12px 20px 20px; }
  .header-row { position: relative; }
  .header-cta { display: none; }
  .hero-grid, .split, .product-top, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.flip > :first-child { order: 0; }
  .hero { padding-top: 32px; }
  .hero-art { max-width: 460px; margin-inline: auto; width: 100%; }
  .facts ul { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .stages, .products, .gallery { grid-template-columns: 1fr; }
  .facts ul, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .cookie-bar .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.todo { background: #fff3a8; padding: 0 4px; border-radius: 4px; }
code { font-size: .92em; background: var(--oat); padding: 1px 6px; border-radius: 6px; }
.photo.round-a img { mix-blend-mode: multiply; }

.product-card.split { display: grid; padding: clamp(24px, 4vw, 48px); }
.product-card.split img { margin-bottom: 0; }
