/* Estilos por sección para layouts/public.hbs.
   Tokens compartidos (paleta, tipografía base, .wrap, .btn) viven en tokens.css. */

/* ─────────────────────────────────────────────────────────────
   Image placeholder pattern — caja con borde discontinuo y label.
   Sirve hasta que se inyecten imágenes reales en /static/img/.
   ───────────────────────────────────────────────────────────── */
.img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.img-placeholder-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}
.img-placeholder-tag {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .6;
}
.img-placeholder-name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
}
.img-placeholder-hint {
  font-size: 11px;
  font-weight: 500;
  opacity: .6;
  letter-spacing: .01em;
}
.img-placeholder-dark {
  background: rgba(255, 255, 255, .03);
  border: 1.5px dashed rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .65);
}
.img-placeholder-light {
  background: rgba(15, 23, 42, .03);
  border: 1.5px dashed rgba(15, 23, 42, .18);
  color: var(--muted);
}

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 30, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  color: #fff;
}
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 14px;
}
.brand-divider { width: 1px; height: 18px; background: rgba(255, 255, 255, .18); }
.brand-sub { font-size: 13px; color: rgba(255, 255, 255, .7); font-weight: 600; }
.nav { display: flex; gap: 26px; margin-left: 18px; align-items: center; }
.nav a, .nav-dropdown-trigger {
  font-size: 14px; color: rgba(255, 255, 255, .78); font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover, .nav-dropdown-trigger:hover { color: #fff; }

/* Dropdown del nav (CSS-only, hover + focus-within) */
.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  font-family: inherit; line-height: inherit;
}
.nav-dropdown-trigger svg { transition: transform .15s ease; opacity: .8; }
.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: -16px;
  min-width: 240px; padding: 8px;
  background: #fff; color: var(--ink);
  border: 1px solid var(--hairline); border-radius: 12px;
  box-shadow: 0 12px 32px -10px rgba(15,23,42,.18);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s ease;
  z-index: 60;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
/* Puente invisible para que el menú no se cierre al cruzar el gap entre trigger y menú */
.nav-dropdown::before {
  content: ''; position: absolute; top: 100%; left: 0; right: 0; height: 12px;
}
.nav-dropdown-menu a {
  display: block; padding: 10px 12px; border-radius: 8px;
  color: var(--ink); transition: background .12s ease;
}
.nav-dropdown-menu a:hover { background: var(--paper); color: var(--ink); }
.nav-dropdown-menu a strong { display: block; font-size: 14px; font-weight: 700; }
.nav-dropdown-menu a span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.topbar-spacer { flex: 1; }
.top-actions { display: flex; gap: 14px; align-items: center; }
.top-actions .ghost {
  font-size: 14px; color: rgba(255, 255, 255, .85);
  font-weight: 500; background: transparent; border: 0;
}
.top-actions .ghost:hover { color: #fff; }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(45,91,255,.35), transparent 60%),
    radial-gradient(700px 400px at 5% 20%, rgba(110,139,255,.12), transparent 60%),
    linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%, #0B1638 100%);
  color: #fff;
  padding: 80px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 500px at 70% 30%, #000, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-sub {
  font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.78);
  max-width: 520px; margin: 0 0 28px;
}
.hero-ctas { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; }
.play-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
}
.play-icon svg { width: 10px; height: 10px; }
.social-proof {
  display: flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.78); font-size: 14px;
}
.social-proof-num { color: #fff; font-weight: 700; }
.social-proof-cap { font-size: 12.5px; }
.avatars { display: flex; }
.avatars .av {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--navy-900);
  margin-left: -8px;
  background-color: var(--paper-2);
  background-size: cover;
  background-position: center top;
}
.avatars .av:first-child { margin-left: 0; }
.av-1 { background-image: url("/static/img/avatars/user-1.png"); }
.av-2 { background-image: url("/static/img/avatars/user-2.png"); }
.av-3 { background-image: url("/static/img/avatars/user-3.png"); }
.av-4 { background-image: url("/static/img/avatars/user-4.png"); }
.av-5 { background-image: url("/static/img/avatars/user-5.png"); }

.hero-visual { position: relative; }

/* ---------- Hero stage (CV antes/después + gauges) ---------- */
.hv-stage {
  position: relative;
  width: 100%;
  height: 540px;
}
/* Glow verde ambiental — al fondo total, detrás de todo */
.hv-stage::before {
  content: "";
  position: absolute;
  bottom: -10%;
  right: -15%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle at 50% 50%, rgba(200, 255, 60, .10), transparent 65%);
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}

/* Decoración: dots arriba a la izquierda */
.hv-decoration {
  position: absolute;
  top: -16px;
  left: -24px;
  width: 60px;
  height: 60px;
  z-index: 0;
  pointer-events: none;
}

/* Animaciones de float — desfasadas para que no se muevan en sync */
@keyframes hv-float-a {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes hv-float-b {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes hv-float-tilted {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50%      { transform: rotate(-1.2deg) translateY(-4px); }
}

/* Gauges */
.hv-gauge {
  position: absolute;
  top: 0;
  background: #fff;
  border-radius: 14px;
  padding: 12px 18px 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .9) inset,
    0 18px 40px -16px rgba(2, 6, 23, .55),
    0 4px 12px -4px rgba(2, 6, 23, .25);
  width: 175px;
  z-index: 3;
  overflow: hidden;
}
.hv-gauge::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 111, 255, .35), transparent);
}
.hv-gauge-after::before {
  background: linear-gradient(90deg, transparent, rgba(43, 212, 164, .4), transparent);
}
.hv-gauge-before {
  left: 0;
  animation: hv-float-a 5s ease-in-out infinite;
}
.hv-gauge-after  {
  right: 0;
  animation: hv-float-b 4.5s ease-in-out infinite -1.2s;
}
.hv-gauge-label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}
.hv-gauge-meter {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hv-gauge-svg { width: 100%; height: 78px; display: block; }
.hv-gauge-num {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hv-gauge-num span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 1px;
}
.hv-gauge-arrow {
  position: absolute;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 14px;
  z-index: 2;
}

/* Cards */
.hv-card {
  position: absolute;
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px 16px;
  font-size: 11px;
  color: var(--ink);
  line-height: 1.5;
  overflow: hidden;
}
.hv-card::before {
  content: "";
  position: absolute;
  top: 0; left: 14px; right: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, .12), transparent);
}
.hv-card-before {
  bottom: 16px;
  left: 0;
  width: 230px;
  z-index: 1;
  animation: hv-float-tilted 6s ease-in-out infinite -2s;
  box-shadow: 0 22px 48px -18px rgba(2, 6, 23, .65);
  transform-origin: center;
}
.hv-card-after {
  bottom: 0;
  right: 0;
  width: 290px;
  z-index: 4;
  animation: hv-float-a 5.5s ease-in-out infinite -0.8s;
  box-shadow: 0 22px 56px -16px rgba(2, 6, 23, .75);
}
.hv-card-tag {
  position: absolute;
  bottom: 296px;
  left: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
  letter-spacing: -0.005em;
  z-index: 5;
}
.hv-card-tag-mark {
  display: inline-block;
  width: 16px;
  height: 1.5px;
  background: rgba(255, 255, 255, .35);
  border-radius: 1px;
}
.hv-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}
.hv-card-head > div:first-child { flex: 1; }
.hv-card-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}
.hv-card-role {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 500;
}
.hv-card-section {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--ink-2);
  margin: 12px 0 6px;
}
.hv-card-bullets { list-style: none; margin: 0 0 4px; padding: 0; }
.hv-card-bullets li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}
.hv-card-bullets li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted);
  opacity: .55;
}
.hv-card-bullets-checks li {
  padding-left: 16px;
}
.hv-card-bullets-checks li::before {
  left: 2px;
  top: 5px;
  width: 6px;
  height: 6px;
  background: var(--good);
  opacity: 1;
  box-shadow: 0 0 0 2px rgba(43, 212, 164, .15);
}
.hv-card-after .hv-card-bullets li { color: var(--ink); }

