@charset "UTF-8";
/* La Casa de Tus Padres — hoja de estilos de la Home.
   Paleta extraída por muestreo de píxel sobre los mockups de media/. */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --cream: #f8f0e8;
  --ivory: #f8f8f0;
  --white: #ffffff;
  --terracotta: #c05830;
  --terracotta-dark: #b85030;
  --terracotta-deep: #9c4526;
  --ink: #282820;
  --ink-soft: #55534a;
  --ink-mute: #7a776c;
  --line: #e4dcd2;
  --line-strong: #d8d0c8;
  --sand: #c0a890;

  --cta-bg: var(--terracotta);
  --cta-bg-hover: var(--terracotta-dark);
  --cta-fg: #fff;

  /* Tipografía */
  --font-display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.83rem, 0.81rem + 0.1vw, 0.89rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.09rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.44rem, 1.31rem + 0.66vw, 1.87rem);
  --step-3: clamp(1.73rem, 1.5rem + 1.15vw, 2.5rem);
  --step-4: clamp(2.07rem, 1.7rem + 1.85vw, 3.35rem);

  /* Espaciado */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --section-y: clamp(3.5rem, 2rem + 7vw, 7.5rem);

  /* Formas */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgb(40 40 32 / 0.06);
  --shadow: 0 4px 20px -6px rgb(40 40 32 / 0.12);
  --shadow-lg: 0 18px 48px -18px rgb(40 40 32 / 0.24);

  --container: 1140px;
  --measure: 68ch;
  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { text-wrap: pretty; }

a { color: var(--terracotta-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--terracotta); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 3px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-2);
  z-index: 100; transform: translateY(-200%);
  background: var(--ink); color: #fff;
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--tint {
  background: linear-gradient(180deg, var(--cream) 0%, var(--ivory) 100%);
}
.section__head { max-width: var(--measure); margin-bottom: var(--sp-7); }
.section__head > p {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
  margin-top: var(--sp-4);
}
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-3);
}

/* ---------- 4. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.95em 1.7em;
  border-radius: var(--radius-sm);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--cta-bg); color: var(--cta-fg); }
.btn--primary:hover { background: var(--cta-bg-hover); color: #fff; box-shadow: var(--shadow); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgb(255 255 255 / 0.5); }

.btn--link {
  padding: 0; border-radius: 0;
  background: none; color: var(--terracotta-deep);
  font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px;
}
.btn--link:hover { color: var(--terracotta); }

.btn--lg { padding: 1.1em 2em; font-size: var(--step-0); }
.btn--block { display: flex; width: 100%; }

.btn-note {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  color: var(--ink-mute);
  text-align: center;
}

/* ---------- 5. Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(248 248 240 / 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  min-height: var(--header-h);
}
.header__brand {
  display: flex; align-items: center; gap: var(--sp-3);
  text-decoration: none; color: var(--ink);
  margin-right: auto;
}
.header__brand img { height: 46px; width: auto; }
.header__brand-name {
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: 11ch;
}
.header__nav { display: flex; align-items: center; gap: var(--sp-5); }
.header__nav a {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 500;
  text-decoration: none;
  padding-block: var(--sp-2);
  border-bottom: 2px solid transparent;
}
.header__nav a:hover, .header__nav a[aria-current] {
  color: var(--terracotta-deep);
  border-bottom-color: var(--terracotta);
}
.header__cta { padding: 0.7em 1.15em; font-size: var(--step--1); white-space: nowrap; }
.header__toggle { display: none; padding: var(--sp-2); }
.header__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.header__toggle span + span { margin-top: 5px; }
.header__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.header__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__brand img { height: 38px; }
  .header__brand-name { display: none; }
  .header__toggle { display: block; }
  .header__nav {
    position: absolute; inset: var(--header-h) 0 auto;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    padding: var(--sp-3) 1.25rem var(--sp-5);
    box-shadow: var(--shadow);
  }
  .header__nav[hidden] { display: none; }
  .header__nav a {
    padding: var(--sp-4) 0;
    border-bottom: 1px solid var(--line);
    font-size: var(--step-0);
  }
  .header__nav .btn { margin-top: var(--sp-4); justify-content: center; }
}

/* ---------- 6. Bloque 1 · Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 6vw, 5.5rem) var(--section-y); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.hero__body > p { margin-top: var(--sp-5); font-size: var(--step-1); color: var(--ink-soft); }
.hero__body > p + p { margin-top: var(--sp-4); }
.hero__note { color: var(--ink); font-weight: 500; }
.hero__actions { margin-top: var(--sp-6); display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-3); }
.hero__actions .btn-note { text-align: left; }
.hero__secondary { margin-top: var(--sp-2); font-size: var(--step--1); }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__body { order: 1; }
  .hero__media { order: 2; }
  .hero__actions { align-items: stretch; }
  .hero__actions .btn--primary { width: 100%; }
  .hero__actions .btn-note { text-align: center; }
}

/* ---------- 7. Marcador de imagen provisional ---------- */
.ph {
  position: relative;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, var(--cream) 0 12px, #f3ebe3 12px 24px);
  border: 2px dashed var(--sand);
  border-radius: var(--radius);
  color: var(--ink-mute);
  text-align: center;
  padding: var(--sp-5);
  overflow: hidden;
}
.ph::after {
  content: "PROVISIONAL";
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--sand);
}
.ph__label { max-width: 30ch; font-size: var(--step--1); line-height: 1.5; }
.ph__dims { display: block; margin-top: var(--sp-2); font-size: 0.75rem; opacity: 0.7; }
.ph--hero { aspect-ratio: 4 / 5; }
.ph--wide { aspect-ratio: 16 / 10; }
.ph--doc { aspect-ratio: 3 / 4; }
/* Vistas de producto: el abanico completo y una hoja suelta. */
.ph--fan { aspect-ratio: 16 / 11; }
.ph--page { aspect-ratio: 3 / 4; }
.ph--portrait { aspect-ratio: 4 / 5; max-width: 18rem; }

