/* Tipografia compartida: portada, articulos y tests. */
/* Distribucion limitada a la portada. */
body header.hero { padding-block: 40px 36px; }
body header.hero .hero-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  grid-template-areas: "intro photo" "actions photo";
  align-items: start;
  gap: 20px 32px;
}
body header.hero .hero-intro { grid-area: intro; }
body header.hero .hero-photo { grid-area: photo; }
body header.hero .hero-actions { grid-area: actions; display: grid; gap: 16px; }
body header.hero .hero-sub { margin-bottom: 0; }
body header.hero .hero-price, body header.hero .hero-trust { margin: 0; }
body header.hero .answer { margin-top: 28px; }
@media (max-width: 880px) {
  body header.hero .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "photo" "actions";
    gap: 24px;
  }
}
@media (max-width: 640px) {
  body header.hero { padding-block: 28px; }
  body header.hero .answer { margin-top: 24px; }
}
/* Logo completo, sin recortar los petalos del archivo original. */
body .logo-icon {
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff;
  border-radius: 8px;
}
body nav .logo-icon { width: 56px; height: 44px; }
body nav .brand { min-width: 0; gap: 12px; line-height: 1.3; }
body nav .nav-cta { flex-shrink: 0; }
@media (max-width: 1100px) {
  body nav ul { display: none; }
}
@media (max-width: 640px) {
  body nav .logo-icon { width: 46px; height: 36px; }
  body nav .brand { flex: 1; font-size: 1rem; gap: 8px; }
  body nav .brand span.txt { display: block; }
  body nav .navwrap { flex-wrap: nowrap; }
}
/* Retrato: proporciones originales y marco discreto. */
body .photo-frame {
  width: 100%;
  max-width: 380px;
  border: 4px solid var(--card);
  border-radius: 20px;
  box-shadow: 0 12px 30px -16px rgba(47, 44, 51, .25);
}
body .photo-frame::before { padding-top: 133.333333%; }
body .photo-frame .bg { background-size: contain; background-repeat: no-repeat; background-position: center; }
body .photo-badge {
  margin: 14px auto 0;
  border-radius: 16px;
  box-shadow: 0 6px 18px -12px rgba(47, 44, 51, .2);
}
@media (max-width: 640px) {
  body .photo-frame { max-width: 320px; border-radius: 18px; }
  body .photo-badge { max-width: min(320px, 100%); gap: 10px 16px; }
}
/* Motivos: tipografia compacta y recuadros alineados por fila. */
body .spec-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
  margin-top: 24px;
}
body .spec-card { padding: 18px; min-width: 0; }
body .spec-body { padding: 0; }
body .spec-grid .spec-card h3 { font-size: 1.125rem; line-height: 1.3; margin-bottom: 8px; }
body .spec-grid .spec-card p { font-size: 1rem; line-height: 1.5; margin: 0; }
body .spec-card:last-child { grid-column: 1 / -1; }
body .spec-card:last-child .spec-body {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 920px) {
  body .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body .spec-card:last-child .spec-body { display: block; }
}
@media (max-width: 600px) {
  body .spec-grid { grid-template-columns: minmax(0, 1fr); }
  body .spec-card { padding: 18px; }
}
:root {
  --reading-size: 1.125rem;
  --section-size: 1.875rem;
  --card-title-size: 1.375rem;
}
body {
  font-family: var(--sans, 'Manrope', sans-serif);
  font-size: var(--reading-size);
  line-height: 1.65;
}
body h1, body h2, body h3 {
  font-family: var(--serif, 'Fraunces', Georgia, serif);
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
  overflow-wrap: break-word;
}
body h1.article-title { font-size: 2.375rem; }
body h1.hero-title, body .hero-name { font-size: 2.875rem; line-height: 1.18; }
body .hero-role { font-size: 1.25rem; line-height: 1.5; }
body h2, body h2.section-title, body article h2, body .cta-section h2 {
  font-size: var(--section-size);
}
body h3, body article h3, body .spec-card h3, body .approach-item h3,
body .pack h3, body .post h3, body .social h3, body .form-card h3,
body .lib-card h2, body .tcard b, body .answer h2, body .qa h2 {
  font-size: var(--card-title-size);
  line-height: 1.35;
}
body p, body main p, body article p, body .spec-card p,
body .approach-item p, body .pack p.d, body .about-copy p.first,
body .testi-card p, body .social p, body .pausa p, body .eval-pro p,
body .post p, body .qa p, body .summary p, body .lib-card p,
body article li, body .steps li, body .pack ul, body .prep ul,
body .credential-card li, body .eval-steps li {
  font-size: var(--reading-size);
  line-height: 1.65;
}
body .intro, body .about-copy p.first, body .testi-card p {
  font-family: var(--sans, 'Manrope', sans-serif);
}
body article.wrap { max-width: calc(66ch + 64px); }
body article.wrap > p { margin-bottom: 1.25em; }
body article.wrap > h2 { margin-top: 2.25rem; }
body article.wrap > h3 { margin-top: 1.75rem; }
body article p + p, body .about-copy p + p { margin-top: 1em; }
body .byline, body .breadcrumb, body .fine, body .es-note,
body .hero-trust, body .photo-badge, body .stat-label, body .clock,
body .post .cat, body .post .soon, body .category-tag, body .section-tag,
body .eyebrow, body .pack .per, body .pack .save, body .pack .flag,
body .eval-pro-tag, body .pay-methods span, body .testi-card .author,
body .refs li, body .refs p, body .author-box p, body .consent,
body .disclaimer, body .form-card p.hint, body .pausa-qr figcaption,
body footer, body footer p, body small {
  font-size: .9375rem;
  line-height: 1.6;
}
/* Estas notas ya usaban reglas prioritarias en los estilos locales. */
body .approach-use, body .pausa-nota, body .eval-pend {
  font-size: .9375rem !important;
  line-height: 1.6;
}
body .eval-limits { font-size: var(--reading-size) !important; }
body .pack .flag { white-space: normal; max-width: calc(100% - 44px); }
body .social { min-width: 0; overflow-wrap: anywhere; }
body .pausa h3, body .eval-pro h3, body .prep h3 { font-size: var(--card-title-size); }
body button, body .nav-cta, body .btn-primary, body .btn-secondary,
body .btn-ghost, body .btn-test, body .btn-out, body .wa-float, body .closing .b1,
body .closing .b2, body .seg button, body .post a,
body .packs-details summary, body .pausa-player summary {
  font-family: var(--sans, 'Manrope', sans-serif);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  min-height: 44px;
}
body nav ul { font-size: 1rem; line-height: 1.5; }
body nav .navwrap { flex-wrap: wrap; }
body input, body select, body textarea,
body .form-card input[type=text], body .form-card input[type=email],
body .form-card input[type=tel], body .form-card select {
  font-family: var(--sans, 'Manrope', sans-serif);
  font-size: 1rem;
}
body .q legend {
  font-family: var(--sans, 'Manrope', sans-serif);
  font-size: var(--reading-size);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 14px;
}
body .q .opts { gap: 12px; }
body .q label.opt {
  font-size: var(--reading-size);
  line-height: 1.5;
  min-height: 48px;
  padding: 10px 16px;
  max-width: 100%;
}
body .q label.opt input { flex-shrink: 0; }
body .lead label.f, body .form-card label { font-size: 1rem; line-height: 1.5; }
body .refs a, body .breadcrumb, body footer a { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  :root {
    --reading-size: 1.0625rem;
    --section-size: 1.625rem;
    --card-title-size: 1.25rem;
  }
  body h1.article-title { font-size: 1.875rem; }
  body h1.hero-title, body .hero-name { font-size: 2rem; }
  body .hero-role { font-size: 1.125rem; }
  body article.wrap { max-width: calc(66ch + 36px); }
  body .photo-badge { flex-wrap: wrap; }
}

