/* vailoun.com — estilo editorial: grafito, marfil y terracota */
:root {
  --ink: #151515;
  --ink-2: #3a3936;
  --muted: #6d6860;
  --bg: #f5f2ec;
  --card: #ffffff;
  --line: #e2dbcf;
  --char: #1c1c1e;
  --char-2: #2d2d30;
  --terra: #b4472b;
  --terra-d: #923820;
  --terra-light: #f0937a;
  --terra-soft: #f7e8e2;
  --ok: #24693f;
  --ok-soft: #e9f4ec;
  --bad: #a3271b;
  --bad-soft: #fbecea;
  --head: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.7;
  border-top: 5px solid var(--terra);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--terra-d); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }

.col { max-width: 700px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- Etiqueta de publicidad ---------- */
.ad-row { padding-top: 22px; }
.ad-pill {
  display: inline-block;
  background: var(--char);
  color: #fff;
  font: 700 14px/1 var(--head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
}

/* ---------- Tipografía ---------- */
h1, h2, h3 { font-family: var(--head); color: var(--char); }
h1 {
  font-size: clamp(30px, 5.6vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 24px;
}
h2 {
  font-size: clamp(24px, 3.8vw, 31px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 54px 0 16px;
}
h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 4px;
  background: var(--terra);
  margin-bottom: 14px;
  border-radius: 2px;
}
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 20px; }

/* ---------- Imágenes ---------- */
.hero { margin: 0 auto 22px; }
.hero img { width: 100%; border-radius: 12px; }
figure { margin: 30px 0; }
figure img { border-radius: 12px; width: 100%; }
figcaption {
  font: 400 14.5px/1.5 var(--head);
  color: var(--muted);
  margin-top: 10px;
}

.dek {
  font: 500 21px/1.55 var(--head);
  color: var(--ink-2);
  margin: 0 0 28px;
}

/* ---------- Razones ---------- */
.reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 10px; padding: 0; list-style: none; }
.reasons li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 20px 18px;
}
.reasons .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--terra-soft); color: var(--terra-d);
  font: 800 16px/1 var(--head);
  margin-bottom: 10px;
}
.reasons p { font-size: 16.5px; line-height: 1.6; margin: 0; color: var(--ink-2); }