.hv-ats-pill {
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 9px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: .01em;
  white-space: nowrap;
  align-self: center;
}

.hv-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.hv-chip {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.hv-chips-plain .hv-chip {
  border: 1px solid var(--hairline);
  color: var(--ink);
  background: #fff;
}
.hv-chips-soft .hv-chip {
  background: rgba(45, 91, 255, .08);
  color: var(--ink);
}

.hv-curve {
  position: absolute;
  bottom: 230px;
  left: 200px;
  width: 80px;
  height: 50px;
  z-index: 5;
  pointer-events: none;
}

/* ---------- Research bar ---------- */
.research-bar {
  background: var(--navy-900);
  color: rgba(255,255,255,.7);
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,.05);
}
.research-inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  justify-content: center;
}
.research-label {
  font-size: 12px; color: rgba(255,255,255,.55); font-weight: 600;
  letter-spacing: .02em;
}
.research-logos {
  max-width: 720px; width: 100%; height: auto;
  display: block;
  opacity: .75;
}

/* Logo de marca real (topbar + footer) */
.brand-logo {
  display: block;
  height: 32px; width: auto;
  object-fit: contain;
}
.brand-logo-footer { height: 36px; margin-bottom: 14px; }
.brand-link { text-decoration: none; }
/* Placeholder legacy — sigue por si alguna view aún lo usa */
.brand-placeholder { width: 140px; height: 36px; border-radius: 8px; }
.brand-placeholder .img-placeholder-name { font-size: 11px; }

/* ---------- "Por qué tu CV no funciona" ---------- */
.why { background: var(--paper); padding: 88px 0 72px; }
.section-title-h {
  text-align: center;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 56px;
}
.section-title-h em { color: var(--warn); font-style: normal; }
.why .section-title-h em { color: var(--accent-blue); }
.section-title-on-dark { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; align-items: stretch; }
.why-card {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
  border-color: var(--hairline-2);
}
.why-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.why-card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.why-card p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0; }
.why-foot { text-align: center; margin-top: 36px; font-size: 14px; color: var(--muted); }
.why-foot strong { color: var(--ink); }
.why-foot em { font-style: normal; color: var(--accent-blue); font-weight: 700; }

/* ---------- Cómo funciona ---------- */
.how {
  background: var(--navy-950);
  color: #fff;
  padding: 88px 0 96px;
  position: relative;
}
.how .section-title-h em { color: var(--primary); }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.step { text-align: center; position: relative; }
.step-art {
  position: relative;
  width: 96px; height: 96px;
  margin: 0 auto 22px;
}
.step-circle {
  width: 100%; height: 100%; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.32);
  background: rgba(255,255,255,.02);
  display: grid; place-items: center;
}
.step-num {
  position: absolute;
  top: -4px; left: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: var(--primary-ink);
  display: grid; place-items: center;
  font-weight: 800; font-size: 13px;
  border: 2px solid var(--navy-950);
  z-index: 2;
}
.step h4 { font-size: 16px; margin: 0 0 8px; font-weight: 700; letter-spacing: -0.01em; }
.step p { font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.65); margin: 0 18px; }

