/* =================================================================
   Editorial Tepublicamos — Sistema de diseño
   Estilo: editorial literaria, cálida y de confianza.
   Sin dependencias. Mobile-first. Variables CSS.
   ================================================================= */

/* ----------------------------- Reset ---------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

ul[class], ol[class] { list-style: none; padding: 0; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  /* Si por lo que sea quedara algún elemento marcado, garantizamos que se vea. */
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ------------------ Animaciones de entrada (scroll) -------------
   La clase .reveal la añade js/main.js SOLO a elementos que están por
   debajo del pliegue al cargar; sin JS o con "reducir movimiento",
   nunca se añade y el contenido se ve con normalidad. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------- Variables -------------------------- */
:root {
  /* Paleta */
  --ink:        #1E1B18;   /* texto principal */
  --ink-soft:   #4A443E;   /* texto secundario */
  --primary:    #C8641C;   /* naranja ámbar */
  --primary-dk: #A34C10;
  --primary-lt: #DD8038;
  --accent:     #4F9D89;   /* verde salvia */
  --accent-dk:  #3E8473;
  --paper:      #FBF6EF;   /* fondo crema/papel */
  --paper-2:    #F2EADF;   /* crema un punto más oscuro */
  --white:      #FFFFFF;
  --line:       #E8DECF;   /* bordes suaves */
  --muted:      #6F675E;

  /* Tipografía */
  --font-display: "Lora", Georgia, "Times New Roman", serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Escala */
  --step--1: clamp(0.83rem, 0.78rem + 0.2vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.13rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2:  clamp(1.5rem, 1.3rem + 0.9vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.55rem + 1.6vw, 3rem);
  --step-4:  clamp(2.4rem, 1.8rem + 2.8vw, 4rem);

  /* Espaciado / radios / sombras */
  --container: 1140px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(30, 27, 24, 0.06), 0 2px 8px rgba(30, 27, 24, 0.05);
  --shadow:    0 6px 18px rgba(30, 27, 24, 0.10);
  --shadow-lg: 0 18px 50px rgba(30, 27, 24, 0.16);
  --header-h: 76px;
}

/* ----------------------------- Base ----------------------------- */
body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }
p + p { margin-top: 0.9em; }

strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3rem, 7vw, 6rem); }
.section--tight { padding-block: clamp(2.2rem, 5vw, 4rem); }
.section--paper-2 { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--white); }
.section--primary { background: var(--primary); color: #fbeef0; }
.section--primary h2, .section--primary h3 { color: var(--white); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.section--ink .eyebrow, .section--primary .eyebrow { color: var(--accent); }

.section__head { max-width: 64ch; margin-bottom: clamp(1.6rem, 4vw, 2.8rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.lead { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.55; }
.section--ink .lead, .section--primary .lead { color: #efe6d9; }

.measure { max-width: 68ch; }

/* --------------------------- Botones ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(135deg, var(--primary-lt), var(--primary));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(200, 100, 28, 0.30);
}
.btn--primary:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dk)); box-shadow: 0 9px 24px rgba(200, 100, 28, 0.45); }
.btn--primary:active { box-shadow: 0 3px 10px rgba(200, 100, 28, 0.30); }

.btn--accent { background: linear-gradient(135deg, var(--accent), var(--accent-dk)); color: var(--ink); box-shadow: 0 4px 14px rgba(79, 157, 137, 0.28); }
.btn--accent:hover { background: var(--accent-dk); color: var(--ink); box-shadow: 0 8px 22px rgba(79, 157, 137, 0.40); }

.btn--ghost { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--ghost:hover { background: var(--primary); color: var(--white); }

.section--ink .btn--ghost,
.section--primary .btn--ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.section--ink .btn--ghost:hover,
.section--primary .btn--ghost:hover { background: var(--white); color: var(--ink); }

.btn--lg { padding: 1.05rem 2rem; font-size: var(--step-1); }
.btn--block { width: 100%; }

/* ----------------------------- Header --------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 247, 240, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark { height: 42px; width: auto; flex: none; }
.brand-logo { height: 50px; width: auto; flex: none; display: block; }
.site-footer .brand-logo { height: 54px; }
@media (max-width: 600px) { .brand-logo { height: 40px; } }
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
}
.brand__name b { color: var(--primary); font-weight: 600; }
.brand__sub {
  font-size: 0.64rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.4rem);
}
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.4rem, 1.4vw, 1.1rem);
  list-style: none;
  margin: 0;
}
.primary-nav a:not(.btn) {
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.4rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.primary-nav a:not(.btn):hover,
.primary-nav a:not(.btn)[aria-current="page"] {
  color: var(--primary);
  border-bottom-color: var(--accent);
}
.nav-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1rem clamp(1rem, 4vw, 2rem) 1.6rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .primary-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav li { border-bottom: 1px solid var(--line); }
  .primary-nav a:not(.btn) { display: block; padding: 0.85rem 0.2rem; font-size: 1.05rem; }
  .nav-cta { margin-top: 0.8rem; text-align: center; }
}

/* ----------------------------- Hero ----------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(79,157,137,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(200, 100, 28,0.10), transparent 55%),
    var(--paper);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.hero h1 {
  margin-bottom: 1.1rem;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}
.hero .lead { margin-bottom: 1.8rem; max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero__note {
  margin-top: 1.2rem;
  font-size: var(--step--1);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.hero__art {
  position: relative;
  display: grid;
  place-items: center;
}
.hero__art::before {
  content: "";
  position: absolute;
  width: 80%;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle, rgba(200, 100, 28, 0.16), transparent 68%);
  z-index: 0;
}

/* Portadas reales en abanico */
.hero__covers {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__cover {
  width: 38%;
  max-width: 200px;
  transition: transform .35s ease;
}
.hero__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  animation: heroFloat 8s ease-in-out infinite;
}
.hero__cover:nth-child(1) { transform: rotate(-8deg); z-index: 1; }
.hero__cover:nth-child(2) { transform: translateY(-14px) scale(1.12); margin-inline: -7%; z-index: 3; }
.hero__cover:nth-child(2) img { animation-duration: 9s; animation-delay: -3s; }
.hero__cover:nth-child(3) { transform: rotate(8deg); z-index: 1; }
.hero__cover:nth-child(3) img { animation-duration: 8.5s; animation-delay: -1.5s; }
.hero__covers:hover .hero__cover:nth-child(1) { transform: rotate(-11deg) translateX(-8px); }
.hero__covers:hover .hero__cover:nth-child(3) { transform: rotate(11deg) translateX(8px); }
@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero__art-caption {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__note { justify-content: center; }
  .hero__art { order: -1; }
  .hero__cover { max-width: 152px; }
}

/* --------------------------- Bandas ----------------------------- */
.trustbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1rem, 4vw, 3rem);
  padding-block: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.trustbar .stat { text-align: center; }
.trustbar .stat b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--primary);
  line-height: 1;
}
.trustbar .stat span { font-size: var(--step--1); color: var(--muted); }

/* --------------------------- Grids ------------------------------ */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* --------------------------- Tarjetas --------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 16px;
  background: rgba(200, 100, 28, 0.10);
  color: var(--primary);
  border: 1px solid rgba(200, 100, 28, 0.20);
  box-shadow: 0 4px 12px rgba(200, 100, 28, 0.10);
  margin-bottom: 1rem;
  transition: transform .25s ease, box-shadow .25s ease;
}
.icon-badge svg { width: 26px; height: 26px; }
/* Alterna terracota / salvia para dar vida y usar la paleta */
.grid .card:nth-child(even) .icon-badge {
  background: rgba(79, 157, 137, 0.12);
  color: var(--accent);
  border-color: rgba(79, 157, 137, 0.24);
  box-shadow: 0 4px 12px rgba(79, 157, 137, 0.12);
}
.card--hover:hover .icon-badge { transform: translateY(-3px) scale(1.04); }

/* Pasos numerados */
.steps { counter-reset: step; }
.step { position: relative; }
.step .num {
  display: inline-grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 2px solid var(--accent);
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
}

/* Tarjeta de libro (catálogo) */
.book {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.book:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.book__cover {
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  text-align: center;
  color: #fff;
  position: relative;
  background: linear-gradient(150deg, var(--primary), var(--primary-dk));
}
.book:nth-child(3n+2) .book__cover { background: linear-gradient(150deg, #2C3A52, #1E2940); }
.book:nth-child(3n) .book__cover   { background: linear-gradient(150deg, #5A4632, #3C2E20); }
.book__cover::after {
  content: "";
  position: absolute; left: 10px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 3px;
  background: rgba(255,255,255,0.28);
}
.book__cover .t { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.15; }
.book__cover .a { margin-top: 0.6rem; font-size: 0.82rem; letter-spacing: 0.05em; opacity: 0.9; }
.book__cover--photo { padding: 0; background: var(--paper-2); overflow: hidden; }
.book__cover--photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.book:hover .book__cover--photo img { transform: scale(1.045); }
.book__cover--photo::after { display: none; }
.book__body { padding: 1rem 1.2rem 1.3rem; }
.book__body h3 { font-size: var(--step-1); margin-bottom: 0.15rem; }
.book__author { color: var(--muted); font-size: var(--step--1); }
.tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

/* Testimonios */
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.6rem 1.8rem;
  box-shadow: var(--shadow-sm);
}
.quote p { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.4; color: var(--ink); }
.quote footer { margin-top: 1rem; font-family: var(--font-body); font-size: var(--step--1); color: var(--muted); }
.quote footer b { color: var(--ink); font-weight: 600; }

/* Lista con check */
.checklist { display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.18em;
  width: 1.25rem; height: 1.25rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E1B18' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/0.8rem no-repeat;
}

/* Tabla comparativa */
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.compare th, .compare td { padding: 0.95rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--paper-2); font-family: var(--font-display); font-size: var(--step-1); }
.compare td:first-child { font-weight: 600; color: var(--ink-soft); }
.compare tr:last-child td { border-bottom: none; }

/* Solo la columna recomendada muestra el check verde: concentra toda la
   señal positiva en la vía tradicional en vez de repartirla. */
.compare .yes { color: #2f7d41; font-weight: 700; }
.compare .yes::before {
  content: "";
  display: inline-block;
  width: 1rem; height: 1rem;
  margin-right: 0.4rem;
  vertical-align: -2px;
  border-radius: 50%;
  background: #2f7d41 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/0.65rem no-repeat;
}

/* Columna destacada: la vía que queremos recomendar, con look de "plan elegido" */
.compare th.is-featured, .compare td.is-featured {
  background: rgba(200, 100, 28, 0.05);
  border-left: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}
.compare thead th.is-featured {
  background: var(--primary);
  color: var(--white);
  position: relative;
  padding-top: 0;
  border-top: 2px solid var(--primary);
  font-weight: 700;
}
.compare .ribbon {
  display: block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  margin: 0 -1.1rem 0.7rem;
}
.compare tbody tr:last-of-type td.is-featured { border-bottom: 2px solid var(--primary); }

/* Fila con el CTA, pegada a la columna recomendada */
.compare__cta-row td { border-bottom: none; padding: 1rem 1.1rem 1.3rem; }
.compare__cta-row td.is-featured { padding-top: 1rem; }
.compare__cta-row .btn { font-size: var(--step--1); padding: 0.75rem 1rem; }

@media (max-width: 620px) {
  .compare th, .compare td { padding: 0.7rem 0.7rem; font-size: var(--step--1); }
  .compare .ribbon { margin: 0 -0.7rem 0.5rem; font-size: 0.6rem; padding: 0.35rem 0.7rem; }
  .compare__cta-row td { padding: 0.8rem 0.7rem 1rem; }
}

/* --------------------------- FAQ -------------------------------- */
.faq { display: grid; gap: 0.8rem; max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq__q .chev { flex: none; width: 22px; height: 22px; transition: transform .25s ease; color: var(--primary); }
.faq__q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s ease;
}
.faq__a > div { overflow: hidden; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* --------------------------- CTA band --------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 0.8rem; }
.cta-band p { max-width: 56ch; margin-inline: auto; margin-bottom: 1.6rem; }
.cta-band .btn { margin-inline: 0.3rem; }

/* --------------------- CTA fija en móvil ------------------------ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 0.65rem clamp(1rem, 4vw, 1.5rem);
  background: rgba(251, 246, 239, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 22px rgba(30, 27, 24, 0.10);
  transform: translateY(120%);
  transition: transform .3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta .btn { margin: 0; }
@media (max-width: 700px) { .sticky-cta { display: block; } }

/* Microcopia de tranquilidad junto al botón de envío */
.submit-reassure {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  color: var(--muted);
  margin-bottom: 1rem;
}
.submit-reassure svg { flex: none; }

/* --------------------------- Formulario ------------------------- */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.4rem; font-size: 0.95rem; }
.field .req { color: var(--primary); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 100, 28, 0.14);
}
.field textarea { min-height: 130px; resize: vertical; }
.field .hint { font-size: var(--step--1); color: var(--muted); margin-top: 0.3rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: var(--step--1); color: var(--ink-soft); }
.consent input { width: auto; margin-top: 0.25rem; }
.form-group { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }
.form-group + .form-group { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.form-group legend {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--primary);
  padding: 0;
  margin-bottom: 1rem;
}
.opt { font-weight: 400; color: var(--muted); }
.js-conditional[hidden] { display: none; }

/* Formulario por pasos (wizard) */
.form-step { display: none; }
.form-step.is-active { display: block; }
.form-step + .form-step { border-top: 0; padding-top: 0; }
.form-nav { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; margin-top: 1.6rem; }
.form-progress { margin-bottom: 1.6rem; }
.form-progress__bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.form-progress__bar span { display: block; height: 100%; width: 33.33%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.form-progress__steps { display: flex; gap: 0.4rem; margin: 0.6rem 0 0; padding: 0; list-style: none; font-size: var(--step--1); color: var(--muted); }
.form-progress__steps li { flex: 1; text-align: center; }
.form-progress__steps li:first-child { text-align: left; }
.form-progress__steps li:last-child { text-align: right; }
.form-progress__steps li.is-active { color: var(--primary); font-weight: 600; }
.form-progress__steps li.is-done { color: var(--accent-dk); }
.form-status { margin-top: 1rem; padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); display: none; }
.form-status.is-error { display: block; background: #fcebec; border: 1px solid #f0c3c6; color: #8c2630; }
.form-status.is-ok { display: block; background: #e9f6ec; border: 1px solid #bfe6c8; color: #1f6b34; }

/* --------------------------- Contacto info ---------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { display: grid; gap: 1rem; margin-top: 1.4rem; }
.contact-list a { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item svg { width: 22px; height: 22px; color: var(--primary); flex: none; margin-top: 3px; }

/* --------------------------- Artículo --------------------------- */
.article { max-width: 760px; margin-inline: auto; }
.article header { margin-bottom: 2rem; }
.article .meta { color: var(--muted); font-size: var(--step--1); margin-top: 0.8rem; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-size: var(--step-2); margin-top: 2.2rem; }
.prose h3 { font-size: var(--step-1); margin-top: 1.6rem; }
.prose ul { padding-left: 1.3rem; display: grid; gap: 0.5rem; }
.prose ul li { list-style: disc; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 1.2rem;
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--ink-soft);
}

/* Breadcrumbs */
.crumbs { font-size: var(--step--1); color: var(--muted); padding-top: 1.4rem; }
.crumbs a { color: var(--primary); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: 0.4rem; }

/* Post list */
.post {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 1.4rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post__thumb {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 25% 20%, rgba(200, 100, 28, 0.12), transparent 55%), var(--paper-2);
  border: 1px solid var(--line);
}
.post__thumb svg {
  width: 30px; height: 30px;
  padding: 14px;
  box-sizing: content-box;
  color: var(--primary);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(30, 27, 24, 0.10);
  transition: transform .25s ease;
}
.post:nth-child(2n) .post__thumb {
  background: radial-gradient(120% 120% at 25% 20%, rgba(79, 157, 137, 0.16), transparent 55%), var(--paper-2);
}
.post:nth-child(2n) .post__thumb svg { color: var(--accent); }
.post:hover .post__thumb svg { transform: scale(1.07); }
.post h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.post p { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; } .post__thumb { aspect-ratio: 16/7; } }

/* ----------------------------- Footer --------------------------- */
.site-footer { background: var(--ink); color: #cfc7bd; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  padding-block: clamp(2.6rem, 6vw, 4rem);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand p { margin-top: 0.9rem; max-width: 34ch; color: #b6ada2; }
.site-footer .brand__name { color: var(--primary-lt); }
.site-footer .brand__name b { color: var(--primary-lt); }
.site-footer .brand__sub { color: #9b9289; }
.footer__col h3 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
.footer__col ul { display: grid; gap: 0.55rem; }
.footer__col a { color: #cfc7bd; text-decoration: none; font-size: 0.95rem; }
.footer__col a:hover { color: var(--accent); }
.social { display: flex; gap: 0.6rem; margin-top: 1.1rem; }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  color: #e7ded3;
  transition: background-color .2s ease, color .2s ease;
}
.social a:hover { background: var(--accent); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1.2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: var(--step--1);
  color: #9b9289;
}
.footer__bottom ul { display: flex; list-style: none; margin: 0; padding: 0; }
.footer__bottom li + li::before { content: "•"; margin: 0 0.6rem; color: #6f675e; }
.footer__bottom a { color: #9b9289; text-decoration: none; }
.footer__bottom a:hover { color: var(--accent); }

/* --------------------------- Utilidades ------------------------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.8rem; }
.mt-2 { margin-top: 1.6rem; }
.mb-2 { margin-bottom: 1.6rem; }
.flex-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.flex-cta--center { justify-content: center; }
.visually-hidden {
  position: absolute !important;
  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: 1rem; top: -100px;
  background: var(--primary); color: #fff;
  padding: 0.7rem 1rem; border-radius: 8px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus { top: 1rem; }

/* Sello de tinta estampado (sustituye a la antigua píldora) */
.badge-free {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-dk);
  border: 4px double currentColor;
  border-radius: 7px;
  padding: 0.45rem 0.95rem;
  transform: rotate(-1.6deg);
  background: transparent;
}
@media (prefers-reduced-motion: reduce) { .badge-free { transform: none; } }

/* --------------------- Canales / "disponible en" -------- */
.channels-label {
  text-align: center;
  font-size: var(--step--1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.channels {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 0.8rem 2rem;
}
.channels span {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 0.85rem + 0.4vw, 1.15rem);
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
/* Listo para logos reales: sustituir cada <span> por <img class="channel-logo"> */
.channels img.channel-logo {
  height: 30px; width: auto; display: block;
  filter: grayscale(1); opacity: 0.72;
  transition: filter .2s ease, opacity .2s ease;
}
.channels img.channel-logo:hover { filter: none; opacity: 1; }
.channels .ch--logo { display: inline-flex; align-items: center; gap: 0.45rem; }
.channels .ch--logo svg { height: 1.15em; width: auto; fill: currentColor; }

/* Caja destacada (callout) */
.callout {
  background: rgba(79,157,137,0.12);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.callout strong { color: var(--primary-dk); }

/* ---------- Camino del manuscrito (como-publicar) ---------- */
.path { position: relative; max-width: 760px; margin: 0 auto; padding-left: 52px; }
.path::before { content: ""; position: absolute; left: 21px; top: 18px; bottom: 30px; border-left: 2px dashed #D9A263; }
.path__step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.3rem; margin-bottom: 1.05rem; }
.path__step:nth-child(odd) { transform: rotate(-0.4deg); }
.path__step:nth-child(even) { transform: rotate(0.35deg); }
.path__step .num { position: absolute; left: -52px; top: 12px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; background: var(--white); border: 2px solid var(--accent); color: var(--accent-dk); counter-increment: none; }
.path__step h3 { font-size: var(--step-1); margin-bottom: 0.2rem; }
.path__step p { color: var(--muted); font-size: var(--step--1); margin: 0; }
.path__step--you { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.path__step--you .num { background: linear-gradient(135deg, var(--primary-lt), var(--primary)); border-color: transparent; color: var(--white); }
.path__tag { display: inline-block; background: rgba(200,100,28,0.12); color: var(--primary-dk); font-size: 0.72rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 0.2rem 0.7rem; border-radius: 99px; margin-bottom: 0.4rem; }
.path__meta { font-style: italic; }
.path__cta { margin-top: 0.85rem; }
.margin-note { font-family: var(--font-display); font-style: italic; color: var(--primary-dk); font-size: var(--step-0); display: inline-block; transform: rotate(-1.1deg); margin-top: 1.4rem; }
.mini-fan { display: flex; justify-content: center; margin: 0.2rem 0 1.1rem; }
.mini-fan img { width: 72px; height: auto; border-radius: 6px; box-shadow: var(--shadow); border: 3px solid var(--white); }
.mini-fan img:nth-child(1) { transform: rotate(-7deg) translateX(12px); }
.mini-fan img:nth-child(2) { transform: rotate(1.5deg); z-index: 1; }
.mini-fan img:nth-child(3) { transform: rotate(7deg) translateX(-12px); }
@media (prefers-reduced-motion: reduce) { .path__step { transform: none !important; } }

/* ---------- Home: tres pasos cosidos por el hilo ---------- */
.steps-line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2rem); padding-top: 24px; }
.steps-line::before { content: ""; position: absolute; top: 24px; left: 7%; right: 7%; border-top: 2px dashed #D9A263; }
.steps-line .paper { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.3rem 1.3rem; }
.steps-line .paper:nth-child(1) { transform: rotate(-0.5deg); }
.steps-line .paper:nth-child(2) { transform: rotate(0.4deg); }
.steps-line .paper:nth-child(3) { transform: rotate(-0.35deg); }
.steps-line .node { position: absolute; top: -21px; left: 1.1rem; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; background: var(--white); border: 2px solid var(--accent); color: var(--accent-dk); z-index: 1; }
.steps-line .paper--you { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.steps-line .paper--you .node { background: linear-gradient(135deg, var(--primary-lt), var(--primary)); border-color: transparent; color: var(--white); }
.steps-line .ghost { position: absolute; right: 0.9rem; top: 0.35rem; font-family: var(--font-display); font-style: italic; font-size: 58px; line-height: 1; color: rgba(200,100,28,0.10); pointer-events: none; }
.steps-line h3 { font-size: var(--step-1); margin-bottom: 0.25rem; }
.steps-line p { color: var(--muted); font-size: var(--step--1); margin: 0; }
@media (max-width: 760px) { .steps-line { grid-template-columns: 1fr; } .steps-line::before { display: none; } .steps-line .paper { transform: none; } }
@media (prefers-reduced-motion: reduce) { .steps-line .paper { transform: none !important; } }

/* ---------- Home: manifiesto "por qué" (numerales romanos) ---------- */
.manifesto { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.4rem, 3.5vw, 2.6rem); }
.manifesto article { border-top: 2px solid var(--line); border-radius: 0; padding-top: 1.1rem; }
.manifesto article:first-child { border-top-color: var(--primary); }
.manifesto .rn { display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.7rem; line-height: 1; color: var(--primary); margin-bottom: 0.45rem; }
.manifesto h3 { font-size: var(--step-1); margin-bottom: 0.3rem; }
.manifesto p { color: var(--muted); font-size: var(--step--1); margin: 0; }

/* ---------- Testimonios como cartas sobre la mesa ---------- */
.letters { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(1.4rem, 3vw, 2.2rem); max-width: 960px; margin-inline: auto; }
.letter { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 2.1rem 1.8rem 1.4rem; box-shadow: var(--shadow); }
.letter:nth-child(odd) { transform: rotate(-1deg); }
.letter:nth-child(even) { transform: rotate(0.8deg); }
.letter::before { content: "\201C"; position: absolute; top: -0.32em; left: 0.5rem; font-family: var(--font-display); font-size: 4.6rem; line-height: 1; color: rgba(200,100,28,0.25); pointer-events: none; }
.letter p { font-family: var(--font-display); font-style: italic; font-size: var(--step-0); line-height: 1.6; color: var(--ink); margin: 0; }
.letter footer { margin-top: 1.2rem; display: flex; align-items: center; gap: 0.85rem; }
.letter footer img { width: 58px; height: 58px; object-fit: cover; border-radius: 50%; border: 2px solid var(--white); box-shadow: var(--shadow-sm); flex: none; }
.letter footer .who b { display: block; font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--primary-dk); font-size: 1.08rem; line-height: 1.2; }
.letter footer .who span { font-size: var(--step--1); color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .letter { transform: none !important; } }
