/* IBM Plex Sans, hosted locally (see fonts/LICENSE.txt) — never a link to a
   font CDN: every visit would request something from an external server,
   exactly what this project promises it doesn't do. */
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/ibm-plex-sans-700.woff2") format("woff2");
}

/* One dark theme for the whole interface. Every colour of every stylesheet
   comes from here, so a palette change is a change to this block only. The
   pairs a reader has to tell apart are checked against WCAG AA: 4.5:1 for
   text on the backgrounds it sits on, 3:1 for the edge of a control. The
   printed pages (the CV and the letter) swap these for the light set in
   cv_preview.css. */
:root {
  /* Surfaces, from the window up: a card sits on the page, a hovered row or
     a quoted block on the card. A text field is sunk below its card. */
  --fondo-pagina: #17191c;
  --fondo: #212429;
  --fondo-suave: #2a2e34;
  --fondo-campo: #191b1f;
  --texto: #e7e9ea;
  --texto-suave: #9ba1a6;
  /* Card edges and separators, which only group things. */
  --borde: #33383e;
  /* The edge that makes a field or a button recognisable: 3:1 on every surface. */
  --borde-control: #737980;
  --acento: #5b9bd5;
  /* Lighter: the accent as text that has to stand out, and the hover of an accent button. */
  --acento-fuerte: #82b4e2;
  --texto-sobre-acento: #101214;
  --peligro: #f2706a;
  --peligro-fondo: #3a2022;
  --aviso-fondo: #1c2a38;
  --aviso-borde: #3d6a94;
  /* The floating notice after an action, and its error variant. */
  --toast-fondo: #232a33;
  --toast-borde: #3a424d;
  --toast-error-fondo: #2a1f22;
  --toast-error-borde: #6b3a3e;
  /* One set per CV status (and support thread status) badge. */
  --estado-amarillo: #e3c06a;
  --estado-amarillo-fondo: #332d1c;
  --estado-amarillo-borde: #6b5a2a;
  --estado-verde: #6fd39b;
  --estado-verde-fondo: #17302a;
  --estado-verde-borde: #2f6a4c;
  --estado-morado: #c3b4e8;
  --estado-morado-fondo: #2a2538;
  --estado-morado-borde: #54487a;
  --estado-naranja: #eaa874;
  --estado-naranja-fondo: #362a20;
  --estado-naranja-borde: #75502e;
  /* How an interview went: the history's dots and the dot of an interview's reason. */
  --resultado-bien: #6fd39b;
  --resultado-regular: #e3c06a;
  --resultado-mal: #f2706a;
  --resultado-ninguno: #737980;
  /* The balloon with an interview's reason: near-black and opaque so what is
     behind it never shows through. */
  --fondo-globo: #0d1014;
  /* The chosen «Bien / Regular / Mal» is filled whole with a light tint of
     its colour, with dark text on it. */
  --resultado-bien-relleno: #a8e0bf;
  --resultado-bien-texto: #10281b;
  --resultado-regular-relleno: #f0d98f;
  --resultado-regular-texto: #2e2409;
  --resultado-mal-relleno: #f2a7a7;
  --resultado-mal-texto: #33100f;
  /* The sheet icon of a saved document: a page, white on any theme. */
  --hoja-fondo: #ffffff;
  --hoja-texto: #2a2e34;
  /* The button of the sign-in provider keeps the provider's own light look. */
  --proveedor-fondo: #e7e9ea;
  --proveedor-fondo-hover: #ffffff;
  --proveedor-texto: #17191c;
  --sombra: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 14px rgba(0, 0, 0, 0.25);
  --sombra-alta: 0 2px 4px rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.4);
  --sombra-boton: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sombra-boton-alta: 0 4px 10px rgba(0, 0, 0, 0.4);
  /* Behind a dialog. */
  --velo: rgba(0, 0, 0, 0.6);
  --radio: 8px;
  --radio-tarjeta: 14px;
  /* Side gap of the footer and every page width below: the same 1.25rem as
     always on a phone, growing on a wide screen. */
  --relleno-lateral: clamp(1.25rem, 3vw, 3rem);
  --ancho-lectura: 52rem;
  --ancho-menu: 17rem;
  /* Between one field of a form and the next, wherever fields are stacked
     (`.pila`, and the two-column rows inside it). */
  --espacio-campos: 1.1rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--texto);
  background: var(--fondo-pagina);
  line-height: 1.5;
}

/* Page widths. Every screen picks one through `clase_principal` in
   base.html, never a max-width of its own:
   - ancho-amplio: almost the whole window, for lists, boards and two
     columns. Capped so a 2560 px monitor does not get 2400 px rows.
   - ancho-lectura: what a form or a long text is comfortable at.
   - ancho-completo: the whole window, for a page that lays out its own
     side panel (Settings: categories against the left edge).
   The footer takes ancho-lectura, so it sits on the card's axis. */
.ancho-amplio {
  max-width: calc(96rem + 2 * var(--relleno-lateral));
  margin-inline: auto;
  padding-inline: var(--relleno-lateral);
}

.ancho-lectura {
  max-width: calc(var(--ancho-lectura) + 2 * var(--relleno-lateral));
  margin-inline: auto;
  padding-inline: var(--relleno-lateral);
}

/* Settings: no gap at all, so the categories panel runs down to the bottom
   edge of the window. The page is a column as tall as the window and the
   panel takes whatever the menu bar of a narrow window leaves above it. */
body:has(.contenido.ancho-completo) { display: flex; flex-direction: column; min-height: 100vh; }
.contenido.ancho-completo { padding: 0; flex: 1; display: flex; flex-direction: column; }
/* Edge to edge up to a 2560 px window; beyond that (an ultrawide screen, or
   any screen zoomed out) it stops and centres, like the other two widths. */
.ancho-completo { width: 100%; max-width: 160rem; margin-inline: auto; }

/* On a wide page a text meant to be read would otherwise run the whole row:
   kept to a reading line, about 75 characters. Help texts (not the row of
   sort links, laid out against the right edge) and a pasted posting or a
   saved proposal. A help text that must run the whole width says so with
   `ayuda-ancha`. */
.ancho-amplio :is(p.ayuda:not(.ayuda-ancha), .bloque-texto) { max-width: 75ch; }

/* No underline, default or hover: the blue and the 600 weight already
   set a link apart from plain text. Same restraint as Toss — one accent
   for everything interactive, no extra decoration. */
a {
  color: var(--acento);
  font-weight: 600;
  text-decoration: none;
}

/* A long address or URL inside a text breaks rather than pushing the page sideways. */
:is(p, li, dd) { overflow-wrap: break-word; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 1.65rem; font-weight: 700; margin: 1.25rem 0 0.5rem; }

h2 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 0.5rem; }
h3 { font-size: 1rem; font-weight: 600; margin: 1rem 0 0.35rem; }

/* The title of a page, and the line of help right under it. */
.titulo-pagina { text-align: center; }
.titulo-pagina + p.ayuda { margin-inline: auto; text-align: center; }

p.ayuda, .ayuda {
  color: var(--texto-suave);
  font-size: 0.9rem;
}

/* The menu: a column pinned against the left edge on a wide window, as tall
   as the window, with the account at the bottom. Below that width it is a
   bar on top of the page that scrolls away with it, wrapping as needed, so it
   never covers the page however narrow or zoomed the window is. */

.menu-lateral {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem var(--relleno-lateral);
  background: var(--fondo-pagina);
  border-bottom: 1px solid var(--borde);
}

.marca {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--texto);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--texto);
  font-weight: 400;
  text-decoration: none;
}

.nav .icono { flex: none; }
.nav a.activo { color: var(--acento); font-weight: 700; }

/* Without a session (the account screens): the name of the app, and the way in. */
.menu-entrar { margin-left: auto; }

/* The account: its name, and a three-dot button with the session options. */
.menu-cuenta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-left: auto;
}

.menu-cuenta-datos { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.menu-cuenta-nombre { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-cuenta-correo { color: var(--texto-suave); font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.menu-cuenta-opciones > summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--texto);
  cursor: pointer;
  list-style: none;
}
.menu-cuenta-opciones > summary::-webkit-details-marker { display: none; }
.menu-cuenta-opciones > summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }

.menu-cuenta-lista {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  z-index: 20;
  min-width: 16rem;
  max-width: calc(100vw - 2rem);
  margin: 0;
  padding: 0.4rem;
  list-style: none;
  background: var(--fondo);
  border: 1px solid var(--borde-control);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}

.menu-cuenta-lista a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: var(--radio);
  color: var(--texto);
  font-weight: 600;
}
.menu-cuenta-lista a.activo { color: var(--acento); }

/* Unread support replies, on the button that leads to them. */
.menu-cuenta-aviso {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  min-width: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--acento);
  color: var(--texto-sobre-acento);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
}

@media (width > 56.25rem) {
  body.con-menu { padding-left: var(--ancho-menu); }

  .con-menu .menu-lateral {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: var(--ancho-menu);
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 1.5rem;
    padding: 1rem 0.75rem 1.25rem;
    border-bottom: 0;
    border-right: 1px solid var(--borde);
    /* A low window (a laptop zoomed in) scrolls the column on its own
       rather than cutting off the account at the bottom. */
    overflow-y: auto;
  }

  .con-menu .marca { padding: 0.25rem 0.7rem; }
  /* The sections share the height the column has left, each at least a
     comfortable row: a low window keeps that row and the column scrolls. */
  .con-menu .nav { flex: 1 0 auto; flex-direction: column; flex-wrap: nowrap; gap: 0.25rem; }
  .con-menu .nav a { flex: 1 1 0; min-height: 3rem; padding: 0.6rem 0.8rem; font-size: 1.05rem; }

  .con-menu .menu-cuenta { margin: 0; padding: 0.5rem 0.25rem 0.5rem 0.8rem; }
  .con-menu .menu-cuenta-datos { flex: 1 1 auto; }
  /* At the bottom of the window the options open upwards. */
  .con-menu .menu-cuenta-lista { top: auto; bottom: calc(100% + 0.4rem); left: 0; right: auto; }
}

/* Content */

.contenido { padding-block: 1.5rem 3rem; }

.pie {
  color: var(--texto-suave);
  font-size: 0.85rem;
  text-align: center;
  padding-block: 1rem 2rem;
}

/* Without the side menu (the account and legal screens) the footer rests at
   the bottom of the window, not right under the content. */
body.sin-menu { display: flex; flex-direction: column; min-height: 100vh; }
body.sin-menu .pie { margin-top: auto; }
body.sin-menu .pie a { font-weight: normal; }
body.sin-menu .contenido { width: 100%; }

/* Flash notices */

/* Cover letter tone: a segmented control over native radios, so the arrow
   keys move between tones and a screen reader announces one group. */
.selector-tono {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border: 0;
  padding: 0;
  margin: 0 0 0.75rem;
}
.selector-tono legend { float: left; padding: 0; color: var(--texto-suave); }
.segmentado {
  display: inline-flex;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  overflow: hidden;
}
.segmentado label { position: relative; display: block; }
.segmentado label + label { border-left: 1px solid var(--borde-control); }
.segmentado input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.segmentado span { display: block; padding: 0.3rem 0.8rem; font-size: 0.9rem; }
.segmentado label:hover span { background: var(--fondo-suave); }
.segmentado input:checked + span { background: var(--acento); color: var(--texto-sobre-acento); }
.segmentado input:focus-visible + span { outline: 2px solid var(--texto); outline-offset: -4px; }
/* The same control made of buttons: one press saves ("how it went"). */
.segmentado-botones button { padding: 0.3rem 0.8rem; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: 0.9rem; color: inherit; }
.segmentado-botones button + button { border-left: 1px solid var(--borde-control); }
.segmentado-botones button:hover { background: var(--fondo-suave); }
.segmentado-botones button:is([aria-pressed="true"], [aria-selected="true"]) { background: var(--acento); color: var(--texto-sobre-acento); }

.avisos { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.aviso {
  background: var(--aviso-fondo);
  border: 1px solid var(--aviso-borde);
  border-radius: var(--radio);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
}

/* The notices after an action. In the flow of the page as a plain line until
   toast.js floats them (`.flotantes`) at the bottom of the window, where they
   do not move anything. The error one has a light round button to close it,
   so its dark cross reads on the dark notice. */
.toasts { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.toasts.flotantes {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.5rem;
  margin: 0;
  padding: 0 1rem;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: min(42rem, 100%);
  padding: 0.55rem 1.1rem;
  background: var(--toast-fondo);
  border: 1px solid var(--toast-borde);
  border-radius: 1.4rem;
  box-shadow: var(--sombra-alta);
  font-size: 0.95rem;
  pointer-events: auto;
}
.toast-error { background: var(--toast-error-fondo); border-color: var(--toast-error-borde); }
.toast-icono { flex: none; font-weight: 700; color: var(--estado-verde); }
.toast-deleted .toast-icono, .toast-error .toast-icono { color: var(--peligro); }
.toast-info .toast-icono { color: var(--acento-fuerte); }
.toast-form { margin: 0; flex: none; }
.toast-deshacer, .toast-cerrar { font: inherit; cursor: pointer; }
.toast-deshacer { padding: 0; border: 0; background: none; color: var(--acento-fuerte); font-weight: 600; }
.toast-deshacer:hover { text-decoration: underline; }
.toast-cerrar {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--peligro);
  color: var(--texto-sobre-acento);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
}
.toast-cerrar:hover { filter: brightness(1.12); }
.toast-cerrar[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .toasts.flotantes .toast { animation: toast-entra 0.2s ease-out; transition: opacity var(--fundido-aviso, 0.2s); }
  .toast.saliendo { opacity: 0; }
  .aviso-se-va { transition: opacity var(--fundido-aviso, 0.2s); }
  .aviso-se-va.saliendo { opacity: 0; }
}
@keyframes toast-entra { from { opacity: 0; transform: translateY(0.5rem); } }

/* The results title sits centered, with room above the notice and the list. */
#resultados-busqueda > h2 { text-align: center; margin: 2rem 0 1.1rem; }
/* Its waiting notice sits right under that title, with the list's spacing
   rather than the standard room of a waiting notice. */
#resultados-busqueda > .aviso-espera { margin: 0 auto 1.25rem; }

/* The informative notice: the blue of `.aviso` with the «ℹ» of the other
   notices that explain, as wide as its sentence and centered. No `display`
   on the box itself, so `hidden` works; the rows inside are the flex ones. */
.aviso-info {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 1.25rem;
}
.aviso-info-fila { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin: 0; }
.aviso-info-fila[hidden] { display: none; }
.aviso-info-icono { flex: none; font-weight: 700; color: var(--acento-fuerte); }
/* Balanced, so a sentence that does not fit one line breaks into two of
   about the same length, never a short one under a long one. */
.aviso-info-fila > span:not(.aviso-info-icono) { text-wrap: balance; }
/* The text action of a notice or a row: blue, not a bordered button. */
.accion-texto {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--acento-fuerte);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.accion-texto:hover { background: none; color: var(--texto); }
/* The informative notice with an action: it ends in a text action right
   behind the sentence. On a narrow screen the sentence keeps the «ℹ» and
   breaks balanced, and the action drops below it, centered. */
.aviso-con-accion .accion-texto { margin-left: 0.4rem; }
@media (max-width: 600px) {
  .aviso-con-accion .aviso-info-fila { display: grid; grid-template-columns: auto 1fr; justify-items: center; }
  .aviso-con-accion .aviso-info-fila > span:not(.aviso-info-icono) { text-align: center; }
  .aviso-con-accion .accion-texto { grid-column: 1 / -1; margin: 0.35rem 0 0; }
}
/* A waiting notice swaps the «ℹ» for the spinner (`loading.css`). */
/* The same notice inside an unfolded posting or a card: a little smaller. */
.aviso-pequeno { padding: 0.55rem 0.85rem; font-size: 0.875rem; }
.aviso-pequeno .aviso-info-icono { font-size: 1.125rem; }
.aviso-antiguedad { text-align: center; }
.aviso-antiguedad .boton { margin-top: 0.5rem; }

.aviso-almacenamiento { margin-bottom: 1.25rem; }
.aviso-almacenamiento p { margin: 0.25rem 0; }
.aviso-almacenamiento ul { margin: 0.5rem 0; padding-left: 1.2rem; }
.aviso-almacenamiento li { margin-bottom: 0.3rem; }

/* Cards */

.tarjeta {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1rem;
}

.tarjeta > :first-child { margin-top: 0; }
.tarjeta > :last-child:not(dialog) { margin-bottom: 0; }

/* Login, registration: a short form reads better narrow and centred. */
.tarjeta-cuenta { max-width: 28rem; margin-inline: auto; }

/* Login and registration share one layout: title, the sign-in providers,
   an "or" divider, then the form with a full-width submit. */
.tarjeta-cuenta { padding: 2rem 1.75rem; }
.tarjeta-cuenta h1 { font-size: 2.2rem; margin-bottom: 1.4rem; }
.proveedores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
  gap: 0.6rem;
}
.boton-proveedor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radio-tarjeta);
  background: var(--proveedor-fondo);
  color: var(--proveedor-texto);
  font-size: 1.05rem;
  text-decoration: none;
}
.boton-proveedor:hover { background: var(--proveedor-fondo-hover); }
.icono-proveedor { width: 1.3rem; height: 1.3rem; }
.separador-o {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.separador-o::before, .separador-o::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--borde);
}
.boton-ancho { width: 100%; justify-content: center; text-align: center; padding-block: 0.8rem; font-size: 1.05rem; }
.tarjeta-cuenta .barra-acciones { margin-top: 1.4rem; }
.cuenta-pie { text-align: center; }
/* The emailed code: eight digits, easy to read back as they are typed. */
.tarjeta-cuenta .campo-codigo input[type] {
  font-size: 1.5rem;
  letter-spacing: 0.3em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.reloj { font-variant-numeric: tabular-nums; font-weight: 600; }
.tarjeta-cuenta .aviso p { margin: 0; }
.formulario-reenvio { margin-top: 1.4rem; }

.lista-tarjetas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.vista-plantilla {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--borde);
}

