/* InuCore Science · v3 (estructura de seed.com/approach, marca InuCore).
   Una sola familia (Inter, variable 200–600), página blanca, filetes de 1 px, figuras científicas. */
@font-face { font-family: "Inter"; src: url("/tipos/Inter.woff2") format("woff2"); font-weight: 200 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/tipos/Inter-Italic.woff2") format("woff2"); font-weight: 300 500; font-style: italic; font-display: swap; }

:root {
  --tinta: #2A2B2A;
  --gris: #5E605D;      /* texto secundario sobre blanco */
  --suave: #6A6C69;     /* pies de figura, 5:1 */
  --linea: #E4E3DF;
  --placa: #F3F3F1;
  --rosa: #C4867B;
  --rosa-hondo: #8E4E44;
  --gris-caja: #90989E;
  --margen: 64px;
  --ancho: 1440px;
}
@media (max-width: 900px) { :root { --margen: 20px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body { margin: 0; background: #fff; color: var(--tinta); font-family: Inter, system-ui, sans-serif; font-size: 17px; line-height: 1.6; letter-spacing: -0.011em; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
i, em { font-style: italic; }
::selection { background: rgba(196, 134, 123, .25); }
:focus-visible { outline: 2px solid var(--rosa-hondo); outline-offset: 3px; }

.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 12px; z-index: 20; background: #fff; padding: 8px 12px; }

.marco { max-width: var(--ancho); margin: 0 auto; padding-left: var(--margen); padding-right: var(--margen); }

/* Barra */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--linea); }
.barra .marco { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marca { font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.marca span { font-weight: 400; color: var(--suave); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; }
.barra nav { display: flex; gap: 28px; font-size: 13px; color: var(--gris); }
.barra nav a { text-decoration: none; }
.barra nav a:hover, .barra nav a[aria-current="page"] { color: var(--tinta); }
.barra nav a[aria-current="page"] { font-weight: 500; }
.menu { display: none; }
@media (max-width: 900px) {
  .barra nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--linea); padding: 8px var(--margen) 16px; font-size: 16px; }
  .barra nav a { padding: 12px 0; border-top: 1px solid var(--linea); }
  .barra.abierta nav { display: flex; }
  .menu { display: block; background: none; border: 0; font: inherit; font-size: 14px; color: var(--tinta); padding: 8px 0; cursor: pointer; }
}

/* Apertura */
.apertura { padding-top: 136px; padding-bottom: 120px; }
.apertura .sobre { font-size: 14px; color: var(--gris); margin: 0 0 32px; }
.apertura h1 { font-weight: 300; font-size: clamp(28px, 4.4vw, 64px); line-height: 1.08; letter-spacing: -0.035em; max-width: 1100px; margin: 0; }
.apertura .entrada { font-weight: 300; font-size: clamp(20px, 2vw, 28px); line-height: 1.35; letter-spacing: -0.018em; max-width: 820px; margin: 40px 0 0; }
.bajada { margin-top: 72px; max-width: 440px; }
.bajada b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.bajada p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--gris); max-width: 62ch; }
@media (max-width: 900px) { .apertura { padding-top: 72px; padding-bottom: 72px; } .bajada { margin-top: 40px; } }

