/* The company site's only stylesheet: system fonts, nothing from other sites (the CSP allows
   this file and nothing else: no scripts, no inline styles), light and dark schemes. Text
   contrast is at least 4.5:1 in both (WCAG 2.2 AA), also over the window's lights.
   The idea: the InmoAgent Portal's own look («Ventanal»). White first: near-white paper with the
   Portal's soft window lights (sand from the right, sage from below; never blue), white frosted
   cards with thin lines, crisp ink text. Ink is the strong colour (the primary pills, the step
   numbers, the closing band); the Portal's «timbre» red marks what needs a person, as on the
   board; small vivid touches keep it awake: a fresh green for what is confirmed or live, amber
   for the lit windows of the white tower in the hero, which switch on floor by floor as the page
   scrolls (scroll-driven animations, only where the browser has them and motion is welcome;
   elsewhere the tower is simply lit). Dark follows the Portal's «noche». */
: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;
}

/* --- 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%;
    }
  }
}

@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;
  }
}