/* «Adaptar mi CV» under the picture of one template, centred. */
.plantilla-accion {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Template gallery */

.lista-tarjetas-plantillas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.75rem), 1fr));
  gap: 1.25rem;
  /* Clears the heading even for a pressed card, which grows 7%. */
  margin-top: 2.5rem;
}

/* Four per row at most: below this width the auto-fill above already gives four or fewer. */
@media (width >= 68.75rem) {
  .lista-tarjetas-plantillas { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* The whole card is the link to its template, so it keeps the page's text
   colour and weight instead of the link's. */
.tarjeta-plantilla {
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
  position: relative;
  color: inherit;
  font-weight: inherit;
  text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}

/* The card comes towards the reader: it grows a little and lifts off the
   page. `z-index` keeps the grown card above its neighbours. */
.tarjeta-plantilla:hover,
.tarjeta-plantilla:focus-within {
  z-index: 1;
  box-shadow: var(--sombra-alta);
  transform: scale(1.04);
}

.tarjeta-plantilla:active {
  transform: scale(1.07);
}

@media (prefers-reduced-motion: reduce) {
  .tarjeta-plantilla:hover,
  .tarjeta-plantilla:focus-within,
  .tarjeta-plantilla:active {
    transform: none;
  }
}

.tarjeta-plantilla-vista {
  position: relative;
  aspect-ratio: 1 / 1.414;
  background: var(--fondo-suave);
  border-bottom: 1px solid var(--borde);
  overflow: hidden;
}

.tarjeta-plantilla-vista img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* A rendered page image, same ratio as the container (A4) — cover only
     absorbs pixel rounding between the PNG and the container's
     aspect-ratio, not an actual viewer margin. */
  object-fit: cover;
}

.tarjeta-plantilla-cuerpo {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  text-align: center;
}

.tarjeta-plantilla-cuerpo h3 {
  margin: 0;
  font-size: 1rem;
}

/* One template: a round back button in the left margin, level with a
   centred title (three columns so the title is centred on the page). */
.cabecera-plantilla {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  align-items: center;
  column-gap: 0.5rem;
  margin: 1rem 0 1.25rem;
}
.cabecera-plantilla h1 { grid-column: 2; margin: 0; text-align: center; }
.cabecera-plantilla .boton-redondo { grid-column: 1; grid-row: 1; }

/* Bento summary: at-a-glance profile counts */

.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.75rem), 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

/* My CVs has one card per status plus the total, eight in all: four per row
   keeps two even rows instead of five and three. */
@media (width > 40rem) {
  .bento[data-filtro-cvs] { grid-template-columns: repeat(4, 1fr); }
}

.bento-tarjeta {
  display: block;
  width: 100%;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra);
  padding: 0.9rem 1rem;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.bento-tarjeta:hover { box-shadow: var(--sombra-alta); transform: translateY(-1px); }

/* When the bento panel doubles as a filter (My CVs): the active filter's
   card gets the accent border, not just the hover shadow, so it stands
   out even without the mouse over it. */
.bento-tarjeta-activa { border-color: var(--acento); }
.bento[data-filtro-cvs] .bento-tarjeta { text-align: center; }

.bento-cifra {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--acento-fuerte);
  letter-spacing: -0.02em;
}

.bento-etiqueta {
  display: block;
  font-size: 0.85rem;
  color: var(--texto-suave);
  margin-top: 0.15rem;
}

.fila-tarjeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Without min-width:0 a flex child cannot shrink past its content's
   intrinsic width, so an unbroken long word overflows the card instead
   of wrapping. */
.fila-tarjeta > *:first-child { min-width: 0; }
.fila-tarjeta h3 { overflow-wrap: anywhere; }

/* A form button that keeps its own width inside a stacked (.pila) form. */
.boton-ajustado { align-self: flex-start; }

.fila-tarjeta .acciones {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Accordion headers. The button wraps only the title + help text, never
   `.acciones` beside it, so the card's own buttons never toggle it by
   accident. */

.cabecera-acordeon {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.icono-acordeon {
  flex-shrink: 0;
  color: var(--texto-suave);
  margin-top: 0.25rem;
  transition: transform 0.15s ease;
}

/* The global h2 margin would push the title below the arrow. */
.cabecera-acordeon h2 { margin: 0; }

.cabecera-acordeon[aria-expanded="true"] .icono-acordeon {
  transform: rotate(90deg);
}

.contenido-acordeon {
  margin-top: 0.75rem;
}

/* What is dragged whole to reorder it (app.js), in My profile and in the
   Proposal: no text selection or link menu on a long press, which is what
   starts a drag with a finger. */
[data-arrastrable] {
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
html.arrastrando, html.arrastrando * { cursor: grabbing; }

.arrastrable {
  transition: box-shadow 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.arrastrable-arrastrando { opacity: 0.4; }

.arrastrable-destino {
  border-color: var(--acento);
  box-shadow: var(--sombra-alta);
}

/* Forms */

form.pila, .tarjeta.pila { display: flex; flex-direction: column; gap: var(--espacio-campos); }

/* The browser applies `hidden` as `display: none` from its own stylesheet,
   so any `display` in this one wins over it. The UI toggles fields with
   `hidden` from JavaScript (the per-provider fields in Settings, for
   instance), so without this rule a `.campo` marked hidden still renders. */
[hidden] { display: none !important; }

.campo { display: flex; flex-direction: column; gap: 0.3rem; }
.campo :is(label, .etiqueta-campo) { font-weight: 600; font-size: 0.9rem; }
.campo .segmentado label { font-weight: 400; }

.campo-telefono { display: flex; gap: 0.5rem; position: relative; }
.campo-telefono select { flex: 0 0 12rem; }
.campo-telefono input[type="tel"] { flex: 1 1 auto; min-width: 0; }
@media (width <= 30rem) {
  .campo-telefono { flex-direction: column; }
  .campo-telefono select { flex-basis: auto; }
  /* Once phone_country_select.js swaps the <select> for the flag+prefix
     button, the country name that justified stacking on narrow screens is
     gone — the button is as compact as the flag+prefix itself, so it goes
     back to sharing a row with the number, like Jooble. */
  .campo-telefono.selector-telefono-js { flex-direction: row; align-items: flex-start; }
}

/* Contact form: one row per network (name + link + remove). */
.redes-sociales { border: 0; padding: 0; margin: 0; min-width: 0; }
.redes-sociales legend { font-weight: 600; font-size: 0.9rem; padding: 0; margin-bottom: 0.3rem; }
.filas-redes { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.5rem; }
.fila-red { display: flex; gap: 0.5rem; align-items: center; }
.fila-red input[name$="red_nombre"] { flex: 0 0 11rem; min-width: 0; }
.fila-red input[name$="red_enlace"] { flex: 1 1 auto; min-width: 0; }
.redes-sociales [data-anadir-red] { align-self: flex-start; }
@media (width <= 30rem) {
  .fila-red { flex-wrap: wrap; }
  .fila-red input[name$="red_nombre"] { flex: 1 1 calc(100% - 3rem); }
  .fila-red input[name$="red_enlace"] { flex-basis: 100%; order: 3; }
}

/* Old free-text contact lines that fit no field, waiting to be placed. */
.aviso-sin-clasificar {
  background: var(--aviso-fondo);
  border: 1px solid var(--acento);
  border-radius: var(--radio);
  padding: 0.6rem 0.9rem;
}
.aviso-sin-clasificar p { margin-top: 0; }

/* Files of the profile that cannot be read, above the rest of "Mi perfil". */
.ficheros-rotos { margin-bottom: 1.25rem; }
.ficheros-rotos h2 { margin-top: 0; }
.lista-ficheros-rotos { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.lista-ficheros-rotos p { margin: 0 0 0.3rem; }
.lista-ficheros-rotos code { overflow-wrap: anywhere; }
/* The text of a broken profile file, edited as it is. */
textarea.texto-fichero { min-height: 18rem; font-family: ui-monospace, monospace; font-size: 0.9rem; }

/* One line of "Sin clasificar" with its "Mover a…" menu (contact_unsorted.js). */
.lineas-sin-clasificar { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.6rem; }
.linea-sin-clasificar {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 0.5rem 0.7rem;
}
.linea-texto { display: block; overflow-wrap: anywhere; }
.linea-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.4rem; }
.linea-acciones label { display: flex; align-items: center; gap: 0.4rem; font-weight: 600; white-space: nowrap; }
.linea-error { color: var(--peligro); margin: 0.4rem 0 0; }
.linea-confirmacion { margin-top: 0.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.linea-confirmacion p { margin: 0; flex: 1 1 100%; overflow-wrap: anywhere; }

/* Contact details on "Mi perfil": label and value side by side. */
.datos-contacto { display: grid; grid-template-columns: fit-content(50%) minmax(0, 1fr); gap: 0.25rem 0.9rem; margin: 0 0 0.75rem; }
.datos-contacto dt { font-weight: 600; color: var(--texto-suave); overflow-wrap: anywhere; }
.datos-contacto dd { margin: 0; overflow-wrap: anywhere; }

/* Compact flag + dial-code selector that replaces the <select> above when
   phone_country_select.js runs (see that file: the <select> stays in the
   DOM, hidden, as the field the form actually submits). */
.selector-telefono-boton {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-campo);
  color: var(--texto);
  font: inherit;
  cursor: pointer;
}
.selector-telefono-boton:hover { border-color: var(--acento); }
.selector-telefono-boton:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }
.selector-telefono-bandera { display: block; border-radius: 2px; flex: 0 0 auto; }
.selector-telefono-prefijo { font-variant-numeric: tabular-nums; }
.selector-telefono-flecha { font-size: 0.7rem; color: var(--texto-suave); }

.selector-telefono-popup {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 20;
  width: min(20rem, 90vw);
  background: var(--fondo);
  color: var(--texto);
  border: 1px solid var(--borde-control);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.selector-telefono-popup input.selector-telefono-buscar {
  width: 100%;
  padding: 0.45rem 0.6rem;
  background: var(--fondo-campo);
  color: var(--texto);
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  font: inherit;
}

.selector-telefono-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 14rem;
  overflow-y: auto;
}
.selector-telefono-lista li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.4rem;
  border-radius: 6px;
  cursor: pointer;
}
.selector-telefono-lista li:hover,
.selector-telefono-lista li[aria-selected="true"] { background: var(--fondo-suave); }
.selector-telefono-nombre { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.selector-telefono-codigo { flex: 0 0 auto; color: var(--texto-suave); font-variant-numeric: tabular-nums; }

.selector-telefono-sin-resultados { margin: 0; padding: 0.4rem; color: var(--texto-suave); font-size: 0.9rem; }

@media (width <= 30rem) {
  .selector-telefono-popup { width: 100%; }
}

.dos-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espacio-campos);
}

.tres-columnas {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
}

.opciones-tipo { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Search bar: Puesto, País and Ciudad take the free width, the toggle and
   the submit button keep their own; a narrow screen wraps them. */
.barra-busqueda { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.7rem; }
.barra-busqueda .campo { flex: 1 1 7rem; min-width: 0; }
.barra-busqueda .campo:first-child { flex-grow: 2; flex-basis: 9rem; }
.barra-busqueda .campo > label { white-space: nowrap; }
.barra-busqueda .campo-ubicacion { flex-basis: 11rem; }
.barra-busqueda button[hidden] { display: none; }

/* The same search on the other webs: a centered title over outlined buttons
   (or, for several countries, a short table: the country in a column of
   fixed width, its buttons beside it). Taller while the list is empty, when
   they are the way forward; search_progressive.js adds `con-lista` once
   there are postings. */
.otras-webs { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-top: 2.75rem; }
.otras-webs h3 { margin: 0; font-size: 1rem; text-align: center; }
.otras-webs-tabla { align-items: stretch; gap: 0.7rem; }
.otras-webs-tabla h3 { align-self: center; }
.otras-webs-fila { display: flex; align-items: center; gap: 0.9rem; }
.otras-webs-pais { display: flex; align-items: center; flex: 0 0 8rem; min-width: 0; color: var(--texto); font-weight: 600; }
.otras-webs-enlaces { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem; }
.otras-webs-tabla .otras-webs-enlaces { justify-content: flex-start; }
.otras-webs .boton { justify-content: center; height: 2.75rem; padding-inline: 1.4rem; font-size: 0.9375rem; font-weight: 600; }
.otras-webs.con-lista .boton { height: 2.5rem; padding-inline: 1.1rem; font-size: 0.875rem; }
@media (width <= 32rem) {
  .otras-webs-fila { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .otras-webs-pais { flex-basis: auto; }
}

/* Search filters: four equal columns under a thin rule, each option a button
   (a real radio or checkbox stays invisibly over its label, so it works
   without JavaScript and by keyboard). */
[data-filtros-panel] { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.filtros-fila { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.filtro-grupo { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.filtro-grupo legend { padding: 0; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.9rem; }
.filtro-opcion { position: relative; display: block; }
.filtro-opcion input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.filtro-opcion span {
  display: block;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-campo);
  color: var(--texto-suave);
  font-size: 0.92rem;
}
.filtro-opcion:hover span { background: var(--fondo-suave); }
.filtro-opcion input:checked + span {
  background: color-mix(in srgb, var(--acento) 22%, var(--fondo));
  border-color: var(--acento);
  color: var(--texto);
}
.filtro-opcion input:focus-visible + span { outline: 2px solid var(--acento-fuerte); outline-offset: 2px; }

/* The countries are a multiple-choice dropdown in the search bar: a <details>
   whose summary looks like a field and whose list floats under it. The list
   is real checkboxes, so it works with no JavaScript. */
.rotulo-campo { font-weight: 600; font-size: 0.9rem; }
.barra-busqueda .campo > label, .barra-busqueda .campo > .rotulo-campo { text-align: center; }
.barra-busqueda .campo-pais { flex: 0 1 9rem; }
.desplegable-paises { position: relative; }
.desplegable-paises summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-campo);
  cursor: pointer;
  list-style: none;
}
.desplegable-paises summary::-webkit-details-marker { display: none; }
.desplegable-paises summary::after { content: "▾"; color: var(--texto-suave); }
.desplegable-paises[open] summary::after { content: "▴"; }
.desplegable-paises summary:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; border-color: var(--acento); }
.desplegable-paises-lista {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 20;
  min-width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0.3rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo);
  box-shadow: var(--sombra-alta);
}
.campo .pais-casilla { font-weight: 400; display: flex; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radio); cursor: pointer; white-space: nowrap; }
.campo .pais-casilla:hover { background: var(--fondo-suave); }
.campo .pais-casilla input[aria-disabled] { cursor: default; }

