/* Páginas: cómo se estudia, glosario, quiénes somos, contacto, 404.
   Usa los tokens de site.css (:root). Prefijo .pg- para no chocar con otras hojas. */

.pg {
  --pg-g: var(--gut, clamp(20px, 4vw, 64px));
  --pg-max: var(--max, 1360px);
  --pg-head: var(--f-head);
  --pg-mono: var(--f-mono);
  color: var(--ink);
}
.pg *, .pg *::before, .pg *::after { box-sizing: border-box; }
.pg-in { width: 100%; max-width: calc(var(--pg-max) + 2 * var(--pg-g)); margin: 0 auto; padding: 0 var(--pg-g); }
.pg-sec { padding: clamp(56px, 7vw, 104px) 0; }
.pg-sec + .pg-sec { border-top: 1px solid var(--line); }
.pg-alt { background: var(--paper-2); }
.pg-dark { background: var(--teal-900); color: var(--on-dark); }
.pg-dark :where(h1, h2, h3), .pg-band :where(h1, h2, h3), .qs-hero h1 { color: var(--on-dark); }
.pg-dark + .pg-sec, .pg-sec + .pg-dark { border-top: 0; }
.pg :where(h1, h2, h3) { font-family: var(--pg-head); font-weight: 700; letter-spacing: .01em; line-height: 1.04; margin: 0; }
.pg h1 { font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 800; }
.pg h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); }
.pg h3 { font-size: 1.45rem; }
.pg p { margin: 0 0 1em; }
.pg a { color: var(--teal-700); text-underline-offset: .18em; }
.pg a:hover { color: var(--ink); }
.pg-dark a { color: var(--on-dark); }
.pg-dark a:hover { color: var(--volt); }
.pg-mono, .pg-eyebrow, .pg-tag { font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.pg-eyebrow { display: inline-flex; align-items: center; gap: .6em; color: var(--teal-700); margin: 0 0 1.1rem; }
.pg-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--volt); }
.pg-dark .pg-eyebrow { color: rgba(243, 241, 236, .82); }
.pg-lead { font-size: 1.18rem; color: var(--ink-2); max-width: 46ch; }
.pg-dark .pg-lead, .pg-dark .pg-muted { color: rgba(243, 241, 236, .8); }
.pg-muted { color: var(--ink-2); }
.pg-sechead { display: grid; grid-template-columns: minmax(240px, 4fr) 8fr; gap: 24px clamp(24px, 4vw, 64px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.pg-sechead > * { min-width: 0; }
.pg-sechead p { margin: 0; color: var(--ink-2); max-width: 62ch; }
.pg-dark .pg-sechead p { color: rgba(243, 241, 236, .8); }
.pg-num { font-family: var(--pg-mono); font-size: .8rem; color: var(--ink-2); display: block; margin-bottom: .6rem; letter-spacing: .06em; }
.pg-dark .pg-num { color: rgba(243, 241, 236, .78); }

/* Botones propios (rectangulares, borde 2 px) */
.pg-btn { display: inline-flex; align-items: center; gap: .55em; min-height: 48px; padding: .7em 1.25em; border: 2px solid var(--teal-900);
  border-radius: var(--r, 3px); font: 700 1.02rem/1.1 var(--f-head); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.pg .pg-btn { color: var(--on-dark); background: var(--teal-900); }
.pg .pg-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.pg .pg-btn--ghost { background: transparent; color: var(--teal-900); }
.pg .pg-btn--ghost:hover { background: var(--teal-900); color: var(--on-dark); }
.pg-dark .pg-btn { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.pg-dark .pg-btn:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.pg-dark .pg-btn--ghost { background: transparent; border-color: rgba(243, 241, 236, .7); color: var(--on-dark); }
.pg-btn:focus-visible, .pg a:focus-visible, .pg input:focus-visible, .pg button:focus-visible { outline: 3px solid var(--volt); outline-offset: 2px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* Fotos */
.pg-ph { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper-2); }
.pg-cap { font-family: var(--pg-mono); font-size: .78rem; color: var(--ink-2); margin-top: .6rem; letter-spacing: .03em; }

/* ── Cabecera asimétrica con foto que sangra a la derecha */
.pg-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 520px; border-bottom: 1px solid var(--line); }
.pg-hero > * { min-width: 0; }
.pg-hero-txt { padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 88px) max(var(--pg-g), calc((100vw - var(--pg-max)) / 2)); align-self: center; }
.pg-hero-ph { position: relative; min-height: 420px; }
.pg-hero-ph img { position: absolute; inset: 0; }
.pg-hero-ph figcaption { position: absolute; left: 0; bottom: 0; background: var(--teal-900); color: var(--on-dark); font-family: var(--pg-mono); font-size: .78rem; letter-spacing: .05em; padding: .55rem .9rem; }

/* ── Placa de características (filas campo | valor) */
.pg-plate { background: var(--white); border: 2px solid var(--teal-900); border-radius: 4px; }
.pg-plate-top { display: flex; justify-content: space-between; gap: 12px; padding: .7rem 1rem; background: var(--teal-900); color: var(--on-dark); font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.pg-plate dl, .pg-plate table { margin: 0; width: 100%; }
.pg-plate .row { display: grid; grid-template-columns: minmax(130px, 2fr) 5fr; border-top: 1px solid var(--line); }
.pg-plate .row:first-child { border-top: 0; }
.pg-plate dt, .pg-plate dd { margin: 0; padding: .8rem 1rem; min-width: 0; }
.pg-plate dt { font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); border-right: 1px solid var(--line); }
.pg-plate dd b { font-family: var(--pg-mono); font-weight: 500; }

/* ═════════ Cómo se estudia ═════════ */
.est-anat { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.est-anat > * { min-width: 0; }
.est-parts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--teal-900); border-left: 1px solid var(--line); }
.est-parts li { min-width: 0; padding: 1.4rem 1.4rem 1.5rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.est-parts li:last-child { grid-column: 1 / -1; background: var(--teal-100); }
.est-parts .spec { display: flex; justify-content: space-between; gap: 10px; font-family: var(--pg-mono); font-size: .8rem; color: var(--teal-700); letter-spacing: .05em; margin-bottom: .7rem; }
.est-parts .spec b { color: var(--volt-ink); font-weight: 500; }
.est-parts li:last-child .spec b { color: var(--teal-900); }
.est-parts h3 { margin-bottom: .45rem; }
.est-parts p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.est-side .pg-ph { aspect-ratio: 4 / 5; height: auto; border: 1px solid var(--line); }
.est-side .note { margin-top: 1.2rem; padding: 1rem 1.1rem; border-left: 3px solid var(--volt); background: var(--white); font-size: .98rem; color: var(--ink-2); }

/* Línea de tiempo horizontal */
.est-tl-wrap { position: relative; }
.est-tl { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.est-tl-line { position: absolute; left: 0; right: 0; top: 34px; height: 4px; width: 100%; overflow: visible; }
.est-tl-line line { stroke: var(--volt); stroke-width: 3; stroke-dasharray: 10 8; animation: pg-flow 1.6s linear infinite; }
@keyframes pg-flow { to { stroke-dashoffset: -36; } }
.est-tl li { position: relative; min-width: 0; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.est-tl .node { position: relative; z-index: 1; display: grid; place-items: center; width: 72px; height: 72px; border: 2px solid var(--volt); background: var(--teal-900); font-family: var(--pg-head); font-weight: 800; font-size: 2rem; color: var(--on-dark); border-radius: 2px; margin-bottom: 1.4rem; }
.est-tl .when { display: block; font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .05em; color: var(--volt); margin-bottom: .35rem; text-transform: uppercase; }
.est-tl h3 { color: var(--on-dark); margin-bottom: .5rem; }
.est-tl p { color: rgba(243, 241, 236, .8); font-size: .98rem; margin: 0; }
.est-tl-foot { margin-top: clamp(32px, 4vw, 48px); padding-top: 1.2rem; border-top: 1px solid var(--line-dark); color: rgba(243, 241, 236, .8); font-size: .95rem; }

/* Qué necesitas */
.est-need { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.est-need > * { min-width: 0; }
.est-need-ph { position: relative; min-height: 380px; }
.est-need-ph img { position: absolute; inset: 0; border: 1px solid var(--line); }
.est-req { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.est-req caption { text-align: left; caption-side: top; font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .6rem; }
.est-req th, .est-req td { text-align: left; vertical-align: top; padding: .9rem 1rem; border-top: 1px solid var(--line); }
.est-req th { width: 34%; font-family: var(--pg-head); font-size: 1.15rem; font-weight: 700; }
.est-req td { color: var(--ink-2); }
.est-req .ok, .est-req .no { display: inline-block; font-family: var(--pg-mono); font-size: .76rem; padding: .1rem .45rem; border-radius: 2px; margin-right: .5rem; vertical-align: .1em; letter-spacing: .05em; }
.est-req .ok { background: var(--teal-100); color: var(--teal-900); }
.est-req .no { background: var(--white); color: var(--volt-ink); border: 1px solid var(--line); }

/* Dudas */
.est-ask { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.est-ask > * { min-width: 0; }
.est-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--teal-900); background: var(--white); }
.est-flow li { min-width: 0; padding: 1.3rem 1.2rem; border-left: 1px solid var(--line); position: relative; }
.est-flow li:first-child { border-left: 0; }
.est-flow li + li::before { content: ""; position: absolute; left: -7px; top: 1.6rem; width: 12px; height: 12px; background: var(--volt); transform: rotate(45deg); }
.est-flow b { display: block; font-family: var(--pg-head); font-size: 1.25rem; margin: .3rem 0 .4rem; }
.est-flow p { margin: 0; font-size: .97rem; color: var(--ink-2); }
.est-ask-note { margin-top: 1.4rem; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Ritmo */
.est-rate { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--teal-900); margin-bottom: 2.4rem; }
.est-rate > div { min-width: 0; padding: 1.3rem 1.3rem 1.4rem 0; border-right: 1px solid var(--line); }
.est-rate > div + div { padding-left: 1.3rem; }
.est-rate > div:last-child { border-right: 0; }
.est-rate .big { font-family: var(--pg-head); font-weight: 800; font-size: 3.2rem; line-height: 1; color: var(--teal-900); }
.est-rate .big small { font-family: var(--pg-mono); font-size: .85rem; font-weight: 400; color: var(--ink-2); margin-left: .35rem; }
.est-rate h3 { margin: .2rem 0 .5rem; }
.est-rate p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.est-bars { width: 100%; border-collapse: collapse; font-size: .97rem; }
.est-bars caption { text-align: left; font-family: var(--pg-mono); font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); padding-bottom: .7rem; }
.est-bars th, .est-bars td { padding: .55rem .8rem .55rem 0; border-top: 1px solid var(--line); text-align: left; vertical-align: middle; }
.est-bars thead th { font-family: var(--pg-mono); font-size: .78rem; font-weight: 400; color: var(--ink-2); letter-spacing: .05em; text-transform: uppercase; border-top: 0; }
.est-bars td.n { font-family: var(--pg-mono); white-space: nowrap; }
.est-bars .bar { position: relative; height: 12px; background: var(--white); border: 1px solid var(--line); min-width: 120px; }
.est-bars .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal-700); }
.est-bars .lvl { font-family: var(--pg-mono); font-size: .78rem; color: var(--teal-900); }
.est-bars a { font-weight: 700; }

/* Límites */
.pg-limits { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.pg-limits > * { min-width: 0; }
.pg-limits ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.pg-limits li { min-width: 0; padding: 1.2rem 1.4rem 1.3rem 0; border-bottom: 1px solid var(--line-dark); }
.pg-limits li:nth-child(even) { padding-left: 1.4rem; border-left: 1px solid var(--line-dark); }
.pg-limits li b { display: block; font-family: var(--pg-head); font-size: 1.3rem; color: var(--on-dark); margin-bottom: .3rem; }
.pg-limits li span { color: rgba(243, 241, 236, .8); font-size: .98rem; }
.pg-limits .x { font-family: var(--pg-mono); font-size: .78rem; color: var(--volt); letter-spacing: .05em; }

/* ═════════ Glosario ═════════ */
.glo-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: end; padding: clamp(48px, 6vw, 88px) 0 clamp(32px, 4vw, 48px); }
.glo-head > * { min-width: 0; }
.glo-head figure { margin: 0; position: relative; aspect-ratio: 16 / 9; }
.glo-head figure img { position: absolute; inset: 0; border: 1px solid var(--line); }
.glo-legend { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.glo-legend a { display: inline-flex; gap: .5em; align-items: center; padding: .35rem .7rem; border: 1px solid var(--line); background: var(--white); text-decoration: none; color: var(--ink); font-size: .95rem; border-radius: 2px; }
.glo-legend a:hover { border-color: var(--teal-700); }
.glo-legend b { font-family: var(--pg-mono); font-weight: 500; color: var(--teal-700); }
.glo-bar { position: sticky; top: 0; z-index: 5; background: var(--teal-900); }
.glo-bar .pg-in { display: flex; align-items: center; gap: clamp(12px, 2vw, 32px); min-height: 60px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.glo-az { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 520px; min-width: 0; }
.glo-az a, .glo-az span { display: grid; place-items: center; min-width: 30px; height: 34px; font-family: var(--pg-mono); font-size: .9rem; text-decoration: none; border-radius: 2px; }
.glo-az a { color: var(--on-dark); border: 1px solid rgba(243, 241, 236, .3); }
.glo-az a:hover, .glo-az a:focus-visible { background: var(--volt); color: var(--ink); border-color: var(--volt); }
.glo-az span { color: rgba(243, 241, 236, .62); }
.glo-find { display: flex; gap: 0; flex: 0 1 360px; min-width: 0; }
.glo-find label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.glo-find input { flex: 1; min-width: 0; height: 42px; padding: 0 .8rem; border: 2px solid var(--on-dark); border-right: 0; border-radius: 3px 0 0 3px; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; }
.glo-find button { height: 42px; padding: 0 1rem; border: 2px solid var(--volt); background: var(--volt); color: var(--ink); font: inherit; font-weight: 700; border-radius: 0 3px 3px 0; cursor: pointer; }
.glo-status { padding: 1.2rem 0 0; margin: 0; color: var(--ink-2); font-family: var(--pg-mono); font-size: .85rem; }
.glo-status a { margin-left: .6rem; }
.glo-body { padding-top: clamp(8px, 1.5vw, 20px); padding-bottom: clamp(56px, 7vw, 104px); }
.glo-status:empty { display: none; }
.glo-group { display: grid; grid-template-columns: minmax(80px, 2fr) 10fr; gap: clamp(20px, 3vw, 48px); border-top: 2px solid var(--teal-900); padding-top: 1.2rem; margin-top: 2.4rem; scroll-margin-top: 80px; }
.glo-group > * { min-width: 0; }
.glo-letter { font-family: var(--pg-head); font-weight: 800; font-size: 4.6rem; line-height: .85; color: var(--teal-700); position: sticky; top: 80px; align-self: start; }
.glo-list { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 48px); }
.glo-term { min-width: 0; padding: 1rem 0 1.4rem; border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.glo-term dt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .7rem; font-family: var(--pg-head); font-size: 1.55rem; font-weight: 700; line-height: 1.1; margin-bottom: .5rem; }
.glo-term dt small { font-family: var(--pg-mono); font-size: .8rem; font-weight: 400; color: var(--ink-2); letter-spacing: .02em; }
.glo-term dd { margin: 0; }
.glo-term dd p { margin: 0 0 .7rem; }
.glo-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; align-items: center; font-size: .92rem; }
.glo-tag { display: inline-flex; gap: .4em; align-items: center; padding: .15rem .5rem; border: 1px solid var(--teal-700); color: var(--teal-900); text-decoration: none; border-radius: 2px; }
.pg a.glo-tag { color: var(--teal-900); }
.pg a.glo-tag:hover { background: var(--teal-100); }
.glo-tag::before { content: ""; width: 7px; height: 7px; background: var(--volt); }
.glo-empty { padding: 2rem 0; font-size: 1.1rem; }
.glo-term[hidden], .glo-group[hidden] { display: none; }

/* ═════════ Quiénes somos ═════════ */
.qs-hero { position: relative; min-height: 560px; display: grid; align-items: end; color: var(--on-dark); background: var(--teal-900); }
.qs-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qs-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 60, 65, .94) 0%, rgba(11, 60, 65, .86) 42%, rgba(11, 60, 65, .2) 78%); }
.qs-hero .pg-in { position: relative; z-index: 1; padding-top: 96px; padding-bottom: clamp(48px, 6vw, 80px); }
.qs-hero h1 { max-width: 19ch; color: var(--on-dark); }
.qs-hero .pg-lead { color: rgba(243, 241, 236, .88); margin-top: 1.2rem; }
.qs-hero .pg-eyebrow { color: rgba(243, 241, 236, .86); }
.qs-origin { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.qs-origin > * { min-width: 0; }
.qs-origin .big { font-family: var(--pg-head); font-weight: 700; font-size: clamp(1.7rem, 2.4vw, 2.2rem); line-height: 1.15; margin: 0; }
.qs-origin .txt p { color: var(--ink); }
.qs-origin aside { border-top: 2px solid var(--teal-900); padding-top: 1rem; }
.qs-origin aside p { font-size: .97rem; color: var(--ink-2); }
.qs-chain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.qs-chain a { display: flex; gap: .7rem; align-items: baseline; text-decoration: none; color: var(--ink); padding: .4rem 0; border-bottom: 1px solid var(--line); }
.qs-chain a:hover { color: var(--teal-700); }
.qs-chain b { font-family: var(--pg-mono); font-weight: 500; color: var(--volt-ink); }

.qs-trade { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--teal-900); }
.qs-trade th, .qs-trade td { text-align: left; vertical-align: top; padding: 1.1rem 1.2rem; border-top: 1px solid var(--line); }
.qs-trade thead th { background: var(--teal-900); color: var(--on-dark); font-family: var(--pg-mono); font-weight: 400; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; border-top: 0; }
.qs-trade tbody th { width: 22%; font-family: var(--pg-head); font-size: 1.3rem; }
.qs-trade td + td { border-left: 1px solid var(--line); color: var(--ink-2); }

