:root {
  font: 17px/1.65 system-ui, sans-serif;
  color: #16354b;
  background: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #075990; text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid #d77a11; outline-offset: 4px; }
header { border-bottom: 1px solid #dae5eb; }
nav, main { max-width: 1120px; padding-inline: 24px; margin: auto; }
nav { display: flex; justify-content: space-between; align-items: center; min-height: 72px; }
nav img { display: block; }
.intro { padding-block: clamp(32px, 6vw, 76px); border-bottom: 1px solid #cddce4; }
.visual { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 5%; }
.intro p { max-width: 66ch; }
.ruta { font-size: .88rem; }
h1, h2 { line-height: 1.13; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.035em; margin: .4em 0; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin: 1.5em 0 .5em; }
.foto { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.boton { display: inline-block; padding: .65em 1.1em; border-radius: 8px; background: #086cb0; color: white; text-decoration: none; font-weight: 650; }
article { max-width: 760px; margin: auto; padding: 12px 0 60px; }
figure { margin: 1.5rem 0; padding: 1rem; background: #eff5f8; border-radius: 12px; }
figure img { display: block; max-width: 100%; height: auto; margin: auto; }
figcaption { margin-top: .75rem; color: #425971; font-size: .9rem; text-align: center; }
ol { padding-left: 1.5em; }
li { margin-bottom: .9em; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
caption { text-align: left; margin-bottom: .6em; font-weight: 650; }
th, td { padding: .5em; border-bottom: 1px solid #ccdae4; text-align: left; }
thead { background: #eaf4f9; }
footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 2rem; }
@media (max-width: 700px) {
  .visual { grid-template-columns: 1fr; gap: 24px; }
  .foto { aspect-ratio: 2 / 1; }
  nav, main { padding-inline: 18px; }
}

.pagina-rubro .intro {
  margin-block: 24px 36px;
  padding: clamp(20px, 4vw, 48px);
  background: #eef5f5;
  border: 1px solid #d8e7e7;
  border-radius: 20px;
}
.pagina-rubro .intro h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.pagina-rubro .intro .foto { display: block; }
.lectura-rubro {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(0, 3fr);
  align-items: start;
  gap: clamp(24px, 5vw, 72px);
}
.indice-rubro {
  display: grid;
  gap: .45rem;
  justify-content: stretch;
  position: sticky;
  top: 20px;
  padding: 6px 0 8px 18px;
  margin: 0;
  border-left: 3px solid #158779;
  font-size: .94rem;
}
.indice-rubro a { text-decoration-thickness: 1px; }
.lectura-rubro article { min-width: 0; width: 100%; padding-top: 0; }
.lectura-rubro h2 { scroll-margin-top: 20px; }
.lectura-rubro article > h2:first-child { margin-top: 0; }
.ejemplo-rubro {
  margin-block: 2rem;
  padding: clamp(12px, 2.5vw, 28px);
  border-radius: 14px;
  border: 1px solid #c9dbd7;
  background: #f4f9f7;
}
.ejemplo-rubro caption { font-size: 1.15rem; color: #114a42; }
.ejemplo-rubro thead { background: #dceaE5; }
.ejemplo-rubro th, .ejemplo-rubro td { padding: .45em; }
.ejemplo-rubro tbody th { font-weight: 500; }
.ejemplo-rubro p { font-size: .92rem; margin-bottom: 0; }
.pagina-guia .intro p:last-child { margin-bottom: 0; }
.guia-del-rubro {
  margin-block: 1.75rem;
  padding: clamp(.9rem, 3vw, 1.4rem);
  border: 1px solid #c9dbd7;
  border-radius: 14px;
  background: #f4f9f7;
}
.guia-del-rubro h2 { margin-top: 0; color: #114a42; }
.guia-del-rubro p:last-child { margin-bottom: 0; }
.tabla-guia {
  margin-block: 1.25rem;
  padding: clamp(.55rem, 2vw, 1.1rem);
  border: 1px solid #dae5eb;
  border-radius: 12px;
  background: #f7fafb;
}
.tabla-guia th, .tabla-guia td { overflow-wrap: anywhere; }
.tabla-guia tbody th { font-weight: 600; }
.fuentes-guia { padding-inline-start: 1.25rem; font-size: .92rem; }
@media (max-width: 700px) {
  .lectura-rubro { grid-template-columns: 1fr; }
  .indice-rubro { position: static; }
  .pagina-rubro .intro { margin-block: 14px 24px; }
  .ejemplo-rubro table { font-size: .88rem; overflow-wrap: anywhere; }
  .tabla-guia table { font-size: .88rem; }
  .tabla-guia th, .tabla-guia td { padding: .35em; }
}