/* Capítulos */
.capitulo { border-top: 1px solid var(--linea); padding-top: 40px; padding-bottom: 128px; }
.cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 64px; }
.num { font-weight: 200; font-size: clamp(64px, 9vw, 132px); line-height: .9; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.cabeza h2 { font-weight: 300; font-size: clamp(30px, 4vw, 58px); letter-spacing: -0.032em; line-height: 1.05; margin: 0; text-align: right; }
@media (max-width: 900px) { .capitulo { padding-bottom: 80px; } .cabeza { margin-bottom: 40px; } }

/* Figuras */
figure { margin: 0; }
.lamina { border-radius: 4px; overflow: hidden; background: #111; }
.lamina img { width: 100%; height: min(60vw, 720px); object-fit: cover; }
.lamina.baja img { height: min(44vw, 540px); }
figcaption { font-size: 13px; color: var(--suave); margin-top: 16px; line-height: 1.5; max-width: 860px; }
.placa { background: var(--placa); border-radius: 4px; padding: 48px; }
@media (max-width: 900px) { .placa { padding: 20px; } }

/* Texto */
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.dos.sin, .tres.sin { margin-top: 0; }
@media (max-width: 900px) { .dos, .tres { grid-template-columns: 1fr; gap: 40px; margin-top: 40px; } }
h3 { font-size: 22px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 12px; }
.dos p, .tres p, .texto p { margin: 0 0 12px; color: var(--tinta); max-width: 62ch; }
.dos p:last-child, .tres p:last-child { margin-bottom: 0; }
.frase { font-weight: 300; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; letter-spacing: -0.022em; margin: 0; color: var(--tinta) !important; }
.dato { font-weight: 200; font-size: clamp(56px, 7vw, 100px); letter-spacing: -0.055em; line-height: 1; margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.dato small { font-size: .28em; font-weight: 400; letter-spacing: 0; color: var(--gris); margin-left: 10px; }
.fuente { font-size: 13px; color: var(--suave); }
.fuente a { color: inherit; }
.par { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: end; margin-top: 96px; }
.par.inv { grid-template-columns: 7fr 5fr; }
@media (max-width: 900px) { .par, .par.inv { grid-template-columns: 1fr; gap: 32px; margin-top: 64px; } }

/* Tabla de datos sobria */
table.datos { width: 100%; border-collapse: collapse; font-size: 16px; }
table.datos th { font-size: 13px; font-weight: 500; color: var(--gris); text-align: left; padding: 14px 24px 14px 0; border-bottom: 1px solid var(--tinta); vertical-align: bottom; }
table.datos td { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--linea); vertical-align: top; }
table.datos td.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.desliza { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 900px) { table.datos { font-size: 15px; min-width: 620px; } }

/* Mapa de calor del ensayo */
.mapa table { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; min-width: 560px; }
.mapa th { font-weight: 400; font-size: 13px; color: var(--gris); text-align: center; padding: 0 0 10px; }
.mapa th:first-child { text-align: left; width: 30%; }
.mapa td.esp { font-size: 15px; padding-right: 16px; }
.mapa td.esp i { color: var(--gris); }
.mapa td.c { height: 56px; border-radius: 3px; }
.c.si { background: var(--rosa); }
.c.ilc { background: var(--rosa-hondo); }
.c.no { background: #fff; box-shadow: inset 0 0 0 1px #CFCBC4; }
.c.nd { background: repeating-linear-gradient(135deg, #E9E5DF 0 6px, var(--placa) 6px 12px); }
.mapa tr.sep td { height: 16px; }
.leyenda { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--gris); margin-top: 24px; padding: 0; list-style: none; }
.leyenda li::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 8px; vertical-align: -1px; background: var(--rosa); }
.leyenda .l-ilc::before { background: var(--rosa-hondo); }
.leyenda .l-no::before { background: #fff; box-shadow: inset 0 0 0 1px #CFCBC4; }
.leyenda .l-nd::before { background: repeating-linear-gradient(135deg, #E9E5DF 0 3px, var(--placa) 3px 6px); }
@media (max-width: 900px) { .mapa { overflow-x: auto; } .mapa td.esp { font-size: 13px; } }

/* Barras (figura de Rose 2017) */
.barras { display: grid; gap: 28px; }
.barra-dato .eti { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; margin-bottom: 10px; }
.barra-dato .eti b { white-space: nowrap; font-weight: 200; font-size: 40px; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.barra-dato .pista { height: 10px; background: #E9E5DF; border-radius: 2px; }
.barra-dato .lleno { height: 100%; border-radius: 2px; background: var(--gris-caja); }
.barra-dato.nuestra .lleno { background: var(--rosa); }
.escala { display: flex; justify-content: space-between; font-size: 13px; color: var(--suave); font-variant-numeric: tabular-nums; margin-top: 8px; }

/* Niveles de prueba */
.niveles { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tinta); }
.niveles li { display: grid; grid-template-columns: 64px 1fr 2fr; gap: 32px; padding: 32px 0; border-bottom: 1px solid var(--linea); align-items: baseline; }
.niveles .marca-n { width: 14px; height: 14px; border-radius: 2px; }
.niveles h3 { margin: 0; }
.niveles p { margin: 0; color: var(--tinta); max-width: 62ch; }
@media (max-width: 900px) { .niveles li { grid-template-columns: 28px 1fr; gap: 8px 16px; } .niveles li p { grid-column: 2; } }
.n1 { background: var(--rosa-hondo); }
.n2 { background: var(--rosa); }
.n3 { background: var(--gris-caja); }
.n4 { background: #fff; box-shadow: inset 0 0 0 1px #CFCBC4; }

/* Registro de alegaciones */
.filtros { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filtros button { font: inherit; font-size: 14px; color: var(--tinta); background: #fff; border: 1px solid var(--linea); border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.filtros button[aria-pressed="true"] { background: var(--tinta); color: #fff; border-color: var(--tinta); }
table.registro td:first-child { font-variant-numeric: tabular-nums; color: var(--suave); font-size: 13px; width: 52px; }
table.registro td.frase-r { font-size: 17px; }
table.registro .estado { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
table.registro .estado::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--gris-caja); }
table.registro .e-si::before { background: var(--rosa-hondo); }
table.registro .e-cond::before { background: var(--rosa); }
table.registro .e-no::before { background: #fff; box-shadow: inset 0 0 0 1px #9A9C98; }
table.registro .e-pend::before { background: repeating-linear-gradient(135deg, #CFCBC4 0 2px, #fff 2px 4px); }
table.registro tr.e-no-fila td.frase-r { color: var(--suave); }
table.registro td.nota { color: var(--gris); font-size: 14px; }
table.registro td.ref { font-size: 13px; color: var(--suave); }
table.registro [hidden] { display: none; }

/* Fuentes */
ol.refs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--tinta); }
ol.refs li { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--linea); font-size: 15px; line-height: 1.55; color: var(--gris); }
ol.refs li b { font-weight: 400; color: var(--tinta); font-variant-numeric: tabular-nums; }
ol.refs a, ol.refs span { overflow-wrap: anywhere; min-width: 0; }
.grupo-refs { margin-top: 48px; }
.grupo-refs h3 { font-size: 15px; font-weight: 500; margin: 0 0 12px; color: var(--tinta); }

/* Entradas a productos (portada) */
.productos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.producto { text-decoration: none; display: block; }
.producto .lamina img { height: min(38vw, 520px); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.producto:hover .lamina img { transform: scale(1.025); }
.producto h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 300; letter-spacing: -0.03em; margin: 24px 0 8px; }
.producto p { margin: 0; max-width: 520px; }
.producto .ir { display: inline-block; margin-top: 16px; font-size: 15px; border-bottom: 1px solid var(--linea); padding-bottom: 2px; }
.producto:hover .ir { border-color: var(--tinta); }
@media (max-width: 900px) { .productos { grid-template-columns: 1fr; gap: 56px; } .producto .lamina img { height: 64vw; } }

.aviso { border-left: 2px solid var(--rosa); padding: 4px 0 4px 20px; color: var(--gris); font-size: 15px; max-width: 760px; }
.aviso b { color: var(--tinta); font-weight: 500; }

/* Cierre */
.cierre { background: var(--tinta); color: #fff; padding: 136px 0; }
.cierre .marco { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; }
.cierre p { font-weight: 300; font-size: clamp(24px, 4.2vw, 60px); letter-spacing: -0.032em; line-height: 1.08; margin: 0; max-width: 820px; }
.cierre .enlaces { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.cierre a { font-size: 15px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; }
.cierre a:hover { border-color: #fff; }
.cierre .legal { font-size: 13px; color: rgba(255,255,255,.62); max-width: 360px; line-height: 1.5; }
@media (max-width: 900px) { .cierre { padding: 88px 0; } }
.pie { background: var(--tinta); color: rgba(255,255,255,.7); font-size: 13px; border-top: 1px solid rgba(255,255,255,.12); }
.pie .marco { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.pie a { color: inherit; }

/* Entrada suave al hacer scroll (solo con JS y sin movimiento reducido) */
.js [data-entra] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.js [data-entra].dentro { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-entra] { opacity: 1; transform: none; transition: none; } .producto .lamina img { transition: none; } }

/* Tablas apiladas en móvil: cada fila es una ficha, sin desplazamiento lateral */
@media (max-width: 900px) {
  .apila table.datos { min-width: 0; }
  .apila table.datos thead { display: none; }
  .apila table.datos tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--linea); }
  .apila table.datos td { display: block; border: 0; padding: 2px 0; }
  .apila table.datos td[data-col]::before { content: attr(data-col) ": "; color: var(--gris); }
  .apila table.registro td:first-child { width: auto; }
}

/* Figura vertical junto a texto */
.lamina.alta img { height: min(70vw, 760px); }
@media (max-width: 900px) { .lamina.alta img { height: 110vw; } }