/* More specific than ".campo label" (which bolds section labels), so
   these radio labels don't inherit that weight. */
.campo .opcion-tipo { display: flex; align-items: center; gap: 0.4rem; font-weight: 400; cursor: pointer; }

@media (width <= 50rem) {
  .filtros-fila { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width <= 32rem) {
  .filtros-fila { grid-template-columns: 1fr; }
}

@media (width <= 40rem) {
  .dos-columnas { grid-template-columns: 1fr; }
}

@media (width <= 56.25rem) {
  .tres-columnas { grid-template-columns: 1fr; }
}

/* A page layout that only appears on a wide screen. Below 1100 px it is a
   single column in HTML order, as the app was before.

   `.rejilla-tarjetas`: the cards of a page side by side, two per row, with
   `.rejilla-ancha` for the ones that need the whole row. */
.rejilla-tarjetas {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 1rem;
  align-items: start;
}

@media (width >= 68.75rem) {
  .rejilla-tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rejilla-tarjetas > .rejilla-ancha { grid-column: 1 / -1; }
}

/* Adapt: the proposal half done, over the form... */
.adaptar-a-medias {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
  padding: 0.5rem 0.9rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  font-size: 0.9rem;
  color: var(--texto-suave);
}
.adaptar-a-medias a { color: var(--acento-fuerte); }

/* ...the row under the posting: language on the left, the button on the right... */
.adaptar-accion {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.adaptar-idioma { display: flex; align-items: center; gap: 0.75rem; }
.adaptar-idioma-etiqueta { color: var(--texto-suave); font-size: 0.95rem; }
.adaptar-accion .segmentado span { padding: 0.45rem 1.1rem; font-size: 0.95rem; }

/* ...the pasted posting: a tall box, a little larger type and a bigger
   button, since this is the one thing the screen is for... */
textarea#vacante { min-height: 18rem; font-size: 1.05rem; }
.adaptar-accion .boton-primario { padding: 0.7rem 1.8rem; font-size: 1.05rem; }

/* ...and the two cards of the choice, one over the other and centred, with
   room around them but nowhere near the width of the screen. */
.adaptar-opciones {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 40rem;
  margin: 2rem auto 1rem;
}
.adaptar-opcion {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 1.75rem 2rem;
  text-align: center;
}
.adaptar-opcion h2 { margin: 0; font-size: 1.35rem; }
.adaptar-opcion .ayuda { margin: 0; font-size: 0.95rem; }
.adaptar-opcion .boton { margin-top: 0.9rem; padding: 0.65rem 1.6rem; font-size: 1rem; }
.adaptar-opcion-actual { border-color: var(--acento); }
.adaptar-opcion-propuesta { margin: 0; font-size: 1.1rem; font-weight: 650; overflow-wrap: anywhere; }
@media (width < 40rem) {
  .adaptar-accion { flex-direction: column; align-items: stretch; }
  .adaptar-idioma .segmentado { flex: 1; }
  .adaptar-accion .segmentado { display: flex; }
  .adaptar-accion .segmentado label { flex: 1; text-align: center; }
  .adaptar-accion .boton-primario { width: 100%; justify-content: center; }
}

/* My CVs: the eight counts in one row on a wide window. */
@media (width >= 68.75rem) {
  .bento[data-filtro-cvs] { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* The CVs as a grid of cards no narrower than the «sin noticias» line with its
   two buttons needs (32rem), so the line never breaks: one column on a
   narrow window, two or three as the room allows. The side menu takes its
   column from 56.25rem. */
@media (width >= 40rem) {
  .lista-tarjetas[data-lista-cvs] { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 32rem), 1fr)); }
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="datetime-local"],
input[type="date"],
input[type="time"],
.ficha-vacante input[type="number"],
.maquetar-cv-capacidad input[type="number"],
input[type="file"],
select,
textarea {
  font: inherit;
  color: inherit;
  padding: 0.5rem 0.6rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-campo);
  width: 100%;
  transition: border-color 0.15s ease;
}

/* The calendar and clock of a date or time field are drawn by `picker_icons.js`
   (a bare symbol in the text colour, the same in every browser): the browser's
   own indicator is hidden, and the field's right edge is left free for ours. */
input[type="date"],
input[type="time"] { color-scheme: dark; color: var(--texto); }
.con-selector-propio input[type="date"]::-webkit-calendar-picker-indicator,
.con-selector-propio input[type="time"]::-webkit-calendar-picker-indicator { display: none; }
.campo-selector { position: relative; display: inline-flex; align-items: center; max-width: 100%; }
.campo-selector > input { padding-right: 2.4rem; }
.boton-selector {
  position: absolute;
  right: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: calc(100% - 0.5rem);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radio) - 2px);
  background: var(--fondo-campo);
  color: var(--texto);
  cursor: pointer;
}
.boton-selector:hover { background: var(--fondo-suave); }
.boton-selector .icono { width: 1.05rem; height: 1.05rem; }
/* Firefox draws its own button inside the field and does not let a stylesheet
   hide it (it lives in a shadow tree): the field keeps its normal padding so
   that button sits at the right edge, and our opaque button covers it. */
@supports (-moz-appearance: none) {
  .con-selector-propio .campo-selector > input { padding-right: 1.2rem; }
  .con-selector-propio .boton-selector { right: 0.2rem; width: 2.4rem; }
}

::placeholder { color: var(--texto-suave); opacity: 1; }

input[type="checkbox"], input[type="radio"] { accent-color: var(--acento); }

/* No handle: a box grows with its text (textarea_autosize.js) up to a height
   that still leaves the page in view, then scrolls inside. */
textarea {
  resize: none;
  overflow-y: auto;
  min-height: 4.5rem;
  max-height: min(70vh, 32rem);
  font-family: inherit;
}
textarea.alta { min-height: 9rem; }
textarea.campo-carta { min-height: 24rem; line-height: 1.55; }

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--acento);
  outline-offset: 1px;
  border-color: var(--acento);
}

.campo-ilegible input,
.campo-ilegible textarea {
  border-color: var(--peligro);
}

/* The field a «Ver dónde» button has just taken the user to. */
.campo-resaltado {
  border-radius: var(--radio);
  outline: 3px solid var(--acento);
  outline-offset: 4px;
}

.errores {
  background: var(--peligro-fondo);
  border: 1px solid var(--peligro);
  color: var(--peligro);
  border-radius: var(--radio);
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}
.errores ul { margin: 0; padding-left: 1.1rem; }

/* The error of an account-form field: right under it, with the field's border
   in the same red. After the focus rule, so the border stays red on the field
   the cursor lands on. */
.campo-error-texto {
  margin: 0;
  padding-left: 1.25rem;
  text-indent: -1.25rem;
  color: var(--peligro);
  font-size: 0.875rem;
}
/* Not a flex row: a message can hold inline emphasis («…» becomes <strong>),
   which would turn into a column of its own. The sign hangs instead. */
.campo-error-texto::before { content: "⚠"; display: inline-block; width: 1.25rem; text-indent: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--peligro); }

/* Buttons */

.boton, button {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radio);
  border: 1px solid var(--borde-control);
  background: var(--fondo);
  color: var(--texto);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}

.boton:hover, button:not([role="tab"]):hover { background: var(--fondo-suave); border-color: var(--borde-control); }

.boton-primario, button.boton-primario {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
  box-shadow: var(--sombra-boton);
}
.boton-primario:hover, button.boton-primario:hover {
  background: var(--acento-fuerte);
  border-color: var(--acento-fuerte);
  transform: translateY(-1px);
  box-shadow: var(--sombra-boton-alta);
}

.boton-peligro, button.boton-peligro {
  color: var(--peligro);
  border-color: var(--peligro);
  background: var(--fondo);
}
.boton-peligro:hover, button.boton-peligro:hover { background: var(--peligro-fondo); }

/* Outlined button, shared by the settings pages and the link to the gallery. */
.boton-contorno { border-color: var(--acento); color: var(--acento-fuerte); }
.boton-contorno:hover { border-color: var(--acento); }

/* A button that comes towards the reader, like a gallery card. */
.boton-acerca { transition: box-shadow 200ms ease, transform 200ms ease; }
.boton-acerca:hover,
.boton-acerca:focus-visible { box-shadow: var(--sombra-alta); transform: scale(1.05); }
.boton-acerca:active { transform: scale(1.05); }

@media (prefers-reduced-motion: reduce) {
  .boton-acerca:hover,
  .boton-acerca:focus-visible,
  .boton-acerca:active { transform: none; }
}

.boton-pequeno { padding: 0.3rem 0.6rem; font-size: 0.85rem; }

/* A submit button that only exists to be the form's first one, which is what
   Enter presses. Off-screen rather than `display: none`, which some browsers
   do not take as the default button. */
.boton-por-defecto { position: absolute; left: -9999px; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; }

/* Native file inputs read "Choose file"/"Examinar" in the browser's own
   locale, which says nothing about what's being attached. The input itself
   stays functional but visually hidden behind a labeled `.boton`; the
   chosen filename is shown by JS next to it (see app.js). The type selector
   is repeated so this outweighs the generic `input[type="file"]` rule, whose
   `width: 100%` would otherwise keep the hidden input wider than the page. */
input[type="file"].entrada-archivo-oculta {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* A button inside a form that should read as the plain text link next to
   it — for a navigation that needs `data-confirmar`, which only fires on
   a form's submit event, never on a bare <a>. */
.boton-enlace, button.boton-enlace {
  padding: 0;
  border: none;
  background: none;
  color: var(--acento);
}
.boton-enlace:hover, button.boton-enlace:hover { background: none; text-decoration: underline; }

.barra-acciones {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
/* A button the rest of the bar should not be mistaken for a sibling of
   (discarding next to saving): at the far end, or on its own row when the
   bar wraps. */
.barra-acciones .accion-aparte { margin-inline-start: auto; }

/* Buttons for marking the "About me" gaps: sit flush against the
   textarea, not apart like an action bar, since they're part of writing it. */
.barra-huecos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

button:disabled, .boton:disabled {
  opacity: 0.5;
  cursor: default;
}
button:disabled:hover, .boton:disabled:hover { background: var(--fondo); }

form.en-linea { display: inline; }

/* The laid-out CV on view (`_cv_preview_form.html`, `cv_preview_frame.js`):
   a bar with the template menu and the number of experiences, the sheet's
   own notices, and the sheet itself, white and without a frame of its own. */
.vista-cv-barra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.9rem;
  margin-bottom: 1rem;
}
.vista-cv-campo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  font-size: 0.875rem;
}
.vista-cv-barra .boton { padding: 0.25rem 0.65rem; font-size: 0.875rem; }
.vista-cv-campo legend { float: left; padding: 0; margin-right: 0; }
.avisos-cv:empty { display: none; }
.avisos-cv { margin-bottom: 1rem; }
.avisos-cv .aviso:last-child { margin-bottom: 0; }
/* «Guardar CV final», under the sheet it saves. */
.vista-cv-guardar { display: flex; justify-content: center; margin-top: 1rem; }

/* Number of experiences: the options of one small group, as buttons. */
.experiencias-hoja .opcion-numero { position: relative; }
.opcion-numero input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opcion-numero span {
  display: inline-block;
  min-width: 1.8rem;
  text-align: center;
  padding: 0.25rem 0.45rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-campo);
}
.opcion-numero input:checked + span {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}
.opcion-numero input:focus-visible + span { outline: 2px solid var(--acento-fuerte); outline-offset: 2px; }

/* Template menu: names on the left, the sheet of the one pointed at on the
   right (below the list on a narrow screen). It lists any number of
   templates: the list scrolls, the sheet stays. */
.plantilla-selector { position: relative; }
.plantilla-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 20;
  display: flex;
  max-width: calc(100vw - 2rem);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
  overflow: hidden;
}
.plantilla-lista {
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  width: 15rem;
  max-height: 30rem;
  overflow-y: auto;
  flex: none;
}
.plantilla-lista button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0.5rem 0.7rem;
  border-radius: 6px;
}
.plantilla-lista button:hover, .plantilla-lista button.ver { background: var(--fondo-suave); }
.plantilla-lista button[aria-selected="true"] { color: var(--acento-fuerte); font-weight: 600; }
.plantilla-vista {
  width: 26rem;
  padding: 0.75rem;
  background: var(--fondo-suave);
  display: flex;
  justify-content: center;
}
@media (max-width: 40rem) {
  /* As wide as the bar, from its left edge, right under the button. */
  .vista-cv-barra { position: relative; }
  .plantilla-selector { position: static; }
  .plantilla-menu { top: auto; left: 0; right: 0; margin-top: 0.4rem; flex-direction: column; max-height: 80vh; overflow-y: auto; }
  .plantilla-lista { width: auto; max-height: 12rem; }
  .plantilla-vista { width: auto; }
}

/* A sheet scaled from outside: the iframe keeps the sheet's own width (so the
   design is measured at its real size) and `cv_preview_frame.js` sets the
   scale. */
.marco-hoja { width: 100%; display: flex; justify-content: center; }
.marco-hoja[aria-busy="true"] { opacity: 0.55; }
.marco-hoja-escala { position: relative; flex: none; }
.marco-hoja-escala iframe {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  background: transparent;
  transform-origin: top left;
}
.marco-hoja-escala { box-shadow: var(--sombra); }

/* Proposal: the layout card and the letter card, the two halves of one row.
   Same markup class as the columns of "Documentos finales", but the columns
   follow the width of the row instead of the window: with the side menu a
   window of 1000 px leaves each card 330 px, too little for the letter, so
   they stack (layout first) as soon as a card would be under 28rem. Equal
   height comes from the grid, `min-width: 0` keeps a long line of the letter
   from making one half wider, and the two titles share a height and a gap
   so the fields of both start on the same line, with or without buttons. */
.tarjetas-pareja {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
/* The laid-out CV is the width of the row; what goes with it goes below. */
.tarjetas-pareja:has(> .vista-cv) { grid-template-columns: 1fr; }
.tarjetas-pareja > .tarjeta { margin-bottom: 0; min-width: 0; }
.tarjetas-pareja > .tarjeta > h2,
.tarjetas-pareja > .tarjeta > .cabecera-bloque { min-height: 2.25rem; margin: 0 0 0.75rem; }
.tarjetas-pareja > .tarjeta > h2 { display: flex; align-items: center; }
.tarjetas-pareja .cabecera-bloque > h2 { margin: 0; }


form.campo-meta input[type="text"] { width: 100%; min-width: 0; font-size: 1.1rem; font-weight: 700; text-align: center; }

/* A saved CV's header: company and position centred, «Guardar» and
   «Borrar CV» together on their right. The line under them shares their
   columns: the date, language, status and stars under the company, and the
   «sin noticias» proposal centred under the position. (The form is
   `display: contents` so its fields are cells of the grid.) */
.cabecera-cv {
  display: grid;
  grid-template-columns: auto minmax(14rem, 0.75fr) minmax(0, 1.25fr) auto auto;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}
.cabecera-cv form.campo-meta { display: contents; }
.cabecera-cv .datos-cv { margin: 0; justify-content: safe center; grid-column: 1 / 3; flex-wrap: nowrap; white-space: nowrap; }
.cabecera-cv .sin-noticias-detalle { grid-column: 3; }
/* «Borrar CV» keeps its column when the save button is not there. */
@media (min-width: 40.0625rem) {
  .cabecera-cv > form:not(.campo-meta) { grid-column: 5; }
}
@media (max-width: 40rem) {
  .cabecera-cv { grid-template-columns: auto minmax(0, 1fr); }
  .cabecera-cv > :not(.boton-redondo), .cabecera-cv .campo-barra, .cabecera-cv .boton-pequeno { grid-column: 2; }
  .cabecera-cv > form:not(.campo-meta) { display: contents; }
  .cabecera-cv .datos-cv { flex-wrap: wrap; }
}

/* Round «back» button: a chevron in a circle. */
.boton-redondo {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--borde-control);
  border-radius: 50%;
  background: var(--fondo-suave);
  color: var(--acento);
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
}
.boton-redondo:hover, .boton-redondo:focus-visible { border-color: var(--acento); }