/* ---------- Características 01–06 ---------- */
.specs { list-style: none; padding: 0; margin: 20px 0 10px; border-top: 1px solid var(--line); }
.specs li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 4px 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.specs .num { font: 800 32px/1 var(--head); color: var(--terra); padding-top: 2px; }
.specs p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Ficha técnica ---------- */
.sheet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 22px;
  margin: 26px 0 10px;
}
.sheet h3 { font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 4px; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
.sheet th, .sheet td { text-align: left; vertical-align: top; padding: 11px 0; border-bottom: 1px dotted #cfc6b8; }
.sheet tr:last-child th, .sheet tr:last-child td { border-bottom: 0; }
.sheet th { font: 600 15px/1.5 var(--head); color: var(--ink); width: 38%; padding-right: 14px; }
.sheet td { line-height: 1.55; color: var(--ink-2); }

/* ---------- Incluye ---------- */
.includes { list-style: none; padding: 0; margin: 4px 0 24px; }
.includes li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.includes li::before {
  content: ""; position: absolute; left: 2px; top: 0.62em;
  width: 10px; height: 10px; border-radius: 2px; background: var(--terra);
}

/* ---------- Precio ---------- */
.price {
  background: var(--char);
  color: #ebe7e0;
  border-radius: 16px;
  padding: 32px 24px 28px;
  text-align: center;
  margin: 40px 0 10px;
}
.price .p-label { font: 600 14px/1.4 var(--head); letter-spacing: 0.12em; text-transform: uppercase; color: #b3ada4; }
.price .p-amount { font: 800 clamp(46px, 9vw, 60px)/1.1 var(--head); color: #fff; margin: 8px 0 6px; letter-spacing: -0.02em; }
.price .p-amount small { font-size: 0.32em; font-weight: 600; color: #b3ada4; letter-spacing: 0; }
.price .p-sub { font: 400 16px/1.5 var(--head); margin: 0 0 20px; }
.price .p-terms { font: 400 14.5px/1.6 var(--head); color: #b3ada4; margin: 18px 0 0; }

.btn {
  display: inline-block;
  background: var(--terra);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 15px 30px;
  font: 700 17px/1.2 var(--head);
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--terra-d); color: #fff; }
.btn[disabled] { opacity: 0.65; cursor: progress; }

/* ---------- Pasos ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 10px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li {
  counter-increment: s;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 18px 16px;
  font-size: 16.5px;
  line-height: 1.55;
}
.steps li::before {
  content: "Paso " counter(s);
  display: block;
  font: 800 13px/1 var(--head);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 10px;
}

/* ---------- Formulario ---------- */
.form-card {
  background: var(--card);
  border-top: 5px solid var(--terra);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(28, 28, 30, 0.08);
  padding: 28px 24px 24px;
  margin: 46px 0 10px;
  scroll-margin-top: 16px;
}
.form-card h2 { margin-top: 0; }
.form-card h2::before { display: none; }
.form-lead { font-family: var(--head); font-size: 17px; color: var(--ink-2); margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field > label { display: block; font: 600 15.5px/1.4 var(--head); margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"] {
  width: 100%;
  font: 17px/1.3 var(--head);
  padding: 13px 14px;
  border: 1px solid #d3cbbd;
  border-radius: 9px;
  background: #fbfaf7;
  color: var(--ink);
}
.field input:focus { border-color: var(--terra); outline: 2px solid rgba(180, 71, 43, 0.2); outline-offset: 0; background: #fff; }
.field.has-error input { border-color: var(--bad); }
.err { display: none; font: 400 14.5px/1.4 var(--head); color: var(--bad); margin-top: 5px; }
.has-error .err { display: block; }
.consent { display: flex; gap: 10px; align-items: flex-start; font: 400 15.5px/1.5 var(--head); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--terra); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn { width: 100%; margin-top: 6px; padding: 17px; font-size: 18px; }
.form-small { font: 400 14px/1.5 var(--head); color: var(--muted); margin: 14px 0 0; }
.form-msg { display: none; border-radius: 9px; padding: 14px 16px; margin: 0 0 16px; font: 400 16px/1.5 var(--head); }
.form-msg.ok { display: block; background: var(--ok-soft); border: 1px solid #b9dcc5; color: #164a2b; }
.form-msg.fail { display: block; background: var(--bad-soft); border: 1px solid #ecc5c0; color: #7c1d13; }

/* ---------- Pie de página ---------- */
.site-footer {
  margin-top: 60px;
  background: var(--char);
  color: #cfcac2;
  padding: 34px 0 120px;
  font: 400 14.5px/1.65 var(--head);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--terra-light); }
.f-links { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.f-links a { font-weight: 600; }
.site-footer p { margin: 0 0 10px; }
.site-footer .f-strong { color: #fff; font-weight: 700; }
.site-footer .f-note { color: #a29c93; }

/* ---------- Páginas legales ---------- */
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .wrap-tb { max-width: 700px; margin: 0 auto; padding: 0 16px; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { font: 800 18px/1 var(--head); color: var(--char); text-decoration: none; letter-spacing: -0.01em; }
.topbar a:not(.brand) { font: 500 15px/1.3 var(--head); }
.legal { padding-top: 30px; padding-bottom: 10px; }
.legal h1 { font-size: clamp(27px, 4.8vw, 36px); margin-top: 0; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal h2::before { width: 28px; height: 3px; margin-bottom: 10px; }
.legal p, .legal li { font-size: 17px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 20px; }
.legal li { margin-bottom: 6px; }
.legal .updated { font: 400 14.5px/1.4 var(--head); color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font: 400 15.5px/1.5 var(--head); background: var(--card); }
.legal th, .legal td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }
.legal th { background: #ece6db; }
.contact-list { list-style: none; padding: 0 !important; font-family: var(--head); }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0 !important; font-size: 16.5px !important; }
.contact-list strong { display: inline-block; min-width: 170px; }
.btn-ghost { background: transparent; color: var(--char); border: 2px solid var(--char); }
.btn-ghost:hover { background: var(--char); color: #fff; }

/* ---------- Aviso de cookies ---------- */
.cookie-bar {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--char);
  color: #eee9e2;
  z-index: 60;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.2);
}
.cookie-bar[hidden] { display: none; }
.cookie-inner {
  max-width: 980px; margin: 0 auto; padding: 16px;
  display: flex; align-items: center; gap: 18px;
  font: 400 15px/1.5 var(--head);
}
.cookie-inner p { margin: 0; flex: 1 1 auto; }
.cookie-inner a { color: #fff; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-actions button {
  background: #fff; color: var(--char);
  border: 0; border-radius: 9px;
  padding: 11px 22px; min-width: 120px;
  font: 700 15.5px/1.2 var(--head); cursor: pointer;
}
.cookie-actions button:hover { background: #e9e4dc; }

/* ---------- Móvil ---------- */
@media (max-width: 680px) {
  body { font-size: 18px; }
  .reasons, .steps { grid-template-columns: 1fr; }
  .specs li { grid-template-columns: 50px 1fr; }
  .specs .num { font-size: 26px; }
  .sheet { padding: 6px 16px; }
  .sheet th { width: 42%; font-size: 14.5px; }
  .sheet table { font-size: 15.5px; }
  .dek { font-size: 19px; }
  .cookie-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .cookie-actions button { flex: 1 1 0; min-width: 0; }
  .contact-list strong { display: block; min-width: 0; }
}

/* Texto del consentimiento en peso normal */
.field > label.consent { font: 400 15.5px/1.5 var(--head); margin-bottom: 0; }