/* ---------- Tu CV es medible ---------- */
.measurable { background: var(--paper); padding: 88px 0 96px; }
.measurable-title {
  font-size: clamp(28px, 3vw, 36px); margin: 0 0 36px;
  letter-spacing: -0.025em; font-weight: 800;
}
.measurable-title em { color: var(--accent-blue); font-style: normal; }
.measurable-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.score-card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.score-row {
  display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
}
.score-circle { position: relative; width: 160px; height: 160px; flex-shrink: 0; }
.score-circle .num {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-circle .num strong {
  font-size: 48px; font-weight: 800; letter-spacing: -0.03em; line-height: 1;
  color: var(--accent-blue);
}
.score-circle .num span {
  font-size: 13px; color: var(--muted); font-weight: 600; margin-top: 4px;
}
.score-side { min-width: 0; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(60px, 1fr) auto;
  align-items: center; gap: 14px; font-size: 13px;
}
.bar-row .lbl { color: var(--ink); font-weight: 500; }
.bar-row .track { height: 7px; background: var(--paper-2); border-radius: 999px; overflow: hidden; position: relative; }
.bar-row .fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px;
  background: linear-gradient(90deg, #2BD4A4 0%, #2D5BFF 100%);
}
.bar-row .pct { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; }
.score-caption {
  text-align: center; width: 160px;
  font-size: 12px; color: var(--muted); font-weight: 600;
  margin-top: 8px;
}
.score-foot { margin-top: 22px; font-size: 13px; }
.score-foot a { color: var(--accent-blue); font-weight: 700; }

.compare {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px;
  align-items: stretch;
}
.compare-mini {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: 12px; padding: 16px;
  box-shadow: var(--shadow-card);
  font-size: 11px;
}
.compare-mini .head {
  display: flex; align-items: center; gap: 8px; padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.compare-mini .photo {
  width: 28px; height: 28px; border-radius: 50%;
  object-fit: cover; object-position: center top;
  background: var(--paper-2);
  display: block;
}
.compare-mini .nm { font-size: 12px; font-weight: 800; letter-spacing: -0.01em; }
.compare-mini .rl { font-size: 9px; color: var(--muted); margin-top: 1px; }
.compare-mini .body { padding-top: 10px; line-height: 1.45; }
.compare-mini .lbl { font-weight: 800; font-size: 8.5px; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.compare-mini ul { list-style: none; padding: 0; margin: 0 0 10px; }
.compare-mini li { position: relative; padding-left: 9px; margin-bottom: 3px; }
.compare-mini li::before { content: "•"; position: absolute; left: 0; }
.compare-mini.after { background: #fff; border-color: var(--hairline-2); }
.compare-mini.after .body { color: var(--ink-2); }
.compare-mini.after .pills { display: flex; flex-wrap: wrap; gap: 3px; }
.compare-mini.after .pill { background: var(--paper-2); border-radius: 4px; padding: 2px 5px; font-size: 8px; font-weight: 600; }
.cv-skills-line { color: var(--muted); font-size: 9px; margin: 0; }
.compare-arrow {
  align-self: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-blue); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 6px 14px -4px rgba(45,91,255,.5);
}
.compare-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.compare-after-label { margin-right: 28%; }

/* ---------- Templates ---------- */
.templates { background: var(--navy-900); color: #fff; padding: 88px 0 96px; }
.templates-title {
  text-align: center;
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.025em; font-weight: 800; margin: 0 0 56px;
}
.templates-title em { color: var(--primary); font-style: normal; }
.tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.tpl {
  background: #fff; border-radius: 12px; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.6);
}
.tpl:hover { transform: translateY(-4px); box-shadow: 0 28px 52px -22px rgba(0,0,0,.7); }
.tpl-thumb-placeholder {
  height: 200px;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}
.tpl-thumb {
  aspect-ratio: 3 / 4; width: 100%; height: auto;
  display: block; object-fit: cover; object-position: center top;
  background: var(--paper-2);
}
.tpl-foot { padding: 14px 16px; color: var(--ink); }
.tpl-foot h4 { margin: 0 0 4px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.tpl-foot p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.tpl-link { display: block; text-align: center; margin-top: 36px; font-size: 14px; color: rgba(255,255,255,.85); font-weight: 700; }
.tpl-link em { color: var(--primary); font-style: normal; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- "No somos un analizador más" ---------- */
.more { background: var(--paper); padding: 56px 0 64px; }
.more-title {
  text-align: center;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.025em; font-weight: 800; margin: 0 0 40px;
}
.more-title em { color: var(--accent-blue); font-style: normal; }
.more-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.more-card {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 4px 28px;
  border-right: 1px solid var(--hairline);
}
.more-card:first-child { padding-left: 0; }
.more-card:last-child { padding-right: 0; border-right: 0; }
.more-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid; place-items: center;
}
.more-text { min-width: 0; padding-top: 2px; }
.more-card h4 { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.more-card p { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final {
  background:
    radial-gradient(700px 420px at 80% 50%, rgba(45,91,255,.45), transparent 60%),
    linear-gradient(180deg, #0A1230, #0B1638);
  color: #fff;
  padding: 64px 0;
  position: relative;
}
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; }
.cta-photo-placeholder { height: 260px; }
.cta-photo {
  width: 100%; height: auto;
  max-height: 480px;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
  display: block;
}
.cta-final h2 {
  font-size: clamp(30px, 3.4vw, 40px);
  letter-spacing: -0.025em; font-weight: 800; margin: 0 0 8px; line-height: 1.1;
}
.cta-final h2 em { color: var(--primary); font-style: normal; }
.cta-final p { color: rgba(255,255,255,.65); font-size: 14px; margin: 18px 0 0; }
.cta-final .btn-primary { margin-top: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-950); color: rgba(255,255,255,.55);
  padding: 56px 0 36px;
  font-size: 13px;
}
.footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}
.footer-brand-col .brand { color: #fff; margin-bottom: 14px; }
.footer-tagline { margin: 0; max-width: 280px; line-height: 1.5; }
.site-footer h5 {
  color: #fff; font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a:hover { color: #fff; }
.social { display: flex; gap: 12px; }
.social a {
  width: 30px; height: 30px; border-radius: 7px; background: rgba(255,255,255,.06);
  display: grid; place-items: center; color: rgba(255,255,255,.7);
}
.social a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Error / 404 ---------- */
.error-page { padding: 120px 0; text-align: center; }
.error-page h1 { font-size: 96px; margin: 0 0 12px; color: var(--ink-2); }
.error-page p { color: var(--muted); margin: 0 0 24px; }

/* ---------- Error states (unreadable, claude-failed, pdf-failed) ---------- */
.error-state { padding: 88px 0 96px; text-align: center; }
.error-state h1 { font-size: clamp(28px, 3vw, 36px); margin: 16px 0 12px; color: var(--ink); letter-spacing: -0.02em; }
.error-state .error-art { display: inline-grid; place-items: center; margin-bottom: 4px; }
.error-state p { font-size: 16px; line-height: 1.55; max-width: 560px; margin: 0 auto 28px; }
.error-state .error-suggestions {
  background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--radius-card); padding: 24px 28px;
  text-align: left; max-width: 560px; margin: 0 auto 28px;
}
.error-state .error-suggestions h3 { margin: 0 0 12px; font-size: 14px; }
.error-state .error-suggestions ul { margin: 0; padding-left: 18px; color: var(--muted); }
.error-state .error-suggestions li { margin-bottom: 8px; line-height: 1.5; }
.error-state .error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Pricing ---------- */
.pricing-hero { padding: 88px 0 56px; text-align: center; }
.pricing-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-blue); }
.pricing-hero h1 {
  font-size: clamp(34px, 4vw, 52px); letter-spacing: -0.03em; font-weight: 800;
  max-width: 780px; margin: 14px auto 18px;
}
.pricing-hero .lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0 auto; }

.pricing-plans { padding: 8px 0 96px; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.plan-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius-card);
  padding: 32px; position: relative;
  display: flex; flex-direction: column; gap: 24px;
}
.plan-card-featured { border-color: var(--accent-blue); box-shadow: 0 8px 28px -10px rgba(45,91,255,.25); }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-blue); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan-card header { display: flex; flex-direction: column; gap: 6px; }
.plan-tag { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-price strong { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.plan-price span { font-size: 14px; color: var(--muted); margin-left: 6px; }
.plan-sub { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.plan-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan-list li { font-size: 14px; padding-left: 22px; position: relative; line-height: 1.4; }
.plan-list li::before {
  content: ''; position: absolute; left: 0; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(43,212,164,.15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M3 6.5l2 2 4-4.5' fill='none' stroke='%232BD4A4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 10px no-repeat;
}
.plan-list-muted { color: var(--muted); }
.plan-list-muted::before { background: var(--paper-2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><circle cx='6' cy='6' r='1.5' fill='%235B6480'/></svg>") center / 10px no-repeat; }
.plan-cta { align-self: flex-start; }

.pricing-faq { background: #fff; border-top: 1px solid var(--hairline); padding: 72px 0; }
.pricing-faq h2 { font-size: 28px; margin: 0 0 28px; letter-spacing: -0.02em; font-weight: 800; }
.faq-list details {
  border-bottom: 1px solid var(--hairline); padding: 18px 0;
}
.faq-list summary {
  cursor: pointer; font-weight: 700; font-size: 16px;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--muted); }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { color: var(--muted); line-height: 1.6; margin: 12px 0 0; }

/* ---------- Auth (login + verify-email) ---------- */
.auth-page {
  min-height: calc(100vh - 64px);
  display: grid; place-items: center;
  padding: 56px 24px;
  background: var(--paper);
}
.auth-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 40px; width: 100%; max-width: 440px;
  box-shadow: 0 4px 24px -10px rgba(15,23,42,.1);
}
.auth-card-narrow { max-width: 480px; text-align: center; }
.auth-head { text-align: center; margin-bottom: 28px; }
.auth-head h1 { font-size: 26px; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 800; }
.auth-head p { color: var(--muted); margin: 0; font-size: 14px; }
.auth-providers { display: flex; flex-direction: column; gap: 10px; }
.auth-provider {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: #fff; border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.auth-provider:hover { border-color: var(--hairline-2); background: var(--paper); }
.auth-divider {
  text-align: center; position: relative;
  margin: 22px 0; color: var(--muted-2); font-size: 12px; font-weight: 600;
}
.auth-divider::before, .auth-divider::after {
  content: ''; position: absolute; top: 50%; width: calc(50% - 22px);
  height: 1px; background: var(--hairline);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }
.auth-magic { display: flex; flex-direction: column; gap: 10px; }
.auth-magic label { font-size: 13px; font-weight: 600; color: var(--ink); }
.auth-magic input {
  border: 1px solid var(--hairline); border-radius: 10px;
  padding: 12px 14px; font-size: 14px; font-family: inherit;
  transition: border-color .15s ease;
}
.auth-magic input:focus { outline: none; border-color: var(--accent-blue); }
.auth-magic .btn { justify-content: center; }
.auth-fineprint { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }
.auth-foot { text-align: center; margin: 22px 0 0; font-size: 12px; color: var(--muted); }
.auth-foot a { color: var(--accent-blue); font-weight: 600; }

.verify-icon { display: inline-grid; place-items: center; margin-bottom: 12px; }
.verify-actions { margin-top: 24px; }

/* ---------- Page hero (blog / guías / about / faq) ---------- */
.page-hero { padding: 80px 0 56px; }
.page-hero .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-blue); }
.page-hero h1 {
  font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.03em; font-weight: 800;
  max-width: 780px; margin: 14px 0 16px;
}
.page-hero .lead { font-size: 17px; line-height: 1.55; color: var(--muted); max-width: 640px; margin: 0; }
.page-hero .lead a { color: var(--accent-blue); font-weight: 600; }

/* ---------- Blog ---------- */
.post-grid-section { padding: 16px 0 96px; }
.post-card-featured {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center;
  margin-bottom: 56px;
  background: #fff; border: 1px solid var(--hairline); border-radius: 16px;
  padding: 32px; box-shadow: 0 4px 20px -10px rgba(15,23,42,.08);
}
.post-card-featured .post-card-thumb { aspect-ratio: 16 / 11; min-height: 0; border-radius: 12px; }
.post-card-featured h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; font-weight: 800; margin: 12px 0 12px; line-height: 1.2; }
.post-card-featured h2 a { color: inherit; }
.post-card-featured h2 a:hover { color: var(--accent-blue); }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px;
  overflow: hidden; transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -14px rgba(15,23,42,.18); }
.post-card-thumb { aspect-ratio: 16 / 9; border-radius: 0; }
.post-card-body { padding: 18px 20px 20px; }
.post-card-tag {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent-blue);
  margin-bottom: 8px;
}
.post-card h3 { font-size: 17px; letter-spacing: -0.015em; line-height: 1.3; margin: 0 0 8px; font-weight: 700; }
.post-card h3 a { color: inherit; }
.post-card h3 a:hover { color: var(--accent-blue); }
.post-card p { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; }
.post-card-meta { font-size: 12px; color: var(--muted-2); margin: 0; }

/* ---------- Guías ---------- */
.guide-list-section { padding: 16px 0 96px; }
.guide-category { margin-bottom: 56px; }
.guide-category > header { margin-bottom: 24px; }
.guide-category > header h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 4px; }
.guide-category > header p { color: var(--muted); margin: 0; font-size: 14px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--hairline); border-radius: 12px;
  padding: 20px 22px; color: inherit;
  transition: border-color .15s ease, transform .15s ease;
}
.guide-card:hover { border-color: var(--accent-blue); transform: translateY(-2px); }
.guide-icon {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink);
  display: grid; place-items: center;
}
.guide-card h3 { font-size: 15px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.guide-card p { font-size: 13px; line-height: 1.5; color: var(--muted); margin: 0 0 8px; }
.guide-meta { font-size: 11.5px; font-weight: 600; color: var(--muted-2); letter-spacing: .04em; }

/* ---------- About / Sobre nosotros ---------- */
.about-mission { padding: 24px 0 56px; text-align: center; }
.about-mission h2 {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-blue); margin: 0 0 14px;
}
.about-mission p {
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.45; letter-spacing: -0.015em;
  margin: 0; color: var(--ink-2); font-weight: 600;
}