/* ---------- 7b. Imagen definitiva ----------
   Misma caja que el marcador, pero sin borde ni trama. El fondo se ve con
   `contain`, que es el unico ajuste que no parte la imagen. */
.media {
  display: grid; place-items: center;
  margin: 0; overflow: hidden;
  background: var(--cream);
  border-radius: var(--radius);
}
.media img { width: 100%; height: 100%; display: block; }
/* `contents` deja que el <img> sea el hijo directo de la rejilla, sin un
   envoltorio de mas que rompa el reparto de la caja. */
.media picture { display: contents; }
.media--cover img { object-fit: cover; }
.media--contain img { object-fit: contain; }
.media--hero { aspect-ratio: 4 / 5; }
.media--wide { aspect-ratio: 16 / 10; }
.media--doc { aspect-ratio: 3 / 4; }
.media--fan { aspect-ratio: 16 / 11; }
.media--page { aspect-ratio: 3 / 4; }
.media--portrait { aspect-ratio: 4 / 5; max-width: 18rem; }

/* ---------- 8. Bloque 2 · Reconocimiento ---------- */
.recog { background: var(--cream); }
.recog__cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.recog__card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-6) var(--sp-5);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.recog__close {
  max-width: var(--measure);
  margin: var(--sp-7) auto 0;
  text-align: center;
  font-size: var(--step-1);
  color: var(--ink-soft);
}
@media (max-width: 900px) {
  .recog__cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .recog__cards { grid-template-columns: 1fr; }
  .recog__card { padding: var(--sp-5) var(--sp-4); }
}

/* ---------- 9. Bloque 3 · Checklist ---------- */
.checklist__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
@media (max-width: 900px) {
  .checklist__grid { grid-template-columns: 1fr; }
  .checklist__media { order: 2; max-width: 420px; }
}

