/* MinAgent's page stylesheet (served as /minagent.css next to the page). It started as a byte copy
   of the company site's stylesheet, so the page keeps the site's header, footer, bands and pills;
   MinAgent's own rules are the «MinAgent's page» section (copper accent). System fonts only and
   nothing from other sites: the site's CSP allows this file and nothing else (no scripts, no inline
   styles). Text contrast is at least 4.5:1 in light and dark (WCAG 2.2 AA). */
:root {
  color-scheme: light dark;
  --letra-titulo: "Avenir Next", Avenir, "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", Ubuntu, sans-serif;
  --letra-texto: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;

  /* The Portal's tokens (Portal/src/index.css). */
  --papel: #f6f7f5;
  --papel-hondo: #ecefec;
  --superficie: #ffffff;
  --tinta: #1c2530;
  --suave: #535e69;
  --borde: #dce0df;
  --borde-fuerte: #858f99;
  --timbre: #b5402a;
  --timbre-tinte: #f7e6e1;
  --vidrio: rgb(255 255 255 / 0.55);
  --vidrio-claro: rgb(255 255 255 / 0.86);
  --vidrio-borde: rgb(255 255 255 / 0.72);
  --sombra-vidrio: inset 0 1px 0 rgb(255 255 255 / 0.7), 0 0 0 1px rgb(28 37 48 / 0.06), 0 20px 44px -28px rgb(28 37 48 / 0.4);
  --desenfoque: 24px;
  /* The window's lights, diluted so secondary text stays above 4.5:1 where they are strongest. */
  --luz-arena: rgb(234 199 154 / 0.6);
  --luz-salvia: rgb(180 208 179 / 0.6);

  /* Roles. */
  --enlace: #1c2530;
  --accion: #1c2530;
  --accion-texto: #ffffff;
  --accion-encima: #2f3a46;
  --foco: #1c2530;
  --brote: #1a6e4b;
  --brote-tinte: #dff0e5;
  --brote-vivo: #22b363;
  --ambar: #f2a623;
  --banda-clara: rgb(255 255 255 / 0.6);
  --burbuja: #ffffff;
  --fondo-chat: #f8eee0;
  --cierre: #1c2530;
  --cierre-texto: #ffffff;
  --pendiente-fondo: #fdf1d6;
  --pendiente-borde: #b7791f;

  /* The tower: white facades, ink windows, a sand roof, amber light. */
  --t-suelo: #e7eae7;
  --t-suelo-izq: #d6dbd8;
  --t-suelo-der: #c8cecb;
  --t-techo: #eac79a;
  --t-caja: #f6e3c6;
  --t-izq: #ffffff;
  --t-der: #e3e7e5;
  --t-arista: rgb(28 37 48 / 0.16);
  --t-ventana: #1c2530;
  --t-luz: #ffbf3f;
  --t-baliza: #b5402a;
  --t-arbusto: #5ea96a;
  --t-arbusto-claro: #b4d0b3;

  /* The mark in the header and the footer (the favicon draws the same). */
  --m-techo: #eac79a;
  --m-izq: #1c2530;
  --m-der: #3b4550;
  --m-luz: #ffbf3f;
}

@media (prefers-color-scheme: dark) {
  /* The Portal's «noche». */
  :root {
    --papel: #10161d;
    --papel-hondo: #222a32;
    --superficie: #252e38;
    --tinta: #e6eaee;
    --suave: #a7b1ba;
    --borde: #2f3842;
    --borde-fuerte: #6f7b86;
    --timbre: #f08c76;
    --timbre-tinte: #3c211b;
    --vidrio: rgb(22 28 35 / 0.62);
    --vidrio-claro: rgb(28 35 43 / 0.9);
    --vidrio-borde: rgb(255 255 255 / 0.08);
    --sombra-vidrio: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 24px 48px -28px rgb(0 0 0 / 0.75);
    --luz-arena: rgb(234 199 154 / 0.1);
    --luz-salvia: rgb(180 208 179 / 0.08);

    --enlace: #e6eaee;
    --accion: #e6eaee;
    --accion-texto: #10161d;
    --accion-encima: #ffffff;
    --foco: #e6eaee;
    --brote: #6fd39b;
    --brote-tinte: #173126;
    --brote-vivo: #3ddc84;
    --ambar: #ffc44d;
    --banda-clara: rgb(255 255 255 / 0.025);
    --burbuja: #252e38;
    --fondo-chat: #1b2129;
    --cierre: #e6eaee;
    --cierre-texto: #10161d;
    --pendiente-fondo: #2e2614;
    --pendiente-borde: #d9a93a;

    --t-suelo: #1b2129;
    --t-suelo-izq: #161b22;
    --t-suelo-der: #12171d;
    --t-techo: #9c7d55;
    --t-caja: #b8976a;
    --t-izq: #3a4048;
    --t-der: #2b3037;
    --t-arista: rgb(255 255 255 / 0.06);
    --t-ventana: #12161b;
    --t-luz: #ffc44d;
    --t-baliza: #f08c76;
    --t-arbusto: #3f7a4f;
    --t-arbusto-claro: #5f8f63;

    --m-techo: #eac79a;
    --m-izq: #e6eaee;
    --m-der: #a7b1ba;
    --m-luz: #ffbf3f;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--letra-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* «Ventanal»: the window's light on the page, sand from the top right and sage from below, on a
   fixed layer behind everything (soft, so text over it keeps its contrast). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 36rem at 100% 0%, var(--luz-arena), transparent 70%),
    radial-gradient(60rem 40rem at 30% 112%, var(--luz-salvia), transparent 70%),
    radial-gradient(30rem 24rem at -6% 40%, var(--luz-arena), transparent 70%);
  pointer-events: none;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: none;
}

