.em-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--io-tinta);
  color: var(--io-papel);
  min-height: clamp(610px, 85svh, 835px);
}
.em-intro {
  align-self: center;
  max-width: 800px;
  padding: clamp(125px, 10vw, 172px) clamp(30px, 5vw, 96px) clamp(60px, 6vw, 100px) max(5vw, var(--io-margen));
}
.em-canales { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; font: 500 13px/1.4 var(--io-f-mono); }
.em-canales a { color: var(--io-papel); text-underline-offset: 4px; }
.em-canales [aria-current] { color: var(--io-melocoton); }
.em-intro h1 { font-size: clamp(52px, 6.8vw, 100px); }
.em-intro > p, .em-selector > p { font-size: clamp(18px, 1.4vw, 23px); line-height: 1.48; max-width: 38ch; margin: 24px 0; }
.em-link { display: inline-flex; gap: 10px; align-items: center; min-height: 44px; padding-block: 8px; font-weight: 600; text-underline-offset: 5px; }
.em-hero :focus-visible { outline-color: var(--io-papel); }
.em-hero__foto { margin: 0; }
.em-hero__foto img { position: absolute; inset: 0; object-position: 50% 50%; }
.em-hero__orilla { right: 3%; }
.em-correo { padding: clamp(88px, 9vw, 164px) max(6vw, var(--io-margen)); background: var(--io-papel); }
.em-contenido { max-width: 1360px; margin: auto; display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); align-items: start; gap: clamp(46px, 8vw, 136px); }
.em-selector h2 { max-width: 13ch; }
.em-asuntos { display: flex; flex-direction: column; border-bottom: 1px solid var(--io-gris-3); max-width: 30em; margin-top: 34px; }
.em-asuntos a { display: flex; min-height: 56px; padding: 13px 0; align-items: center; justify-content: space-between; gap: 14px; border-top: 1px solid var(--io-gris-3); text-decoration: none; font-weight: 550; }
.em-asuntos a:hover, .em-asuntos a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }
.em-asuntos a span { display: grid; place-items: center; border-radius: 50%; width: 28px; height: 28px; border: 1px solid var(--io-gris-3); }
.em-asuntos a[aria-current] span { background: var(--io-tinta); color: white; border-color: var(--io-tinta); }
.em-mensajes {
  min-width: 0; padding: clamp(18px, 3vw, 45px);
  background-color: var(--io-melocoton);
  background-image: linear-gradient(to right, rgb(10 10 10 / 5%) 1px, transparent 1px), linear-gradient(to bottom, rgb(10 10 10 / 5%) 1px, transparent 1px);
  background-size: 32px 32px;
}
.em-ejemplo { scroll-margin-top: 95px; }
.em-ejemplo + .em-ejemplo:not([hidden]) { margin-top: 34px; }
.em-mensajes [hidden] + .em-ejemplo { margin-top: 0; }
.em-origen { margin: 0 0 17px; line-height: 1.4; font-size: clamp(16px, 1.2vw, 19px); max-width: 52ch; }
.em-carta { color: var(--io-tinta); background: var(--io-blanco); padding: clamp(17px, 2.6vw, 37px); border-radius: var(--io-r-card); box-shadow: var(--io-n1); }
.em-sobre { display: flex; gap: 14px; align-items: baseline; border-bottom: 1px solid var(--io-gris-3); padding-bottom: 12px; font-weight: 650; }
.em-sobre span, .em-nota h4 { font: 500 12px/1.4 var(--io-f-mono); color: var(--io-gris-1); }
.em-carta h3 { font: 650 clamp(29px, 2.5vw, 44px)/1.04 var(--io-f-titular); letter-spacing: -.03em; max-width: 24ch; margin: 20px 0 15px; text-wrap: balance; }
.em-carta p, .em-carta li { font-size: clamp(16px, 1.13vw, 19px); line-height: 1.48; }
.em-carta p { margin: 0 0 14px; }
.em-carta p:last-child { margin-bottom: 0; }
.em-nota { background: var(--io-papel); padding: 12px 15px; margin-block: 14px; }
.em-nota h4 { margin: 0 0 4px; }
.em-programa { border-block: 1px solid var(--io-gris-3); margin-top: 18px; }
.em-programa summary { cursor: pointer; font-weight: 650; padding-block: 12px; }
.em-programa ol { padding-left: 22px; margin: 0 0 15px; }
.em-programa li + li { margin-top: 7px; }
.em-superior { top: 34px; }
.em-pie { bottom: 35px; }
.em-margen { left: 3%; }
.em-cierre { border-top: 1px solid var(--io-gris-3); background: white; }
.em-cierre .moncard { left: var(--io-margen); bottom: 125px; }
@media (max-width: 899px) {
  .em-hero { grid-template-columns: 1fr; min-height: 0; }
  .em-intro { padding: 105px 26px 36px; }
  .em-intro h1 { font-size: clamp(48px, 9.5vw, 75px); max-width: 15ch; }
  .em-hero__foto { height: clamp(220px, 39svh, 390px); }
  .em-correo { padding: 65px max(24px, 5vw) 76px; }
  .em-contenido { grid-template-columns: 1fr; gap: 27px; }
  .em-selector h2 { max-width: 18ch; }
  .em-asuntos { margin-top: 18px; }
  .em-mensajes { padding: 20px; }
  .em-hero__orilla { right: 11px; }
  .em-margen { left: 11px; }
  .em-cierre .cierre__in { padding-inline: 28px 22px; }
  .em-cierre .cierre__fin { height: 120px; }
  .em-cierre .cierre__btnw { right: 0; left: auto; }
  .em-cierre .cierre__btn { padding-inline: 16px; min-width: 0; font-size: 16px; }
  .em-cierre .cierre__mon { --h: clamp(70px, 21vw, 120px); left: -8px; bottom: calc(28px - var(--h)*.0968); }
}

@media(max-width:359px){
  .em-cierre .cierre__in {padding-inline-end:12px}
  .em-cierre .cierre__btn {padding-inline:12px}
}