/* ---------- 10. Formularios ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field__label { font-size: var(--step--1); font-weight: 600; }
.field__opt { font-weight: 400; color: var(--ink-mute); }
.field__req { color: var(--terracotta); }
.field__control {
  width: 100%;
  padding: 0.85em 1em;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1rem; /* 16px: evita el auto-zoom en iOS */
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field__control::placeholder { color: #a9a59a; }
.field__control:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgb(192 88 48 / 0.16);
}
.field__control[aria-invalid="true"] { border-color: #a8342a; }
textarea.field__control { min-height: 8.5rem; resize: vertical; }

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
  cursor: pointer;
}
.check input {
  width: 1.15rem; height: 1.15rem; margin: 0.18em 0 0;
  accent-color: var(--terracotta);
  flex-shrink: 0;
  cursor: pointer;
}
.check a { color: var(--terracotta-deep); }

.form__error {
  display: none;
  padding: var(--sp-3) var(--sp-4);
  background: #fbeceb;
  border-left: 3px solid #a8342a;
  border-radius: var(--radius-sm);
  color: #7d2820;
  font-size: var(--step--1);
}
.form__error[data-shown] { display: block; }
.form__ok {
  display: none;
  padding: var(--sp-4);
  background: #eef5ef;
  border-left: 3px solid #4a7c59;
  border-radius: var(--radius-sm);
  color: #2f5a3c;
  font-size: var(--step--1);
}
.form__ok[data-shown] { display: block; }
.form__note { font-size: var(--step--1); color: var(--ink-mute); }
.form__note a { color: var(--ink-soft); }
.form [hidden] { display: none !important; }

/* ---------- 11. Bloque 4 · Pilares ---------- */
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
.pillar { text-align: left; }
.pillar__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-4);
  background: var(--cream);
  border-radius: 50%;
  color: var(--terracotta);
}
.pillar__icon svg { width: 24px; height: 24px; }
.pillar h3 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: var(--sp-2);
}
.pillar p { color: var(--ink-soft); font-size: var(--step-0); }
@media (max-width: 900px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ---------- 12. Bloque 5 · Credibilidad ---------- */
.cred__badges {
  display: flex; flex-wrap: wrap; gap: var(--sp-3);
  margin-top: var(--sp-6);
}
.cred__badge {
  padding: var(--sp-3) var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}
.cred__note { margin-top: var(--sp-4); font-size: var(--step--1); color: var(--ink-mute); }
.cred__box {
  margin-top: var(--sp-7);
  padding: var(--sp-6);
  background: var(--cream);
  border-left: 4px solid var(--terracotta);
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: var(--measure);
  color: var(--ink-soft);
}
.cred__box p { font-size: var(--step-0); }

/* ---------- 13. Bloque 6 · Productos ---------- */
.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
  align-items: start;
}
.product {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.product--featured {
  border-color: var(--terracotta);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
}
.product__badge {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -50%);
  padding: 0.4em 0.9em;
  background: var(--terracotta);
  color: #fff;
  border-radius: 999px;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.product__media { margin-bottom: var(--sp-5); }
.product__name {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: var(--sp-3);
}
.product__tagline {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.35;
  margin-bottom: var(--sp-4);
}
.product__features { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: grid; gap: var(--sp-2); }
.product__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--ink-soft);
}
.product__features li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.product__price {
  display: flex; align-items: baseline; gap: var(--sp-3);
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.product__amount { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.product__was { color: var(--ink-mute); text-decoration: line-through; font-size: var(--step--1); }
.product__note { width: 100%; font-size: var(--step--1); color: var(--ink-mute); }
.product__actions { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.product__actions .btn--link { font-size: var(--step--1); justify-self: center; }
@media (max-width: 1000px) {
  .products__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .product--featured { order: -1; }
}

/* ---------- 14. Bloque 7 · Previews ---------- */
.previews__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 1rem + 3vw, 3rem);
}
.preview__media { margin-bottom: var(--sp-5); border-radius: var(--radius); overflow: hidden; }
.preview__caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}
.preview__name { font-weight: 600; }
@media (max-width: 760px) { .previews__grid { grid-template-columns: 1fr; } }

