/* =========================================================
   CANWEGOO · estilos de la web
   Colores de marca: cambia aquí y cambia en toda la web.
   ========================================================= */
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("/fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --crema: #FBF7F2;
  --beige: #F3EADF;
  --tinta: #2B2420;
  --gris: #6B5F57;
  --gris-claro: #8A7D74;
  --teja: #C1502E;
  --teja-osc: #A8432A;
  --mostaza: #F2B84B;
  --sonrisa: #E9A82E;
  --borde: #E2D6C8;
  --linea: #EADFD2;
  --crema-texto: #FBF4EC;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--crema); color: var(--tinta); font-family: var(--sans); line-height: 1.5; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--teja-osc); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--mostaza); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
[hidden] { display: none !important; }

/* ---------- Logo ---------- */
.logo { font-family: var(--serif); font-weight: 900; line-height: 1; letter-spacing: -0.02em; color: var(--teja); display: inline-block; padding-bottom: 0.36em; white-space: nowrap; }
.logo:hover { color: var(--teja); }
.logo .oo { position: relative; display: inline-block; }
.logo .oo svg { position: absolute; left: 0; bottom: -0.36em; width: 100%; height: 0.36em; overflow: visible; }
.logo--header { font-size: 46px; }

/* ---------- Cabecera ---------- */
.site-header .wrap { padding-top: 22px; padding-bottom: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.pill { background: var(--mostaza); border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 700; }
.pill .corto { display: none; }
.back-link { font-size: 15px; font-weight: 700; color: var(--teja-osc); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; padding: 0 26px; font-size: 16px; font-weight: 700; border: 0; text-align: center; }
.btn--teja { background: var(--teja-osc); color: #fff; }
.btn--teja:hover { background: #923a24; color: #fff; }
.btn--tinta { background: var(--tinta); color: #fff; }
.btn--tinta:hover { background: #000; color: #fff; }
.btn--blanco { background: #fff; color: var(--tinta); border: 1px solid var(--borde); }
.btn--crema { background: var(--crema-texto); color: var(--teja-osc); }
.btn--crema:hover { color: var(--teja-osc); background: #fff; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 80px; }
.hero__text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(2.7rem, 6vw, 4.4rem); line-height: 0.98; letter-spacing: -0.03em; }
.acento { color: var(--teja); }
.lead { margin: 0; font-size: 1.25rem; line-height: 1.55; color: var(--gris); max-width: 560px; }

/* Formulario familias */
.signup { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.signup__row { display: flex; flex-wrap: wrap; gap: 8px; background: #fff; border: 1px solid var(--borde); border-radius: 999px; padding: 8px; box-shadow: 0 8px 24px rgba(43,36,32,0.06); }
.signup__row label { flex: 1 1 220px; min-width: 0; display: flex; }
.signup__row input { flex: 1; min-width: 0; border: 0; outline: none; padding: 0 18px; min-height: 52px; font-size: 16px; background: transparent; }
.signup__row .btn { flex: 0 0 auto; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips__label { font-size: 14px; font-weight: 700; margin-right: 4px; }
.opt { font-weight: 400; color: var(--gris); }
.chip { min-height: 42px; border-radius: 999px; padding: 0 16px; font-size: 14px; font-weight: 700; background: #fff; color: var(--tinta); border: 1px solid var(--borde); }
.chip[aria-pressed="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--gris); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--teja-osc); flex-shrink: 0; }
.consent a { color: var(--teja-osc); font-weight: 700; }
.form-error { margin: 0; background: #FFF0EA; border: 1px solid #F3C2AE; color: #8A2E16; border-radius: 14px; padding: 10px 14px; font-size: 14px; font-weight: 700; }

/* Tarjeta de éxito */
.done { max-width: 560px; background: #fff; border: 1px solid var(--borde); border-radius: 28px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.done__oo { font-size: 54px; }
.done__title { font-family: var(--serif); font-weight: 900; font-size: 2rem; line-height: 1.05; }
.done__text { font-size: 16px; line-height: 1.55; color: var(--gris); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.copied { font-size: 13px; font-weight: 700; color: var(--teja-osc); align-self: center; }

/* Móvil de muestra */
.hero__phone { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
.phone { width: 290px; height: 590px; border-radius: 44px; background: var(--tinta); padding: 12px; box-shadow: 0 30px 60px rgba(43,36,32,0.25); transform: rotate(3deg); }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; background: var(--crema); overflow: hidden; padding: 18px 14px; display: flex; flex-direction: column; gap: 12px; }
.phone__hi { font-family: var(--serif); font-weight: 900; font-size: 20px; line-height: 1.1; }
.phone__tabs { display: flex; background: var(--beige); border-radius: 10px; padding: 3px; font-size: 11px; font-weight: 700; }
.phone__tabs span { flex: 1; text-align: center; padding: 7px 0; color: var(--gris); }
.phone__tabs span:first-child { background: #fff; border-radius: 8px; color: var(--tinta); }
.phone__card { background: #fff; border-radius: 16px; overflow: hidden; }
.phone__img { height: 110px; background: #E6D9CA; }
.phone__body { padding: 10px; display: flex; flex-direction: column; gap: 3px; }
.phone__body b { font-family: var(--serif); font-weight: 700; font-size: 14px; }
.phone__body span { font-size: 11px; color: var(--gris); }
.phone__row { background: #fff; border-radius: 14px; padding: 8px; display: flex; gap: 8px; align-items: center; }
.phone__row i { width: 40px; height: 40px; border-radius: 10px; background: #E6D9CA; flex-shrink: 0; }
.phone__row b { flex: 1; font-size: 12px; }
.tag { border-radius: 999px; padding: 3px 7px; font-size: 9px; font-weight: 700; color: #fff; background: var(--teja); }
.tag--tinta { background: var(--tinta); }

/* ---------- Banda ---------- */
@keyframes cwgmq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.band { background: var(--teja); color: var(--crema-texto); overflow: hidden; padding: 26px 0; }
.band__track { display: flex; gap: 44px; width: max-content; animation: cwgmq 38s linear infinite; font-family: var(--serif); font-weight: 800; font-size: 32px; }
.band__track span { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; }
.band__track span::after { content: "✕"; color: var(--mostaza); }
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }

/* ---------- Ventajas ---------- */
.features { background: var(--beige); }
.features .wrap { padding-top: 80px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 40px; }
.h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -0.02em; line-height: 1.1; }
.center { text-align: center; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 21px; }
.card p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--gris); }

/* ---------- Bloques finales ---------- */
.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; padding-top: 80px; padding-bottom: 80px; }
.box { border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.box h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 1.9rem; line-height: 1.15; }
.box p { margin: 0; font-size: 16px; line-height: 1.55; }
.box .btn { margin-top: auto; align-self: flex-start; }
.box--linea { border: 1px solid var(--borde); }
.box--linea p { color: var(--gris); }
.box--teja { background: var(--teja); color: var(--crema-texto); }
.box--teja p { color: #FBE3D6; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--linea); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--gris); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a, .linklike { color: var(--gris); }
.linklike { border: 0; background: none; padding: 0; font-size: inherit; text-decoration: underline; }

/* ---------- Banner de cookies ---------- */
.cookies { position: fixed; left: 24px; bottom: 24px; width: 380px; max-width: calc(100% - 48px); background: #fff; border: 1px solid var(--borde); border-radius: 22px; padding: 20px; box-shadow: 0 16px 40px rgba(43,36,32,0.18); display: flex; flex-direction: column; gap: 12px; z-index: 50; }
.cookies__title { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; }
.cookies p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--gris); }
.cookies p a { color: var(--teja-osc); font-weight: 700; }
.cookies__btns { display: flex; gap: 8px; }
.cookies__btns button { flex: 1; min-height: 48px; border: 0; border-radius: 999px; color: #fff; font-size: 15px; font-weight: 700; }
.cookies__no { background: var(--tinta); }
.cookies__yes { background: var(--teja-osc); }

/* ---------- Organizadores ---------- */
.org { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 32px; padding-bottom: 80px; }
.org__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.org__text h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.03em; }
.pill--sm { align-self: flex-start; padding: 8px 14px; font-size: 13px; }
.steps { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step__n { flex: 0 0 40px; height: 40px; border-radius: 999px; background: var(--teja); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 900; }
.step b { display: block; font-size: 16px; }
.step div span { font-size: 15px; line-height: 1.5; color: var(--gris); }
.note { background: var(--beige); border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.note b { font-family: var(--serif); font-weight: 800; font-size: 1.2rem; }
.note span { font-size: 15px; line-height: 1.55; color: var(--gris); }
.org__form { flex: 1 1 480px; min-width: 0; }
.panel { background: #fff; border: 1px solid var(--borde); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 12px 30px rgba(43,36,32,0.06); }
.panel h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 1.7rem; }
.f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 700; min-width: 0; }
.f input, .f select, .f textarea { min-height: 50px; border-radius: 14px; border: 1px solid var(--borde); background: #fff; padding: 0 16px; font-size: 16px; font-weight: 400; width: 100%; }
.f textarea { padding: 14px 16px; min-height: 96px; resize: vertical; }
.f small { font-weight: 400; color: var(--gris-claro); font-size: 12px; text-align: right; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; align-items: start; }
.done--center { align-items: center; text-align: center; padding: 40px 32px; max-width: none; }

/* ---------- Legal ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 24px 24px 80px; display: flex; flex-direction: column; gap: 26px; }
.legal h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; letter-spacing: -0.03em; }
.tabs { display: flex; gap: 8px; background: var(--beige); border-radius: 16px; padding: 5px; align-self: flex-start; }
.tabs a { min-height: 44px; display: flex; align-items: center; border-radius: 12px; padding: 0 18px; font-size: 15px; font-weight: 700; color: var(--gris); }
.tabs a[aria-current="true"] { background: #fff; color: var(--tinta); box-shadow: 0 1px 3px rgba(43,36,32,0.12); }
.legal section { display: flex; flex-direction: column; gap: 22px; }
.legal h2 { margin: 0 0 8px; font-family: var(--serif); font-weight: 800; font-size: 1.35rem; }
.legal p { margin: 0; font-size: 16px; line-height: 1.65; color: #4A403A; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.legal .updated { font-size: 13px; color: var(--gris-claro); }

/* ---------- Páginas sueltas (confirmado, 404) ---------- */
.solo { min-height: 100vh; display: flex; flex-direction: column; }
.solo main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px 96px; }
.solo__inner { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.solo h1 { margin: 0; font-family: var(--serif); font-weight: 900; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 0.98; letter-spacing: -0.03em; }
.solo p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--gris); }
.big-oo { font-size: 90px; }
.big-404 { font-family: var(--serif); font-weight: 900; font-size: 9rem; line-height: 0.9; color: var(--teja); letter-spacing: -0.03em; }
.solo .box { width: 100%; margin-top: 10px; }

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .logo--header { font-size: 32px; }
  .site-header .wrap { padding-top: 18px; padding-bottom: 18px; flex-wrap: nowrap; }
  .pill { padding: 8px 12px; font-size: 12px; }
  .pill .largo { display: none; }
  .pill .corto { display: inline; }
  .hero { padding-top: 22px; padding-bottom: 40px; gap: 40px; }
  .lead { font-size: 17px; }
  .signup__row { flex-direction: column; border-radius: 22px; background: transparent; border: 0; padding: 0; box-shadow: none; gap: 12px; }
  .signup__row label { flex: none; }
  .signup__row input { min-height: 54px; border-radius: 16px; border: 1px solid var(--borde); background: #fff; }
  .signup__row .btn { margin-left: 0; width: 100%; min-height: 56px; font-size: 17px; }
  .hero__phone { display: none; }
  .band { padding: 18px 0; }
  .band__track { font-size: 22px; }
  .features .wrap, .duo { padding-top: 44px; padding-bottom: 44px; }
  .box { padding: 24px 20px; }
  .box h2 { font-size: 1.5rem; }
  .box .btn { width: 100%; }
  .cookies { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
  .panel { padding: 24px 20px; }
  .tabs { align-self: stretch; }
  .tabs a { flex: 1; justify-content: center; padding: 0 6px; font-size: 14px; }
  .big-oo { font-size: 70px; }
  .big-404 { font-size: 6.5rem; }
  .solo p { font-size: 17px; }
}
.solo .box--teja p { color: #FBE3D6; font-size: 16px; }
/* Formulario familias: email → edades → casilla → botón */
.signup__email { display: flex; }
.signup__email input { flex: 1; min-width: 0; min-height: 56px; border-radius: 999px; border: 1px solid var(--borde); background: #fff; padding: 0 22px; font-size: 16px; box-shadow: 0 8px 24px rgba(43,36,32,0.06); outline: none; }
.signup__email input:focus { border-color: var(--teja-osc); }
.signup__btn { align-self: flex-start; min-height: 56px; font-size: 17px; padding: 0 30px; }
@media (max-width: 640px) { .signup__email input { border-radius: 16px; } .signup__btn { align-self: stretch; } }
