/* =========================================================================
   BIURA — páginas estáticas (scripts/build-pages.mjs)
   Reutiliza css/styles.css: tokens, --u (lienzo de 1024 unidades, tope 1640 px), .frame, botones,
   cabecera, pie y revelado. Aquí solo lo propio de las páginas editoriales.
   Escala: ≥1000 px de contenedor todo va en --u (como la landing); el cuerpo de texto se topa para leer
   bien en pantallas grandes. <1000 px: --u = 1 px y tipografía fluida (bloque compacto al final).
   ========================================================================= */
.p-main {
  --pad: calc(61.2 * var(--u));           /* mismo borde izquierdo que el texto de la landing */
  --paper: #F9F3EE;
  --sand: #F3E8E0;
  --line: rgba(58, 46, 36, .13);
  --line-strong: rgba(58, 46, 36, .28);
  --copper: #7A5235;                       /* cobre del método, oscurecido para texto (AA sobre papel) */
  --muted: #5A4C44;
  --t-body: clamp(16px, calc(13.6 * var(--ui)), 19px);
  --t-small: clamp(14px, calc(11.8 * var(--ui)), 16px);
  --t-h3: clamp(17px, calc(15 * var(--ui)), 21px);
  display: block;
  background: #F7EFEA;
  color: var(--ink);
  font-size: var(--t-body);
  line-height: 1.6;
}
.p-main p + p { margin-top: .85em; }
.p-main a:not(.btn):not(.p-link) { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; text-decoration-color: rgba(58, 46, 36, .45); }
.p-main a:not(.btn):not(.p-link):hover { text-decoration-color: currentColor; }
.nowrap { white-space: nowrap; }
.p-main .icon { width: 1.25em; height: 1.25em; }

/* ---------- migas, eyebrow, acciones y enlaces ---------- */
.p-crumbs { margin-bottom: calc(16 * var(--u)); font-size: var(--t-small); color: var(--muted); }
.p-crumbs ol { display: flex; flex-wrap: wrap; gap: 0 .5em; }
.p-crumbs li + li::before { content: "/"; margin-right: .5em; color: rgba(58, 46, 36, .4); }
.p-crumbs a { color: inherit; text-decoration: none !important; }
.p-crumbs a:hover { color: var(--ink); }
.p-crumbs [aria-current] { color: var(--ink); }
.p-eyebrow { color: #2E241F; letter-spacing: .25em; white-space: normal; }
.p-actions { display: flex; flex-wrap: wrap; align-items: center; gap: calc(14 * var(--u)) calc(26 * var(--u)); margin-top: calc(22 * var(--u)); }
.p-actions--center { justify-content: center; }
.p-btn { --btn-h: 38; --btn-pl: 24; --btn-pr: 20; --btn-gap: 12; --btn-fs: 15.1; --btn-arrow: 15; min-height: 44px; }
.p-btn.btn--outline { --btn-h: 38; }
.p-link {
  display: inline-flex; align-items: center; gap: .55em; min-height: 44px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink);
}
.p-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease-out); padding-bottom: 1px; }
.p-link:hover span { background-size: 100% 1px; }
.p-link .icon--arrow { width: 1em; height: 1em; stroke-width: 1.6; transition: transform .45s var(--ease-out); }
.p-link:hover .icon--arrow { transform: translateX(3px); }