.qs-proc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); }
.qs-proc > * { min-width: 0; }
.qs-proc-ph { position: sticky; top: 24px; align-self: start; }
.qs-proc-ph img { aspect-ratio: 4 / 3; height: auto; border: 1px solid var(--line); }
.qs-steps { list-style: none; margin: 0; padding: 0 0 0 44px; position: relative; }
.qs-steps::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 3px; background: var(--teal-900); }
.qs-steps li { position: relative; padding: 0 0 2rem; }
.qs-steps li:last-child { padding-bottom: 0; }
.qs-steps li::before { content: ""; position: absolute; left: -36px; top: 6px; width: 16px; height: 16px; background: var(--paper); border: 3px solid var(--teal-900); border-radius: 50%; }
.qs-steps li:last-child::before { background: var(--volt); border-color: var(--teal-900); }
.qs-steps .pg-num { margin-bottom: .2rem; }
.qs-steps h3 { margin-bottom: .4rem; }
.qs-steps p { margin: 0; color: var(--ink-2); max-width: 60ch; }

.qs-values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); border-left: 1px solid var(--line-dark); }
.qs-values li { min-width: 0; padding: 1.6rem 1.4rem 1.8rem; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.qs-values .n { font-family: var(--pg-head); font-weight: 800; font-size: 3.4rem; line-height: 1; color: var(--volt); display: block; margin-bottom: .8rem; }
.qs-values h3 { color: var(--on-dark); margin-bottom: .5rem; }
.qs-values p { margin: 0; color: rgba(243, 241, 236, .8); font-size: .98rem; }

.pg-band { position: relative; min-height: 380px; display: grid; align-items: center; background: var(--teal-900); color: var(--on-dark); }
.pg-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pg-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 60, 65, .93) 0%, rgba(11, 60, 65, .8) 50%, rgba(11, 60, 65, .35) 100%); }
.pg-band .pg-in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.pg-band h2 { color: var(--on-dark); max-width: 22ch; }
.pg-band p { color: rgba(243, 241, 236, .88); max-width: 52ch; margin-top: 1rem; }
.pg-band .pg-btn { background: var(--volt); border-color: var(--volt); color: var(--ink); }
.pg-band .pg-btn:hover { background: var(--on-dark); border-color: var(--on-dark); }
.pg-band .pg-btn--ghost { background: transparent; border-color: rgba(243, 241, 236, .75); color: var(--on-dark); }
.pg-band a:not(.pg-btn) { color: var(--on-dark); }