/* ---------- 15. Bloque 8 · Sobre mí ---------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.about__body p + p { margin-top: var(--sp-4); }
.about__body p { color: var(--ink-soft); }
.about__cta { margin-top: var(--sp-6); }
@media (max-width: 860px) { .about__grid { grid-template-columns: 1fr; } }

/* ---------- 16. Bloque 9 · FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-5) 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  color: var(--ink);
}
.faq__q:hover { color: var(--terracotta-deep); }
.faq__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: transform 0.22s ease, background-color 0.18s ease, border-color 0.18s ease;
}
.faq__q[aria-expanded="true"] .faq__icon {
  transform: rotate(45deg);
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
}
.faq__a { padding: 0 0 var(--sp-5); color: var(--ink-soft); max-width: var(--measure); }
.faq__a[hidden] { display: none; }

/* ---------- 17. Bloque 10 · CTA final ---------- */
.final-cta {
  background: linear-gradient(160deg, var(--cream) 0%, #f3e6da 100%);
  text-align: center;
}
.final-cta__inner { max-width: 640px; margin-inline: auto; }
.final-cta p { margin-top: var(--sp-4); color: var(--ink-soft); font-size: var(--step-1); }
.final-cta .btn { margin-top: var(--sp-6); }

/* ---------- 18. Footer ---------- */
.footer { background: var(--ink); color: #e8e4dc; padding-block: var(--sp-8) var(--sp-6); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--sp-6) var(--sp-5);
}
.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__brand img { height: 36px; width: auto; filter: brightness(0) invert(1); }
.footer__brand-name { font-family: var(--font-display); font-size: var(--step-0); font-weight: 600; }
.footer__text { font-size: var(--step--1); line-height: 1.6; color: #bdb8ad; max-width: 42ch; }
.footer h2 {
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--sp-4);
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-2); }
.footer a { color: #bdb8ad; font-size: var(--step--1); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgb(255 255 255 / 0.12);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-5);
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8f8a80;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- 19. Modal pre-checkout ---------- */
/* Dos etapas: (1) elección de Pack o Guía al comprar la Guía, (2) los dos
   consentimientos legales obligatorios. Ambos pasos ocurren ANTES de Stripe y
   las dos opciones se presentan sin ocultar ninguna. */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--sp-4); }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(40 40 32 / 0.55); backdrop-filter: blur(3px); }
