/* Portada de Peptiva — dirección «informe impreso» (eje al 42 %, campos de color planos, mosaicos).
   Solo la carga la portada; tokens en estilos.css. */

.sec { padding: clamp(96px, 12vw, 176px) 0; }
.lead { margin-top: var(--s3); max-width: 46ch; font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); line-height: 1.5; }
h2 { font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }

/* eje: los títulos y el texto cuelgan del 42 % */
.eje { display: grid; grid-template-columns: 42fr 58fr; column-gap: var(--s5); }
.eje > h2 { grid-column: 2; }
.eje > p { grid-column: 2; margin-top: var(--s3); max-width: 52ch; font-size: 16px; }

/* ---------- 1. tablero ---------- */
.board {
  display: grid; gap: 8px; padding: 8px;
  grid-template-columns: 1fr 1fr; grid-template-rows: minmax(300px, 46svh) minmax(300px, 42svh);
  grid-template-areas: "name a" "b pair";
}
.board > * { margin: 0; border-radius: 0; overflow: hidden; }
.board__name { grid-area: name; background: var(--mist); display: flex; align-items: flex-end; padding: var(--s3); }
.board__name h1 { font-size: clamp(88px, 12.5vw, 190px); font-weight: 600; letter-spacing: -0.055em; line-height: .82; color: var(--navy); }
.board__pic { position: relative; }
.board__pic--a { grid-area: a; }
.board__pic--b { grid-area: b; }
.board__pic img { width: 100%; height: 100%; object-fit: cover; }
.board__pair { grid-area: pair; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board__dark, .board__accent { padding: var(--s3); font-size: clamp(1.25rem, 1rem + .7vw, 1.5rem); line-height: 1.3; font-weight: 500; }
.board__dark { background: var(--navy); color: var(--white); }
.board__accent { background: var(--mint); color: var(--navy); display: flex; flex-direction: column; justify-content: space-between; gap: var(--s3); }
.board__accent a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--navy); font-size: 16px; font-weight: 700; text-decoration: none; }
.board__accent a .i { transition: transform .2s var(--ease); }
.board__accent a:hover .i { transform: translateX(4px); }
.board__accent a:hover { text-decoration: underline; }

/* ---------- 2. quiénes somos ---------- */
.about2__grid { margin-top: 72px; display: grid; grid-template-columns: 8fr 4fr; gap: 16px; align-items: start; }
.about2__pic { position: relative; margin: 0; aspect-ratio: 16 / 10; overflow: hidden; }
.about2__pic img { width: 100%; height: 100%; object-fit: cover; }
.about2__box { position: absolute; top: 0; right: 0; width: min(340px, 60%); background: var(--white); padding: 20px; font-size: 16px; line-height: 1.5; }
.about2__tile { background: var(--navy); color: var(--white); aspect-ratio: 4 / 3.6; padding: var(--s3); display: flex; flex-direction: column; justify-content: flex-end; font-size: 16px; font-weight: 500; }
.about2__big { font-size: clamp(5rem, 9vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: .85; color: var(--mint); }
.about2__facts { margin: var(--s3) 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2) var(--s3); }
.about2__facts dt { font-size: 14px; color: var(--slate); font-weight: 500; }
.about2__facts dd { margin: 2px 0 0; font-size: 16px; font-weight: 600; }

/* ---------- 3. laboratorio: un capítulo por pantalla ---------- */
.lab2 { background: var(--navy); color: var(--white); }
.cap {
  max-width: 1440px; margin: 0 auto; display: grid; padding: var(--s7) clamp(20px, 3vw, 40px);
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: var(--s6); row-gap: var(--s3);
}
.cap + .cap { padding-top: 0; }
.cap:nth-child(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.cap:nth-child(even) .cap__pic { grid-column: 1; }
.cap:nth-child(even) .cap__t, .cap:nth-child(even) .cap__p, .cap:nth-child(even) .cap__link { grid-column: 2; }
.cap__t { grid-column: 1; grid-row: 1; align-self: end; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--white); max-width: 16ch; }
.cap__pic { grid-column: 2; grid-row: 1 / 4; margin: 0; aspect-ratio: 3 / 2; overflow: hidden; }
.cap__pic img { width: 100%; height: 100%; object-fit: cover; }
.cap__p { grid-column: 1; grid-row: 2; max-width: 36ch; font-size: 20px; line-height: 1.5; color: #E3EEF4; }
.cap__link { grid-column: 1; grid-row: 3; align-self: start; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--mint); font-weight: 600; }