/* ═════════ Contacto ═════════ */
.ct-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); padding: clamp(48px, 6vw, 88px) 0; align-items: start; }
.ct-top > * { min-width: 0; }
.ct-top .pg-ph { aspect-ratio: 3 / 2; height: auto; margin-top: 2rem; border: 1px solid var(--line); }
.ct-ch { list-style: none; margin: 0; padding: 0; border: 2px solid var(--teal-900); background: var(--white); }
.ct-ch li { display: grid; grid-template-columns: 76px minmax(0, 1fr); border-top: 1px solid var(--line); }
.ct-ch li:first-child { border-top: 0; }
.ct-ch .b { display: grid; place-items: start center; padding-top: 1.3rem; font-family: var(--pg-head); font-weight: 800; font-size: 2rem; color: var(--on-dark); background: var(--teal-900); }
.ct-ch li:first-child .b { background: var(--teal-700); }
.ct-ch .c { padding: 1.3rem 1.4rem 1.4rem; min-width: 0; }
.ct-ch .lab { font-family: var(--pg-mono); font-size: .8rem; color: var(--teal-700); letter-spacing: .06em; text-transform: uppercase; display: block; margin-bottom: .3rem; }
.ct-ch h2 { font-size: 1.7rem; margin-bottom: .5rem; }
.ct-ch p { margin: 0 0 .7rem; color: var(--ink-2); }
.ct-ch .val { font-family: var(--pg-mono); font-size: 1.05rem; color: var(--ink); word-break: break-word; }
.ct-ch address { font-style: normal; font-family: var(--pg-mono); font-size: 1rem; line-height: 1.55; margin-bottom: .7rem; }
.ct-ch .meta { font-size: .92rem; color: var(--ink-2); margin: .6rem 0 0; }
.ct-ch .meta b { color: var(--ink); }