.modal__panel {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: var(--sp-3); right: var(--sp-3);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 1.4rem; line-height: 1;
}
.modal__close:hover { background: var(--cream); color: var(--ink); }
.modal__title { font-size: var(--step-2); padding-right: 2.5rem; }
.modal__lead { margin-top: var(--sp-4); color: var(--ink-soft); }
.modal__choices { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
.modal__choice {
  display: block; width: 100%; text-align: left;
  padding: var(--sp-4) var(--sp-5);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.modal__choice:hover { border-color: var(--terracotta); background: #fdf7f3; }
.modal__choice-name { display: block; font-weight: 600; }
.modal__choice-price { display: block; margin-top: 2px; font-size: var(--step-0); }
.modal__choice-hint { display: block; margin-top: 4px; font-size: var(--step--1); color: var(--ink-mute); }
.modal__choice--primary { border-color: var(--terracotta); }
.modal__choice--secondary { border-style: dashed; }
.modal__sep {
  margin-top: var(--sp-5); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--sp-4);
}
.modal__legal { display: grid; gap: var(--sp-4); }
.modal__legal .check { align-items: start; }
.modal__warn {
  margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: var(--cream); border-radius: var(--radius-sm);
  font-size: var(--step--1); color: var(--ink-soft);
}
.modal__status {
  display: none; margin-top: var(--sp-4); padding: var(--sp-3) var(--sp-4);
  background: #fbeceb; border-left: 3px solid #a8342a; border-radius: var(--radius-sm);
  color: #7d2820; font-size: var(--step--1);
}
.modal__status[data-shown] { display: block; }
.modal__back {
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: var(--ink-mute);
  text-decoration: underline; text-underline-offset: 0.2em;
}
body.is-locked { overflow: hidden; }
@media (max-width: 560px) {
  .modal { padding: 0; align-items: end; }
  .modal__panel {
    width: 100%; max-height: 92dvh;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

/* ---------- 20. Preferencias de movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- 21. Impresión ---------- */
@media print {
  .header, .footer, .final-cta, .checklist__form { display: none; }
  body { background: #fff; font-size: 11pt; }
}

/* =====================================================================
   22. Paginas de contenido
   Clases anadidas para /checklist-gratuita, /gracias-checklist, /guia,
   /kit, /pack, /sobre-mi, /contacto y las cuatro legales.
   ===================================================================== */

/* --- Cabecera de pagina --- */
.page { background: var(--cream); padding-block: var(--sp-9) var(--sp-10); }
.page__inner { max-width: 46rem; }
.page__lead {
  font-size: var(--step-1);
  color: var(--ink-soft);
  max-width: 38rem;
  margin-top: var(--sp-4);
}
.page__meta { margin-top: var(--sp-4); color: var(--ink-mute); font-size: var(--step--1); }
.page--legal { padding-block: var(--sp-8) var(--sp-9); }
.page__title { font-size: var(--step-3); }

.price {
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--terracotta-deep);
  margin-top: var(--sp-4);
}

/* Banda de confianza y nombres de fuentes: una linea de texto neutra.
   Nunca insignias: un distintivo con forma de logotipo aparenta un aval. */
.trust {
  font-size: var(--step-1);
  color: var(--ink-soft);
  text-align: center;
  margin-block: var(--sp-5);
}

/* --- Rejillas y tarjetas --- */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-5);
}
.card h3 { font-size: var(--step-1); margin-top: var(--sp-3); }
.card p { color: var(--ink-soft); margin-top: var(--sp-2); }
.card .pillar__icon { color: var(--terracotta); }

/* --- Pasos --- */
.steps { display: grid; gap: var(--sp-5); margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.step__n {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-weight: 600;
  font-size: var(--step--1);
}
.step h3 { font-size: var(--step-1); }
.step p { color: var(--ink-soft); margin-top: var(--sp-2); }

/* --- Lista con marca --- */
.checks { display: grid; gap: var(--sp-3); margin: var(--sp-5) 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.75rem; color: var(--ink-soft); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.35rem;
  border-left: 2px solid var(--terracotta);
  border-bottom: 2px solid var(--terracotta);
  transform: rotate(-45deg);
}

/* --- Aviso destacado --- */
.note {
  border-left: 3px solid var(--terracotta);
  background: var(--white);
  padding: var(--sp-5);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.note p { font-size: var(--step-1); }

/* --- Autor --- */
.about__media .ph,
.about__media .media { max-width: 22rem; }

/* --- Previews --- */
.preview { margin: 0; }
.preview .ph,
.preview .media { width: 100%; }

/* --- Texto legal --- */
.prose { max-width: 44rem; }
.prose__section { margin-bottom: var(--sp-7); }
.prose__section h2 { font-size: var(--step-2); margin-bottom: var(--sp-3); }
.prose__section p { color: var(--ink-soft); margin-bottom: var(--sp-3); }
.prose__foot {
  max-width: 44rem;
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  color: var(--ink-mute);
  font-size: var(--step--1);
}

.toc {
  background: var(--cream);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.toc__title { font-weight: 600; margin-bottom: var(--sp-2); }
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: var(--sp-1); }
.toc a { color: var(--ink-soft); }
.toc a:hover { color: var(--terracotta-deep); }

/* --- Formulario de contacto --- */
.form--contact { max-width: 34rem; }
.field__control--area { min-height: 8rem; resize: vertical; }

/* --- Menu reducido (landing de la checklist) --- */
.is-minimal-nav .header__inner { justify-content: space-between; }
.is-minimal-nav .footer__grid { grid-template-columns: 1fr auto; }

/* --- Adaptacion a pantallas pequenas --- */
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .is-minimal-nav .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .page { padding-block: var(--sp-7) var(--sp-8); }
  .card { padding: var(--sp-4); }
}