h1,
h2,
h3 {
  font-family: var(--letra-titulo);
  font-stretch: semi-expanded;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h3 {
  letter-spacing: -0.01em;
}

p,
ul,
ol,
dl {
  margin: 0 0 1rem;
}

a {
  color: var(--enlace);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

time {
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 3px;
}

svg {
  display: block;
}

.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.contenedor {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.saltar {
  position: absolute;
  left: 1rem;
  top: -6rem;
  z-index: 10;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  background: var(--accion);
  color: var(--accion-texto);
  font-weight: 600;
  text-decoration: none;
}

.saltar:focus {
  top: 1rem;
}

/* --- Pills: every action --------------------------------------------------------------------- */

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pastilla {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6875rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--letra-titulo);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pastilla-principal {
  background: var(--accion);
  color: var(--accion-texto);
}

.pastilla-principal:hover {
  background: var(--accion-encima);
}

.pastilla-contorno {
  border-color: var(--borde-fuerte);
  background: var(--vidrio-claro);
  color: var(--tinta);
}

.pastilla-contorno:hover {
  border-color: var(--tinta);
  background: var(--superficie);
}

/* On the closing band: its colours turned around. */
.pastilla-clara {
  background: var(--cierre-texto);
  color: var(--cierre);
}

.pastilla-clara:hover {
  background: var(--papel-hondo);
}

/* --- Header ---------------------------------------------------------------------------------- */

.cabecera {
  border-bottom: 1px solid var(--borde);
  background: var(--vidrio);
  backdrop-filter: blur(var(--desenfoque)) saturate(1.5);
}

.cabecera-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding-block: 0.75rem;
}

.marca,
.pie-marca {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
  min-height: 2.75rem;
  color: var(--tinta);
  font-family: var(--letra-titulo);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
}

.marca-signo {
  flex: none;
  width: 1.875rem;
  height: 1.875rem;
}

.marca-techo {
  fill: var(--m-techo);
}

.marca-izq {
  fill: var(--m-izq);
}

.marca-der {
  fill: var(--m-der);
}

.marca-luz {
  fill: var(--m-luz);
}

.menu ul {
  display: flex;
  align-items: center;
  gap: 0.25rem 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-extra a {
  display: inline-block;
  padding: 0.5rem 0.125rem;
  color: var(--suave);
  font-size: 0.9375rem;
  text-decoration: none;
}

.menu-extra a:hover {
  color: var(--tinta);
  text-decoration: underline;
}

.pastilla-cabecera {
  min-height: 2.5rem;
  padding: 0.4375rem 1.125rem;
  background: var(--accion);
  color: var(--accion-texto);
  font-size: 0.9375rem;
}

.pastilla-cabecera:hover {
  background: var(--accion-encima);
}

/* --- Bands ----------------------------------------------------------------------------------- */

.banda {
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

.banda-tenue {
  border-block: 1px solid var(--vidrio-borde);
  background: var(--banda-clara);
}

.banda h2 {
  max-width: 24ch;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  letter-spacing: -0.03em;
}

.bajada {
  max-width: 36rem;
  color: var(--suave);
  font-size: clamp(1.125rem, 1rem + 0.45vw, 1.3125rem);
  line-height: 1.55;
}

/* --- Hero: the headline, the tower and the example conversation -------------------------------- */

.portada {
  padding-block: clamp(2.5rem, 6vw, 5rem) 0;
  border-bottom: 1px solid var(--borde);
}

.portada-rejilla {
  display: grid;
  gap: 2.5rem;
}

.portada-texto {
  align-self: center;
}

.portada h1 {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 1.35rem + 4.6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.no-encontrada {
  border-bottom: 0;
}

.frase {
  display: block;
}

.portada .bajada {
  margin-bottom: 2rem;
}

/* The scene stands on the hero's bottom edge (the street): the tower in its own cell, so no shape
   sits under any text, and the conversation beside it. Phones: the tower above. */
.escena {
  display: grid;
  grid-template-areas: "torre" "chat";
  gap: 1.5rem;
  align-items: end;
}

.torre {
  grid-area: torre;
  justify-self: center;
  width: min(54%, 11rem);
  height: auto;
  margin-bottom: -1px;
}

.chat {
  grid-area: chat;
  margin: 0 0 clamp(2rem, 5vw, 3.5rem);
  padding: 1rem 1rem 1.125rem;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.5rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
}

.chat figcaption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem 0.25rem;
  color: var(--suave);
  font-size: 0.875rem;
}

.chat figcaption::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--brote-vivo);
  box-shadow: 0 0 0 3px var(--brote-tinte);
}

.conversacion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mensaje {
  max-width: 88%;
  padding: 0.625rem 0.875rem 0.5rem;
  border-radius: 1.125rem;
  color: var(--tinta);
  font-size: 0.9375rem;
  line-height: 1.4;
}

.mensaje-texto {
  display: block;
}

.mensaje-cliente {
  align-self: flex-start;
  border-bottom-left-radius: 0.375rem;
  background: var(--papel-hondo);
}

/* The assistant's replies in ink, like the Portal's primary actions. */
.mensaje-asistente {
  align-self: flex-end;
  border-bottom-right-radius: 0.375rem;
  background: var(--accion);
  color: var(--accion-texto);
}

.hora {
  display: block;
  margin-top: 0.125rem;
  color: var(--suave);
  font-size: 0.75rem;
  text-align: right;
}

.mensaje-asistente .hora {
  color: inherit;
  opacity: 0.78;
}

.escena-sola .torre {
  width: min(58%, 12rem);
}

/* The tower's parts (templates/tower.svg.tftpl). Lit windows (.piso, by floor; .siempre, the
   one that never goes off) sit over the dark ones (.ventana). */
.torre-suelo {
  fill: var(--t-suelo);
}

.torre-suelo-izq {
  fill: var(--t-suelo-izq);
}

.torre-suelo-der {
  fill: var(--t-suelo-der);
}

.torre-techo {
  fill: var(--t-techo);
}

.torre-techo-caja {
  fill: var(--t-caja);
}

.torre-izq,
.torre-der {
  stroke: var(--t-arista);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.torre-izq {
  fill: var(--t-izq);
}

.torre-der {
  fill: var(--t-der);
}

/* The beacon on the roof: the Portal's red badge, someone is waiting for an answer. */
.torre-antena {
  fill: var(--t-ventana);
}

.torre-baliza {
  fill: var(--t-baliza);
}

.ventana {
  fill: var(--t-ventana);
}

.piso,
.siempre {
  fill: var(--t-luz);
}

.arbusto {
  fill: var(--t-arbusto);
}

.arbusto-claro {
  fill: var(--t-arbusto-claro);
}

/* --- What it does: equal cards ---------------------------------------------------------------- */

.tarjetas {
  display: grid;
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tarjeta {
  padding: 1.75rem 1.5rem 1.625rem;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.25rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
}

.icono {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tarjeta .icono {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.25rem;
  padding: 0.6875rem;
  border-radius: 0.875rem;
  background: var(--accion);
  stroke: var(--accion-texto);
}

.tarjeta h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

.tarjeta p {
  margin: 0;
  color: var(--suave);
  line-height: 1.5;
}

/* --- How it works: numbered steps on a line ---------------------------------------------------- */

.etapas {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.etapas > li {
  position: relative;
  padding-left: 4.5rem;
}

.etapa-numero {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--accion);
  color: var(--accion-texto);
  font-family: var(--letra-titulo);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1;
}

/* The line between steps: a border, not a background (nothing behind the text to guess). */
.etapas > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 3.75rem;
  bottom: -1.5rem;
  left: 1.5625rem;
  border-left: 2px dashed var(--borde-fuerte);
}

.etapas h3 {
  margin: 0.75rem 0 0.375rem;
  font-size: 1.25rem;
}

.etapas p {
  max-width: 22rem;
  margin: 0;
  color: var(--suave);
}

/* --- Channels: a strip of text chips under the hero (no logos) ------------------------------- */

.banda.canales {
  padding-block: 1.5rem;
}

.canales-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.banda.canales h2 {
  max-width: none;
  margin: 0;
  color: var(--suave);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.canales-lista {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.canales-lista li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--superficie);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

.canales-lista li::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--brote-vivo);
}

/* A section's heading with one line under it. */
.banda .titulo-con-bajada {
  margin-bottom: 0.75rem;
}

.seccion-bajada {
  max-width: 40rem;
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  color: var(--suave);
  font-size: 1.125rem;
  line-height: 1.5;
}

/* --- WhatsApp template examples: one chat card per moment --------------------------------------
   Each card is a little chat: the template as the business's bubble on the sand «wallpaper», its
   quick replies and link button as the pills WhatsApp draws under it (pictures, not links). */

.plantillas {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plantilla {
  display: flex;
  flex-direction: column;
  padding: 1.375rem 1.125rem 1.125rem;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.5rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
}

.plantilla h3 {
  margin: 0 0 0.25rem 0.25rem;
  font-size: 1.1875rem;
}

.plantilla-momento {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0 0.25rem;
  color: var(--suave);
  font-size: 0.9375rem;
}

.plantilla-momento::before {
  content: "";
  flex: none;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ambar);
}

/* The chat's «wallpaper»: a pale sand panel under the business's white bubble, the newest message
   at the bottom as in a chat. */
.plantilla-chat {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.375rem;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 1rem;
  background: var(--fondo-chat);
}

.burbuja {
  margin: 0;
  padding: 0.75rem 0.875rem 0.5rem;
  border-radius: 1.125rem;
  border-top-left-radius: 0.375rem;
  background: var(--burbuja);
  box-shadow: 0 1px 0 rgb(28 37 48 / 0.08);
  font-size: 0.9375rem;
  line-height: 1.45;
  transform-origin: left bottom;
}

.burbuja strong {
  font-weight: 700;
}

.respuestas {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.respuestas li,
.boton-enlace {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--burbuja);
  box-shadow: 0 1px 0 rgb(28 37 48 / 0.08);
  color: var(--enlace);
  font-family: var(--letra-titulo);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.icono-enlace {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Simplified Portal screens: the inbox, a lead card, the day's visits ---------------------- */

.vistas {
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.vista-figura {
  display: grid;
  grid-template-rows: 1fr auto;
  height: 100%;
  margin: 0;
}

.maqueta {
  min-width: 0;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.25rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
  overflow: hidden;
}

.maqueta-barra {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0;
  padding: 0.875rem 1rem 0.75rem;
  border-bottom: 1px solid var(--borde);
  font-family: var(--letra-titulo);
  font-size: 1.0625rem;
  font-stretch: semi-expanded;
  font-weight: 700;
  line-height: 1.3;
}

/* The board's column dot. */
.maqueta-punto {
  flex: none;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--tinta);
}

.maqueta-bandeja .maqueta-punto {
  background: var(--timbre);
}

.maqueta-agenda .maqueta-punto {
  background: var(--brote-vivo);
}

.maqueta-cabeza {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1rem 0.875rem;
}

.maqueta-cabeza p {
  min-width: 0;
  margin: 0;
  line-height: 1.3;
}

.maqueta-titulo {
  display: block;
  font-family: var(--letra-titulo);
  font-size: 1.125rem;
  font-weight: 700;
}

.maqueta-nota {
  display: block;
  text-wrap: pretty;
  margin-top: 0.125rem;
  color: var(--suave);
  font-size: 0.875rem;
}

.inicial {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--papel-hondo);
  font-family: var(--letra-titulo);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
}

/* The lead's badge: the Portal's dark rounded square. */
.inicial-grande {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: var(--accion);
  color: var(--accion-texto);
  font-size: 1.25rem;
}

.filas {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fila {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--borde);
}

.maqueta-barra + .filas > .fila:first-child {
  border-top: 0;
}

/* The inbox as the board's cards: one white card per conversation, the one that waits for a
   person outlined in red. */
.filas-bandeja {
  display: grid;
  gap: 0.5rem;
  padding: 0.625rem;
}

.filas-bandeja > .fila {
  padding: 0.75rem 0.75rem 0.6875rem;
  border: 1px solid var(--borde);
  border-radius: 0.875rem;
  background: var(--superficie);
}

.filas-bandeja > .fila:has(.estado-terracota) {
  border-color: var(--timbre);
}

.fila-cuerpo {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.125rem 0.5rem;
  min-width: 0;
}

.fila-nombre {
  font-family: var(--letra-titulo);
  font-size: 0.9375rem;
  font-weight: 700;
}

.fila-tiempo {
  margin-left: auto;
  color: var(--suave);
  font-size: 0.8125rem;
}

.fila-detalle {
  flex-basis: 100%;
  color: var(--suave);
  font-size: 0.875rem;
  line-height: 1.4;
}

.fila-hora {
  flex: none;
  width: 3.25rem;
  padding-top: 0.0625rem;
  color: var(--tinta);
  font-family: var(--letra-titulo);
  font-weight: 700;
  line-height: 1.4;
}

.estado {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 0.3125rem;
  padding: 0.125rem 0.625rem 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--papel-hondo);
  color: var(--tinta);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.estado::before {
  content: "";
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--suave);
}

.estado-salvia {
  background: var(--brote-tinte);
  color: var(--brote);
}

.estado-salvia::before {
  background: var(--brote-vivo);
}

.estado-terracota {
  background: var(--timbre-tinte);
  color: var(--timbre);
}

.estado-terracota::before {
  background: var(--timbre);
}

.datos {
  margin: 0;
}

.datos > div {
  display: grid;
  grid-template-columns: 5.25rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6875rem 1rem;
  border-top: 1px solid var(--borde);
}

.datos dt {
  color: var(--suave);
  font-size: 0.875rem;
  line-height: 1.6;
}

.datos dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
}

.datos .estado {
  margin-top: 0;
}

/* The interest meter: three rising bars, as many lit as the level (decorative: the tag says it). */
.medidor {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.1875rem;
  height: 1rem;
}

.medidor > span {
  width: 0.3125rem;
  height: 0.4375rem;
  border-radius: 999px;
  background: var(--borde);
}

.medidor > span:nth-child(2) {
  height: 0.6875rem;
}

.medidor > span:nth-child(3) {
  height: 1rem;
}

.medidor-1 > span:first-child,
.medidor-2 > span:nth-child(-n + 2),
.medidor-3 > span {
  background: var(--timbre);
}

.vista-figura figcaption {
  max-width: 26rem;
  text-wrap: pretty;
  margin-top: 0.875rem;
  padding-inline: 0.25rem;
  line-height: 1.45;
}

/* --- Questions: plain disclosures (details and summary work without scripts) ------------------ */

.banda .preguntas-rejilla h2 {
  margin-bottom: 1.5rem;
}

.preguntas {
  max-width: 46rem;
  border-top: 1px solid var(--borde-fuerte);
}

.pregunta {
  border-bottom: 1px solid var(--borde-fuerte);
}

.pregunta summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding-block: 1rem;
  cursor: pointer;
  font-family: var(--letra-titulo);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
}

.pregunta summary::-webkit-details-marker {
  display: none;
}

.pregunta summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--borde-fuerte);
  border-radius: 50%;
  background: var(--superficie);
  color: var(--tinta);
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1;
}

