:root {
  --crema: #FBF6EF;
  --crema-2: #F3EADD;
  --tinta: #2B2420;
  --tinta-suave: #6B5E55;
  --terracota: #D9653B;
  --terracota-osc: #B44E28;
  --salvia: #7A9E7E;
  --mostaza: #E3A83B;
  --rosa: #E8A598;
  --borde: #E4D8C8;
  --radio: 14px;
  --sombra: 0 1px 2px rgba(43, 36, 32, .06), 0 8px 24px rgba(43, 36, 32, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--crema);
  color: var(--tinta);
  font: 400 17px/1.6 "Nunito", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: var(--terracota-osc); }
img, svg { display: block; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--terracota); color: #fff;
  font: 700 1rem/1 "Nunito", sans-serif;
  padding: 16px 26px; text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--terracota-osc); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: progress; }
.btn--small { padding: 10px 18px; font-size: .95rem; }
.btn--light { background: #fff; color: var(--terracota-osc); }
.btn--light:hover { background: var(--crema); }

/* Cabecera */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(251, 246, 239, .9); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.topbar.is-scrolled { border-bottom-color: var(--borde); }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tinta); font: 700 1.5rem/1 "Fraunces", serif; }
.logo__mark { width: 30px; height: 30px; border-radius: 6px; overflow: hidden; }

/* Hero */
.hero { padding: 48px 0 72px; overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--terracota-osc); margin-bottom: .8em; }
.lead { font-size: 1.15rem; color: var(--tinta-suave); max-width: 34em; }

/* Formulario */
.form { margin-top: 28px; max-width: 540px; }
.form__row { display: flex; gap: 8px; background: #fff; padding: 6px; border-radius: 999px; box-shadow: var(--sombra); border: 1px solid var(--borde); }
.form__row input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: inherit; padding: 0 16px; color: var(--tinta);
}
.form__row:focus-within { border-color: var(--terracota); }
.form__more { margin-top: 14px; }
.form__more summary { cursor: pointer; font-weight: 700; color: var(--tinta); font-size: .95rem; }
.form__more summary span { font-weight: 400; color: var(--tinta-suave); }
.form__more fieldset { border: 0; padding: 0; margin: 14px 0 0; }
.form__more legend { font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.form__selects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.form__selects label { display: grid; gap: 4px; font-weight: 700; font-size: .92rem; }
.form__selects select {
  font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--borde); background: #fff; color: var(--tinta);
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; margin: 6px 0; cursor: pointer; }
.check input { margin-top: 5px; accent-color: var(--terracota); width: 16px; height: 16px; flex: none; }
.check--consent { margin-top: 16px; font-size: .85rem; color: var(--tinta-suave); }
.form__msg { min-height: 1.5em; margin-top: 10px; font-weight: 700; }
.form__msg.is-ok { color: #3F7A47; }
.form__msg.is-error { color: #B3261E; }
.form.is-done .form__row, .form.is-done .form__more, .form.is-done .check--consent { display: none; }
.form.is-done .form__msg { font-size: 1.1rem; padding: 18px 20px; background: #fff; border-radius: var(--radio); border: 1px solid var(--borde); }

/* Ilustración de retales */
.hero__art {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  aspect-ratio: 1; max-width: 440px; justify-self: end; width: 100%;
}
.patch { border-radius: 12px; }
.p1 { background: var(--terracota); border-radius: 12px 12px 12px 60%; }
.p2 { background: repeating-linear-gradient(45deg, var(--mostaza) 0 10px, #EDBF62 10px 20px); }
.p3 { background: var(--salvia); border-radius: 50%; }
.p4 { background: radial-gradient(circle, #fff 2.5px, transparent 3px) 0 0/14px 14px, var(--rosa); }
.p5 { background: var(--crema-2); border: 2px dashed var(--terracota); }
.p6 { background: repeating-linear-gradient(0deg, var(--salvia) 0 8px, #93B497 8px 16px); }
.p7 { background: var(--mostaza); border-radius: 60% 12px 12px 12px; }
.p8 { background: var(--tinta); }
.p9 { background: radial-gradient(circle at 30% 30%, #F0BDB2, var(--rosa)); border-radius: 12px 50% 12px 12px; }
.tag {
  position: absolute; background: #fff; border: 1px solid var(--borde); box-shadow: var(--sombra);
  border-radius: 999px; padding: 8px 14px; font-size: .85rem; font-weight: 700; white-space: nowrap;
}
.tag--a { top: 8%; left: -10%; transform: rotate(-4deg); }
.tag--b { top: 46%; right: -6%; transform: rotate(3deg); }
.tag--c { bottom: 6%; left: 4%; transform: rotate(-2deg); }

/* Secciones */
.section { padding: 80px 0; }
.section--tint { background: var(--crema-2); }
.section h2 { max-width: 20em; }
.section__lead { color: var(--tinta-suave); max-width: 40em; font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.card { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 24px; }
.card p { color: var(--tinta-suave); font-size: .97rem; margin: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, #fff); margin-bottom: 16px; }
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.chips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }
.chips li:nth-child(4n+1) { border-color: var(--terracota); }
.chips li:nth-child(4n+2) { border-color: var(--salvia); }
.chips li:nth-child(4n+3) { border-color: var(--mostaza); }
.chips li:nth-child(4n) { border-color: var(--rosa); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p { color: var(--tinta-suave); font-size: 1.08rem; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 54px; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); }
.ticks li::before {
  content: ""; position: absolute; left: 18px; top: 18px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--salvia) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}

.faq { max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 4px 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--terracota); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--tinta-suave); margin: 0 0 16px; }

.cta { background: var(--terracota); color: #fff; text-align: center; }
.cta__inner { display: grid; justify-items: center; }
.cta h2 { margin-left: auto; margin-right: auto; }
.cta p { opacity: .92; max-width: 32em; margin-bottom: 1.6em; }

.footer { padding: 28px 0; font-size: .9rem; color: var(--tinta-suave); }
.footer__inner { display: flex; justify-content: space-between; gap: 16px; }
.footer a { color: var(--tinta-suave); }

/* Página legal */
.legal { padding: 48px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal .note { background: #FFF4D6; border: 1px solid var(--mostaza); border-radius: var(--radio); padding: 14px 18px; font-size: .95rem; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { justify-self: center; max-width: 360px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 24px 0 56px; }
  .section { padding: 56px 0; }
  .cards { grid-template-columns: 1fr; }
  .form__row { flex-direction: column; border-radius: 18px; padding: 8px; }
  .form__row input { padding: 12px; }
  .form__row .btn { width: 100%; }
  .form__selects { grid-template-columns: 1fr; }
  .hero__art { max-width: 300px; }
  .tag { font-size: .78rem; padding: 6px 12px; }
  .tag--a { left: -4%; }
  .tag--b { right: -2%; }
}