/* ---------- 4. cifras dentro de una frase ---------- */
.cifras { background: var(--mist); }
.cifras .marco { display: grid; grid-template-columns: 58fr 42fr; column-gap: var(--s6); row-gap: var(--s4); align-items: end; }
.cifras__p { max-width: 30ch; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.25rem); line-height: 1.2; letter-spacing: -0.03em; color: var(--slate); font-weight: 400; }
.cifras__p b { color: var(--navy); font-weight: 600; font-variant-numeric: lining-nums; }
.cifras__nota { max-width: 48ch; justify-self: end; font-size: 14px; color: var(--slate); }

/* ---------- 5. del lote al vial ---------- */
.proc__head { max-width: 40ch; }
.proc__head p { margin-top: var(--s3); font-size: 16px; }
.proc__svg { width: 100%; height: auto; margin-top: var(--s6); }
.proc__steps { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
.proc__steps h3 { font-size: 20px; font-weight: 700; }
.proc__steps p { margin-top: var(--s1); font-size: 16px; max-width: 34ch; }

/* ---------- 6. noticias ---------- */
.news { background: #E8F7F4; }
.news__list { list-style: none; margin: var(--s6) 0 0; padding: 0; display: grid; gap: var(--s6); }
.nota { display: grid; grid-template-columns: 42fr 58fr; column-gap: var(--s5); }
.nota__meta { display: flex; flex-direction: column; gap: 4px; font-size: 16px; font-weight: 600; }
.nota__meta span { font-weight: 500; color: var(--ink-teal); }
.nota__body h3 { font-size: clamp(1.25rem, 1rem + .9vw, 1.5rem); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; max-width: 30ch; }
.nota__body h3 a { color: var(--navy); text-decoration: none; }
.nota__body h3 a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.nota__body p { margin-top: var(--s2); max-width: 60ch; font-size: 16px; }
.nota__body .nota__src { margin-top: var(--s1); font-size: 14px; color: var(--slate); font-weight: 500; }
.news__nota { margin-top: var(--s6); margin-left: calc(42% + var(--s5) * .42); max-width: 60ch; font-size: 14px; color: var(--slate); }

/* ---------- 7. catálogo con estado regulatorio ---------- */
.cat__list { list-style: none; margin: var(--s6) 0 0; padding: 0; }
.fila { background: var(--mist); }
.fila + .fila { margin-top: 4px; }
.fila summary {
  list-style: none; cursor: pointer; display: grid; align-items: baseline; gap: var(--s3);
  grid-template-columns: 80px minmax(0, 3fr) 90px minmax(0, 5fr) 24px; padding: 20px 24px; min-height: 64px;
}
.fila summary::-webkit-details-marker { display: none; }
.fila summary:hover { background: #EAF2F4; }
.fila__code { font-size: 14px; font-weight: 700; color: var(--ink-teal); font-variant-numeric: tabular-nums; }
.fila__n { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.fila__sub { display: block; font-size: 14px; color: var(--slate); font-weight: 500; }
.fila__amt { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.fila__status { font-size: 16px; line-height: 1.45; }
.fila__mas { width: 24px; height: 24px; position: relative; align-self: center; }
.fila__mas::before, .fila__mas::after { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: var(--navy); transition: transform .25s var(--ease); }
.fila__mas::after { transform: rotate(90deg); }
.fila details[open] .fila__mas::after { transform: rotate(0deg); }
.fila details[open] summary { background: #E3EEF1; }
.fila__det { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: var(--s5); padding: var(--s3) 24px var(--s4) calc(80px + 24px + var(--s3)); }
.fila__det p { font-size: 16px; max-width: 52ch; }
.fila__det h4 { margin: 0; font-size: 16px; font-weight: 700; }
.fila__dl { margin: var(--s2) 0 0; }
.fila__dl dt { font-size: 14px; color: var(--slate); }
.fila__dl dd { margin: 2px 0 0; font-weight: 600; }
.fila__lots { margin-top: var(--s3); display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; color: var(--navy); }
.cat__nota { margin-top: var(--s3); font-size: 14px; color: var(--slate); max-width: 64ch; }

/* verificación discreta, al final del catálogo */
.ver2 { background: var(--mist); padding: var(--s6) 0; }
.ver2__in { display: grid; grid-template-columns: 42fr 58fr; column-gap: var(--s5); row-gap: var(--s3); align-items: start; }
.ver2__h { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.ver2 > div > p { margin-top: var(--s1); font-size: 16px; max-width: 40ch; }
.ver2 .verif { max-width: 560px; }

/* ---------- movimiento ---------- */
@media (prefers-reduced-motion: no-preference) {
  .board__pic--a img { animation: obturador 1.1s var(--ease) both; }
  @keyframes obturador { from { clip-path: inset(0 0 0 100%); transform: scale(1.12); } to { clip-path: inset(0); transform: scale(1); } }
  .js .sube { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
  .js .sube.visto { opacity: 1; transform: none; }
  .cap__pic img { transition: transform 1.2s var(--ease); }
  .cap:hover .cap__pic img { transform: scale(1.03); }
}

/* ---------- tableta ---------- */
@media (max-width: 1024px) {
  .cifras .marco { grid-template-columns: 1fr; }
  .cifras__nota { justify-self: start; }
  .cifras__p { max-width: 34ch; }
  .cap, .cap:nth-child(even) { grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
  .cap__p { font-size: 16px; }
  .fila summary { grid-template-columns: 64px minmax(0, 1fr) 80px 24px; }
  .fila__status { grid-column: 2 / 4; grid-row: 2; }
  .fila__mas { grid-column: 4; grid-row: 1; }
  .fila__det { padding-left: 24px; grid-template-columns: 1fr; gap: var(--s3); }
}

/* ---------- teléfono ---------- */
@media (max-width: 760px) {
  .eje, .nota, .ver2__in { grid-template-columns: 1fr; }
  .eje > h2, .eje > p { grid-column: 1; }
  .news__nota { margin-left: 0; }
  .nota { row-gap: var(--s1); }
  .board { gap: 6px; padding: 6px; grid-template-columns: 1fr 1fr; grid-template-rows: 30svh auto auto auto;
           grid-template-areas: "name name" "a a" "pair pair" "b b"; }
  .board__name h1 { font-size: 22vw; }
  .board__pic--a { aspect-ratio: 4 / 3; }
  .board__pic--b { aspect-ratio: 4 / 3; }
  .board__dark, .board__accent { aspect-ratio: 1; font-size: 16px; padding: 16px; }
  .about2__grid { grid-template-columns: 1fr; margin-top: var(--s5); }
  .about2__pic { aspect-ratio: 4 / 3; overflow: visible; }
  .about2__pic img { aspect-ratio: 4 / 3; }
  .about2__box { position: static; width: auto; padding: 16px 0 0; }
  .about2__tile { aspect-ratio: 3 / 2; }
  .cap, .cap:nth-child(even) { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: var(--s3); padding: var(--s6) 20px; }
  .cap + .cap { padding-top: 0; }
  .cap__t, .cap__pic, .cap__p, .cap__link, .cap:nth-child(even) .cap__t, .cap:nth-child(even) .cap__pic, .cap:nth-child(even) .cap__p, .cap:nth-child(even) .cap__link { grid-column: 1; grid-row: auto; }
  .cap__pic { order: -1; }
  .cifras__p { font-size: 1.5rem; line-height: 1.25; }
  .proc__steps { grid-template-columns: 1fr; gap: var(--s3); }
  .fila summary { grid-template-columns: 52px minmax(0, 1fr) 24px; padding: 16px; gap: 4px var(--s2); }
  .fila__amt { grid-column: 2; grid-row: 2; font-size: 14px; }
  .fila__status { grid-column: 2; grid-row: 3; font-size: 14px; }
  .fila__mas { grid-column: 3; grid-row: 1 / 4; }
  .fila__n { font-size: 16px; }
  .fila__det { padding: var(--s2) 16px var(--s3); }
}

:where(.sec, .pie2) p { max-width: 75ch; }

.nota__body p, .about2__box, .lead { max-width: 60ch; }