.pregunta summary:hover::after,
.pregunta[open] summary::after {
  border-color: var(--accion);
  background: var(--accion);
  color: var(--accion-texto);
}

.pregunta[open] summary::after {
  transform: rotate(45deg);
}

.pregunta summary:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.pregunta p {
  max-width: 40rem;
  margin: 0 0 1.25rem;
  color: var(--suave);
}

/* --- Privacy and support (optional band, off by default) --------------------------------------- */

.garantias {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.garantias .icono {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 1rem;
}

.garantias h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
}

.garantias p {
  max-width: 24rem;
  margin: 0;
  color: var(--suave);
}

/* --- Closing band ---------------------------------------------------------------------------- */

/* The closing band: the Portal's one bold tile (ink; inverted in the dark). */
.cierre {
  --foco: var(--cierre-texto);
  background: var(--cierre);
  color: var(--cierre-texto);
}

.cierre-fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.cierre h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem);
}

.cierre p {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
}

/* --- Legal pages ----------------------------------------------------------------------------- */

.encabezado-doc {
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}

.encabezado-doc h1 {
  max-width: 22ch;
  margin: 0 0 0.75rem;
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 3.25rem);
  letter-spacing: -0.035em;
}

.encabezado-doc .bajada {
  margin-bottom: 1.5rem;
}