.about-section-title { font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.025em; font-weight: 800; text-align: center; margin: 0 0 40px; }

.about-pillars { background: var(--paper-2); padding: 72px 0 80px; }
.about-pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.about-pillar {
  background: #fff; border: 1px solid var(--hairline); border-radius: 14px;
  padding: 28px 30px; position: relative;
}
.about-pillar-num {
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  color: var(--accent-blue); margin-bottom: 12px;
}
.about-pillar h3 { font-size: 18px; letter-spacing: -0.015em; font-weight: 800; margin: 0 0 8px; }
.about-pillar p { font-size: 14px; line-height: 1.55; color: var(--muted); margin: 0; }

.about-method { padding: 72px 0 64px; }
.about-method h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 18px; }
.about-method p { font-size: 16px; line-height: 1.65; color: var(--ink-2); margin: 0 0 14px; }
.about-method code { background: var(--paper-2); padding: 1px 6px; border-radius: 4px; font-size: .9em; }
.about-method a { color: var(--accent-blue); font-weight: 600; }

.about-cta {
  background: var(--navy-900); color: #fff; padding: 72px 0 80px;
}
.about-cta h2 { font-size: clamp(28px, 3vw, 34px); margin: 0 0 18px; letter-spacing: -0.025em; font-weight: 800; }
.about-cta p { color: rgba(255,255,255,.65); margin: 12px 0 0; font-size: 14px; }
.about-cta .cta-photo-placeholder { aspect-ratio: 4 / 3; min-height: 0; border-radius: 14px; }

/* ──────────────────────────────────────
   Mini-mockups de templates de CV
   Se escalan según el ancho del contenedor (container queries).
   Usados en: landing.hbs grid, templates.hbs detail, wizard/compare.hbs.
   ────────────────────────────────────── */