/* ---------- cabecera de página ---------- */
.p-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(180deg, #F2E6DE 0, #F5EBE5 100%);
  box-shadow: inset 0 -1px 0 var(--line);
}
.p-hero__inner { display: grid; grid-template-columns: minmax(0, 470fr) minmax(0, 554fr); align-items: center; min-height: calc(300 * var(--u)); }
.p-hero:not(.p-hero--media) .p-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: calc(236 * var(--u)); }
.p-hero__content { position: relative; z-index: 1; padding: calc(40 * var(--u)) calc(24 * var(--u)) calc(42 * var(--u)) var(--pad); }
.p-hero:not(.p-hero--media) .p-hero__content { max-width: calc(760 * var(--u)); }
.p-hero__title {
  margin-top: calc(12 * var(--u));
  font-family: var(--font-hero); font-weight: 400;
  font-size: calc(38 * var(--u)); line-height: 1.1; letter-spacing: -.018em; color: #251911;
  text-wrap: balance;
}
.p-hero__lead { margin-top: calc(14 * var(--u)); max-width: 36em; font-size: clamp(16px, calc(15.2 * var(--ui)), 21px); line-height: 1.55; color: #261B16; text-wrap: pretty; }
.p-hero__media { position: relative; align-self: stretch; }
.p-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p-hero__img--right {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%);
          mask-image: linear-gradient(90deg, transparent 0, #000 30%);
}
.p-hero__img--float { inset: 8% 6% 8% 4%; width: 90%; height: 84%; object-fit: contain; }
.p-hero--portrait .p-hero__inner { grid-template-columns: minmax(0, 600fr) minmax(0, 424fr); min-height: calc(330 * var(--u)); }
.p-hero__img--portrait { object-position: 50% 30%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.p-hero--landing .p-hero__title { font-size: calc(40 * var(--u)); }
.p-hero--legal .p-hero__inner { min-height: calc(200 * var(--u)); }
.p-hero--brand .p-hero__inner { grid-template-columns: minmax(0, 600fr) minmax(0, 424fr); }
.p-brandmark { position: absolute; inset: 12% 14%; display: grid; place-items: center; border-left: 1px solid var(--line); }
.p-brandmark__img { width: auto; max-width: 80%; height: calc(56px * var(--logo-k, 1)); object-fit: contain; opacity: .9; }

/* ---------- sección editorial: título a la izquierda, contenido a la derecha ---------- */
.p-sec { box-shadow: inset 0 1px 0 var(--line); }
.p-sec--paper { background: var(--paper); }
.p-sec__inner { display: grid; grid-template-columns: calc(300 * var(--u)) minmax(0, 1fr); gap: calc(40 * var(--u)); padding: calc(52 * var(--u)) var(--pad); }
.p-sec__head { align-self: start; position: sticky; top: calc(var(--header-offset) + 24px); }
.p-sec__title { font-family: var(--font-hero); font-weight: 400; font-size: calc(26 * var(--u)); line-height: 1.12; letter-spacing: -.015em; color: var(--ink-heading); text-wrap: balance; }
.p-kicker { margin-bottom: calc(10 * var(--u)); font-family: var(--font-eyebrow); font-weight: 550; font-size: calc(10.5 * var(--u)); letter-spacing: .22em; text-transform: uppercase; color: var(--copper); }
.p-sec__body { min-width: 0; max-width: calc(600 * var(--u)); }
.p-sec--wide .p-sec__body, .p-sec__body--full { max-width: none; }
.p-sec__body--full { grid-column: 1 / -1; }
.p-sec--stack .p-sec__inner { grid-template-columns: minmax(0, 1fr); gap: calc(26 * var(--u)); }
.p-sec--stack .p-sec__head { position: static; }
.p-sec--flush { box-shadow: none; padding: 0 0 calc(10 * var(--u)); background: #F7EFEA; }
.p-sec--flush .frame { padding: calc(28 * var(--u)) var(--pad) 0; }
.p-lead { font-size: clamp(17px, calc(15 * var(--ui)), 21px); line-height: 1.55; color: #2A1E18; }
.p-lead + * { margin-top: calc(22 * var(--u)); }
.p-small { margin-top: calc(18 * var(--u)); font-size: var(--t-small); color: var(--muted); }
.p-h3, .p-sec__body h3, .p-two h3 { font-family: var(--font-ui); font-weight: 500; font-size: var(--t-h3); line-height: 1.3; color: var(--ink-heading); }
.p-h3 { margin: calc(30 * var(--u)) 0 calc(12 * var(--u)); }
.p-h3:first-child { margin-top: 0; }
.p-prose > * + * { margin-top: .85em; }
.p-prose p { max-width: 38em; }
.p-aside { display: flex; align-items: center; gap: .6em; margin-top: calc(22 * var(--u)); font-size: var(--t-small); color: var(--muted); }

/* listas */
.p-list li { position: relative; padding-left: 1.3em; }
.p-list li + li { margin-top: .45em; }
.p-list li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: 1px; background: var(--copper); }
.p-list--spaced li + li { margin-top: .9em; }
.p-list--marks li::before { width: 6px; height: 6px; top: .62em; border-radius: 50%; background: none; border: 1px solid var(--copper); }
.p-two { display: grid; grid-template-columns: 1fr 1fr; gap: calc(36 * var(--u)); }
.p-two h3 { margin-bottom: .6em; display: flex; align-items: center; gap: .5em; }
.p-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(36 * var(--u)); align-items: start; }
.p-sec--wide .p-split, .p-sec__body .p-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

/* pasos numerados (secuencias reales) */
.p-steps { counter-reset: s; display: grid; grid-template-columns: 1fr 1fr; gap: calc(28 * var(--u)) calc(36 * var(--u)); }
.p-steps li { counter-increment: s; position: relative; padding-top: calc(14 * var(--u)); border-top: 1px solid var(--line-strong); }
.p-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: calc(8 * var(--u)); font-family: var(--font-hero); font-size: calc(22 * var(--u)); line-height: 1; color: var(--copper); }
.p-steps h3 { margin-bottom: .35em; }
.p-steps p { font-size: var(--t-small); line-height: 1.6; color: #3A2E28; }

/* comprobaciones de la cámara */
.p-checks { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(18 * var(--u)) calc(24 * var(--u)); }
.p-checks li { display: flex; gap: .7em; align-items: flex-start; }
.p-checks .icon { flex: none; width: 30px; height: 30px; padding: 6px; border: 1px solid rgba(122, 140, 98, .55); border-radius: 50%; color: #4F6340; }
.p-checks strong { display: block; font-weight: 500; }
.p-checks span { display: block; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.p-guides { display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(10 * var(--u)); margin-top: calc(28 * var(--u)); }
.p-guides img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: calc(6 * var(--u)); }
.p-guides span { display: block; margin-top: .5em; font-size: calc(11 * var(--ui)); line-height: 1.35; color: var(--muted); }

/* métricas, reglas, rasgos (listas de definición con filete) */
.p-metrics, .p-rules, .p-traits, .p-usage { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(36 * var(--u)); }
.p-metrics > div, .p-rules > div, .p-traits > div { padding: calc(14 * var(--u)) 0; border-top: 1px solid var(--line); }
.p-metrics dt, .p-rules dt, .p-traits dt { font-family: var(--font-hero); font-size: calc(17 * var(--u)); line-height: 1.25; color: var(--ink-heading); }
.p-metrics dd, .p-rules dd, .p-traits dd { margin: .3em 0 0; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.p-metrics--compact dt { font-size: calc(15 * var(--u)); }

/* hechos con icono */
.p-facts { display: grid; gap: calc(18 * var(--u)); margin-bottom: calc(20 * var(--u)); }
.p-facts li { display: flex; gap: .9em; align-items: flex-start; }
.p-facts .icon, .p-features .icon, .p-layers .icon { flex: none; width: 40px; height: 40px; padding: 9px; border: 1px solid rgba(185, 141, 104, .6); border-radius: 50%; color: #6E4F38; }
.p-facts strong { display: block; font-weight: 500; }
.p-facts span { display: block; font-size: var(--t-small); color: var(--muted); }

/* rasgos del plan / criterios */
.p-features { display: grid; grid-template-columns: repeat(2, 1fr); gap: calc(26 * var(--u)) calc(36 * var(--u)); }
.p-features li { display: flex; gap: 1em; align-items: flex-start; }
.p-features h3 { margin-bottom: .3em; }
.p-features p { font-size: var(--t-small); line-height: 1.55; color: #3A2E28; }

/* etiqueta «ilustrativo» */
.p-tag { display: inline-flex; align-items: center; gap: .45em; margin-bottom: calc(12 * var(--u)); padding: 4px 11px 4px 9px; border: 1px dashed rgba(122, 92, 70, .55); border-radius: 999px; font-family: var(--font-eyebrow); font-size: 12px; letter-spacing: .04em; color: #6A4E3A; }
.p-tag .icon { width: 14px !important; height: 14px !important; }

/* ejemplo de guía */
.p-guide, .p-cal, .p-compare, .p-adh { margin: 0; padding: calc(20 * var(--u)); border: 1px solid var(--line); border-radius: calc(10 * var(--u)); background: #FFFBF8; box-shadow: 0 18px 40px -32px rgba(58, 40, 28, .45); }
.p-guide ol { display: grid; gap: calc(14 * var(--u)); }
.p-guide li { display: flex; gap: .9em; align-items: flex-start; }
.p-guide__n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-strong); border-radius: 50%; font-family: var(--font-hero); font-size: 15px; }
.p-guide strong { display: block; font-weight: 500; }
.p-guide span:not(.p-guide__n) { display: block; font-size: var(--t-small); line-height: 1.45; color: var(--muted); }

/* ejemplo de calendario */
.p-cal table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.p-cal th { font-family: var(--font-eyebrow); font-weight: 500; font-size: 11px; letter-spacing: .08em; color: var(--muted); text-align: center; }
.p-cal td { height: 34px; border-radius: 6px; background: #F4EAE3; text-align: center; }
.p-cal__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #B9A291; vertical-align: middle; }
.p-cal td.is-active { background: #EBDACB; }
.p-cal td.is-active .p-cal__dot, .p-cal figcaption .is-active .p-cal__dot { background: #8C5E3C; }
.p-cal td.is-rescan { background: #3A2E24; }
.p-cal td.is-rescan .p-cal__dot, .p-cal figcaption .is-rescan .p-cal__dot { background: #F7EADD; box-shadow: 0 0 0 1px #3A2E24; }
.p-cal figcaption, .p-adh figcaption { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.p-cal figcaption span, .p-adh figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.p-cal figcaption i { font-style: normal; }

/* comparativa ilustrativa */
.p-compare__table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.p-compare__table th, .p-compare__table td { padding: 9px 6px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
.p-compare__table thead th { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.p-compare__table td { white-space: nowrap; }
.p-bar { display: inline-block; vertical-align: middle; width: 70px; height: 4px; margin-right: 8px; border-radius: 4px; background: #EDE1D8; overflow: hidden; }
.p-bar i { display: block; width: calc(var(--v) * 1%); height: 100%; background: #B39882; }
.p-bar--b i { background: #6E4F38; }
.p-num { font-variant-numeric: tabular-nums; }
.p-delta { font-variant-numeric: tabular-nums; color: #5B4436; }
.p-compare figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* adherencia ilustrativa */
.p-adh__days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.p-adh__days li { aspect-ratio: 1; border-radius: 4px; background: #EFE4DC; }
.p-adh__days li.is-2, .p-adh figcaption i.is-2 { background: #6E4F38; }
.p-adh__days li.is-1, .p-adh figcaption i.is-1 { background: #C6A991; }
.p-adh figcaption i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: #EFE4DC; box-shadow: inset 0 0 0 1px rgba(58,46,36,.12); }

/* niveles */
.p-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.p-tier { padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(14 * var(--u)) 0; display: flex; flex-direction: column; }
.p-tier + .p-tier { padding-left: calc(18 * var(--u)); border-left: 1px solid var(--line); }
.p-tier__head h3 { font-family: var(--font-hero); font-weight: 400; font-size: calc(21 * var(--u)); }
.p-tier__head p { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); }
.p-tier__text { margin-top: .7em; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.p-tier__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: auto; padding-top: 14px; }
.p-tier__brands a { display: block; padding: 6px 0; }
.p-logo { width: auto; height: calc(21px * var(--logo-k, 1)); max-width: 120px; object-fit: contain; opacity: .82; transition: opacity .3s ease; }
a:hover > .p-logo { opacity: 1; }
.p-tier__n { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* capas de la tecnología */
.p-layers { display: grid; gap: calc(26 * var(--u)); }
.p-layers li { display: flex; gap: 1.1em; align-items: flex-start; padding-bottom: calc(22 * var(--u)); border-bottom: 1px solid var(--line); }
.p-layers li:last-child { border-bottom: 0; padding-bottom: 0; }
.p-layers__k { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.p-layers h3 { margin: .2em 0 .35em; }
.p-layers p:not(.p-layers__k) { font-size: var(--t-small); line-height: 1.6; color: #3A2E28; }

/* filosofía */
.p-quote { font-family: var(--font-hero); font-size: calc(24 * var(--u)); line-height: 1.3; color: var(--ink-heading); text-wrap: balance; }
.p-quote + .p-prose { margin-top: calc(20 * var(--u)); }
.p-method { counter-reset: m; display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(24 * var(--u)); }
.p-method li { counter-increment: m; padding-top: calc(14 * var(--u)); border-top: 1px solid var(--line-strong); }
.p-method li::before { content: counter(m, decimal-leading-zero); display: block; font-family: var(--font-hero); font-size: calc(20 * var(--u)); color: var(--copper); }
.p-method h3 { margin: .3em 0; font-family: var(--font-hero); font-weight: 400; font-size: calc(20 * var(--u)); }
.p-method p { font-size: var(--t-small); color: var(--muted); }

/* marcas */
.p-brands { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(40 * var(--u)); border-top: 1px solid var(--line-strong); }
.p-brand { display: grid; grid-template-columns: calc(120 * var(--u)) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: calc(22 * var(--u)); padding: calc(20 * var(--u)) 0; border-bottom: 1px solid var(--line); }
.p-brand__logo { grid-row: 1 / span 2; display: grid; place-items: center; height: calc(72 * var(--u)); min-height: 56px; border-radius: calc(8 * var(--u)); background: #FBF6F2; box-shadow: inset 0 0 0 1px var(--line); }
.p-brand__img { width: auto; max-width: 80%; height: calc(26px * var(--logo-k, 1)); object-fit: contain; opacity: .88; }
.p-brand h3 { font-family: var(--font-hero); font-weight: 400; font-size: calc(19 * var(--u)); line-height: 1.2; }
.p-brand__body p:not(.p-brand__meta) { margin-top: .3em; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.p-brand__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4em 1em; margin-top: .6em; font-size: 13px; color: var(--muted); }
.p-brand__link { grid-column: 2; justify-self: start; margin-top: 2px; }
.p-pill { display: inline-block; padding: 2px 10px; border: 1px solid rgba(154, 110, 76, .5); border-radius: 999px; font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6E4F38; }
.p-trademark { padding: calc(14 * var(--u)) var(--pad) calc(28 * var(--u)); font-size: 13px; color: var(--muted); }

/* pendientes */
.pending { padding: 0 .3em; border-radius: 3px; background: rgba(185, 141, 104, .14); color: #6A4A33; font-size: .92em; font-style: normal; white-space: normal; box-shadow: inset 0 -1px 0 rgba(154, 110, 76, .55); }
.p-pending-list li { padding: calc(12 * var(--u)) 0; border-top: 1px solid var(--line); }

/* ---------- banda puente (a mitad de página) ---------- */
.p-bridge { background: linear-gradient(90deg, #EFE2D8 0, #F4EAE3 100%); box-shadow: inset 0 1px 0 var(--line); }
.p-bridge__inner { display: flex; align-items: center; justify-content: space-between; gap: calc(30 * var(--u)); padding: calc(30 * var(--u)) var(--pad); }
.p-bridge p { max-width: 36em; font-family: var(--font-hero); font-size: calc(17.5 * var(--u)); line-height: 1.4; color: #2A1E18; text-wrap: pretty; }

/* ---------- landings: uso, selección, preguntas, relacionadas ---------- */
.p-usage { grid-template-columns: repeat(3, 1fr); gap: 0 calc(24 * var(--u)); margin-bottom: calc(24 * var(--u)); }
.p-usage > div { padding-top: calc(12 * var(--u)); border-top: 1px solid var(--line-strong); }
.p-usage dt { font-family: var(--font-eyebrow); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--copper); }
.p-usage dd { margin: .4em 0 0; font-size: var(--t-small); line-height: 1.5; }
.p-howto { counter-reset: h; display: grid; gap: .7em; }
.p-howto li { counter-increment: h; display: grid; grid-template-columns: 2em 1fr; }
.p-howto li::before { content: counter(h); font-family: var(--font-hero); color: var(--copper); }

.p-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: calc(10 * var(--u)); margin-bottom: calc(26 * var(--u)); }
.p-mosaic li { overflow: hidden; border-radius: calc(8 * var(--u)); background: #F6F2EC; box-shadow: inset 0 0 0 1px rgba(58, 46, 36, .06); }
.p-mosaic img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.p-mosaic--wide { grid-template-columns: repeat(8, 1fr); margin: 0; }
.p-mosaic--hero { position: absolute; inset: calc(34 * var(--u)) var(--pad) calc(34 * var(--u)) calc(30 * var(--u)); grid-template-columns: repeat(3, 1fr); grid-auto-rows: 1fr; align-content: center; margin: 0; }
.p-mosaic--hero li { aspect-ratio: 1; }
.p-sel__tiers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-strong); }
.p-sel__tiers li { display: grid; padding: calc(14 * var(--u)) calc(14 * var(--u)) calc(14 * var(--u)) 0; }
.p-sel__tiers li + li { padding-left: calc(14 * var(--u)); border-left: 1px solid var(--line); }
.p-sel__tier { font-family: var(--font-hero); font-size: calc(18 * var(--u)); }
.p-sel__hint { font-size: 13px; color: var(--muted); }
.p-sel__n { margin-top: .4em; font-weight: 500; font-size: var(--t-small); }
.p-sel__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; margin-top: calc(18 * var(--u)); }
.p-sel__brands a { display: block; padding: 8px 0; }
.p-sel__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-top: calc(26 * var(--u)); padding-top: calc(20 * var(--u)); border-top: 1px solid var(--line); }
.p-sel__cta p { flex: 1 1 22em; font-size: var(--t-small); color: #3A2E28; }

.p-faq details { border-bottom: 1px solid var(--line); }
.p-faq details:first-child { border-top: 1px solid var(--line-strong); }
.p-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1em; min-height: 48px; padding: calc(14 * var(--u)) 0; cursor: pointer; list-style: none; font-weight: 500; font-size: var(--t-h3); line-height: 1.35; }
.p-faq summary::-webkit-details-marker { display: none; }
.p-faq summary .icon { flex: none; width: 20px; height: 20px; transition: transform .45s var(--ease-out); }
.p-faq details[open] summary .icon { transform: rotate(180deg); }
.p-faq__a { padding: 0 2.4em calc(18 * var(--u)) 0; color: #3A2E28; }
.p-faq__a ul { margin-top: .6em; }
.p-faq__a li { position: relative; padding-left: 1.2em; }
.p-faq__a li + li { margin-top: .35em; }
.p-faq__a li::before { content: ""; position: absolute; left: 0; top: .78em; width: .6em; height: 1px; background: var(--copper); }

.p-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.p-chips a, .p-chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-small); text-decoration: none !important; color: var(--ink); transition: background-color .3s ease, border-color .3s ease; }
.p-chips span { border-style: dashed; color: var(--muted); }
.p-chips a:hover { background: rgba(58, 46, 36, .06); border-color: rgba(58, 46, 36, .55); }

.p-index { border-top: 1px solid var(--line-strong); }
.p-index a { display: grid; grid-template-columns: calc(190 * var(--u)) minmax(0, 1fr) auto 20px; align-items: center; gap: calc(18 * var(--u)); min-height: 56px; padding: calc(12 * var(--u)) 0; border-bottom: 1px solid var(--line); text-decoration: none !important; color: var(--ink); }
.p-index__name { font-family: var(--font-hero); font-size: calc(18 * var(--u)); line-height: 1.2; }
.p-index__note { font-size: var(--t-small); color: var(--muted); line-height: 1.4; }
.p-index__n { font-size: 13px; color: var(--muted); white-space: nowrap; }
.p-index .icon--arrow { width: 16px; height: 16px; stroke-width: 1.6; transition: transform .45s var(--ease-out); }
.p-index a:hover .icon--arrow { transform: translateX(4px); }
.p-index a:hover .p-index__name { color: #6E4F38; }

.p-order { counter-reset: o; display: grid; gap: .25em; }
.p-order li { counter-increment: o; display: grid; grid-template-columns: 1.8em 1fr; }
.p-order li::before { content: counter(o); font-family: var(--font-hero); color: var(--copper); }
.p-stepcount { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(30 * var(--u)); border-top: 1px solid var(--line-strong); margin-bottom: calc(20 * var(--u)); }
.p-stepcount li { display: flex; justify-content: space-between; gap: 1em; padding: 10px 0; border-bottom: 1px solid var(--line); }
.p-stepcount span { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- banda final: el siguiente paso ---------- */
.p-next {
  position: relative; isolation: isolate; overflow: hidden;
  background: radial-gradient(60% 120% at 50% 50%, #4A3A2E 0, #2E241E 60%, #261D18 100%);
  color: var(--on-dark);
}
.p-next::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../assets/cta-rings.webp") center / cover no-repeat; opacity: .55; }
.p-next__inner { padding: calc(56 * var(--u)) var(--pad); text-align: center; }
.p-next__title { font-family: var(--font-display); font-weight: 400; font-size: calc(30 * var(--u)); line-height: 1.15; color: #FBF3EA; text-wrap: balance; }
.p-next__text { max-width: 34em; margin: calc(10 * var(--u)) auto 0; font-size: clamp(16px, calc(14 * var(--ui)), 20px); color: var(--on-dark-muted); }
.p-next .p-link { color: var(--on-dark); }
.p-next :focus-visible { outline-color: var(--focus-on-dark); }
.p-next .btn--light { --btn-h: 40; --btn-pl: 30; --btn-pr: 24; --btn-gap: 14; }

/* ---------- contacto ---------- */
.p-contact { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: calc(56 * var(--u)); }
.p-contact__form .p-sec__title { margin-bottom: calc(18 * var(--u)); }
.p-form { display: grid; gap: 18px; max-width: 34em; }
.p-field label, .p-check label { display: block; font-weight: 500; font-size: var(--t-small); }
.p-field input, .p-field select, .p-field textarea {
  width: 100%; min-height: 48px; margin-top: 6px; padding: 11px 14px;
  border: 1px solid rgba(58, 46, 36, .38); border-radius: 10px; background: #FFFCFA; color: var(--ink);
  font-size: 16px; line-height: 1.4; transition: border-color .25s ease, box-shadow .25s ease;
}
.p-field textarea { resize: vertical; min-height: 150px; }
.p-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #3A2E24 50%), linear-gradient(135deg, #3A2E24 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.p-field :is(input, select, textarea):focus-visible { outline: none; border-color: #3A2E24; box-shadow: 0 0 0 3px rgba(58, 46, 36, .18); border-radius: 10px; }
.p-field [aria-invalid="true"], .p-check [aria-invalid="true"] { border-color: #A1392B; }
.p-field__hint { margin-top: 5px; font-size: 13px; color: var(--muted); }
.p-field__err { margin-top: 5px; font-size: 13.5px; color: #9A2F22; }
.p-field__err:empty, .p-field__hint:empty { display: none; }
.p-check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.p-check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: #3A2E24; }
.p-check label { font-weight: 400; line-height: 1.5; }
.p-check .p-field__err { grid-column: 2; }
.p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-form__actions { margin-top: 4px; }
.p-form button[disabled] { opacity: .6; cursor: progress; }
.p-form__status { min-height: 1.5em; font-size: var(--t-small); color: #3A2E24; }
.p-form.is-sent .p-form__status { padding: 12px 16px; border-radius: 10px; background: rgba(122, 140, 98, .14); color: #34452A; }
.p-contact__aside { align-self: start; padding: calc(22 * var(--u)); border: 1px solid var(--line); border-radius: calc(10 * var(--u)); background: var(--paper); }
.p-contact__aside h3 { font-family: var(--font-eyebrow); font-weight: 550; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.p-contact__aside h3:not(:first-child) { margin-top: 20px; }
.p-contact__aside p { margin-top: 6px; font-size: var(--t-small); }
.p-mail { font-family: var(--font-hero); font-size: 1.15em; }

/* ---------- páginas legales ---------- */
.p-legal { display: grid; grid-template-columns: calc(230 * var(--u)) minmax(0, 1fr); gap: calc(48 * var(--u)); padding: calc(40 * var(--u)) var(--pad) calc(56 * var(--u)); }
.p-legal__aside { position: relative; }
.p-toc { position: sticky; top: calc(var(--header-offset) + 20px); }
.p-toc__title { font-family: var(--font-eyebrow); font-weight: 550; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--copper); }
.p-toc ol { margin-top: 10px; border-left: 1px solid var(--line); }
.p-toc a { display: block; padding: 6px 0 6px 14px; font-size: var(--t-small); line-height: 1.35; color: var(--muted); text-decoration: none !important; }
.p-toc a:hover { color: var(--ink); }
.p-legal__body { min-width: 0; max-width: 46em; }
.p-legal__sec + .p-legal__sec { margin-top: calc(34 * var(--u)); padding-top: calc(28 * var(--u)); border-top: 1px solid var(--line); }
.p-legal__sec h2 { margin-bottom: .6em; font-family: var(--font-hero); font-weight: 400; font-size: calc(22 * var(--u)); line-height: 1.2; color: var(--ink-heading); }
.p-legal__sec { scroll-margin-top: calc(var(--header-offset) + 16px); }
.p-legal__body ul { display: grid; gap: .55em; }
.p-legal__body ul li { position: relative; padding-left: 1.3em; }
.p-legal__body ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: .7em; height: 1px; background: var(--copper); }
.p-essentials { margin-bottom: calc(34 * var(--u)); padding: calc(22 * var(--u)); border-radius: calc(10 * var(--u)); background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.p-essentials h2 { font-family: var(--font-hero); font-weight: 400; font-size: calc(22 * var(--u)); }
.p-essentials dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 14px; }
.p-essentials dt { font-weight: 500; }
.p-essentials dd { margin: .2em 0 0; font-size: var(--t-small); color: var(--muted); }
.p-holder { display: grid; gap: 6px; }
.p-holder > div { display: grid; grid-template-columns: 8em 1fr; gap: 1em; }
.p-holder dt { color: var(--muted); font-size: var(--t-small); }
.p-holder dd { margin: 0; }
.p-table-wrap { overflow-x: auto; margin-top: .6em; border: 1px solid var(--line); border-radius: 10px; }
.p-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--t-small); line-height: 1.45; }
.p-table th, .p-table td { padding: 12px 14px; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.p-table thead th { background: var(--paper); font-family: var(--font-eyebrow); font-weight: 550; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--copper); }
.p-table tbody th { font-weight: 500; }
.p-table tr:last-child > * { border-bottom: 0; }
.p-form-model { margin: .8em 0 0; padding: 18px 22px; border-left: 2px solid var(--copper); background: var(--paper); font-family: var(--font-hero); }
.p-form-model p + p { margin-top: .5em; }
.p-updated { margin-top: calc(34 * var(--u)); font-size: var(--t-small); color: var(--muted); }
.p-legal-note { display: flex; gap: .6em; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border: 1px dashed rgba(154, 110, 76, .6); border-radius: 10px; font-size: var(--t-small); color: #6A4A33; }
.p-legal-note .icon { flex: none; margin-top: .15em; }

/* ---------- revelado: los bloques editoriales usan la misma regla que la landing (styles.css) ---------- */

/* =========================================================================
   Compacto (< 1000 px de contenedor): --u = 1 px, una columna, dianas de 44 px
   ========================================================================= */
@container site (width < 1000px) {
  .p-main { --pad: max(var(--gutter), env(safe-area-inset-left)); --t-body: 16.5px; --t-small: 15px; --t-h3: 17.5px; }
  .p-hero__inner, .p-hero--portrait .p-hero__inner, .p-hero--brand .p-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .p-hero__content { order: 2; padding: 26px var(--pad) 40px; }
  .p-hero:not(.p-hero--media) .p-hero__content { padding-top: 30px; max-width: none; }
  .p-hero__media { order: 1; aspect-ratio: 16 / 9; }
  .p-hero--portrait .p-hero__media { aspect-ratio: 4 / 3; }
  .p-hero--brand .p-hero__media { aspect-ratio: auto; height: 110px; }
  .p-brandmark { inset: 16px var(--pad) 0; border-left: 0; justify-content: start; }
  .p-brandmark__img { height: calc(44px * var(--logo-k, 1)); max-width: 220px; }
  .p-hero__img--right, .p-hero__img--portrait { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }
  .p-hero__img--float { inset: 6% 8%; width: 84%; height: 88%; }
  .p-hero__title, .p-hero--landing .p-hero__title { margin-top: 10px; font-size: clamp(32px, 8.6cqi, 50px); line-height: 1.08; }
  .p-hero__lead { margin-top: 12px; font-size: clamp(16.5px, 4.2cqi, 19px); }
  .p-crumbs { margin-bottom: 14px; font-size: 14px; }
  .p-crumbs a { display: inline-flex; align-items: center; min-height: 28px; }
  .p-actions { gap: 6px 22px; margin-top: 22px; }
  .p-btn { --btn-h: 50; --btn-pl: 24; --btn-pr: 20; --btn-fs: 16; --btn-arrow: 16; }

  .p-sec__inner { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 44px var(--pad); }
  .p-sec__head { position: static; }
  .p-sec__title { font-size: clamp(27px, 7cqi, 38px); }
  .p-kicker { font-size: 11px; }
  .p-sec__body { max-width: none; }
  .p-two, .p-split, .p-sec__body .p-split, .p-steps, .p-features, .p-metrics, .p-rules, .p-traits, .p-brands, .p-essentials dl, .p-stepcount { grid-template-columns: minmax(0, 1fr); }
  .p-steps { gap: 22px; }
  .p-checks { grid-template-columns: 1fr 1fr; gap: 16px; }
  .p-guides { grid-template-columns: repeat(5, minmax(96px, 1fr)); overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
  .p-guides li { scroll-snap-align: start; }
  .p-guides span { font-size: 13px; }
  .p-metrics dt, .p-rules dt, .p-traits dt { font-size: 19px; }
  .p-tiers, .p-sel__tiers, .p-method, .p-usage { grid-template-columns: minmax(0, 1fr); }
  .p-tier, .p-tier + .p-tier, .p-sel__tiers li, .p-sel__tiers li + li { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .p-tier__head h3, .p-sel__tier { font-size: 22px; }
  .p-usage > div + div { margin-top: 14px; }
  .p-quote { font-size: clamp(22px, 6cqi, 30px); }
  .p-method h3, .p-method li::before { font-size: 21px; }
  .p-brand { grid-template-columns: 92px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; }
  .p-brand__logo { height: 64px; }
  .p-brand h3 { font-size: 21px; }
  .p-mosaic { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .p-mosaic--wide { grid-template-columns: repeat(4, 1fr); }
  .p-hero__media:has(.p-mosaic--hero) { aspect-ratio: auto; }
  .p-mosaic--hero { position: static; grid-template-columns: repeat(3, 1fr); padding: 20px var(--pad) 0; }
  .p-bridge__inner { flex-direction: column; align-items: flex-start; gap: 18px; padding: 32px var(--pad); }
  .p-bridge p { font-size: 19px; }
  .p-index a { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 4px 12px; padding: 14px 0; }
  .p-index__name { font-size: 20px; }
  .p-index__note { grid-column: 1 / -1; grid-row: 2; }
  .p-faq summary { padding: 14px 0; }
  .p-faq__a { padding: 0 0 18px; }
  .p-next__inner { padding: 64px var(--pad); }
  .p-next__title { font-size: clamp(28px, 7.6cqi, 40px); }
  .p-next__text { margin-top: 12px; }
  .p-contact { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .p-contact__aside { padding: 20px; border-radius: 12px; }
  .p-legal { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 28px var(--pad) 48px; }
  .p-toc { position: static; }
  .p-toc ol { columns: 2; column-gap: 16px; }
  .p-toc a { min-height: 40px; display: flex; align-items: center; }
  .p-legal__sec h2, .p-essentials h2 { font-size: 24px; }
  .p-legal__sec + .p-legal__sec { margin-top: 30px; padding-top: 26px; }
  .p-essentials { padding: 20px; border-radius: 12px; }
  .p-holder > div { grid-template-columns: 1fr; gap: 0; }
  .p-guide, .p-cal, .p-compare, .p-adh { padding: 16px; border-radius: 12px; }
  .p-trademark { padding: 16px var(--pad) 28px; }
  .p-sec--flush .frame { padding: 20px var(--pad) 0; }
}
@container site (width < 560px) {
  .p-checks { grid-template-columns: minmax(0, 1fr); }
  .p-toc ol { columns: 1; }
  .p-compare__table .p-bar { width: 40px; }
  .p-compare__table th, .p-compare__table td { padding: 9px 4px; }
}
@container site (768px <= width < 1000px) {
  .p-hero__inner, .p-hero--portrait .p-hero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .p-hero__content { order: 0; padding: 48px 24px 52px var(--pad); }
  .p-hero__media { order: 0; aspect-ratio: auto; }
  .p-hero__img--right { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%); mask-image: linear-gradient(90deg, transparent 0, #000 30%); }
  .p-hero__img--portrait { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
  .p-features, .p-metrics, .p-rules, .p-traits, .p-two, .p-essentials dl, .p-stepcount { grid-template-columns: 1fr 1fr; }
  .p-tiers, .p-sel__tiers, .p-method, .p-usage { grid-template-columns: repeat(3, 1fr); }
  .p-tier + .p-tier, .p-sel__tiers li + li { padding-left: 16px; border-left: 1px solid var(--line); }
  .p-tier, .p-sel__tiers li { border-bottom: 0; }
  .p-mosaic--wide { grid-template-columns: repeat(8, 1fr); }
  .p-legal { grid-template-columns: 200px minmax(0, 1fr); }
  .p-toc { position: sticky; }
  .p-toc ol { columns: 1; }
}
@media print {
  .site-header, .site-footer, .p-next, .p-bridge, .p-actions, .p-toc { display: none !important; }
  .p-main { background: #fff; }
}

/* página actual en la navegación principal */
.page .main-nav a[aria-current="page"]::after { transform: scaleX(1); opacity: .5; }
@container site (width < 1000px) { .page .main-nav a[aria-current="page"] { color: #6E5240; } }