.vigencia {
  margin: 0;
  color: var(--suave);
  font-size: 0.9375rem;
}

.documento {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 4.5rem;
}

.indice {
  align-self: start;
  padding: 1.25rem 1.25rem 0.75rem;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.indice h2 {
  margin: 0 0 0.75rem;
  font-family: var(--letra-texto);
  font-size: 0.9375rem;
  letter-spacing: 0;
}

.indice ol {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--suave);
}

.indice li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.indice a {
  color: var(--tinta);
  text-decoration: none;
}

.indice a:hover {
  text-decoration: underline;
}

.texto {
  min-width: 0;
  max-width: 42rem;
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.5rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
  line-height: 1.7;
}

.texto section {
  scroll-margin-top: 1.5rem;
}

.texto h2 {
  margin: 2.75rem 0 0.875rem;
  font-size: 1.5rem;
  line-height: 1.2;
}

.texto > section:first-of-type h2 {
  margin-top: 2rem;
}

.texto ul,
.texto ol {
  padding-left: 1.375rem;
}

.texto li {
  margin-bottom: 0.375rem;
}

.texto table {
  width: 100%;
  margin: 0 0 1rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.texto th,
.texto td {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--borde);
  text-align: left;
  vertical-align: top;
}

.texto th {
  font-family: var(--letra-titulo);
  font-weight: 600;
}