.tpl-doc {
  container-type: inline-size;
  width: 100%; height: 100%;
  background: #fff; color: #0B1120;
  font-family: 'Manrope', sans-serif;
  /* Base font-size: cualquier texto sin estilo explícito hereda esto en vez de
     caer al 16px default del browser, que rompía thumbs chicos. */
  font-size: max(6px, 2.2cqi);
  line-height: 1.4;
  overflow: hidden;
  text-align: left;
}
.flash {
  padding: 12px 16px; border-radius: 8px; font-size: 13.5px; line-height: 1.45;
  margin-bottom: 16px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.flash.is-error {
  background: rgba(255,107,87,.08); border: 1px solid rgba(255,107,87,.35); color: #B0392A;
}
.flash.is-success {
  background: rgba(43,212,164,.08); border: 1px solid rgba(43,212,164,.35); color: #1A7F62;
}
.flash.is-info {
  background: rgba(45,91,255,.08); border: 1px solid rgba(45,91,255,.35); color: #1E3FB3;
}

.tpl-doc * { margin: 0; padding: 0; box-sizing: border-box; }
.tpl-doc h1, .tpl-doc h2, .tpl-doc h3 { font-weight: 800; }
.tpl-doc ul { list-style: none; }
.tpl-doc .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

/* ---- Ejecutivo: sobrio, jerárquico ---- */
.tpl-doc-ejecutivo { padding: 3cqi 5cqi 5cqi; }
.tpl-doc-ejecutivo .td-header {
  margin-bottom: 4cqi;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 4cqi;
}
.tpl-doc-ejecutivo .td-head-text { text-align: left; }
.tpl-doc-ejecutivo .td-avatar {
  width: 16cqi; height: 16cqi; border-radius: 50%;
  object-fit: cover; object-position: center top;
  display: block; flex-shrink: 0;
  background: #ECEEF2;
  box-shadow: 0 0 0 0.18cqi #fff, 0 0 0 0.36cqi rgba(11,17,32,0.85);
}
.tpl-doc-ejecutivo .td-header h1 { font-size: 6.4cqi; letter-spacing: 0.18em; font-weight: 800; }
.tpl-doc-ejecutivo .td-divider { width: 16cqi; height: 1px; background: #0B1120; margin: 2cqi 0; }
.tpl-doc-ejecutivo .td-title { font-size: 3.2cqi; letter-spacing: 0.22em; color: #5B6480; }
.tpl-doc-ejecutivo .td-contact { font-size: 2.8cqi; color: #5B6480; margin-top: 2cqi; line-height: 1.4; }
.tpl-doc-ejecutivo .td-summary { font-size: 3.2cqi; line-height: 1.55; color: #1B2240; margin-bottom: 0.6cqi; }
.tpl-doc-ejecutivo .td-section { margin-bottom: 4cqi; }
.tpl-doc-ejecutivo .td-section h2 {
  font-size: 3.4cqi; letter-spacing: 0.18em; color: #0B1120;
  border-bottom: 1px solid #0B1120; padding-bottom: 1.2cqi; margin-bottom: 2cqi;
}
.tpl-doc-ejecutivo .td-entry { margin-bottom: 2.4cqi; }
.tpl-doc-ejecutivo .td-entry-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 3.6cqi; }
.tpl-doc-ejecutivo .td-entry-head strong { font-weight: 700; }
.tpl-doc-ejecutivo .td-entry-head span { color: #5B6480; font-size: 3cqi; }
.tpl-doc-ejecutivo .td-entry-sub { color: #5B6480; font-size: 3cqi; margin-bottom: 1.2cqi; font-style: italic; }
.tpl-doc-ejecutivo ul { padding-left: 3cqi; }
.tpl-doc-ejecutivo li { font-size: 3cqi; line-height: 1.5; color: #1B2240; position: relative; padding-left: 2cqi; margin-bottom: 0.6cqi; }
.tpl-doc-ejecutivo li::before { content: '·'; position: absolute; left: 0; }

/* ---- Técnico: denso, monoespaciada en tags ---- */
.tpl-doc-tecnico { padding: 5cqi 5cqi; }
.tpl-doc-tecnico .td-header { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 3cqi; border-bottom: 0.4cqi solid #2D5BFF; margin-bottom: 4cqi; }
.tpl-doc-tecnico .td-header-left { display: flex; align-items: center; gap: 2.4cqi; }
.tpl-doc-tecnico .td-avatar {
  width: 14cqi; height: 14cqi; border-radius: 0.8cqi;
  object-fit: cover; object-position: center top;
  display: block; flex-shrink: 0;
  background: #ECEEF2;
  outline: 0.4cqi solid #2D5BFF;
  outline-offset: 0.4cqi;
}
.tpl-doc-tecnico .td-header h1 { font-size: 5.6cqi; letter-spacing: -0.02em; }
.tpl-doc-tecnico .td-title { font-size: 3.2cqi; color: #5B6480; margin-top: 0.6cqi; }
.tpl-doc-tecnico .td-meta { font-size: 2.6cqi; color: #5B6480; text-align: right; line-height: 1.5; }
.tpl-doc-tecnico .td-section { margin-bottom: 3.6cqi; }
.tpl-doc-tecnico .td-section h2 { font-size: 3.2cqi; color: #2D5BFF; margin-bottom: 2cqi; font-weight: 600; }
.tpl-doc-tecnico .td-summary { font-size: 3.1cqi; line-height: 1.5; color: #1B2240; margin-bottom: 0.6cqi; }
.tpl-doc-tecnico .td-tags { display: flex; flex-wrap: wrap; gap: 1.2cqi; }
.tpl-doc-tecnico .td-tags span {
  font-size: 2.6cqi; padding: 0.6cqi 1.6cqi;
  background: #ECEEF2; color: #1B2240; border-radius: 0.6cqi;
}
.tpl-doc-tecnico .td-entry { margin-bottom: 2.4cqi; }
.tpl-doc-tecnico .td-entry-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 3.4cqi; }
.tpl-doc-tecnico .td-entry-head span { color: #5B6480; font-size: 2.6cqi; }
.tpl-doc-tecnico .td-entry-sub { font-size: 2.6cqi; color: #2D5BFF; margin-bottom: 1cqi; }
.tpl-doc-tecnico ul { margin-top: 1cqi; }
.tpl-doc-tecnico li { font-size: 3cqi; line-height: 1.45; color: #1B2240; padding-left: 2.4cqi; position: relative; margin-bottom: 0.6cqi; }
.tpl-doc-tecnico li::before { content: '›'; position: absolute; left: 0; color: #2BD4A4; font-weight: 700; }

/* ---- Minimalista: una columna, mucho aire ---- */
.tpl-doc-minimalista { padding: 3cqi 5cqi 5cqi; color: #0B1120; }
.tpl-doc-minimalista .td-header {
  margin-bottom: 5cqi;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 4cqi;
}
.tpl-doc-minimalista .td-avatar {
  width: 14cqi; height: 14cqi; border-radius: 50%;
  object-fit: cover; object-position: center top;
  display: block; flex-shrink: 0;
  background: #ECEEF2;
}
.tpl-doc-minimalista .td-header h1 { font-size: 7cqi; font-weight: 700; letter-spacing: -0.02em; }
.tpl-doc-minimalista .td-title { font-size: 3.4cqi; color: #5B6480; margin-top: 1cqi; font-weight: 400; }
.tpl-doc-minimalista .td-contact { font-size: 3cqi; color: #8893AE; margin-top: 2cqi; font-weight: 400; }
.tpl-doc-minimalista .td-section { margin-bottom: 4cqi; }
.tpl-doc-minimalista .td-section h2 { font-size: 3.4cqi; font-weight: 600; margin-bottom: 2.4cqi; letter-spacing: -0.005em; }
.tpl-doc-minimalista .td-summary { font-size: 3.4cqi; line-height: 1.65; color: #1B2240; }
.tpl-doc-minimalista .td-entry { margin-bottom: 3cqi; line-height: 1.55; }
.tpl-doc-minimalista .td-entry strong { display: block; font-size: 3.4cqi; font-weight: 600; }
.tpl-doc-minimalista .td-entry-period { display: block; font-size: 3cqi; color: #8893AE; margin: 0.4cqi 0 0.8cqi; font-weight: 400; }
.tpl-doc-minimalista .td-entry p { font-size: 3cqi; color: #5B6480; line-height: 1.55; }
.tpl-doc-minimalista .td-entry-sub { font-size: 3cqi; color: #5B6480; line-height: 1.55; }

/* ---- Moderno: sidebar + main, skill bars ---- */
.tpl-doc-moderno { display: grid; grid-template-columns: 38% 62%; height: 100%; }
.tpl-doc-moderno .td-sidebar {
  background: #2D5BFF; color: #fff; padding: 6cqi 4cqi;
  display: flex; flex-direction: column; gap: 4cqi;
}
.tpl-doc-moderno .td-avatar {
  width: 14cqi; height: 14cqi; border-radius: 50%;
  object-fit: cover; object-position: center top;
  display: block; margin: 0 auto 2cqi;
  border: 0.4cqi solid rgba(255,255,255,.85);
  background: #ECEEF2;
}
.tpl-doc-moderno .td-side-block h3 {
  font-size: 2cqi; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 1.6cqi; opacity: .8; font-weight: 700;
}
.tpl-doc-moderno .td-side-block p { font-size: 1.9cqi; line-height: 1.55; opacity: .9; word-break: break-word; }
.tpl-doc-moderno .td-skill {
  display: flex; align-items: center; gap: 1cqi;
  font-size: 1.8cqi; margin-bottom: 1.4cqi;
}
.tpl-doc-moderno .td-skill span { width: 38%; }
.tpl-doc-moderno .td-skill::after {
  content: ''; flex: 1; height: 0.8cqi;
  background: rgba(255,255,255,.18); border-radius: 999px;
  position: relative; overflow: hidden;
}
.tpl-doc-moderno .td-skill i {
  display: none; /* las barras se pintan vía contenedor diferente para simplificar */
}
/* Truco: como CSS solo no puede leer el style="width:" de un hijo y aplicarlo a un pseudo,
   uso una sola barra "fake" del 80% para todos. Es un mockup visual, no datos reales. */
.tpl-doc-moderno .td-skill { position: relative; padding-bottom: 1cqi; }
.tpl-doc-moderno .td-skill::after {
  background: linear-gradient(to right, #C8FF3C 0% 80%, rgba(255,255,255,.18) 80% 100%);
}
.tpl-doc-moderno .td-main { padding: 6cqi 5cqi; }
.tpl-doc-moderno .td-main .td-header h1 {
  font-size: 4.2cqi; letter-spacing: -0.02em;
  border-bottom: 0.6cqi solid #2D5BFF; padding-bottom: 1.4cqi; display: inline-block;
}
.tpl-doc-moderno .td-main .td-title { font-size: 2.2cqi; color: #5B6480; margin-top: 1.2cqi; }
.tpl-doc-moderno .td-section { margin-top: 4cqi; }
.tpl-doc-moderno .td-section h2 { font-size: 2.4cqi; color: #2D5BFF; margin-bottom: 2cqi; }
.tpl-doc-moderno .td-summary { font-size: 2.1cqi; line-height: 1.55; color: #1B2240; margin-bottom: 0.6cqi; }
.tpl-doc-moderno .td-entry { margin-bottom: 2.4cqi; }
.tpl-doc-moderno .td-entry-head { display: flex; justify-content: space-between; font-size: 2.3cqi; }
.tpl-doc-moderno .td-entry-head span { font-size: 1.9cqi; color: #5B6480; }
.tpl-doc-moderno .td-entry-sub { font-size: 1.9cqi; color: #5B6480; margin: 0.4cqi 0 1cqi; }
.tpl-doc-moderno ul li { font-size: 2cqi; line-height: 1.5; color: #1B2240; padding-left: 2cqi; position: relative; margin-bottom: 0.5cqi; }
.tpl-doc-moderno ul li::before { content: ''; position: absolute; left: 0; top: 1cqi; width: 1cqi; height: 1cqi; background: #2D5BFF; border-radius: 50%; }


/* ---------- Templates page (gallery dedicada) ---------- */
.templates-page-section { padding: 16px 0 96px; }
.template-detail {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--hairline);
}
.template-detail:last-child { border-bottom: 0; }
.template-detail-flip .template-detail-preview { order: 2; }
.template-detail-preview {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 12px 36px -16px rgba(15,23,42,.18);
  position: relative;
  background: #fff;
}
.template-detail-preview > .tpl-doc {
  position: absolute;
  inset: 0;
}
.template-detail-num {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  color: var(--accent-blue); margin-bottom: 8px;
}
.template-detail-body h2 {
  font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.025em; font-weight: 800;
  margin: 0 0 14px;
}
.template-detail-tagline { font-size: 16px; line-height: 1.55; color: var(--ink-2); margin: 0 0 28px; }
.template-detail-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px;
  margin-bottom: 28px;
}
.template-detail-meta div h4 {
  font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 6px;
}
.template-detail-meta div p { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.palette-row { display: flex; gap: 8px; margin-top: 4px; }
.palette-chip {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-block;
}

.templates-faq {
  background: var(--paper-2); padding: 64px 0; text-align: center;
}
.templates-faq h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; }
.templates-faq p { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 560px; margin: 0 auto 14px; }
.templates-faq .btn { margin-top: 20px; }

/* ---------- FAQ page ---------- */
.faq-page-section { padding: 16px 0 96px; }
.faq-block { margin-bottom: 48px; }
.faq-block h2 { font-size: 22px; letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; }
.faq-page-section .faq-list details { background: #fff; border: 1px solid var(--hairline); border-radius: 12px; padding: 18px 22px; margin-bottom: 10px; }
.faq-page-section .faq-list details[open] { border-color: var(--hairline-2); }

/* ---------- Legal (privacy + terms) ---------- */
.legal-page { padding: 64px 0 96px; }
.legal-page .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-blue); }
.legal-page h1 { font-size: clamp(30px, 3.4vw, 40px); margin: 12px 0 8px; letter-spacing: -0.025em; font-weight: 800; }
.legal-meta { color: var(--muted); margin: 0 0 36px; font-size: 14px; }
.legal-body h2 { font-size: 20px; margin: 32px 0 12px; letter-spacing: -0.015em; font-weight: 800; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.legal-body ul { padding-left: 22px; margin: 8px 0 16px; }
.legal-body a { color: var(--accent-blue); font-weight: 600; }

/* ---------- Responsive ---------- */
/* ──────────────────────────────────────
   Mobile menu — hamburger + drawer
   ────────────────────────────────────── */
.nav-toggle {
  display: none; /* visible solo en mobile vía media query */
  width: 40px; height: 40px; padding: 0;
  background: transparent; border: 0; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  margin-left: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
}
@media (max-width: 760px) {
  .mobile-menu:not([hidden]) { display: flex; }
}
.mobile-menu a {
  display: block; padding: 12px 4px;
  color: rgba(255,255,255,.85); font-size: 16px; font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu-group { padding: 8px 0; }
.mobile-menu-label {
  display: block; padding: 12px 4px 6px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45); font-weight: 700;
}
.mobile-menu-group a { padding-left: 16px; font-size: 15px; }
.mobile-menu-cta {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 14px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.mobile-menu-cta .btn { justify-content: center; width: 100%; }

@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-grid { grid-template-columns: repeat(3, 1fr); }
  .more-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .more-card:nth-child(2) { border-right: 0; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .about-pillar-grid { grid-template-columns: 1fr; }
  .post-card-featured { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .template-detail { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .template-detail-flip .template-detail-preview { order: 0; }
  .template-detail-preview .img-placeholder { max-width: 480px; margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 760px) {
  /* Layout grids */
  .hero-grid, .measurable-grid, .cta-grid { grid-template-columns: 1fr; gap: 32px; }
  .more-grid { grid-template-columns: 1fr; row-gap: 24px; }
  .more-card { border-right: 0; padding: 0; }
  .post-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .template-detail-meta { grid-template-columns: 1fr; }
  .footer-row { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* ──────────────────────────────────────
     Carruseles horizontales en mobile
     ──────────────────────────────────────
     "Por qué tu CV no funciona", "Cómo funciona" y "Templates"
     pasan de stack vertical a swipe horizontal con snap.
     Cada card ocupa ~85% del ancho → la siguiente "asoma" 15%
     y comunica visualmente que hay más contenido. */
  .why-grid, .steps, .tpl-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    gap: 12px;
    /* Bleed full-width: salimos del wrap (padding 20px) para que la primera
       card alinee con el borde izquierdo del wrap pero el scroll sea full screen */
    margin-left: -20px;
    margin-right: -20px;
    padding: 4px 20px 16px;
    /* Hide scrollbar */
    scrollbar-width: none;
  }
  .why-grid::-webkit-scrollbar,
  .steps::-webkit-scrollbar,
  .tpl-grid::-webkit-scrollbar { display: none; }
  .why-card, .step, .tpl {
    scroll-snap-align: start;
    min-width: 0;
  }
  /* En carrusel los items necesitan height auto consistent para no pelearse con stretch */
  .why-grid { align-items: stretch; }

  /* Topbar */
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .desktop-only { display: none; }
  .topbar-inner { gap: 12px; }
  .top-actions { gap: 8px; }

  /* HERO — el visual desktop tiene cards absolutamente posicionadas que no
     funcionan stackeadas. En mobile lo simplifico a solo los 2 gauges
     (Tu puntaje 72 → Puntaje mejorado 88) en línea, sin CVs ni curva. */
  .hero { padding: 48px 0 40px; }
  .hv-stage {
    height: auto; max-width: 420px; margin: 0 auto; padding: 8px 0;
    display: flex; gap: 14px; justify-content: center; align-items: center;
  }
  .hv-stage::before { display: none; }
  .hv-decoration, .hv-curve, .hv-card-before, .hv-card-after { display: none; }
  .hv-gauge {
    position: static !important; animation: none !important;
    flex: 1 1 0; max-width: 180px;
    transform: none !important;
  }
  .hv-gauge-arrow { display: none; }
  .social-proof { flex-wrap: wrap; gap: 12px; }

  /* Section paddings — más tight en mobile */
  .why, .more, .templates, .measurable, .cta-final, .templates-page-section,
  .post-grid-section, .guide-list-section, .pricing-plans, .about-pillars,
  .about-method, .about-cta, .faq-page-section, .pricing-faq, .legal-page,
  .how, .pricing-hero, .page-hero {
    padding-top: 48px; padding-bottom: 56px;
  }
  .section-title-h, .templates-title, .more-title { margin-bottom: 32px; }

  /* Wrap padding */
  .wrap, .wrap-narrow { padding: 0 20px; }

  /* "Por qué tu CV no funciona" — cards más densas */
  .why-card { padding: 20px 14px; border-radius: 12px; }
  .why-card h3 { font-size: 14px; line-height: 1.3; }
  .why-card p { font-size: 12.5px; line-height: 1.45; }
  .why-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .why-icon svg { width: 36px; height: 36px; }

  /* "Cómo funciona" — circles más chicos en cada card del carrusel */
  .step { padding: 8px 0; }
  .step-art { width: 76px; height: 76px; margin-bottom: 16px; }
  .step-num { width: 24px; height: 24px; font-size: 12px; }
  .step-art svg { width: 28px; height: 28px; }
  .step h4 { font-size: 15px; }
  .step p { font-size: 13px; margin: 0 8px; }

  /* "Tu CV es medible" — score card a 1 col, ocultar el bloque comparativo
     entero (Antes vs Después) que en mobile no aporta porque ya ocupó pantalla
     similar arriba en el hero y abajo en otros sitios */
  .score-row { grid-template-columns: 1fr; gap: 24px; justify-items: center; }
  .score-side { width: 100%; }
  .score-caption { text-align: center; margin: 0 auto; }
  .measurable-compare { display: none; }

  /* Research bar (subsección del hero) */
  .research-inner { gap: 16px; flex-direction: column; padding: 0 20px; }
  .research-logos { max-width: 100%; }

  /* Auth card */
  .auth-card { padding: 28px 24px; }

  /* Final CTA — todo centrado en mobile */
  .cta-final, .about-cta { text-align: center; }
  .cta-photo { max-height: 320px; margin: 0 auto; }
  .cta-final .btn, .about-cta .btn { margin: 18px auto 0; }
  .cta-final h2, .about-cta h2 { font-size: clamp(26px, 6.5vw, 32px); }

  /* Nosotros — "En qué creemos" pasa a carrusel horizontal */
  .about-pillar-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    gap: 12px;
    margin-left: -20px; margin-right: -20px;
    padding: 4px 20px 16px;
    scrollbar-width: none;
  }
  .about-pillar-grid::-webkit-scrollbar { display: none; }
  .about-pillar { scroll-snap-align: start; min-width: 0; }

  /* Footer — solo logo, Empresa y Contacto en mobile */
  .site-footer { padding: 48px 0 32px; }
  .footer-row { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .footer-brand-col { grid-column: 1 / -1; margin-bottom: 4px; }
  .footer-col-secondary { display: none; }
  .footer-tagline { max-width: none; font-size: 12.5px; }
  .site-footer h5 { font-size: 11px; margin-bottom: 12px; }
  .site-footer ul { gap: 10px; }
  .site-footer a { font-size: 13.5px; }
  .brand-logo { height: 28px; }
  .brand-logo-footer { height: 32px; }
  .brand-placeholder { width: 120px; height: 32px; }
}
@media (max-width: 480px) {
  /* En carruseles a pantallas muy chicas, cards ocupan más ancho y la card
     siguiente solo "espía" un poco */
  .why-grid, .steps, .tpl-grid { grid-auto-columns: 88%; }
  .footer-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-brand-col { grid-column: auto; }

  /* Hero gauges aún más compactos */
  .hv-stage { max-width: 340px; }
  .hv-gauge { max-width: 150px; padding: 10px 12px !important; }
  .hv-gauge-label { font-size: 10px !important; }
  .hv-gauge-num { font-size: 24px !important; }

  /* Tipografía hero */
  .hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .page-hero h1 { font-size: clamp(24px, 7vw, 32px); }
}

/* ─────────────────────────────────────────────
   Blog post detail (/blog/:slug)
   Layout editorial: contenido a 720px, cover full-width hasta ~960px.
   Tipografía generosa, jerarquía clara, sin distracciones laterales.
   ───────────────────────────────────────────── */

.blog-post {
  padding: 56px 24px 80px;
  background: var(--bg, #FAFAFA);
}

.blog-post-inner {
  max-width: 720px;
  margin: 0 auto;
}

/* Header */
.blog-post-head {
  margin-bottom: 32px;
}

.blog-post-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lime, #B0FF1A);
  margin: 0 0 18px;
}
.blog-post-kicker-tag {
  color: var(--muted, #64748B);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
}

.blog-post-title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-1, #0F172A);
  letter-spacing: -0.5px;
  margin: 0 0 16px;
}

.blog-post-excerpt {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted, #475569);
  margin: 0 0 22px;
  font-weight: 400;
}

.blog-post-meta {
  font-size: 13px;
  color: var(--muted, #64748B);
  margin: 0;
}
.blog-post-meta time { font-variant-numeric: tabular-nums; }

/* Cover — dentro del contenedor, mantiene aspect ratio natural sin recortar */
.blog-post-cover-wrap {
  margin: 0 0 40px;
}
.blog-post-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background: #F1F5F9;
}

/* Body — la prosa */
.blog-post-body {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2, #1F2937);
}
.blog-post-body > * + * { margin-top: 1.2em; }

.blog-post-body h1,
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
  color: var(--ink-1, #0F172A);
  line-height: 1.25;
  letter-spacing: -0.3px;
  margin-top: 1.8em;
  margin-bottom: 0.4em;
}
.blog-post-body h2 { font-size: 26px; font-weight: 700; }
.blog-post-body h3 { font-size: 21px; font-weight: 700; }
.blog-post-body h4 { font-size: 17px; font-weight: 700; }
.blog-post-body h2:first-child,
.blog-post-body h3:first-child { margin-top: 0; }

.blog-post-body p { margin: 0; }

.blog-post-body a {
  color: var(--accent, #2546FF);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.blog-post-body a:hover { text-decoration-thickness: 2px; }

.blog-post-body ul,
.blog-post-body ol { padding-left: 1.4em; }
.blog-post-body li { margin: 0.4em 0; }
.blog-post-body li::marker { color: var(--muted, #64748B); }

.blog-post-body blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--lime, #B0FF1A);
  color: var(--ink-2, #1F2937);
  font-style: italic;
}

.blog-post-body code {
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 0.85em;
  background: #F1F5F9;
  padding: 2px 6px;
  border-radius: 3px;
  color: #0F172A;
}
.blog-post-body pre {
  background: #0F172A;
  color: #E2E8F0;
  padding: 18px 20px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.55;
}
.blog-post-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.blog-post-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1.4em 0;
}

.blog-post-body hr {
  border: 0;
  border-top: 1px solid #E2E8F0;
  margin: 2.4em 0;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 1.6em 0;
}
.blog-post-body th,
.blog-post-body td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #E2E8F0;
}
.blog-post-body th {
  font-weight: 600;
  color: var(--ink-1, #0F172A);
  background: #FAFAFA;
}

/* Footer — tags + back */
.blog-post-foot {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid #E2E8F0;
}

.blog-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.blog-post-tag {
  display: inline-block;
  font-size: 12.5px;
  color: var(--muted, #64748B);
  background: #F1F5F9;
  padding: 5px 11px;
  border-radius: 999px;
  font-weight: 500;
}

.blog-post-back {
  margin-top: 8px;
}
.blog-post-back .btn-link {
  font-size: 14px;
}

/* Mobile */
@media (max-width: 720px) {
  .blog-post { padding: 32px 16px 56px; }
  .blog-post-cover { border-radius: 8px; }
  .blog-post-body { font-size: 16px; }
  .blog-post-body h2 { font-size: 22px; }
  .blog-post-body h3 { font-size: 19px; }
}

/* ─────────────────────────────────────────────
   Guías (/guias) — fallback informativo y grid de posts reales
   ───────────────────────────────────────────── */

.guide-fallback-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 48px;
}
.guide-fallback-banner h2.guide-fallback-title {
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--ink-1, #0F172A);
}
.guide-fallback-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted, #475569);
  line-height: 1.55;
  max-width: 640px;
}
.guide-fallback-banner .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Cards informativas (fallback) — diferencian visualmente que NO son links activos */
.guide-card-info {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.15s ease;
}
.guide-card-info:hover { border-color: #CBD5E1; }
.guide-card-info .guide-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #F1F5F9;
  color: var(--lime-dark, #4F8C00);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-card-info h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink-1, #0F172A);
  margin: 0 0 8px;
  line-height: 1.3;
}
.guide-card-info p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted, #475569);
  margin: 0 0 12px;
}
.guide-card-info p strong { color: var(--ink-1, #0F172A); font-weight: 600; }
.guide-card-info .guide-meta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #94A3B8);
  font-weight: 500;
}
.guide-card-info a {
  color: var(--accent, #2546FF);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─────────────────────────────────────────────
   Cards de guías REALES (posts publicados kind=guia).
   Override de la card horizontal default — estas son verticales: thumb 16:9 arriba,
   body abajo. Usan modificador `.guide-card-post` para no chocar con el fallback
   informativo (.guide-card-info) que sí es horizontal.
   ───────────────────────────────────────────── */

/* Override del .guide-card cuando es la variante post:
   - layout vertical (thumb arriba, body abajo)
   - sin gap interno entre thumb y body
   - sin padding interno (el body lo maneja)
   - thumb va edge-to-edge en la card */
.guide-card.guide-card-post {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  align-items: stretch;
  text-decoration: none;
  overflow: hidden;
}

.guide-card-post .guide-card-thumb {
  aspect-ratio: 16/9;
  width: 100%;
  background: #F1F5F9;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted, #94A3B8);
  margin: 0;
  flex-shrink: 0;
}
.guide-card-post .guide-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guide-card-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted, #94A3B8);
}

.guide-card-post .guide-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.guide-card-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-blue, #2546FF);
  text-transform: uppercase;
}
.guide-card-post .guide-card-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink-1, #0F172A);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  /* Cap en 3 líneas con ellipsis si el título es muy largo */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-post .guide-card-body p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted, #475569);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card-post .guide-meta {
  margin-top: auto;  /* empuja la fecha al fondo de la card */
  padding-top: 4px;
  font-size: 11.5px;
  color: var(--muted, #94A3B8);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

/* Hover effect específico para post cards */
.guide-card-post:hover {
  border-color: var(--accent-blue, #2546FF);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

@media (max-width: 720px) {
  .guide-fallback-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
  .guide-card-info {
    flex-direction: column;
    padding: 20px;
  }
}

/* ─────────────────────────────────────────────
   Plan badges en topbar (effective_plan)
   ───────────────────────────────────────────── */
.plan-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  margin-right: 8px;
}
.plan-badge-paid {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}
.plan-badge-dev {
  background: #E0E7FF;
  color: #3730A3;
  border: 1px solid #A5B4FC;
}

/* ─────────────────────────────────────────────
   Checkout success / cancel pages
   ───────────────────────────────────────────── */
.wizard-checkout-success,
.wizard-checkout-cancel {
  max-width: 560px;
  margin: 40px auto;
  text-align: center;
  padding: 32px 24px;
}
.checkout-success-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.checkout-success-pending {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 8px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 14px;
  color: #9A3412;
}
.checkout-success-actions,
.checkout-cancel-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 28px 0 18px;
}
.checkout-fineprint {
  font-size: 12.5px;
  color: var(--muted, #64748B);
  margin: 16px 0 0;
}

/* ─── Newsletter modal ─────────────────────────────── */
.newsletter-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
/* `hidden` HTML attr tiene baja especificidad y `display: flex` arriba lo pisaba.
   Esto lo restaura — sin esto el modal queda siempre visible bloqueando clicks. */
.newsletter-modal[hidden] { display: none; }
.newsletter-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 17, 32, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 200ms ease;
}
.newsletter-modal.is-open .newsletter-modal-backdrop { opacity: 1; }
.newsletter-modal-card {
  position: relative;
  background: #fff;
  color: var(--ink, #0B1120);
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 32px 28px 24px;
  box-shadow: 0 24px 60px rgba(11, 17, 32, 0.18);
  border: 1px solid rgba(11, 17, 32, 0.08);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 240ms ease, opacity 200ms ease;
}
.newsletter-modal.is-open .newsletter-modal-card {
  transform: translateY(0);
  opacity: 1;
}
.newsletter-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: 0;
  font-size: 24px;
  line-height: 1;
  color: #94A3B8;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
}
.newsletter-modal-close:hover { color: #0B1120; background: #F1F5F9; }
.newsletter-modal-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue, #2D5BFF);
  margin: 0 0 8px;
}
.newsletter-modal-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--primary-ink, #0B1120);
}
.newsletter-modal-lead {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #1B2240);
  margin: 0 0 20px;
}
.newsletter-form {
  display: flex;
  gap: 8px;
  margin: 0 0 12px;
}
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 120ms ease;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--accent-blue, #2D5BFF);
  box-shadow: 0 0 0 3px rgba(45, 91, 255, 0.12);
}
.newsletter-submit {
  background: var(--primary, #C8FF3C);
  color: var(--primary-ink, #0B1120);
  border: 0;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: filter 120ms ease;
  white-space: nowrap;
}
.newsletter-submit:hover:not(:disabled) { filter: brightness(0.95); }
.newsletter-submit:disabled { opacity: 0.6; cursor: wait; }
.newsletter-modal-footnote {
  font-size: 12px;
  color: var(--muted, #64748B);
  margin: 0;
  line-height: 1.5;
}
.newsletter-feedback {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}
.newsletter-feedback.is-ok {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.newsletter-feedback.is-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
@media (max-width: 480px) {
  .newsletter-modal-card { padding: 24px 20px 20px; }
  .newsletter-form { flex-direction: column; }
  .newsletter-modal-title { font-size: 21px; }
}