/* A text field whose long text is read with a thin scroll bar under it. An
   input draws no scroll bar of its own, so the bar is a separate element
   kept in step with the field by `app.js`; it is only shown when the text
   does not fit. */
.campo-barra { position: relative; min-width: 0; }
.campo-barra .barra-fina { position: absolute; left: 0.6rem; right: 0.6rem; bottom: 1px; overflow-x: auto; overflow-y: hidden; }
/* Chromium ignores the pseudo-elements once `scrollbar-width` is set, so
   the standard properties are only for browsers without them. */
@supports not selector(::-webkit-scrollbar) { .campo-barra .barra-fina { scrollbar-width: thin; scrollbar-color: #4a5563 transparent; } }
.campo-barra .barra-fina[hidden] { display: none; }
.campo-barra .barra-fina::-webkit-scrollbar { height: 4px; }
.campo-barra .barra-fina::-webkit-scrollbar-thumb { background: #4a5563; border-radius: 4px; }
.campo-barra .barra-fina > div { height: 1px; }

/* A saved CV's documents: the CV on the left and the letter on the right, two
   cards of the same height (the sheet is scaled to a maximum height by
   `cv_preview_frame.js` so the letter is not left with empty room), the
   letter's text box taking what its toolbar leaves. More room between the
   controls than in the Proposal, where the CV is alone in its row. */
.tarjetas-pareja.tarjetas-documentos:has(> .vista-cv) {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr));
}
/* The template gets the wider column (about 1.25 : 1): its sheet is what is
   worked on, the letter only needs its text box. */
@media (width >= 62rem) {
  .tarjetas-pareja.tarjetas-documentos:has(> .vista-cv) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}
.tarjetas-documentos > .tarjeta > h2 { justify-content: center; }
.tarjetas-documentos .vista-cv-barra { justify-content: center; margin-bottom: 1rem; }
.tarjetas-documentos .experiencias-hoja .opcion-numero + .opcion-numero { margin-left: 0.1rem; }
.tarjetas-documentos .marco-hoja-principal { max-height: 44rem; }
.tarjetas-documentos .fila-tono { justify-content: center; gap: 0.5rem 0.6rem; margin-bottom: 1rem; }
.tarjetas-documentos .barra-acciones { justify-content: center; }
.tarjetas-documentos #cover-letter { display: flex; flex-direction: column; }
.tarjetas-documentos #cover-letter .contenido-carta,
.tarjetas-documentos #cover-letter .contenido-carta > form { display: flex; flex: 1; flex-direction: column; }
.tarjetas-documentos #cover-letter textarea.campo-carta { flex: 1; max-height: none; }

/* The letter on its own tab of the Proposal: in the middle, as wide as a
   printed paragraph reads well, the saved copies under it. */
.carta-centrada { max-width: 45rem; margin: 0 auto; }
.carta-centrada .barra-acciones { justify-content: center; }
.versiones-guardadas { text-align: center; }
.versiones-guardadas .pieza-documento { max-width: 36rem; margin-inline: auto; }

/* «Documentos finales»: centred, each saved document one piece with its own
   sheet icon (blue for the CV, amber for the letter) and its «Borrar». */
.documentos-finales .titulo-centrado { margin-bottom: 0.5rem; }
.documentos-finales-lista { max-width: 40rem; margin: 0 auto; text-align: center; }
.documentos-finales-lista h3 { margin: 1.25rem 0 0.5rem; font-size: 1rem; }
.documentos-finales-lista h3:first-child { margin-top: 0.5rem; }
.documentos-finales-lista .pila { align-items: center; margin-top: 0.75rem; }
.pieza-documento {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.5rem 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-suave);
}
.pieza-texto { display: flex; flex: 1; flex-direction: column; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.pieza-icono {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.2rem;
  height: 2.7rem;
  border-top: 0.3rem solid var(--acento);
  border-radius: 0.25rem;
  background: var(--hoja-fondo);
  color: var(--hoja-texto);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}
.pieza-icono-carta { border-top-color: var(--estado-amarillo); }

/* Badges */

.insignia {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: var(--fondo-suave);
  border: 1px solid var(--borde);
  color: var(--texto-suave);
}

/* One per `CVStatus` value, which is what the templates put in the class. */
.insignia-draft { color: var(--texto-suave); }
.insignia-sent { color: var(--estado-amarillo); background: var(--estado-amarillo-fondo); border-color: var(--estado-amarillo-borde); }
.insignia-interview { color: var(--acento-fuerte); background: var(--aviso-fondo); border-color: var(--aviso-borde); }
.insignia-accepted { color: var(--estado-verde); background: var(--estado-verde-fondo); border-color: var(--estado-verde-borde); }
.insignia-no_response { color: var(--estado-morado); background: var(--estado-morado-fondo); border-color: var(--estado-morado-borde); }
.insignia-withdrawn { color: var(--estado-naranja); background: var(--estado-naranja-fondo); border-color: var(--estado-naranja-borde); }
.insignia-rejected { color: var(--peligro); background: var(--peligro-fondo); border-color: var(--peligro); }

/* Status timeline on a saved CV: the steps side by side, a line joining their
   markers, wrapping to a second row when they do not fit. The events (done
   reminders, interviews, emails sent) hang under the step they follow. */

.linea-tiempo {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 0;
  overflow-x: clip;
  list-style: none;
  margin: 1rem 0 0.75rem;
  padding: 0;
}
.linea-tiempo > li {
  position: relative;
  display: flex;
  flex: 1 1 9.5rem;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  padding: 0 0.4rem;
  text-align: center;
}
/* The line is a faint grey track; only the stretch already travelled (every
   step but the future one) carries the accent, thinner, on top of it. */
.linea-tiempo > li::before,
.linea-tiempo > li::after {
  content: "";
  position: absolute;
  left: -50%;
  right: 50%;
  border-radius: 2px;
}
.linea-tiempo > li::before { top: calc(0.4rem - 1.5px); height: 3px; background: var(--borde); }
.linea-tiempo > li::after { top: calc(0.4rem - 1px); height: 2px; background: var(--acento); }
.linea-tiempo > li:first-child::before,
.linea-tiempo > li:first-child::after,
.linea-tiempo > .paso-futuro::after { display: none; }
.paso-marca {
  position: relative;
  z-index: 1;
  width: 0.8rem;
  height: 0.8rem;
  margin-bottom: 0.25rem;
  border: 2px solid var(--acento);
  border-radius: 50%;
  background: var(--acento);
}
.paso-actual .paso-marca { box-shadow: 0 0 0 4px var(--aviso-fondo); }
.paso-futuro .paso-marca { border-color: var(--borde-control); background: var(--fondo); }
.paso-futuro-nombre { font-weight: 600; color: var(--texto-suave); }
.paso-historial .ayuda { font-size: 0.8rem; }
.paso-fecha { font-size: 0.85rem; }
/* A step's date reads as plain text; the pointer and the tooltip say it can be corrected. */
button.paso-fecha-corregible {
  padding: 0;
  border: none;
  background: none;
  color: var(--texto);
  cursor: pointer;
}
button.paso-fecha-corregible:hover { background: none; }
/* Links in the «Seguimiento» tab change colour on hover instead of being underlined. */
#panel-seguimiento .boton-enlace:hover { text-decoration: none; color: var(--acento-fuerte); }
.eventos-paso { margin: 0.4rem 0 0; padding: 0; list-style: none; }
.eventos-paso li { margin-top: 0.25rem; }
.eventos-paso p { margin: 0; font-size: 0.8rem; color: var(--texto-suave); overflow-wrap: anywhere; }
/* An event under its step: a quiet grey pill, stacked when there are several. */
.eventos-paso { display: flex; flex-direction: column; align-items: center; }
.pastilla { display: inline-flex; align-items: flex-start; gap: 0.45rem; max-width: 100%; box-sizing: border-box; padding: 0.3rem 0.75rem; border: 1px solid var(--borde); border-radius: 0.9rem; background: var(--fondo-suave); text-align: left; }
/* One phrase per line, none cut short: a long one wraps inside the pill. */
.lineas-pastilla { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.pastilla .punto-resultado { margin-top: 0.3rem; }
.marca-evento { flex: none; line-height: 1; margin-top: 0.1rem; }
.punto-resultado { flex: none; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--resultado-ninguno); }
.punto-resultado-good { background: var(--resultado-bien); }
.punto-resultado-fair { background: var(--resultado-regular); }
.punto-resultado-bad { background: var(--resultado-mal); }

/* A panel's title with what goes beside it (the status menu, a link), and
   its footer line. */
.cabecera-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.cabecera-panel h2 { margin: 0; }
.pie-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--borde); }
.pie-panel p { margin: 0; }

/* A small window with one form (`_form_dialog.html`); its padding lives in an
   inner box so a click on the dialog element itself is a click on the dimmed
   page. */
.dialogo-formulario {
  width: min(24rem, calc(100vw - 2rem));
  padding: 0;
  color: var(--texto);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}
.dialogo-formulario::backdrop { background: var(--velo); }
.dialogo-formulario-caja { padding: 1.25rem; }
.dialogo-formulario h3 { margin: 0; font-size: 1.05rem; }
.dialogo-formulario-acciones { display: flex; justify-content: flex-end; gap: 0.6rem; }
/* Every window of this kind: in the middle of the screen (scrolling inside when
   taller), the title, the small labels and the buttons centred. */
dialog.dialogo-formulario { margin: auto; max-height: calc(100vh - 2rem); overflow-y: auto; }
dialog.dialogo-formulario h3 { text-align: center; }
dialog.dialogo-formulario .campo { text-align: center; }
dialog.dialogo-formulario .campo :is(input, textarea) { text-align: left; }
dialog.dialogo-formulario .campo .segmentado { align-self: center; }
dialog.dialogo-formulario .dialogo-formulario-acciones { justify-content: center; }

/* Reminders */

.recordatorio-linea { margin: 0.3rem 0 0.6rem; font-size: 0.85rem; color: var(--texto-suave); }
.recordatorio-hoy strong:last-child { color: var(--acento-fuerte); }
.recordatorio-vencido strong:last-child { color: var(--peligro); }
.lista-recordatorios { list-style: none; padding: 0; margin: 0; }
.lista-recordatorios > li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--borde); }
.recordatorio-hecho {
  flex: none;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 2px solid var(--borde-control);
  border-radius: 50%;
  background: none;
}
.recordatorio-hecho:hover { border-color: var(--estado-verde); background: var(--estado-verde-fondo); }
.recordatorio-cuerpo { flex: 1 1 12rem; min-width: 0; }
.recordatorio-cuerpo p { margin: 0; overflow-wrap: anywhere; }
.recordatorio-titulo { font-weight: 600; }
.lista-recordatorios .recordatorio-linea { margin-top: 0.15rem; }
/* A reminder ticked off a moment ago: struck through, offering «Deshacer». The
   rest of its row is hidden, and the reminders under it (whose position has
   moved) keep their menus off until the page is loaded again. */
.recordatorio-hecho-ahora [data-solo-pendiente] { display: none; }
.recordatorio-hecho-ahora .recordatorio-hecho,
.recordatorio-hecho-ahora .recordatorio-hecho:hover { border-color: var(--estado-verde); background: var(--estado-verde); }
.recordatorio-hecho-ahora :is(.recordatorio-titulo, .recordatorio-fila-titulo) { text-decoration: line-through; color: var(--texto-suave); }
.recordatorio-deshacer { flex: none; font-size: 0.85rem; }
[data-recordatorios-desfasados] .lista-recordatorios :is(.menu-mas, .boton-primario) { pointer-events: none; opacity: 0.4; }
/* The done ones, in their own window; their circle gives them back. A reminder
   given back a moment ago is shown as pending again while «Deshacer» is offered. */
.recordatorio-reabierto-ahora .recordatorio-hecho,
.recordatorio-reabierto-ahora .recordatorio-hecho:hover { border-color: var(--borde-control); background: none; }
.recordatorio-reabierto-ahora .recordatorio-titulo { text-decoration: none; color: var(--texto); }
.recordatorio-hecho-marcado,
.recordatorio-hecho-marcado:hover { border-color: var(--estado-verde); background: var(--estado-verde); }
.lista-hechos .recordatorio-titulo { font-weight: 500; text-decoration: line-through; color: var(--texto-suave); }
.nuevo-recordatorio { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.9rem; }
.nuevo-recordatorio input[type="text"] { flex: 1 1 16rem; min-width: 0; }
.nuevo-recordatorio input[type="date"] { flex: 0 1 11rem; }
/* The «⋯» menu of a row: the status menu's box, narrower, with the
   calendar button and «Quitar» looking like the other options. */
.menu-mas { position: relative; flex: none; }
.boton-mas { min-width: 2rem; font-weight: 700; }
.menu-acciones { width: min(13rem, calc(100vw - 2rem)); }
.menu-acciones form { display: block; }
.menu-acciones .boton-pequeno { width: 100%; padding: 0.4rem 0.6rem; border: 0; background: none; box-shadow: none; font-size: 0.9rem; text-align: left; }
.menu-acciones .boton-pequeno:hover { background: var(--fondo-suave); }
.menu-acciones .aviso-calendario { padding: 0 0.6rem; }
.opcion-estado.opcion-peligro { color: var(--peligro); }
.acciones-recordatorio { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.editar-recordatorio summary { cursor: pointer; font-size: 0.85rem; color: var(--texto-suave); margin-top: 0.4rem; }
.editar-recordatorio form { margin-top: 0.5rem; }

/* Contacts: the section under the interviews' list, one small card per person. */

.lista-entrevistas > li:last-child { border-bottom: 0; }
.contactos-seccion { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--borde); }
.contactos-seccion > .cabecera-panel h3 { margin: 0; font-size: 1rem; }
.lista-contactos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 40rem) { .lista-contactos { grid-template-columns: minmax(0, 1fr); } }
.contacto-tarjeta { position: relative; display: flex; align-items: center; gap: 0.5rem; max-width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--borde); border-radius: var(--radio-tarjeta); background: var(--fondo-suave); }
.contacto-persona { display: flex; align-items: center; flex: 1; gap: 0.6rem; min-width: 0; }
.contacto-iniciales { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--aviso-fondo); color: var(--acento-fuerte); font-size: 0.8rem; font-weight: 700; }
.contacto-texto { min-width: 0; line-height: 1.25; overflow-wrap: anywhere; }
.contacto-texto strong { display: block; font-size: 0.9rem; }
.contacto-texto span { display: block; font-size: 0.8rem; color: var(--texto-suave); }
.contacto-icono { flex: none; display: grid; place-items: center; min-width: 1.7rem; height: 1.7rem; border: 1px solid var(--borde-control); border-radius: var(--radio); font-size: 0.8rem; color: var(--texto-suave); text-decoration: none; }
.contacto-icono:hover { color: var(--acento-fuerte); border-color: var(--acento); }
/* The people met in other applications to the same company: a softer, dashed card. */
.contactos-ofrecidos { margin-top: 1rem; padding-top: 0.8rem; border-top: 1px dotted var(--borde-control); }
.contactos-ofrecidos-titulo { margin: 0 0 0.6rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); }
.contacto-ofrecido { border-style: dashed; background: none; }
.contacto-ofrecido .contacto-texto { flex: 1; }
/* «Usar en otra vacante»: a centred window, three applications at a time. */
.dialogo-usar-contacto { width: min(24rem, calc(100vw - 2rem)); }
.usar-contacto-lista { list-style: none; padding: 0; margin: 0; max-height: 12rem; overflow-y: auto; }
.usar-contacto-lista li { padding: 0.3rem 0.25rem; }
.usar-contacto-lista .opcion-casilla { font-size: 0.9rem; overflow-wrap: anywhere; }
.usar-contacto-ver-mas { display: block; margin: 0 auto; font-size: 0.85rem; }
/* The «⋯» of a contact: a small window in the middle of the screen with the three options. */
.dialogo-acciones-contacto { width: min(18rem, calc(100vw - 2rem)); }
.dialogo-acciones-contacto .dialogo-formulario-caja { display: flex; flex-direction: column; gap: 0.6rem; }
.opcion-ventana { display: block; width: 100%; padding: 0.6rem 1rem; text-align: center; font-size: 0.9rem; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--fondo-suave); color: var(--texto); }
.opcion-ventana:hover, .opcion-ventana:focus-visible { border-color: var(--acento); }
.opcion-ventana.opcion-peligro { color: var(--peligro); }
/* «Nuevo contacto» / «Editar contacto»: everything centred, the four roles in one row. */
.dialogo-contacto { width: min(37rem, calc(100vw - 2rem)); }
.segmentado-papel { display: flex; width: fit-content; max-width: 100%; margin: 0.35rem auto 0; }
.segmentado-papel span { padding: 0.3rem 0.6rem; font-size: 0.8rem; white-space: nowrap; }
@media (max-width: 40rem) { .segmentado-papel { flex-wrap: wrap; } }