.ficha {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.5rem 1.5rem;
}

.ficha dt {
  color: var(--suave);
  font-weight: 600;
}

.ficha dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.pendiente {
  margin: 1rem 0;
  padding: 0.875rem 1.125rem;
  border-left: 4px solid var(--pendiente-borde);
  border-radius: 0 0.75rem 0.75rem 0;
  background: var(--pendiente-fondo);
  font-size: 0.9375rem;
}

.texto > .pendiente:first-child {
  margin-top: 0;
}

.pasos {
  padding: 0;
  list-style: none;
  counter-reset: paso;
}

.texto .pasos {
  padding-left: 0;
}

.pasos > li {
  position: relative;
  min-height: 2.25rem;
  margin-bottom: 1.25rem;
  padding-left: 3.25rem;
  counter-increment: paso;
}

.pasos > li::before {
  content: counter(paso);
  position: absolute;
  top: -0.125rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 2px solid var(--accion);
  border-radius: 50%;
  color: var(--tinta);
  font-family: var(--letra-titulo);
  font-weight: 700;
  line-height: 1;
}

.pasos ul {
  margin: 0.5rem 0;
  list-style: disc;
}

/* --- Footer ---------------------------------------------------------------------------------- */

.pie {
  border-top: 1px solid var(--borde);
  background: var(--vidrio);
  color: var(--suave);
  font-size: 0.9375rem;
}

.pie-rejilla {
  display: grid;
  gap: 1.5rem;
  padding-block: 2rem 2.5rem;
}

.pie-marca {
  margin-bottom: 0.25rem;
}

.pie-datos,
.pie-paginas ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pie-datos li,
.pie-paginas a {
  display: inline-block;
  padding-block: 0.3125rem;
}

.pie a:not(.pie-marca) {
  color: var(--tinta);
  text-decoration: none;
}

.pie a:not(.pie-marca):hover {
  text-decoration: underline;
}