.ct-prep { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); }
.ct-prep > * { min-width: 0; }
.ct-cases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 2px solid var(--teal-900); border-left: 1px solid var(--line); }
.ct-cases li { min-width: 0; padding: 1.3rem 1.3rem 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.ct-cases h3 { margin-bottom: .3rem; font-size: 1.3rem; }
.ct-cases .k { font-family: var(--pg-mono); font-size: .78rem; color: var(--volt-ink); letter-spacing: .05em; text-transform: uppercase; display: block; margin-bottom: .4rem; }
.ct-cases ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-2); font-size: .97rem; }
.ct-cases li li { padding: 0; border: 0; background: none; margin-bottom: .2rem; }

.ct-not { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.ct-not > * { min-width: 0; }
.ct-not dl { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-dark); }
.ct-not dl > div { min-width: 0; padding: 1.2rem 1.3rem 1.3rem 0; }
.ct-not dl > div + div { padding-left: 1.3rem; border-left: 1px solid var(--line-dark); }
.ct-not dt { font-family: var(--pg-head); font-weight: 700; font-size: 1.3rem; color: var(--on-dark); margin-bottom: .35rem; }
.ct-not dd { margin: 0; color: rgba(243, 241, 236, .8); font-size: .98rem; }

/* ═════════ 404 ═════════ */
.e404 { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 560px; border-bottom: 1px solid var(--line); }
.e404 > * { min-width: 0; }
.e404-txt { padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(48px, 6vw, 80px) max(var(--pg-g), calc((100vw - var(--pg-max)) / 2)); }
.e404-code { display: flex; align-items: stretch; margin-bottom: 1.6rem; border: 2px solid var(--teal-900); width: max-content; max-width: 100%; }
.e404-code span { padding: .5rem .9rem; font-family: var(--pg-mono); font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; }
.e404-code span:first-child { background: var(--teal-900); color: var(--on-dark); }
.e404-code span:last-child { color: var(--volt-ink); background: var(--white); }
.e404-big { font-family: var(--pg-head); font-weight: 800; font-size: clamp(6rem, 12vw, 10.5rem); line-height: .8; color: var(--teal-900); letter-spacing: -.01em; display: block; margin-bottom: 1rem; }
.e404-big em { font-style: normal; color: var(--volt-ink); }
.e404-search { display: flex; max-width: 560px; margin: 1.8rem 0 0; }
.e404-search label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.e404-search input { flex: 1; min-width: 0; height: 52px; padding: 0 1rem; border: 2px solid var(--teal-900); border-right: 0; border-radius: 3px 0 0 3px; background: var(--white); color: var(--ink); font: inherit; font-size: 1.05rem; }
.e404-search button { height: 52px; padding: 0 1.3rem; border: 2px solid var(--teal-900); background: var(--teal-900); color: var(--on-dark); font: inherit; font-weight: 700; border-radius: 0 3px 3px 0; cursor: pointer; }
.e404-search button:hover { background: var(--ink); }
.e404-ph { position: relative; min-height: 420px; }
.e404-ph img { position: absolute; inset: 0; }
.e404-chain { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.e404-chain::before { content: ""; position: absolute; left: 0; right: 0; top: 33px; border-top: 3px dashed var(--volt); }
.e404-chain li { min-width: 0; position: relative; }
.e404-chain a { display: block; text-decoration: none; color: var(--on-dark); padding-right: 1.2rem; }
.e404-chain .n { display: grid; place-items: center; width: 68px; height: 68px; background: var(--teal-900); border: 2px solid var(--volt); font-family: var(--pg-head); font-weight: 800; font-size: 1.9rem; margin-bottom: 1rem; transition: background .15s, color .15s; }
.e404-chain a:hover .n, .e404-chain a:focus-visible .n { background: var(--volt); color: var(--ink); }
.e404-chain b { display: block; font-family: var(--pg-head); font-size: 1.5rem; margin-bottom: .3rem; }
.e404-chain small { display: block; font-size: .95rem; color: rgba(243, 241, 236, .8); }
.e404-more { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line-dark); font-size: 1rem; }

/* Reveal fallback: site.css define [data-reveal]; aquí nada más. */
@media (prefers-reduced-motion: reduce) {
  .est-tl-line line { animation: none; }
  .pg-btn, .e404-chain .n { transition: none; }
}

/* No se diseña para móvil (regla del propietario), solo que no se rompa. */
@media (max-width: 900px) {
  .pg-hero, .e404, .pg-sechead, .est-anat, .est-need, .est-ask, .pg-limits, .glo-head, .glo-group, .qs-origin, .qs-proc, .ct-top, .ct-prep, .ct-not { grid-template-columns: minmax(0, 1fr); }
  .est-tl, .est-flow, .est-rate, .qs-values, .e404-chain, .ct-not dl, .glo-list, .est-parts, .pg-limits ul, .ct-cases { grid-template-columns: minmax(0, 1fr); }
  .est-tl-line, .e404-chain::before { display: none; }
  .pg-hero-txt, .e404-txt { padding-left: var(--pg-g); padding-right: var(--pg-g); }
  .glo-letter, .qs-proc-ph { position: static; }
}