/* Interviews */

.proxima-entrevista { margin-bottom: 0.15rem; }
.proxima-entrevista strong:last-child { color: var(--acento-fuerte); }
/* One interview per row, in the reminders' list: the date as a small block, the
   note, calendar and «⋯» buttons at the right, and «¿Cómo fue?» under the text
   and the buttons, so its buttons end at the same right edge as «⋯» and as
   «+ Añadir entrevista» (hence no right padding). */
.lista-entrevistas > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  padding-inline-end: 0;
}
.lista-entrevistas .entrevista-fecha { grid-row: span 2; }
.entrevista-acciones { display: flex; align-items: center; gap: 0.5rem; }
.lista-entrevistas .linea-como-fue { grid-column: 2 / -1; margin-top: 0.25rem; }
.lista-entrevistas > li[data-resultado="good"] { --resultado: var(--resultado-bien); --resultado-relleno: var(--resultado-bien-relleno); --resultado-texto: var(--resultado-bien-texto); }
.lista-entrevistas > li[data-resultado="fair"] { --resultado: var(--resultado-regular); --resultado-relleno: var(--resultado-regular-relleno); --resultado-texto: var(--resultado-regular-texto); }
.lista-entrevistas > li[data-resultado="bad"] { --resultado: var(--resultado-mal); --resultado-relleno: var(--resultado-mal-relleno); --resultado-texto: var(--resultado-mal-texto); }
/* The chosen answer is filled whole; the coloured dots are only the history's. */
.linea-como-fue .segmentado-botones button[aria-pressed="true"] { background: var(--resultado-relleno); color: var(--resultado-texto); font-weight: 600; }
/* The reason's button: the calendar icon's size and look; a dot of the
   outcome's colour once a reason is written. */
.icono-nota { position: relative; }
.icono-nota[data-con-porque] { color: var(--resultado); }
.icono-nota[data-con-porque]::after {
  content: "";
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--resultado);
}
.globo-motivo {
  position: fixed;
  z-index: 50;
  width: max-content;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo-globo);
  box-shadow: var(--sombra-alta);
  color: var(--texto);
  font-size: 0.85rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.dialogo-porque { width: min(26rem, calc(100vw - 2rem)); }
.dialogo-porque textarea { min-height: 6rem; }
.entrevista-fecha { flex: none; display: flex; flex-direction: column; align-items: center; width: 3.6rem; padding: 0.3rem 0; border: 1px solid var(--borde); border-radius: var(--radio); background: var(--fondo-suave); line-height: 1.2; }
.entrevista-fecha small { font-size: 0.7rem; color: var(--texto-suave); text-transform: uppercase; }
.entrevista-fecha strong { font-size: 1.25rem; }
.nota-entrevista { margin: 0 0 0.5rem; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.9rem; }
.lista-entrevistas p.ayuda { margin: 0.3rem 0 0.15rem; }
.dialogo-entrevista { width: min(34rem, calc(100vw - 2rem)); }
/* «¿Cómo fue?»: one small line, the reminder at the left and the buttons at the right. */
.linea-como-fue { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem 0.8rem; margin-top: 0.75rem; }
.aviso-como-fue { font-size: 0.85rem; color: var(--acento-fuerte); }
.aviso-como-fue[hidden] { display: none; }
.linea-como-fue .segmentado { margin-left: auto; }
/* The two fields of a day and a time: small centred labels over each. */
.campo-momento { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; }
.campo-momento .campo { align-items: center; }
.campo-momento .etiqueta-campo { font-size: 0.8rem; color: var(--texto-suave); }
.quitar-entrevista { margin-top: 0.6rem; }
.anadir-entrevista summary { cursor: pointer; font-weight: 600; color: var(--acento-fuerte); }
.anadir-entrevista form { margin-top: 0.75rem; }
.opcion-casilla { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }

/* Add to calendar, and the window that asks where a link opens */

/* A reminder's button is only the icon; it turns green, with a tick, once added.
   An interview's reason button (`.icono-nota`) looks the same. */
.icono-calendario, .icono-nota {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: none;
  color: var(--texto-suave);
}
.icono-calendario:hover, .icono-nota:hover { background: var(--fondo-suave); color: var(--texto); }
.icono-calendario .icono, .icono-nota .icono { width: 1.05rem; height: 1.05rem; }
[data-anadido] > .icono-calendario { color: var(--estado-verde); border-color: var(--estado-verde-borde); }
[data-anadido] > .icono-calendario::after { content: "✓"; font-size: 0.8rem; line-height: 1; }

.aviso-calendario { flex-basis: 100%; margin: 0.2rem 0 0; }
.dialogo-servicio {
  width: min(26rem, calc(100vw - 2rem));
  padding: 1.25rem;
  color: var(--texto);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}
.dialogo-servicio::backdrop { background: var(--velo); }
.dialogo-servicio h2 { margin: 0; font-size: 1.1rem; }
.opciones-servicio { display: flex; flex-direction: column; gap: 0.5rem; }
.dialogo-servicio .boton { width: 100%; text-align: left; }
/* The "are you sure?" window (confirm_dialog.js). Its padding lives in an inner
   box, so a click on the dialog element itself is a click on the dimmed page. */
/* As wide as its message, so a short question fits on one line; a long one
   wraps at the cap. Everything inside is centred. */
.dialogo-confirmar {
  width: fit-content;
  min-width: min(20rem, calc(100vw - 2rem));
  max-width: min(36rem, calc(100vw - 2rem));
  padding: 0;
  color: var(--texto);
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}
.dialogo-confirmar::backdrop { background: var(--velo); }
.dialogo-confirmar-caja { display: flex; flex-direction: column; gap: 1.25rem; padding: 1.5rem; }
.dialogo-confirmar-mensaje {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.dialogo-confirmar-acciones { display: flex; justify-content: center; gap: 0.6rem; }
@media (max-width: 30rem) {
  .dialogo-confirmar-acciones { flex-direction: column-reverse; }
  .dialogo-confirmar-acciones .boton { justify-content: center; }
}
/* My CVs, under the title: what is pending, as two small tags that filter the
   list (the same toggle as the status counts). */
.etiquetas-pendientes { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 0.75rem; margin-bottom: 1rem; }
.etiqueta-pendiente {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--fondo);
  border: 1px solid var(--borde);
  cursor: pointer;
}
.etiqueta-pendiente.bento-tarjeta-activa { border-color: var(--acento); }
.punto-pendiente { width: 0.5rem; height: 0.5rem; border-radius: 50%; }
.punto-pendiente-ambar { background: var(--estado-amarillo); }
.punto-pendiente-rojo { background: var(--peligro); }

/* "Fecha | Recordatorio | Interés": three options of one control, the chosen one filled. */
.ordenar-lista { display: flex; justify-content: center; margin: 0 0 1rem; }
.selector-orden { display: inline-flex; border: 1px solid var(--borde-control); border-radius: var(--radio); overflow: hidden; }
.selector-orden a { padding: 0.4rem 1.1rem; font-size: 0.9rem; color: var(--texto-suave); }
.selector-orden a + a { border-left: 1px solid var(--borde-control); }
.selector-orden a:hover { background: var(--fondo-suave); }
.selector-orden a[aria-current] { background: var(--acento); color: var(--texto-sobre-acento); }

/* A CV in the list: title, status and stars on the first line; the date, the
   language and «Borrar» on the last. A pending reminder or an application with
   no news edges the card in amber. */
.tarjeta-cv { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 0; padding: 0.75rem 0.9rem; min-width: 0; }
.tarjeta-cv:is([data-recordatorio-pendiente], [data-sin-noticias]) { border-color: var(--estado-amarillo-borde); }
.tarjeta-cv-titulo { display: flex; align-items: flex-start; gap: 0.5rem; }
.tarjeta-cv-titulo h3 { flex: 1; min-width: 0; margin: 0; font-size: 0.95rem; line-height: 1.3; overflow-wrap: anywhere; }
.tarjeta-cv-titulo .estado-rapido,
.tarjeta-cv-titulo .interes { flex: none; }
.tarjeta-cv-titulo .interes-estrella { padding: 0 0.1rem; font-size: 1rem; }
.tarjeta-cv .recordatorio-linea { margin: 0; }
/* The reminders of a card: the soonest on one line, and a «+N» bubble that
   opens a small window with all of them over the cards below. */
.recordatorios-ficha { position: relative; }
.recordatorio-fila { display: flex; align-items: center; gap: 0.5rem; min-width: 0; font-size: 0.85rem; }
.recordatorio-fila .recordatorio-hecho { width: 1rem; height: 1rem; }
.recordatorio-fila-titulo { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recordatorio-fila-fecha { flex: none; white-space: nowrap; font-size: 0.8rem; color: var(--texto-suave); }
.recordatorio-fila-fecha.recordatorio-hoy { color: var(--acento-fuerte); }
.recordatorio-fila-fecha.recordatorio-vencido { color: var(--peligro); font-weight: 600; }
.globo-mas {
  flex: none;
  padding: 0.05rem 0.55rem;
  border: 1px solid var(--borde-control);
  border-radius: 999px;
  background: var(--fondo-suave);
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--texto-suave);
}
.globo-mas[aria-expanded="true"] { border-color: var(--acento-fuerte); color: var(--texto); }
.ventanita-recordatorios {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}
.ventanita-recordatorios .icono-calendario { padding: 0.1rem 0.3rem; }
.tarjeta-cv .propuesta-sin-noticias { margin: 0; }
.tarjeta-cv-pie { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-top: auto; }
.tarjeta-cv-pie p { margin: 0; font-size: 0.8rem; }
.tarjeta-cv-pie .boton-pequeno { padding: 0.15rem 0.55rem; font-size: 0.8rem; }
/* The proposal to move a stalled application to «Sin respuesta»: a plain line
   of text with its two buttons, in a card of the list and in a CV's header
   (centred there). In the list the sentence never breaks, so the buttons are
   the part that goes down when the card is too narrow. */
.propuesta-sin-noticias {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.75rem;
  margin: 0;
}
.propuesta-sin-noticias p { margin: 0; font-size: 0.82rem; font-weight: 500; color: var(--acento-fuerte); }
.propuesta-sin-noticias .acciones-recordatorio { flex-wrap: nowrap; }
.propuesta-sin-noticias .boton-pequeno { padding: 0.15rem 0.55rem; font-size: 0.8rem; white-space: nowrap; }
.sin-noticias-detalle .propuesta-sin-noticias { justify-content: center; text-align: center; }
@media (width >= 30rem) {
  .tarjeta-cv .propuesta-sin-noticias p { white-space: nowrap; }
}

/* CV page: header data line (date, language, status badge) and the tabs. */
.datos-cv { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
/* The grey line under the tabs is an inset shadow of the bar, not its border,
   so that a tab's underline paints over it without the tab sticking out of
   the bar: a bar that scrolls sideways (overflow-x) would otherwise also
   scroll up and down by that pixel and draw a vertical scroll bar. */
.pestanas { display: flex; gap: 0.25rem; box-shadow: inset 0 -1px 0 var(--borde); margin: 0 0 1.25rem; overflow-x: auto; }
.pestanas [role="tab"] {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 0.6rem 0.9rem;
  font-weight: 600;
  color: var(--texto-suave);
  white-space: nowrap;
}
.pestanas [role="tab"]:hover { color: var(--texto); }
.pestanas [role="tab"][aria-selected="true"] { color: var(--acento-fuerte); border-bottom-color: var(--acento); }
/* Keyboard focus reads as a click does: accent text and underline, no box. */
.pestanas [role="tab"]:focus-visible { outline: none; color: var(--acento-fuerte); border-bottom-color: var(--acento); }
.contador-seccion { font-weight: 400; color: var(--texto-suave); }
#documentos-finales h3 { font-size: 1rem; margin: 0 0 0.6rem; }
.lista-adjuntos { margin-top: 0.75rem; }
/* Status menu, in My CVs and in a CV's header: the current status as text
   with its dot; the menu opens under it, anchored to its right edge. */
.estado-rapido { position: relative; flex-shrink: 0; }
.estado-actual {
  gap: 0.4rem;
  padding: 0.15rem 0.45rem;
  border-color: transparent;
  background: none;
  font-size: 0.85rem;
  white-space: nowrap;
}
.estado-actual[aria-expanded="true"] { border-color: var(--borde-control); background: var(--fondo-suave); }
.estado-actual-flecha { font-size: 0.7rem; color: var(--texto-suave); }
.punto-estado { flex: none; width: 0.55rem; height: 0.55rem; border-radius: 50%; }
/* One per `CVStatus` value, the colour of its badge. */
.punto-estado-draft { background: var(--texto-suave); }
.punto-estado-sent { background: var(--estado-amarillo); }
.punto-estado-interview { background: var(--acento-fuerte); }
.punto-estado-accepted { background: var(--estado-verde); }
.punto-estado-no_response { background: var(--estado-morado); }
.punto-estado-withdrawn { background: var(--estado-naranja); }
.punto-estado-rejected { background: var(--peligro); }
.menu-estado {
  position: absolute;
  right: 0;
  top: calc(100% + 0.3rem);
  z-index: 10;
  width: min(14rem, calc(100vw - 2rem));
  padding: 0.35rem;
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  box-shadow: var(--sombra-alta);
}
.menu-estado-titulo { margin: 0; padding: 0.45rem 0.6rem 0.15rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--texto-suave); }
.menu-estado-grupo + .menu-estado-grupo { border-top: 1px solid var(--borde); margin-top: 0.3rem; }
.opcion-estado-formulario { display: block; }
.opcion-estado {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radio);
  background: none;
  font-size: 0.9rem;
  text-align: left;
  color: var(--texto);
}
button.opcion-estado:hover, a.opcion-estado:hover, .opcion-estado:focus-visible { background: var(--fondo-suave); }
.opcion-estado:is([aria-current], :has(input:checked)) { background: var(--aviso-fondo); }
span.opcion-estado { cursor: default; }
.opcion-estado-texto { flex: 1; }
.opcion-estado-marca { color: var(--acento-fuerte); }
.opcion-estado-otra-fecha { margin-top: 0.3rem; border-top: 1px solid var(--borde); border-radius: 0 0 var(--radio) var(--radio); color: var(--acento-fuerte); }
/* The reason screen takes the place of the status list in the same box: wide
   enough for the longest reason on one line, and the same in both screens so
   nothing resizes when one replaces the other. */
.estado-rapido .menu-estado { width: min(17rem, calc(100vw - 2rem)); }
.motivo-rapido { margin: 0; }
.motivo-cabecera { display: flex; align-items: center; gap: 0.5rem; padding: 0.2rem 0.3rem 0.45rem; margin-bottom: 0.3rem; border-bottom: 1px solid var(--borde); }
.motivo-volver { flex: none; width: 1.7rem; height: 1.7rem; padding: 0; border-color: transparent; background: none; color: var(--texto-suave); }
.motivo-volver:hover { background: var(--fondo-suave); }
.motivo-estado { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; }
.motivo-pregunta { display: block; font-size: 0.78rem; color: var(--texto-suave); }
.opcion-motivo { position: relative; cursor: pointer; }
.opcion-motivo:hover { background: var(--fondo-suave); }
.opcion-motivo input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcion-motivo-aro { flex: none; display: grid; place-items: center; width: 1rem; height: 1rem; border: 2px solid var(--borde-control); border-radius: 50%; }
.opcion-motivo:has(input:checked) .opcion-motivo-aro { border-color: var(--acento); }
.opcion-motivo:has(input:checked) .opcion-motivo-aro::after { content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--acento); }
.opcion-motivo:has(input:focus-visible) { outline: 2px solid var(--acento); outline-offset: -2px; }
.motivo-texto { margin: 0.4rem 0.3rem 0.1rem; }
.motivo-texto textarea { min-height: 3.2rem; max-height: 7rem; font-size: 0.9rem; }
.motivo-contador { display: block; margin-top: 0.15rem; text-align: right; font-size: 0.75rem; color: var(--texto-suave); }
.motivo-pie { display: flex; justify-content: flex-end; gap: 0.5rem; margin-top: 0.4rem; padding: 0.5rem 0.3rem 0.1rem; border-top: 1px solid var(--borde); }