/* Adaptacion exclusiva para pantallas de celular. */
@media (max-width: 640px) {
  body .wa-float {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 12px;
    border-radius: 50%;
    justify-content: center;
    gap: 0;
  }
  body .wa-float > span { display: none; }
  body .wa-float svg { width: 28px; height: 28px; }
  body main > section { padding-block: 44px; }
  body main [id], body .q, body #result { scroll-margin-top: 110px; }
  body .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  body .cta-row > a,
  body .pack > .btn-primary, body .pack > .btn-secondary,
  body .fonasa-block > .btn-primary, body .form-card button[type="submit"],
  body .btn-test, body .packs-details > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
  }
  body .pack, body .form-card, body .fonasa-block,
  body .pausa, body .eval-pro, body header.hero .answer {
    padding: 20px 18px;
  }
  body .pack-grid, body .approach-list, body .first-grid .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  body .pack .flag { left: 18px; max-width: calc(100% - 36px); }
  body .market .seg { width: 100%; }
  body .market .seg button { flex: 1; min-width: 0; padding-inline: 8px; }
  body .form-card input:not([type="checkbox"]):not([type="hidden"]),
  body .form-card select, body #testform .lead input:not([type="checkbox"]):not([type="hidden"]),
  body #testform .lead select { min-height: 48px; }
  body .consent input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; }
  body #testform .lead { padding: 20px 16px; }
  body .q { padding: 16px 14px; min-width: 0; }
  body .q .opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  body .q label.opt { width: 100%; padding: 12px; border-radius: 14px; }
  body .q label.opt input { width: 18px; height: 18px; }
}
@media (max-width: 380px) {
  body .nap div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}


/* Ajustes solicitados: Instagram y nuevos motivos de consulta. */
body #soc-ig .ico { background: linear-gradient(35deg, #feda75 0%, #fa7e1e 20%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
@media (min-width: 601px) and (max-width: 920px) {
  body .spec-card:last-child:nth-child(even) { grid-column: auto; }
}

/* Solo en la copia de vista previa de imágenes. */
body .preview-article-photo { margin: 0 0 28px; }
body .preview-article-photo img { display: block; width: 100%; height: auto; border-radius: 16px; }
body .preview-card-photo { display: block; margin: 0 0 6px; min-height: 0; }
body .preview-card-photo img { display: block; width: 100%; height: auto; border-radius: 10px; }

/* Correcciones de revisión: resultado visible y espacio para WhatsApp en móvil. */
body #result { scroll-margin-top: var(--result-scroll-offset, 110px); }
body .result-title:focus-visible { outline: 2px solid var(--violet); outline-offset: 4px; }
@media (max-width: 640px) {
  body.has-floating-contact main .wrap,
  body.has-floating-contact > .crisis .wrap,
  body.has-floating-contact > footer .wrap { padding-right: 82px; }
  body.has-floating-contact .nap div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.has-floating-contact .nap dd { overflow-wrap: anywhere; }
  body.has-floating-contact .pausa-btns { flex-wrap: wrap; }
  body.has-floating-contact .pausa-btns > * { max-width: 100%; white-space: normal; }
}