.pie-paginas a[aria-current="page"] {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* --- MinAgent's page: the same site, with copper as its accent ---------------------------------
   Copper (#c96a2c, from MinAgent's chart palette) marks what the page is about: the cell a figure
   comes from, its chart line, the language and segment tags. As a mark it keeps 3:1 on white; as
   text it is the darker --cobre-texto (6.2:1 on white). The hero's spreadsheet is the page's one
   strong element: a cited cell selected as in a spreadsheet (copper box and fill handle, its
   column letter and row number lit), and the finding below with the same copper reference. */

.pagina-minagent {
  --cobre: #c96a2c;
  --cobre-texto: #9a4a17;
  --cobre-tinte: #f9ebe0;
  --cobre-hondo: #a4521f;
  --cobre-hondo-texto: #ffffff;
  --cobre-sobre-tinta: #f3bf98;
  --luz-cobre: rgb(201 106 44 / 0.14);
}

@media (prefers-color-scheme: dark) {
  .pagina-minagent {
    --cobre: #e08a4f;
    --cobre-texto: #e39a62;
    --cobre-tinte: #3a2619;
    --cobre-hondo: #e39a62;
    --cobre-hondo-texto: #10161d;
    --cobre-sobre-tinta: #8f4416;
    --luz-cobre: rgb(201 106 44 / 0.1);
  }
}

/* The window's light, copper from the top right instead of sand. */
.pagina-minagent::before {
  background:
    radial-gradient(48rem 36rem at 100% 0%, var(--luz-cobre), transparent 70%),
    radial-gradient(60rem 40rem at 30% 112%, var(--luz-salvia), transparent 70%),
    radial-gradient(30rem 24rem at -6% 40%, var(--luz-arena), transparent 70%);
}

.portada-minagent {
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

/* The product's name over the headline: a small selected cell as its sign. */
.producto {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin: 0 0 1.25rem;
  font-family: var(--letra-titulo);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.producto-signo {
  position: relative;
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  border: 2px solid var(--cobre);
  border-radius: 0.1875rem;
  background: var(--cobre-tinte);
}

.producto-signo::after {
  content: "";
  position: absolute;
  right: -0.3125rem;
  bottom: -0.3125rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border: 1.5px solid var(--papel);
  background: var(--cobre);
}

/* The example spreadsheet. */
.hoja {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.5rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
  overflow: hidden;
}

.hoja-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.875rem 1.125rem;
  border-bottom: 1px solid var(--borde);
}

.hoja-archivo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  font-family: var(--letra-titulo);
  font-size: 0.9375rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hoja-icono {
  flex: none;
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: var(--cobre);
  stroke-width: 2;
  stroke-linejoin: round;
}

.hoja-barra .estado {
  margin-top: 0;
}

.estado-cobre {
  background: var(--cobre-tinte);
  color: var(--cobre-texto);
}

.estado-cobre::before {
  background: var(--cobre);
}

.hoja-marco {
  padding: 0.75rem;
}

.hoja-tabla {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--borde);
  background: var(--superficie);
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.hoja-tabla th,
.hoja-tabla td {
  padding: 0.4375rem 0.625rem;
  border: 1px solid var(--borde);
  text-align: left;
  vertical-align: top;
}

.hoja-tabla td + td {
  text-align: right;
}

/* Column letters and row numbers, as a spreadsheet draws them; the cited cell's are lit. */
.hoja-tabla thead th,
.hoja-tabla tbody th,
.hoja-esquina {
  background: var(--papel-hondo);
  color: var(--suave);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.hoja-tabla tbody th {
  width: 2rem;
  padding-inline: 0.25rem;
}

.hoja-tabla .hoja-activa {
  background: var(--cobre-tinte);
  color: var(--cobre-texto);
  font-weight: 700;
}

.hoja-rotulos td {
  color: var(--tinta);
  font-weight: 600;
  vertical-align: bottom;
}

/* The cited cell: a copper selection box with its fill handle. */
.hoja-tabla .hoja-fuente {
  position: relative;
  background: var(--cobre-tinte);
  box-shadow: inset 0 0 0 2px var(--cobre);
  color: var(--cobre-texto);
  font-weight: 700;
}

.hoja-fuente::after {
  content: "";
  position: absolute;
  right: -0.25rem;
  bottom: -0.25rem;
  z-index: 1;
  width: 0.4375rem;
  height: 0.4375rem;
  border: 1.5px solid var(--superficie);
  background: var(--cobre);
}

.hallazgo {
  display: grid;
  gap: 1rem;
  padding: 0.25rem 1.125rem 1.125rem;
}

.hallazgo-texto {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}

/* The cell a figure comes from, in the same copper box as the cell itself. */
.celda-ref {
  display: inline-block;
  margin-right: 0.375rem;
  padding: 0 0.4375rem;
  border: 2px solid var(--cobre);
  border-radius: 0.3125rem;
  background: var(--cobre-tinte);
  color: var(--cobre-texto);
  font-family: var(--letra-titulo);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  line-height: 1.45;
}

.grafico {
  min-width: 0;
}

.grafico-dibujo {
  width: 100%;
  height: auto;
}

.grafico-banda {
  fill: var(--papel-hondo);
}

.grafico-linea {
  fill: none;
  stroke: var(--cobre);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.grafico-punto {
  fill: var(--superficie);
  stroke: var(--cobre);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.grafico-punto-fuente {
  fill: var(--cobre);
  stroke: var(--superficie);
}

/* The cited point's key in the caption: the same copper dot. */
.grafico-clave {
  display: inline-block;
  width: 0.625rem;
  height: 0.625rem;
  margin-right: 0.3125rem;
  border-radius: 50%;
  background: var(--cobre);
  vertical-align: 0.0625rem;
}

.grafico-pie {
  margin: 0.25rem 0 0;
  color: var(--suave);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.hoja figcaption {
  padding: 0.75rem 1.125rem;
  border-top: 1px solid var(--borde);
  color: var(--suave);
  font-size: 0.875rem;
}

/* Copper dots, icon tiles and step numbers. */
.canales-cobre li::before {
  background: var(--cobre);
}

.tarjetas-cobre .icono {
  background: var(--cobre-hondo);
  stroke: var(--cobre-hondo-texto);
}

.garantias-cobre .icono {
  stroke: var(--cobre);
}

.etapas-cobre .etapa-numero {
  background: var(--cobre-hondo);
  color: var(--cobre-hondo-texto);
}

/* One fact, its readings: the fact on an ink tile, the readings branching from a copper line. */
.lecturas-rejilla {
  display: grid;
  gap: 1.5rem;
}

.hecho {
  align-self: start;
  margin: 0;
  padding: 1.5rem 1.5rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--cierre);
  color: var(--cierre-texto);
  font-family: var(--letra-titulo);
  font-size: clamp(1.3125rem, 1.15rem + 0.6vw, 1.625rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-wrap: balance;
}

.hecho .celda-ref {
  display: table;
  margin: 0 0 0.875rem;
  border-color: var(--cobre);
  background: transparent;
  color: var(--cobre-sobre-tinta);
  letter-spacing: 0;
}

.lecturas {
  position: relative;
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0 0 0 1.5rem;
  list-style: none;
}

.lecturas::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 1.75rem;
  left: 0;
  border-left: 2px solid var(--cobre);
}

.lectura {
  position: relative;
  padding: 1rem 1.25rem 1.0625rem;
  border: 1px solid var(--vidrio-borde);
  border-radius: 1.125rem;
  background: var(--vidrio-claro);
  box-shadow: var(--sombra-vidrio);
}

.lectura::before {
  content: "";
  position: absolute;
  top: 1.625rem;
  left: -1.5rem;
  width: 1.5rem;
  border-top: 2px solid var(--cobre);
}

.lectura h3 {
  margin: 0 0 0.25rem;
  color: var(--cobre-texto);
  font-size: 1.0625rem;
}

.lectura p {
  margin: 0;
  line-height: 1.5;
}

/* The example meeting: segments with their speaker, language and translation; the summary cites
   them by number; the exports are drawings, not links. */
.reunion {
  margin: 0;
}

.reunion > figcaption {
  margin-top: 0.875rem;
  padding-inline: 0.25rem;
  color: var(--suave);
  font-size: 0.9375rem;
}

.reunion-maqueta .maqueta-barra {
  flex-wrap: wrap;
}

.reunion-punto {
  background: var(--cobre);
}

.reunion-proyecto {
  margin-left: auto;
  color: var(--suave);
  font-family: var(--letra-texto);
  font-size: 0.875rem;
  font-stretch: normal;
  font-weight: 400;
}

.reunion-cuerpo {
  display: grid;
}

.tramos {
  margin: 0;
  padding: 0.25rem 1.125rem;
  list-style: none;
}

.tramo {
  padding-block: 0.9375rem;
}

.tramo + .tramo {
  border-top: 1px solid var(--borde);
}

.tramo-cabeza {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  margin: 0 0 0.375rem;
  font-size: 0.875rem;
  line-height: 1.3;
}

.tramo-numero {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.625rem;
  height: 1.625rem;
  border-radius: 50%;
  background: var(--papel-hondo);
  font-family: var(--letra-titulo);
  font-size: 0.8125rem;
  font-weight: 700;
}

.tramo-quien {
  font-family: var(--letra-titulo);
  font-size: 0.9375rem;
  font-weight: 700;
}

.idioma {
  padding: 0.0625rem 0.4375rem;
  border: 1px solid var(--cobre);
  border-radius: 0.3125rem;
  color: var(--cobre-texto);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tramo-hora {
  margin-left: auto;
  color: var(--suave);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
}

.tramo-texto {
  margin: 0;
  line-height: 1.5;
}

.tramo-traduccion {
  margin: 0.5rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--cobre);
  color: var(--suave);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.resumen {
  padding: 1.125rem 1.125rem 1.25rem;
  border-top: 1px solid var(--borde);
  background: var(--banda-clara);
}

.resumen h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}

.resumen-puntos {
  margin: 0;
  padding-left: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.resumen-puntos li + li {
  margin-top: 0.625rem;
}

.tramo-cita {
  display: inline-block;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: var(--cobre-tinte);
  color: var(--cobre-texto);
  font-size: 0.8125rem;
  font-weight: 700;
  white-space: nowrap;
}

.exportar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.125rem 0 0;
  padding: 0;
  list-style: none;
}

.exportar li {
  display: inline-flex;
  align-items: center;
  gap: 0.4375rem;
  min-height: 2.25rem;
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--borde-fuerte);
  border-radius: 999px;
  background: var(--superficie);
  font-family: var(--letra-titulo);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.idiomas-nota {
  margin: 0.125rem 0 0;
  color: var(--suave);
  font-size: 0.9375rem;
}

.cierre-cobre {
  box-shadow: inset 0 4px 0 var(--cobre);
}

/* Phones: the sheet a little tighter, so its four columns fit at 320 px. */
@media (max-width: 35.99rem) {
  .hoja-marco {
    padding: 0.5rem 0.375rem;
  }

  .hoja-tabla {
    font-size: 0.8125rem;
  }

  .hoja-tabla th,
  .hoja-tabla td {
    padding: 0.375rem 0.3125rem;
  }

  .hoja-tabla tbody th {
    width: 1.375rem;
    padding-inline: 0.125rem;
  }

  .hoja-rotulos td {
    hyphens: auto;
  }
}

@media (min-width: 36rem) {
  .hallazgo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
    align-items: start;
  }
}

@media (min-width: 48rem) {
  .lectura {
    display: grid;
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 1rem;
  }

  .lectura h3 {
    margin: 0;
    line-height: 1.5;
  }
}

@media (min-width: 64rem) {
  .portada-minagent .portada-texto {
    padding-bottom: 0;
  }

  .lecturas-rejilla {
    grid-template-columns: minmax(0, 21rem) minmax(0, 1fr);
    gap: 0;
  }

  .lecturas {
    padding-left: 2.5rem;
  }

  .lectura::before {
    left: -2.5rem;
    width: 2.5rem;
  }

  .reunion-cuerpo {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  }

  .resumen {
    border-top: 0;
    border-left: 1px solid var(--borde);
  }
}

/* --- Wider screens --------------------------------------------------------------------------- */

@media (max-width: 47.99rem) {
  .menu-extra {
    display: none;
  }
}

@media (min-width: 36rem) {
  .escena {
    grid-template-areas: "chat torre";
    grid-template-columns: minmax(0, 21rem) minmax(8rem, 14rem);
    justify-content: center;
  }

  .escena-sola {
    grid-template-areas: "torre";
    grid-template-columns: minmax(0, 15rem);
  }

  .torre,
  .escena-sola .torre {
    width: 100%;
  }
}

@media (min-width: 40rem) {
  .tarjetas,
  .plantillas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plantillas {
    grid-auto-rows: 1fr;
  }

  .vistas {
    max-width: 34rem;
  }
}

@media (min-width: 48rem) {
  .etapas {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 2.5rem;
  }

  .etapas > li {
    padding-top: 5rem;
    padding-left: 0;
  }

  .etapas > li:not(:last-child)::after {
    top: 1.5625rem;
    right: -1.25rem;
    bottom: auto;
    left: 4.25rem;
    border-top: 2px dashed var(--borde-fuerte);
    border-left: 0;
  }

  .etapas h3 {
    margin-top: 0;
  }

  .garantias {
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    gap: 2.5rem;
  }

  .pie-rejilla {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
}

@media (min-width: 64rem) {
  .portada-rejilla {
    grid-template-columns: minmax(0, 1fr) minmax(0, 37rem);
    gap: 3rem;
  }

  .portada-texto {
    padding-bottom: clamp(2rem, 5vw, 3.5rem);
  }

  .escena {
    grid-template-columns: minmax(0, 21rem) minmax(0, 14.5rem);
    justify-content: end;
  }

  .escena-sola {
    grid-template-columns: minmax(0, 13rem);
  }

  .tarjetas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .plantillas {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .vistas {
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 1.25rem;
  }

  /* The screens side by side line up (same height) and so do their captions. */
  @supports (grid-template-rows: subgrid) {
    .vistas {
      grid-template-rows: auto auto;
    }

    .vista,
    .vista-figura {
      display: grid;
      grid-row: span 2;
      grid-template-rows: subgrid;
    }
  }

  .preguntas-rejilla {
    display: grid;
    grid-template-columns: minmax(0, 18rem) minmax(0, 46rem);
    gap: 4rem;
  }

  .documento {
    grid-template-columns: 15rem minmax(0, 42rem);
    gap: 4.5rem;
    padding-top: 3.5rem;
  }

  .documento-simple {
    grid-template-columns: minmax(0, 42rem);
  }

  .indice {
    position: sticky;
    top: 1.5rem;
    max-height: calc(100vh - 3rem);
    overflow: auto;
    padding: 0 0 0 1.25rem;
    border: 0;
    border-left: 2px solid var(--borde);
    border-radius: 0;
    background: none;
    box-shadow: none;
  }

  .indice ol {
    padding-left: 1.25rem;
  }
}

/* --- Motion: scroll-driven, only where the browser has it and motion is welcome ---------------
   The tower's windows switch on floor by floor over the first ~18rem of scroll (the one always lit
   stays lit), and the cards and steps rise into place as they enter. Without support, or with
   reduced motion, none of this applies: the tower is lit and everything is in place. */

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .pregunta summary::after {
    transition: transform 0.2s ease;
  }

  @supports (animation-timeline: view()) {
    .pagina-home .piso {
      animation: encender linear both;
      animation-timeline: scroll(root);
    }

    .pagina-home .p0 {
      animation-range: 1rem 1.875rem;
    }

    .pagina-home .p1 {
      animation-range: 2.5rem 3.375rem;
    }

    .pagina-home .p2 {
      animation-range: 4rem 4.875rem;
    }

    .pagina-home .p3 {
      animation-range: 5.5rem 6.375rem;
    }

    .pagina-home .p4 {
      animation-range: 7rem 7.875rem;
    }

    .pagina-home .p5 {
      animation-range: 8.5rem 9.375rem;
    }

    .pagina-home .p6 {
      animation-range: 10rem 10.875rem;
    }

    .pagina-home .p7 {
      animation-range: 11.5rem 12.375rem;
    }

    .pagina-home .p8 {
      animation-range: 13rem 13.875rem;
    }

    .pagina-home .p9 {
      animation-range: 14.5rem 15.375rem;
    }

    .pagina-home .p10 {
      animation-range: 16rem 16.875rem;
    }

    .pagina-home .p11 {
      animation-range: 17.5rem 18.375rem;
    }

    .tarjeta,
    .etapas > li,
    .garantias > li {
      animation: subir linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }

    .tarjeta:nth-child(3n + 2),
    .etapas > li:nth-child(2),
    .garantias > li:nth-child(2) {
      animation-range: entry 25% cover 35%;
    }

    .tarjeta:nth-child(3n),
    .etapas > li:nth-child(3),
    .garantias > li:nth-child(3) {
      animation-range: entry 40% cover 40%;
    }

    /* The template examples arrive like messages (the bubble, then its buttons), and the Portal
       screens rise into place one after another. */
    .burbuja,
    .respuestas li,
    .boton-enlace {
      animation: llegar linear both;
      animation-timeline: view();
      animation-range: entry 15% cover 30%;
    }

    .respuestas li,
    .boton-enlace {
      animation-range: entry 40% cover 40%;
    }

    .vista {
      animation: subir linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 25%;
    }

    .vista:nth-child(2) {
      animation-range: entry 20% cover 32%;
    }

    .vista:nth-child(3) {
      animation-range: entry 35% cover 40%;
    }

    /* MinAgent's page: the readings branch out one after another, and the meeting's segments
       arrive like the lines of a transcript. */
    .lectura,
    .tramo {
      animation: llegar linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }

    .lectura:nth-child(2),
    .tramo:nth-child(2) {
      animation-range: entry 20% cover 34%;
    }

    .lectura:nth-child(3),
    .tramo:nth-child(3) {
      animation-range: entry 30% cover 38%;
    }

    .lectura:nth-child(4),
    .tramo:nth-child(n + 4) {
      animation-range: entry 40% cover 42%;
    }
  }
}

@keyframes encender {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes llegar {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .saltar,
  .menu,
  .pie-paginas,
  .torre,
  .indice {
    display: none;
  }

  body::before {
    display: none;
  }

  .cierre {
    background: none;
    color: #000000;
  }
}