/* Copyable text blocks */

.bloque-texto {
  background: var(--fondo-suave);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  padding: 0.9rem 1.1rem;
  white-space: pre-wrap;
  font-size: 0.95rem;
}

.cabecera-bloque {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Search jobs: the results as a plain list, one row per posting: title and
   company, where, how old, and the two actions. A click on the row unfolds
   the posting's text under it (`search_rows.js`). */
.oferta-cabecera,
.oferta-fila,
.esqueleto-fila {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.4fr) 8rem 18rem;
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
}

.oferta-cabecera {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-bottom: 0;
  border-radius: var(--radio-tarjeta) var(--radio-tarjeta) 0 0;
  color: var(--texto-suave);
  font-size: 0.85rem;
  padding-block: 0.6rem;
}

.lista-ofertas {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 0 0 var(--radio-tarjeta) var(--radio-tarjeta);
  overflow: hidden;
}

/* With no header above it (no rows yet) the box is just a stray border. */
.lista-ofertas:empty { display: none; }

/* A row after another visible one: the page shows 5 of them, the rest
   are `hidden`, so `:first-child` would be the wrong rule on page 2. */
.oferta:not([hidden]) ~ .oferta:not([hidden]) { border-top: 1px solid var(--borde); }
.oferta-fila { position: relative; }
.oferta-fila:hover { background: var(--fondo-suave); }

.oferta-puesto { min-width: 0; }

.oferta-despliegue {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

/* The button's pseudo-element covers the whole row, so the click lands
   anywhere on it; the actions sit above it and keep their own clicks. */
.oferta-despliegue::after {
  content: "";
  position: absolute;
  inset: 0;
}

.oferta-despliegue:focus-visible { outline: none; }
.oferta-despliegue:focus-visible::after { outline: 2px solid var(--acento-fuerte); outline-offset: -2px; }

.oferta-titulo {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.oferta-empresa {
  display: block;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.oferta-donde,
.oferta-fecha {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.oferta-fecha { color: var(--texto); font-size: 0.9rem; }
.oferta-fuente { color: var(--texto-suave); font-size: 0.8rem; }

/* «vía Feina Activa» is the trigger of a balloon with the date of the
   source's data. The list clips what overflows it, so the balloon is
   `fixed` and `search_rows.js` places it over the text, centred, with its
   arrow (`--flecha`); `data-abajo` puts it under when there is no room
   above. The row's stretched button covers the row, so the trigger is
   positioned above it. */
.oferta-fuente-fecha { position: relative; align-self: flex-start; }
.oferta-fuente-boton {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: default;
}
.oferta-fuente-boton:focus-visible { outline: 2px solid var(--acento-fuerte); outline-offset: 2px; border-radius: 3px; }

.globo-fecha {
  position: fixed;
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  width: max-content;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  background: var(--fondo-globo);
  box-shadow: var(--sombra-alta);
  color: #fff;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
}
.globo-fecha::after {
  content: "";
  position: absolute;
  left: var(--flecha, 50%);
  top: 100%;
  translate: -50% 0;
  border: 0.4rem solid transparent;
  border-top-color: var(--fondo-globo);
}
.globo-fecha-etiqueta { font-size: 0.75rem; color: #9ba1a6; }
.globo-fecha strong { font-weight: 650; }
.oferta-fuente-fecha[data-abajo] .globo-fecha::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--fondo-globo);
}
.oferta-fuente-fecha:hover .globo-fecha,
.oferta-fuente-fecha:focus-within .globo-fecha { display: flex; }
@media (prefers-reduced-motion: no-preference) {
  .oferta-fuente-fecha:hover .globo-fecha,
  .oferta-fuente-fecha:focus-within .globo-fecha { animation: globo-fecha-entra 0.15s ease-out; }
}
@keyframes globo-fecha-entra { from { opacity: 0; } }

.oferta-etiquetas { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.oferta-etiqueta {
  background: var(--fondo-suave);
  border: 1px solid var(--borde);
  border-radius: 999px;
  color: var(--texto-suave);
  font-size: 0.8rem;
  padding: 0.05rem 0.6rem;
}

.oferta-acciones {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.oferta-descripcion { padding: 0.25rem 1.1rem 1.1rem; max-width: 52rem; }
.oferta-texto { margin: 0 0 0.75rem; white-space: pre-line; overflow-wrap: anywhere; }
/* A notice inside the unfolded posting is centered across the whole row, like
   the one above the list; what is read under it keeps its reading width. */
.oferta-descripcion:has(> :is(.aviso-info, .oferta-resumiendo)) { max-width: none; }
.oferta-descripcion:has(> :is(.aviso-info, .oferta-resumiendo)) > :not(.aviso-info, .oferta-resumiendo) { max-width: 52rem; }
.oferta-descripcion .aviso-info { margin-bottom: 0.6rem; }
.oferta-resumen-apartado { margin: 0.9rem 0 0.35rem; font-size: 0.95rem; }
.oferta-resumen-apartado:first-of-type { margin-top: 0.25rem; }
.oferta-resumen-puntos { margin: 0; padding-left: 1.2rem; overflow-wrap: anywhere; }
.oferta-resumen-puntos li + li { margin-top: 0.2rem; }

/* While searching: the shape of the rows to come, as grey bars with a soft
   light sweeping across (`loading.css`). The rows are made of the real row's classes with
   their text hidden, so each is as tall as a real one and the page does not
   jump when a posting takes its place. The box continues the list's, below
   the rows already there. */
.esqueleto-ofertas {
  background: var(--fondo);
  border: 1px solid var(--borde);
  border-radius: 0 0 var(--radio-tarjeta) var(--radio-tarjeta);
  overflow: hidden;
}
.lista-ofertas:not(:empty):has(~ .esqueleto-ofertas:not([hidden])) { border-bottom: 0; border-radius: 0; }
.esqueleto-fila { pointer-events: none; }
.esqueleto-fila ~ .esqueleto-fila { border-top: 1px solid var(--borde); }

/* The gaps repeat the font size of the real text they stand for (title and
   company, place, age and source, the tag, the two buttons), so a row is as
   tall as a real one. A real row is about 74px without tags under "Dónde"
   and 78px with them: the gap's tag is a little shorter than a real one, so
   the skeleton sits between the two and the page moves by 2px either way. */
.esqueleto-puesto { min-width: 0; }
.esqueleto-donde,
.esqueleto-fecha { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.esqueleto-fecha { font-size: 0.9rem; }
.esqueleto-acciones { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.esqueleto-titulo { font-size: 1.05rem; }
.esqueleto-empresa { font-size: 0.9rem; }
.esqueleto-fuente { font-size: 0.8rem; }
.esqueleto-etiqueta { align-self: flex-start; font-size: 0.8rem; line-height: 1.34; padding: 0.05rem 0.6rem; border: 1px solid transparent; border-radius: 999px; }
.esqueleto-boton { min-width: 7.4rem; }
.esqueleto-boton-ancho { min-width: 8.3rem; }

.esqueleto-titulo { --ancho: var(--a1); }
.esqueleto-empresa { --ancho: var(--a2); }
.esqueleto-donde > .hueso { --ancho: var(--a3); }
.esqueleto-fecha > .hueso { --ancho: var(--a4); }
.esqueleto-fuente { --ancho: var(--a5); }
.esqueleto-fila:nth-child(5n + 1) { --a1: 85%; --a2: 45%; --a3: 70%; --a4: 60%; --a5: 70%; }
.esqueleto-fila:nth-child(5n + 2) { --a1: 70%; --a2: 38%; --a3: 80%; --a4: 55%; --a5: 80%; }
.esqueleto-fila:nth-child(5n + 3) { --a1: 92%; --a2: 50%; --a3: 65%; --a4: 62%; --a5: 65%; }
.esqueleto-fila:nth-child(5n + 4) { --a1: 78%; --a2: 42%; --a3: 75%; --a4: 58%; --a5: 75%; }
.esqueleto-fila:nth-child(5n + 5) { --a1: 66%; --a2: 40%; --a3: 68%; --a4: 64%; --a5: 68%; }

/* Inside an unfolded posting, while the AI sorts its text: bars in the shape
   of two sections (a short title and two or three lines each). */
.oferta-resumiendo { margin: 0 0 0.5rem; }
.esqueleto-apartados { display: flex; flex-direction: column; gap: 0.5rem; max-width: 52rem; }
.hueso-barra.hueso-titulo { width: 30%; height: 0.9rem; }
.hueso-barra.hueso-corta { width: 60%; }
.hueso-barra.hueso-media { width: 70%; }
.hueso-barra.hueso-segundo { width: 24%; margin-top: 0.6rem; }

/* The menu column takes 17rem of the window, hence the early breakpoint. */
@media (width <= 75rem) {
  .oferta-cabecera { display: none; }
  .lista-ofertas { border-top: 1px solid var(--borde); border-radius: var(--radio-tarjeta); }
  .lista-ofertas:not(:empty):has(~ .esqueleto-ofertas:not([hidden])) { border-radius: var(--radio-tarjeta) var(--radio-tarjeta) 0 0; }
  .lista-ofertas:empty ~ .esqueleto-ofertas { border-radius: var(--radio-tarjeta); }
  .oferta-fila,
  .esqueleto-fila { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .oferta-acciones,
  .esqueleto-acciones { justify-content: flex-start; margin-top: 0.3rem; }
}

.vacio {
  color: var(--texto-suave);
  font-style: italic;
}
/* An empty screen: one centred sentence and the button that fills it. */
.vacio-centrado { font-style: normal; text-align: center; }
.vacio-pantalla { display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 1.5rem; }

.separador { border: none; border-top: 1px solid var(--borde); margin: 1.25rem 0; }

/* The two halves of a period sit on one line: they read as a single range,
   not as two unrelated questions. They wrap on a narrow screen rather than
   forcing the form to scroll sideways. */
.periodo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.periodo select {
  flex: 1 1 8rem;
  min-width: 0;
}

.periodo-separador {
  color: var(--texto-suave);
}

/* Search jobs results: client-side pagination controls injected by
   `search_pagination.js`. Real buttons, so keyboard and screen-reader
   support come for free. */
.paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.paginacion-indicador {
  color: var(--texto-suave);
  font-size: 0.9rem;
  min-width: 8rem;
  text-align: center;
}

.ver-mas {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

@media (width <= 30rem) {
  .paginacion { gap: 0.6rem; }
  .paginacion-indicador { min-width: 6rem; font-size: 0.85rem; }
}

/* Interest stars */

.interes { display: inline-flex; margin: 0; }
.interes-estrella {
  border: 0;
  background: none;
  padding: 0.1rem 0.2rem;
  font-size: 1.2rem;
  line-height: 1;
  color: var(--acento);
  cursor: pointer;
}
.interes-estrella:hover { color: var(--acento-fuerte); }
.interes-estrella:focus-visible { outline: 2px solid var(--acento); outline-offset: 1px; }

/* Follow-up email: a large window (`_email_dialog.html`), everything centred
   but what is typed; the recipients as pills. */

.cabecera-panel-enlaces { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.dialogo-titulo-cerrable { position: relative; padding: 0 2.2rem; text-align: center; overflow-wrap: anywhere; }
.dialogo-cerrar { position: absolute; top: 50%; right: 0; transform: translateY(-50%); padding: 0.2rem 0.45rem; border: 0; background: none; box-shadow: none; color: var(--texto-suave); font-size: 1rem; line-height: 1; }
.dialogo-cerrar:hover { color: var(--texto); background: var(--fondo-suave); }
.dialogo-correo { width: min(48rem, calc(100vw - 2rem)); }
.dialogo-correo-campos { display: flex; flex-direction: column; gap: 1.6rem; }
/* The title of a field centred, its own «Copiar» on the right, in line with
   the field's right edge; the title sits close to the field it names. */
.dialogo-correo .campo > :is(.etiqueta-campo, .campo-cabecera) { margin-bottom: 0.6rem; }
.campo-cabecera { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.campo-cabecera > label { grid-column: 2; margin: 0; }
.campo-cabecera > .copiar-campo { grid-column: 3; justify-self: end; }
.copiar-campo[data-copiado]::after { content: " ✓"; }
.dialogo-correo .campo { text-align: center; }
.dialogo-correo .campo :is(input[type="text"], textarea) { text-align: left; }
.dialogo-correo textarea { min-height: 12rem; max-height: 45vh; line-height: 1.55; }
.dialogo-correo .dialogo-formulario-acciones { flex-wrap: wrap; justify-content: center; }
.opciones-correo { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; margin: 0.35rem auto 0; }
/* «Para»: five to a row, the rest below, so the window never widens; a long
   name is cut with «…» (its full name is the button's `title`). */
.chips-correo { display: grid; grid-template-columns: repeat(5, minmax(0, 8.6rem)); justify-content: center; gap: 0.5rem; }
@media (max-width: 40rem) { .chips-correo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chips-correo label { position: relative; display: block; }
.chips-correo input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chips-correo span { display: block; padding: 0.25rem 0.3rem; border: 1px solid var(--borde-control); border-radius: 999px; font-size: 0.85rem; font-weight: 400; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips-correo label:hover span { background: var(--fondo-suave); }
.chips-correo input:checked + span { background: var(--aviso-fondo); border-color: var(--acento); }
.chips-correo input:focus-visible + span { outline: 2px solid var(--texto); outline-offset: 2px; }
.campo .chips-correo label { font-weight: 400; }
@media (max-width: 40rem) { .segmentado.opciones-correo label { flex: 1 1 auto; text-align: center; } }

/* «Hechos (N)» and «Correos enviados (N)» side by side at the foot of the reminders. */
.pie-recordatorios { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 0.5rem 1.4rem; margin-top: 0.9rem; }
.pie-recordatorios > .boton-enlace { font-size: 0.9rem; font-weight: 500; }
.dialogo-correos-enviados, .dialogo-recordatorios-hechos { width: min(36rem, calc(100vw - 2rem)); }
.dialogo-recordatorios-hechos .lista-hechos { margin-top: 1rem; }
/* «Ver todos (N)» of a history step: the events in a window that scrolls its
   list and keeps the title, the count and the ✕ in place. */
.ver-todos-paso { margin-top: 0.4rem; font-size: 0.85rem; }
.dialogo-eventos-paso { width: min(36rem, calc(100vw - 2rem)); }
dialog.dialogo-eventos-paso { max-height: 84vh; overflow: hidden; }
dialog.dialogo-eventos-paso[open] { display: flex; flex-direction: column; }
.dialogo-eventos-paso .dialogo-formulario-caja { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dialogo-eventos-total { margin: 0.2rem 0 0.8rem; text-align: center; }
.dialogo-eventos-paso .eventos-paso-todos { flex: 1; min-height: 0; margin: 0; padding-right: 0.5rem; align-items: stretch; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #4a5563 transparent; }
.dialogo-eventos-paso .pastilla { display: flex; }
@supports selector(::-webkit-scrollbar) {
  .dialogo-eventos-paso .eventos-paso-todos { scrollbar-width: auto; }
  .dialogo-eventos-paso .eventos-paso-todos::-webkit-scrollbar { width: 6px; }
  .dialogo-eventos-paso .eventos-paso-todos::-webkit-scrollbar-thumb { background: #4a5563; border-radius: 3px; }
}
.lista-correos-enviados { list-style: none; padding: 0; margin: 1rem 0 0; }
.lista-correos-enviados li { padding: 0.6rem 0.25rem; border-bottom: 1px solid var(--borde); }
.lista-correos-enviados summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.lista-correos-enviados summary::-webkit-details-marker { display: none; }
.correo-enviado-resumen { min-width: 0; overflow-wrap: anywhere; }
.correo-enviado-resumen > * { display: block; }
.correo-enviado-resumen > span { font-size: 0.85rem; color: var(--texto-suave); }
.correo-enviado-ver { flex: none; color: var(--acento-fuerte); font-size: 0.9rem; font-weight: 500; }
.lista-correos-enviados details > :not(summary) { margin-top: 0.5rem; overflow-wrap: anywhere; }

/* Job sheet (`_job_sheet.html`): the «Datos» part of a saved CV's sheet,
   and folded under a one-line summary on the Proposal. Small labels centred
   over each field, segmented buttons for few options and a list menu
   (job_sheet.js) for many. */
.ficha-plegada { border: 1px solid var(--borde); border-radius: var(--radio); padding: 0.75rem 1rem; }
.ficha-plegada > summary { cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.75rem; }
.ficha-plegada > summary .ficha-titulo { font-weight: 600; }
.ficha-plegada > summary .ficha-resumen { overflow-wrap: anywhere; }
.ficha-plegada[open] > summary { margin-bottom: 0.75rem; }
.ficha-plegada-plantilla { margin: 0 0 1rem; text-align: center; }
.ficha-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); gap: 1.1rem 1.25rem; }
.ficha-campo { gap: 0.35rem; min-width: 0; text-align: center; }
.ficha-campo > * { min-width: 0; }
.ficha-etiqueta, .ficha-campo .ficha-etiqueta { display: block; font-size: 0.8rem; font-weight: 400; color: var(--texto-suave); text-align: center; }
.ficha-campo label.opcion-estado { font-weight: 400; font-size: 0.9rem; }
.ficha-campo input { text-align: center; }
.ficha-segmentado { align-self: center; max-width: 100%; }
.ficha-segmentado > label { display: flex; }
.ficha-segmentado > label > span { display: flex; align-items: center; justify-content: center; flex: 1; white-space: nowrap; }
/* Segmented buttons need two columns of the grid while there are two. */
@media (min-width: 48rem) {
  .ficha-campos > .ficha-campo:has(> .ficha-segmentado) { grid-column: span 2; }
}
.ficha-cita { font-size: 0.8rem; overflow-wrap: anywhere; }
.ficha-salario { border: none; padding: 1rem 0 0; margin: 1.25rem 0 0; min-width: 0; border-top: 1px solid var(--borde); }
.ficha-salario legend { float: left; width: 100%; margin-bottom: 0.5rem; padding: 0; }
.ficha-salario-fila { clear: both; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.6rem 0.75rem; }
.ficha-salario-fila input[type="number"] { width: 8.5rem; text-align: center; }
.ficha-salario-guion { color: var(--texto-suave); }
.ficha-pie { display: flex; justify-content: center; margin-top: 1.25rem; }

/* A list menu: the chosen value as a field that opens the options, in the
   status menu's box and rows. Without JavaScript the options stay open as a
   list in the page. */
.menu-lista { position: relative; min-width: 0; }
.menu-lista-boton { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; width: 100%; padding: 0.5rem 0.6rem; border: 1px solid var(--borde-control); border-radius: var(--radio); background: var(--fondo-campo); color: var(--texto-suave); font: inherit; text-align: left; }
.menu-lista-boton.menu-lista-elegido { color: var(--texto); }
/* The chosen value reads whole: a thin scroll bar shows only when it does not fit. */
.menu-lista-boton > :first-child { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; padding-bottom: 0.15rem; }
@supports selector(::-webkit-scrollbar) {
  .menu-lista-boton > :first-child::-webkit-scrollbar { height: 4px; }
  .menu-lista-boton > :first-child::-webkit-scrollbar-thumb { border-radius: 4px; background: var(--borde-control); }
}
@supports not selector(::-webkit-scrollbar) {
  .menu-lista-boton > :first-child { scrollbar-width: thin; scrollbar-color: var(--borde-control) transparent; }
}
.menu-lista-flecha { flex: none; font-size: 0.7rem; color: var(--texto-suave); }
/* The options live in a window in the middle of the screen (`dialog`); without
   JavaScript it is open and plain, a list in the page. */
.menu-lista-dialogo { width: min(22rem, calc(100vw - 2rem)); }
.menu-lista-dialogo .menu-estado { position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; }
.menu-lista:not(.menu-lista-js) .menu-lista-dialogo { position: static; width: auto; margin: 0; border: 0; box-shadow: none; background: none; }
.menu-lista:not(.menu-lista-js) .dialogo-formulario-caja { padding: 0; }
.menu-lista-opciones { max-height: min(20rem, 50vh); overflow-y: auto; }
.ficha-campo .menu-lista-buscar { width: 100%; margin-bottom: 0.35rem; padding: 0.4rem 0.6rem; border: 1px solid var(--borde-control); border-radius: var(--radio); background: var(--fondo-campo); font: inherit; font-size: 0.9rem; color: inherit; text-align: left; }
.menu-lista-panel .opcion-estado-texto { overflow-wrap: anywhere; }
/* «Otra ▾» among the currencies: one more segment, joined to the three
   buttons, that opens the rest. */
.ficha-moneda { display: inline-flex; align-items: stretch; max-width: 100%; }
.ficha-moneda > .segmentado { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.menu-lista-boton.menu-lista-segmento { width: auto; height: 100%; gap: 0.35rem; padding: 0.3rem 0.8rem; border-left: 0; border-radius: 0 var(--radio) var(--radio) 0; background: none; box-shadow: none; color: inherit; font-size: 0.9rem; line-height: inherit; }
.menu-lista-boton.menu-lista-segmento.menu-lista-elegido { background: var(--acento); color: var(--texto-sobre-acento); }
.menu-lista-segmento .menu-lista-flecha { color: inherit; }
.menu-lista-segmento > :first-child { padding-bottom: 0; }

/* A saved CV's job sheet: one card, its parts one at a time. */
.pastilla-plantilla { padding: 0.2rem 0.75rem; border: 1px solid var(--borde); border-radius: 1rem; background: var(--fondo-suave); font-size: 0.8rem; color: var(--texto-suave); overflow-wrap: anywhere; }
.subapartados { display: flex; width: fit-content; max-width: 100%; margin: 0.25rem auto 1.25rem; }
.subapartados button { flex: 1 1 auto; white-space: nowrap; transition: none; }
@media (max-width: 30rem) {
  .subapartados button { padding: 0.3rem 0.45rem; font-size: 0.8rem; }
}
.motivos-propuesta + .motivos-propuesta { margin-top: 1.25rem; }
.motivos-propuesta h3 { margin: 0 0 0.4rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; text-align: center; color: var(--texto-suave); }
.motivo-fila { display: flex; gap: 0.5rem 1rem; align-items: flex-start; padding: 0.55rem 0; border-bottom: 1px solid var(--borde); }
.motivo-fila:last-child { border-bottom: 0; }
.motivo-fila-nombres { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 0 0 min(16rem, 40%); min-width: 0; }
.motivo-fila-nombre { padding: 0.1rem 0.6rem; border: 1px solid var(--borde); border-radius: 999px; background: var(--fondo-suave); font-size: 0.85rem; overflow-wrap: anywhere; }
.motivo-fila-texto { flex: 1; min-width: 0; margin: 0; font-size: 0.9rem; color: var(--texto-suave); overflow-wrap: anywhere; }
@media (max-width: 40rem) {
  .motivo-fila { flex-direction: column; }
  .motivo-fila-nombres { flex-basis: auto; }
}
.texto-vacante { max-height: 28rem; margin-inline: auto; overflow-y: auto; overflow-wrap: anywhere; }
/* The posting brought from "Buscar vacantes" on Adapt: one line with the
   link to the posting on its right. */
.desde-busqueda { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.desde-busqueda p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.desde-busqueda .boton { flex: none; white-space: nowrap; }
@media (max-width: 40rem) {
  .desde-busqueda { flex-direction: column; align-items: flex-start; }
}

/* Results: "Tus candidaturas" — a funnel per period, the time to answer, the
   question about the deadlines and the three buttons that open a window. */

.tarjeta-candidaturas { margin-top: 1.25rem; max-width: 56rem; margin-inline: auto; }
.tarjeta-candidaturas > h2 { margin-top: 0; }

/* The period selector: one funnel at a time once JavaScript is there. */
.selector-periodo { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 0.75rem; }
.selector-periodo [aria-pressed="true"] {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}
.selector-periodo button[aria-pressed="true"]:not([role="tab"]):hover {
  background: var(--acento-fuerte);
  border-color: var(--acento-fuerte);
}
/* Centred with auto margins rather than justify-content, so a bar wider than
   the screen still scrolls from its first tab instead of cutting it off. */
.pestanas-centradas > :first-child { margin-left: auto; }
.pestanas-centradas > :last-child { margin-right: auto; }

.total-enviados { text-align: center; margin: 0.5rem 0 1rem; color: var(--texto-suave); }
.total-enviados strong { font-size: 2.2rem; line-height: 1; color: var(--texto); margin-right: 0.4rem; }
.tiempo-respuesta { margin-top: 1rem; }

/* A row with a bar: name, bar and figure. Used by the funnel and by every
   list in the windows. */
.filas-resultados { display: grid; gap: 0.5rem; }
.fila-barra {
  display: grid;
  grid-template-columns: minmax(7rem, 14rem) minmax(4rem, 1fr) minmax(7rem, 11rem);
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--fondo-suave);
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
}
.fila-barra[hidden] { display: none; }
.fila-barra-nombre { font-weight: 600; overflow-wrap: anywhere; }
.fila-barra-nombre small { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.8rem; color: var(--texto-suave); }
.fila-barra-pista { height: 0.5rem; border-radius: 999px; background: var(--fondo); overflow: hidden; }
.fila-barra-pista > span { display: block; height: 100%; border-radius: 999px; background: var(--acento); }
.fila-barra-valor { color: var(--texto-suave); font-size: 0.9rem; text-align: right; }
.fila-barra-valor small { display: block; margin-top: 0.1rem; font-size: 0.75rem; }
.cambio-mejora { color: var(--estado-verde); }
.cambio-empeora { color: var(--peligro); }
.cambio-igual { color: var(--texto-suave); }
.solo-lectores { position: absolute; left: -9999px; }

.pregunta-plazos { margin-top: 1.25rem; text-align: center; line-height: 1.7; }
.pregunta-plazos p { margin: 0 0 0.75rem; }
.pregunta-plazos .barra-acciones { justify-content: center; }

/* The three buttons: only a name each; one that is not open yet is greyed out
   and says when it will be. */
.atajos-resultados {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.atajo-resultados {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.8rem 0.75rem;
  font: inherit;
  font-weight: 600;
  color: var(--texto);
  background: none;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  cursor: pointer;
}
.atajo-resultados:hover:not(:disabled) { border-color: var(--acento); }
.atajo-resultados:disabled { opacity: 0.5; cursor: default; }
.atajo-resultados small { font-size: 0.8rem; font-weight: 400; color: var(--texto-suave); }

/* The windows: wide enough for seven buttons on one line. */
dialog.ventana-resultados { width: min(48rem, calc(100vw - 2rem)); }
.grupos-resultados { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin: 1rem 0; }
.grupos-resultados [aria-pressed="true"] {
  background: var(--acento);
  border-color: var(--acento);
  color: var(--texto-sobre-acento);
}
@media (width >= 40rem) {
  .grupos-resultados { flex-wrap: nowrap; }
  .grupos-resultados button { white-space: nowrap; }
}
.resultados-destacado {
  margin: 0 0 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radio);
  background: var(--aviso-fondo);
  font-weight: 600;
  text-align: center;
}
@media (width <= 40rem) {
  .fila-barra { grid-template-columns: minmax(0, 1fr); gap: 0.4rem; }
  .fila-barra-valor { text-align: left; }
}

.tabla-detalle { display: block; font-size: 0.8rem; color: var(--texto-suave); }

/* Privacy policy, 3.7: what Ancla keeps in the browser. Wider text than the
   results tables, so on a phone each row becomes a stacked block labelled by
   its column instead of scrolling sideways. */
.tabla-almacenamiento { overflow-x: auto; margin: 0.75rem 0; }
.tabla-almacenamiento table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.tabla-almacenamiento th,
.tabla-almacenamiento td {
  padding: 0.5rem 0.5rem 0.5rem 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--borde);
}
.tabla-almacenamiento thead th { font-size: 0.72rem; color: var(--texto-suave); font-weight: 600; }
.tabla-almacenamiento code { overflow-wrap: anywhere; }
@media (width <= 40rem) {
  .tabla-almacenamiento thead { position: absolute; left: -9999px; }
  .tabla-almacenamiento tr { display: block; padding: 0.5rem 0; border-bottom: 1px solid var(--borde); }
  .tabla-almacenamiento th,
  .tabla-almacenamiento td { display: block; padding: 0.15rem 0; border: 0; }
  .tabla-almacenamiento td::before {
    content: attr(data-etiqueta) ": ";
    font-weight: 600;
    color: var(--texto-suave);
  }
}


/* My profile: the profile read like a CV and, beside it, the panel of the
   part picked on it (`profile_parts.js`), which stays in sight while the
   profile scrolls and scrolls on its own when it is taller than the window.
   A narrow window puts the panel under the profile. */
.perfil-con-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.perfil-con-panel > .tarjeta { margin: 0; min-width: 0; }
@media (width >= 62rem) {
  .perfil-con-panel { grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem); }
  .perfil-con-panel > .panel-partes {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}
.aviso-traducir { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }

.perfil-documento { display: flex; flex-direction: column; gap: 1.5rem; }
/* A part of the profile: a link to its panel that reads as the profile's own
   text, outlined on hover and while its panel is open. */
.perfil-documento .parte {
  display: block;
  color: inherit;
  font-weight: inherit;
  border-radius: var(--radio);
  padding: 0.45rem 0.6rem;
  margin-inline: -0.6rem;
  outline: 2px solid transparent;
  outline-offset: -2px;
  overflow-wrap: anywhere;
  transition: outline-color 0.12s ease, background 0.12s ease;
}
.perfil-documento .parte:hover { outline-color: var(--aviso-borde); }
.perfil-documento .parte[aria-current="true"] { outline-color: var(--acento); background: var(--aviso-fondo); }
.perfil-documento .chip.parte { display: inline-flex; margin: 0; padding: 0.3rem 0.8rem; border-radius: 999px; }
.perfil-documento .parte-cabecera { display: flex; align-items: center; gap: 1rem; }
.foto-perfil { flex: none; width: 4.5rem; height: 4.5rem; border-radius: 50%; object-fit: cover; }
.foto-vacia { display: block; background: var(--fondo-suave); border: 1px dashed var(--borde-control); }
.foto-anadir { display: flex; align-items: center; justify-content: center; color: var(--texto-suave); font-size: 1.6rem; cursor: pointer; }
.foto-anadir:hover { color: var(--texto); border-color: var(--acento); }
.quien { display: flex; flex-direction: column; align-items: flex-start; gap: 0.15rem; min-width: 0; }
.nombre-perfil { font-size: 1.35rem; font-weight: 700; }
.titular-perfil { color: var(--acento-fuerte); }
.contacto-perfil { color: var(--texto-suave); font-size: 0.92rem; }

.titulo-seccion-perfil {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid var(--borde);
  padding-bottom: 0.3rem;
  margin-bottom: 0.5rem;
}
.titulo-seccion-perfil h2,
h2.titulo-seccion-perfil {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
.titulo-seccion-perfil .contador-seccion { letter-spacing: 0; text-transform: none; }
.texto-perfil { white-space: pre-wrap; }
.lista-partes { display: flex; flex-direction: column; gap: 0.15rem; }
.parte-bloque .nombre-parte { display: block; font-weight: 600; }
.detalle-parte { display: block; color: var(--texto-suave); font-size: 0.9rem; }
.lista-en-linea { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.lista-en-linea .parte { margin: 0; }
.ver-todas { display: block; width: 100%; margin-top: 0.4rem; }
.chip-mas { padding: 0.3rem 0.8rem; border: 1px dashed var(--borde-control); border-radius: 999px; background: none; color: var(--acento-fuerte); font-size: 0.92rem; }

.foto-panel { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.foto-panel .acciones-parte { margin: 0; flex: 1 1 12rem; }
.foto-panel input[type="file"] { width: 100%; }
/* A text box of a panel keeps one height and scrolls inside, so the panel
   does not grow with what is written (textarea_autosize.js leaves it). */
textarea.alto-fijo { height: 9rem; min-height: 9rem; }
.parte-panel form.pila + .acciones-parte { margin-top: 1rem; align-items: center; }

.importar-cv { max-width: 32rem; margin: 1.5rem auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
.importar-cv form { display: flex; flex-direction: column; align-items: center; gap: 0.4rem; width: 100%; }
.importar-cv .ayuda { margin: 0; }
.importar-cv .importar-texto { width: 100%; text-align: left; }
/* The file input is the whole button: its label. */
.boton-fichero { position: relative; overflow: hidden; }
.boton-fichero input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
/* The tooltip of a file button hangs outside it, so it cannot clip: the input fills the button instead. */
.boton-fichero.globo { overflow: visible; }
.boton-fichero.globo::after { font-weight: 400; }
.boton-fichero.globo input[type="file"] { width: 100%; height: 100%; }

/* Proposal: a big header (company · position, then the language), and four
   tabs like X's under it: the text alone, the chosen one bold with a rounded
   accent line under its words, the others muted. Each tab takes an equal
   share of the row, and a long name wraps instead of pushing the page wider. */
.cabecera-propuesta { text-align: center; margin: 0.5rem 0 1.25rem; }
.antetitulo {
  margin: 0;
  color: var(--texto-suave);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.cabecera-propuesta h1 { font-size: 2.1rem; margin: 0.2rem 0 0.6rem; overflow-wrap: anywhere; }
/* «Adaptar otra vacante» has its own row above the title: at the right edge
   of the header on a wide screen, the full width on a narrow one. Nothing
   is positioned over the title, so they can never overlap. */
.adaptar-otra, .fila-esquina { margin: 0 0 0.9rem; text-align: right; }
@media (width < 40rem) {
  .adaptar-otra, .fila-esquina { text-align: center; }
  .adaptar-otra .boton, .fila-esquina .boton { display: block; }
}
.separador-titulo { color: var(--texto-suave); font-weight: 400; }
.idioma-propuesta {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.8rem;
  border: 1px solid var(--borde-control);
  border-radius: 999px;
  font-weight: 600;
}
/* «Coincidencia con la vacante», a small card under the header: the ring,
   the title level with it and the button to the report; under them, the
   bar to the target. The report opens in a window in the middle of the
   screen, laid out like Jobscan's match report (`_match_score.html`). */
.coincidencia {
  max-width: 46rem;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem 1.1rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  background: var(--fondo);
  text-align: left;
}
.coincidencia-cabecera { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.1rem; }
.coincidencia-titulo { flex: 1 1 10rem; margin: 0; font-size: 1.3rem; font-weight: 700; }
.coincidencia-abrir { margin-left: auto; }
.coincidencia-anillo {
  flex: none;
  display: grid;
  place-items: center;
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, var(--fondo) 79%, transparent 81%),
    conic-gradient(var(--acento) calc(var(--coincidencia) * 1%), var(--borde) 0);
}
.coincidencia-anillo.coincidencia-alcanzada {
  background:
    radial-gradient(closest-side, var(--fondo) 79%, transparent 81%),
    conic-gradient(var(--acento-fuerte) calc(var(--coincidencia) * 1%), var(--borde) 0);
}
.coincidencia-cifra { font-size: 1.45rem; font-weight: 700; line-height: 1; }
.coincidencia-anillo-pequeno { width: 3.9rem; }
.coincidencia-anillo-pequeno .coincidencia-cifra { font-size: 1.05rem; }
.coincidencia-escala { position: relative; margin-top: 1rem; }
/* The label under the bar hangs out of it, so the card needs room below. A
   margin, not padding: padding would grow the box the label is placed
   against and push it down with it. */
.coincidencia > .coincidencia-escala { margin-bottom: 1.4rem; }
.coincidencia-barra {
  position: relative;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--borde);
}
.coincidencia-barra-relleno {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--acento);
}
.coincidencia-barra-objetivo {
  position: absolute;
  top: -0.3rem;
  bottom: -0.3rem;
  width: 2px;
  background: var(--texto);
}
.coincidencia-barra-etiqueta {
  position: absolute;
  top: calc(100% + 0.45rem);
  transform: translateX(-50%);
  line-height: 1;
  color: var(--texto-suave);
  font-size: 0.75rem;
  white-space: nowrap;
}

/* The report: a modal <dialog>, its padding in an inner box so a click on
   the dialog element itself is a click on the dimmed page. Without
   JavaScript the same box shows through `:target` (`match_report.js` adds
   `informe-con-js` and takes over). */
.informe-coincidencia,
.ventana-hueco {
  width: min(52rem, calc(100vw - 2rem));
  max-height: min(88dvh, 60rem);
  padding: 0;
  border: 1px solid var(--borde);
  border-radius: var(--radio-tarjeta);
  background: var(--fondo);
  color: var(--texto);
  box-shadow: var(--sombra-alta);
  text-align: left;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.informe-coincidencia::backdrop,
.ventana-hueco::backdrop { background: var(--velo); }
.informe-coincidencia:not(.informe-con-js):is(:target, :has(:target)) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 100;
  margin: auto;
  height: fit-content;
  box-shadow: var(--sombra-alta), 0 0 0 100vmax var(--velo);
}
.informe-contenido { padding: 0 1.75rem 1.75rem; }
.informe-cabecera {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0 0.9rem;
  border-bottom: 1px solid var(--borde);
  background: var(--fondo);
}
.informe-cabecera-texto { flex: 1 1 auto; min-width: 0; }
.informe-cabecera h2 { margin: 0; font-size: 1.3rem; }
.informe-vacante { margin: 0.15rem 0 0; color: var(--texto-suave); overflow-wrap: anywhere; }
.informe-cerrar { align-self: flex-start; padding: 0.35rem 0.6rem; font-size: 1.1rem; line-height: 1; }
.informe-subtitulo {
  margin: 1.6rem 0 0.6rem;
  color: var(--texto-suave);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.informe-resumen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  gap: 0.6rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}
.informe-resumen a {
  display: grid;
  gap: 0.3rem;
  height: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-pagina);
  color: inherit;
  text-decoration: none;
}
.informe-resumen a:hover { border-color: var(--acento); }
.informe-resumen-nombre { font-size: 0.9rem; font-weight: 600; }
.informe-resumen-cuenta { font-size: 1.25rem; font-weight: 700; }
.informe-resumen .ayuda { margin: 0; font-size: 0.8rem; }
.informe-minibarra { height: 0.35rem; border-radius: 999px; background: var(--borde); overflow: hidden; }
.informe-minibarra > span { display: block; height: 100%; background: var(--acento); }
.informe-tipo { margin-top: 1.75rem; scroll-margin-top: 6.5rem; }
.informe-tipo h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}
.informe-tipo-cuenta { color: var(--texto-suave); font-size: 0.9rem; font-weight: 400; }
.informe-tabla { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.informe-tabla th,
.informe-tabla td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--borde);
  text-align: left;
  vertical-align: middle;
}
.informe-tabla thead th {
  padding-block: 0.4rem;
  border-bottom-color: var(--borde-control);
  color: var(--texto-suave);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}
.informe-tabla tbody th { font-weight: 400; overflow-wrap: anywhere; }
.informe-palabra { font-weight: 600; }
.informe-motivo { display: block; margin-top: 0.15rem; color: var(--texto-suave); font-size: 0.85rem; }
.informe-tabla .informe-veces { width: 8rem; color: var(--texto-suave); text-align: center; }
.informe-tabla .informe-estado { width: 8rem; text-align: right; }
.informe-marca {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.informe-marca-esta { border-color: var(--estado-verde-borde); background: var(--estado-verde-fondo); color: var(--estado-verde); }
.informe-marca-falta { border-color: var(--estado-amarillo-borde); background: var(--estado-amarillo-fondo); color: var(--estado-amarillo); }
.informe-fila-falta:has(+ .informe-fila-accion) > * { border-bottom: 0; }
.informe-fila-accion > td { padding-top: 0; }
@media (width <= 40rem) {
  .informe-contenido { padding: 0 1rem 1.25rem; }
  .informe-tabla .informe-veces { width: auto; }
  .informe-tabla .informe-estado { width: auto; }
  .informe-tabla thead th { white-space: normal; }
  .informe-cabecera h2 { font-size: 1.15rem; }
}

/* "¿Lo tienes?": one row of buttons, one per place it can go (the report and
   the windows of "Lo que más te piden"). */
.lo-tengo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radio);
  background: var(--aviso-fondo);
}
.lo-tengo-etiqueta { font-size: 0.88rem; }
.lo-tengo-opciones { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }

.pestanas-anchas { gap: 0; overflow-x: visible; }
.pestanas-anchas [role="tab"] {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  font-size: 1rem;
  white-space: normal;
  text-align: center;
  border-bottom: 0;
}
.pestanas-anchas [role="tab"]:hover { background: var(--fondo-suave); }
@media (width <= 40rem) {
  .pestanas-anchas [role="tab"] { padding-inline: 0.25rem; font-size: 0.9rem; }
}
.pestanas-anchas [role="tab"] > span { position: relative; display: inline-block; }
.pestanas-anchas [role="tab"][aria-selected="true"] { color: var(--texto); font-weight: 700; }
.pestanas-anchas [role="tab"][aria-selected="true"] > span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.9rem;
  height: 4px;
  border-radius: 999px;
  background: var(--acento);
}
.titulo-centrado { text-align: center; }
.nota-centrada { margin-inline: auto; text-align: center; }

/* The letter: "Tono" on the left, "Copiar" and "Regenerar" on the right. */
.fila-tono { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.75rem; }
.fila-tono .selector-tono { margin: 0; }
.fila-tono .acciones { display: flex; gap: 0.5rem; }

/* The laid-out CV and, beside it, the panel of the part picked on it
   (`_cv_parts_panel.html`), which stays in sight while the sheet scrolls;
   the versions kept of the CV go under both, across the whole width. A
   narrow window puts the panel under the CV. */
.cv-con-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "hoja" "panel" "versiones";
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.cv-con-panel > .tarjeta { margin: 0; min-width: 0; }
.cv-con-panel > .vista-cv { grid-area: hoja; }
.cv-con-panel > .panel-partes { grid-area: panel; }
.cv-con-panel > #cv-final { grid-area: versiones; }
@media (width >= 62rem) {
  .cv-con-panel {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 31rem);
    grid-template-areas: "hoja panel" "versiones versiones";
  }
  .cv-con-panel > .panel-partes { position: sticky; top: 1rem; }
}
.panel-partes { display: flex; flex-direction: column; gap: 1.25rem; }
.parte-panel h2 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.parte-panel[hidden], .orden-experiencias[hidden] { display: none; }
.motivo-parte {
  margin: 0 0 0.9rem;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radio);
  background: var(--fondo-suave);
  font-size: 0.92rem;
}
.motivo-parte > :last-child { margin-bottom: 0; }
.motivo-parte p { margin: 0 0 0.3rem; }
.motivo-parte-titulo {
  color: var(--texto-suave);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.motivos-skills { margin: 0; padding-left: 1.1rem; }
.motivos-skills li + li { margin-top: 0.25rem; }
/* The actions of a part, in one row while they fit. */
.acciones-parte { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem; }
.acciones-parte:last-child { margin-bottom: 0; }
/* On the Proposal the title and the actions of every part are centred, and a
   button never breaks: when they do not fit they drop whole to a second
   centred row. */
.cv-con-panel .parte-panel > h2 { text-align: center; }
.cv-con-panel .acciones-parte { justify-content: center; align-items: center; }
.cv-con-panel .acciones-parte { gap: 0.4rem 0.2rem; }
.cv-con-panel .acciones-parte .boton { gap: 0.3rem; padding-inline: 0.35rem; font-size: 0.8rem; white-space: nowrap; }
.cv-con-panel .acciones-parte .boton .icono { width: 0.9rem; height: 0.9rem; }
.parte-panel .chips { margin-top: 0.25rem; }

/* The order of the chosen experiences, dragged by their handle. */
.orden-experiencias { border-top: 1px solid var(--borde); padding-top: 1rem; }
.cabecera-orden { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.cabecera-orden h3 { margin: 0; font-size: 0.95rem; text-align: center; }
.lista-orden { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.lista-orden > li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo);
  min-width: 0;
}
.lista-orden a { flex: 1 1 auto; min-width: 0; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.lista-orden a:hover { color: var(--acento); }
.lista-orden a[aria-current="true"] { color: var(--acento); font-weight: 600; }
.fuera-de-la-hoja { flex: none; color: var(--texto-suave); font-size: 0.8rem; }

/* A quiet button with an icon: the actions of a card, which should not
   compete with its content. */
.boton-sutil { border-color: transparent; background: none; color: var(--texto-suave); }
.boton-sutil:hover { color: var(--texto); }
.boton-pequeno .icono { width: 1rem; height: 1rem; }

/* Skills, languages and gaps as tags. A selected skill has a pencil that
   opens its small form under the tags. */
.chips { list-style: none; margin: 0 0 0.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--borde);
  border-radius: 999px;
  background: var(--fondo-suave);
  font-size: 0.92rem;
}
.chip:has(.boton-chip:not([hidden])) { padding-right: 0.35rem; }
.chip:has([aria-expanded="true"]) { border-color: var(--acento); }
.chip-detalle { color: var(--texto-suave); }
.boton-chip { padding: 0.2rem; border: 0; border-radius: 999px; background: none; color: var(--texto-suave); }
.boton-chip:hover { color: var(--texto); }
.boton-chip .icono { width: 0.95rem; height: 0.95rem; }

/* The small form a pencil opens, in place. */
.editor-en-sitio {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  background: var(--fondo-suave);
}
.editor-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.editor-fila label { flex-basis: 100%; font-weight: 600; font-size: 0.9rem; }
.editor-fila select { flex: 1 1 12rem; width: auto; min-width: 0; }

/* «Ajuste directo» of «Sobre mí»: the group's three words always on one line;
   a long name is cut with an ellipsis and shown whole when the menu opens. */
.rotulo-grupo { margin: 0.25rem 0 0.4rem; text-align: center; font-weight: 600; }
.tres-palabras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin-bottom: 0.9rem; }
.tres-palabras select { width: 100%; min-width: 0; padding-inline: 0.5rem; text-overflow: ellipsis; }
.cv-con-panel .editor-en-sitio .barra-acciones { justify-content: center; }


/* «Coincidencia con la vacante» of a saved CV (`_saved_match.html`): a card
   in the «Vacante» tab with the ring and the date on the left and the button
   to the report on the right. The report is the window above. */
.coincidencia-guardada { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem 1.25rem; margin: 0.5rem 0; }
.coincidencia-guardada-texto { min-width: 0; }
.coincidencia-guardada-titulo { margin: 0; font-weight: 600; }
.coincidencia-guardada-texto .ayuda { margin: 0.2rem 0 0.6rem; }
.informe-calculada { margin: 0.35rem 0 0; }

/* A file picker with its own button and status (`_file_picker.html`): the
   button and the name of the chosen file wrap together, and the submit that
   follows keeps its distance. */
.selector-archivo { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.75rem; }
.selector-archivo .campo-archivo { position: relative; cursor: pointer; }
.foto-panel form.en-linea { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 1rem; }
.foto-panel .campo-archivo { position: relative; cursor: pointer; }

/* Tooltip: the text of data-globo above the element, on hover and keyboard focus. */
.globo { position: relative; }
.globo::after {
  content: attr(data-globo);
  position: absolute;
  bottom: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--borde-control);
  border-radius: var(--radio);
  background: var(--fondo);
  color: var(--texto);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 10;
}
.globo:hover::after, .globo:focus-visible::after { opacity: 1; visibility: visible; }
/* The stars' balloon hangs from their right edge, the menu's under its entry. */
.interes.globo::after { left: auto; right: 0; transform: none; }
.nav a.globo::after { bottom: auto; top: calc(100% + 0.35rem); left: 0; transform: none; }
