/* Lo que cv_lin añade a los componentes del núcleo (shell.css): el asistente.

   Es el diseño de la versión anterior (frontend/static/css/redesign.css, el
   «redesign» del asistente), sin lo que ahora pone la carcasa común: la barra,
   los menús, los botones .btn-grad/.btn-ghost, los campos .inp, la publicidad
   y la cuenta son del núcleo. Los colores, con sus tokens (var(--pri)…): los
   pone static/css/theme.css. Sin Bootstrap ni Bootstrap Icons de un CDN: los
   iconos son un sprite propio (static/img/icons.svg) y las pocas utilidades
   que se usaban están abajo. */

.bi { width: 1em; height: 1em; fill: currentColor; vertical-align: -.125em; flex: none; }
.cv-wizard { padding-bottom: 8px; }

/* --- stepper ------------------------------------------------------------ */

.app-stepper { padding-top: 34px; padding-bottom: 8px; }
.app-stepper-track {
  display: flex; align-items: flex-start; justify-content: space-between;
  max-width: 640px; margin: 0 auto;
}
.step-node {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  flex: 1; cursor: pointer; position: relative;
  background: none; border: none; padding: 0; font: inherit;
}
/* La línea que une cada paso con el anterior: hacia el principio de la línea
   (a la derecha en árabe). Con left/right, en árabe unía cada paso con el
   siguiente y la del último salía 22 px por el borde: la página se iba de lado. */
.step-node .step-line {
  position: absolute; top: 19px; inset-inline-start: calc(-50% + 22px); inset-inline-end: calc(50% + 22px);
  height: 3px; background: var(--line); z-index: 0;
}
.step-node:first-child .step-line { display: none; }
.step-node .step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  z-index: 1; background: #fff; color: var(--faint);
  border: 2px solid var(--line);
}
.step-node .step-label { font-size: 13px; font-weight: 600; color: var(--faint); }

.step-node.is-done .step-line,
.step-node.is-current .step-line { background: var(--pri); }
.step-node.is-done .step-circle { background: var(--pri); color: #fff; border-color: transparent; }
.step-node.is-current .step-circle {
  background: linear-gradient(135deg, var(--pri), var(--acc));
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(9, 80, 227, .3);
}
.step-node.is-done .step-label,
.step-node.is-current .step-label { color: var(--ink); }
/* En el círculo, una cosa (diseño 2026-10-09): el paso de ahora, sólo su
   icono; uno hecho, la marca; uno por llegar, su número. */
.step-node .step-icon,
.step-node .step-check,
.step-node.is-current .step-num,
.step-node.is-done .step-num { display: none; }
.step-node.is-current .step-icon,
.step-node.is-done .step-check { display: block; }

/* --- the card ----------------------------------------------------------- */

.app-card-wrap { padding-top: 22px; padding-bottom: 22px; }
.app-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 12px 40px rgba(26, 35, 56, .06); overflow: hidden;
}
.app-cardnav {
  padding: 10px 40px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; background: #fbfcfe;
}
.app-cardnav-top { border-bottom: 1px solid var(--line); }
.app-cardnav-bottom { border-top: 1px solid var(--line); }
.app-cardnav-hint { font-size: 12px; color: var(--muted); text-align: center; flex: 1; }
.app-cardbody { padding: 34px 40px; }

/* Dentro del asistente, [hidden] gana siempre: muchas piezas llevan su propio display. */
.cv-wizard [hidden] { display: none !important; }
.step-title { font-size: 23px; font-weight: 800; margin: 0 0 6px; }
.step-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 26px; }
.step-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 34px; align-items: start; }

/* --- fields ------------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  display: flex; align-items: center; gap: 7px; margin: 0;
}
.field > label i { color: var(--pri); font-size: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px 22px; }

.inp {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 13px;
  font-size: 14px; font-family: inherit; color: var(--ink); background: #fff;
  width: 100%; transition: border-color .15s, box-shadow .15s;
}
.inp:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px rgba(9, 80, 227, .12); }
.inp.is-invalid { border-color: #dc3545; }

.photo-row {
  display: flex; align-items: center; gap: 14px; margin-top: 14px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe;
  flex-wrap: wrap;
}
.photo-row img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }

.rule { height: 1px; background: var(--line); margin: 30px 0 24px; }

/* --- upload ------------------------------------------------------------- */

.up-zone {
  border: 2px dashed #b9c6ee; border-radius: 16px;
  background: linear-gradient(180deg, #f7faff, #fff);
  padding: 48px 24px; text-align: center; cursor: pointer;
}
.up-zone:hover, .up-zone.is-dragover { border-color: var(--pri); background: linear-gradient(180deg, #eef4ff, #fff); }
.up-zone-ico {
  width: 66px; height: 66px; border-radius: 18px;
  background: rgba(9, 80, 227, .09); color: var(--pri);
  display: grid; place-items: center; font-size: 30px; margin: 0 auto 16px;
}
.up-done {
  border: 1px solid #cdebdd; border-radius: 16px; background: #f4fbf7;
  padding: 24px; display: flex; gap: 18px; align-items: flex-start;
}
.up-done-ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(18, 183, 106, .12); color: var(--ok);
  display: grid; place-items: center; font-size: 26px; flex-shrink: 0;
}

/* --- live preview (step 1) --------------------------------------------- */

.hero-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.hero-eyebrow {
  font-size: 12px; font-weight: 700; color: var(--faint); text-transform: uppercase;
  letter-spacing: .6px; display: flex; align-items: center; gap: 7px;
}
.hero-pills { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.hero-pill {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  border-radius: 999px; padding: 6px 13px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .15s;
}
.hero-pill.is-active { border-color: var(--pri); background: rgba(9, 80, 227, .08); color: var(--pri); }
.hero-frame {
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 38px rgba(26, 35, 56, .14);
  overflow: hidden; background: #fff; height: 360px;
}
.hero-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-caption { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 10px; }

/* --- style grid --------------------------------------------------------- */

/* The grid keeps the ids and the .style-option / .style-option-extra classes
   that style_preview.js drives (lazy thumbnails, "See all templates"); the
   reveal itself stays index_web.css's `.show-all-styles` rule. */
#style-options-grid.style-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stylecard {
  text-align: start; border: 2px solid var(--line); border-radius: 13px;
  padding: 13px 13px 10px; background: #fff; cursor: pointer; position: relative;
  transition: border-color .15s, box-shadow .15s, transform .12s; height: 100%;
  display: block; width: 100%;
}
.stylecard:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(26, 35, 56, .08); }
.stylecard.is-selected { border-color: var(--pri); box-shadow: 0 8px 20px rgba(9, 80, 227, .18); }
/* Both are spans (they live inside a <label>, which may not contain a <div>
   in older parsers), so they need display:block or the frame's height is
   ignored and the name flows alongside the thumbnail instead of under it. */
.stylecard-frame {
  display: block; border-radius: 9px; overflow: hidden;
  height: 225px; border: 1px solid var(--line);
}
/* The thumbnail must not eat the click that selects the style. */
.stylecard-frame iframe { width: 100%; height: 100%; border: 0; display: block; pointer-events: none; }
.stylecard-name { display: block; font-size: 12.5px; font-weight: 600; margin-top: 10px; color: var(--ink); }
.stylecard-check {
  position: absolute; top: 9px; inset-inline-end: 9px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--pri); color: #fff; display: none; place-items: center; font-size: 12px;
  box-shadow: 0 2px 6px rgba(9, 80, 227, .4);
}
.stylecard.is-selected .stylecard-check,
.stylecard:has(input:checked) .stylecard-check { display: grid; }
.stylecard:has(input:checked) { border-color: var(--pri); box-shadow: 0 8px 20px rgba(9, 80, 227, .18); }
/* Radios stay in the DOM so the form still posts cv_style, but the card is
   the control the user sees. */
.stylecard input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
/* index_web.css rings the iframe of the checked option; the card carries the
   selection now, so that ring would double up. */
#style-options-grid .style-option input[type="radio"]:checked + label .style-preview-iframe { outline: none; }

/* --- step 3 ------------------------------------------------------------- */

/* Same zero floor: this row carries the base CV's file name, which is as long
   and as unbreakable as the tailored ones. */
.offer-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; margin-bottom: 20px; }
.offer-card { border: 2px solid var(--pri); border-radius: 16px; overflow: hidden; }
.offer-card-head {
  background: linear-gradient(135deg, var(--pri), var(--acc)); color: #fff;
  padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start;
}
.offer-card-ico {
  width: 40px; height: 40px; border-radius: 11px; background: rgba(255, 255, 255, .18);
  display: grid; place-items: center; font-size: 18px; flex-shrink: 0;
}
/* The body is a <fieldset> (the offer inputs are disabled together until a
   base CV exists). Two browser defaults have to go: the engraved border, and
   `min-width: min-content`, which stops it shrinking and pushes its contents
   out past the card's rounded edge. */
.offer-card-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; gap: 15px;
  border: 0; margin: 0; min-width: 0;
}
.offer-card-body > .field { gap: 8px; }

/* A row of two equal actions. The buttons were flex:1 with no min-width, so
   a long label (every one of them is a sentence once translated) refused to
   shrink below its text and overflowed the card instead of wrapping. */
/* Aire entre el botón que genera y los del CV hecho: pegados, la sombra del
   botón verde se montaba encima de «Abrir CV» y «Guardar como PDF». */
form[data-job-form] + [data-region] > .action-pair:first-child { margin-top: 16px; }
.action-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-action {
  min-width: 0; padding: 11px 14px; font-size: 13.5px;
  text-align: center; white-space: normal; line-height: 1.3;
}
/* Two lines: what the button does, and which company's CV it does it to. */
.btn-action-label { display: block; min-width: 0; }
.btn-action-sub {
  display: block; font-size: 11px; font-weight: 600; opacity: .72;
  margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.btn-action-sub[hidden] { display: none; }
@media (max-width: 480px) {
  .action-pair { grid-template-columns: 1fr; }
}

.source-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: -2px 0 3px; }
.source-chip {
  border-radius: 999px; padding: 3px 10px; font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent;
}
.source-chip-primary { padding: 5px 14px; font-size: 12.5px; }

.panel { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.panel-tight { padding: 16px 18px; }
.panel-head-ico {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
}
.result-head {
  font-weight: 800; font-size: 16px; margin: 2px 0 12px;
  display: flex; align-items: center; gap: 9px;
}
.result-head-ico {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--pri), var(--acc)); color: #fff;
  display: grid; place-items: center; font-size: 13px;
}
/* minmax(0, …) rather than a bare fr, and it is load-bearing here.
   `1fr` means `minmax(auto, 1fr)`, and that `auto` floor stops a track from
   shrinking below its content's min-content width. The right-hand column
   lists generated CVs, whose names run to ninety unbreakable characters
   (Name__Company__Role__Location.html), so the track claimed all of them:
   1.3fr / 1fr resolved to 229px / 693px and the parsed offer beside it was
   squeezed until its job title broke one word per line. Flooring the tracks
   at zero is what lets the ellipsis on .file-row-name actually take effect. */
.result-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.parsed-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.parsed-card-head {
  background: linear-gradient(135deg, var(--pri), var(--acc)); color: #fff;
  padding: 14px 20px; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; gap: 9px;
}
.empty-state { text-align: center; padding: 26px 12px; color: var(--faint); }
.empty-state-ico {
  width: 52px; height: 52px; border-radius: 14px; background: #f1f4fb;
  display: grid; place-items: center; font-size: 24px; margin: 0 auto 12px; color: var(--pri);
}

/* Cover letter header: title on the left, the ways out of it on the right. */
.cover-letter-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-bottom: 10px;
}
.cover-letter-actions { display: flex; align-items: center; gap: 6px; }

/* Company logo picker in the offer card. The whole row is the file input's
   label, so a click anywhere but the Remove button opens the file dialog. */
/* Que los botones bajen a otro renglón cuando no caben, en vez de estrujar el
   texto en una columna de una palabra (y salirse de la tarjeta). */
.logo-drop {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px; cursor: pointer;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfcfe; margin: 0;
}
.logo-drop-thumb {
  width: 50px; height: 50px; flex: none;
  border-radius: 12px; border: 1.5px dashed var(--line); background: #fff;
  display: grid; place-items: center; overflow: hidden;
  color: var(--faint); font-size: 18px;
  background-size: contain; background-position: center; background-repeat: no-repeat;
}
.logo-drop-text { flex: 1 1 180px; min-width: 0; }
/* "Company logo · optional" is one thought and reads badly broken in half,
   which is what happened once a second button joined the row. */
.logo-drop-text > span:first-child { white-space: nowrap; }
/* Two buttons in a column that is half the page: they lose their padding
   before the label they need in order to say what they do. */
.logo-drop-clear,
.logo-drop-paste { flex: none; padding-inline-start: 11px; padding-inline-end: 11px; }
fieldset:disabled .logo-drop { opacity: .55; cursor: not-allowed; }

/* Dragging the logo over the row. The whole row answers, not just the
   thumbnail: a drop target you have to hit precisely is a drop target people
   stop using. */
.logo-drop.is-dropping {
  border-color: var(--pri);
  background: color-mix(in srgb, var(--pri) 7%, #fbfcfe);
}
.logo-drop.is-dropping .logo-drop-thumb { border-color: var(--pri); border-style: solid; }

/* Company logo beside the parsed job title. */
.parsed-logo {
  width: 44px; height: 44px; flex: none;
  border-radius: 10px; border: 1px solid var(--line); background: #fff;
  object-fit: contain; padding: 4px;
}

/* Side/top placement control, above the style grid. */
.placement-picker {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: #fbfcfe; margin-bottom: 16px;
}
.placement-picker-text { flex: 1; min-width: 200px; }
.placement-seg { flex: none; min-width: 216px; }
/* The drawing above the word, not beside it: the option is the picture, and
   the word is its caption. */
.placement-seg .seg-opt {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 8px 10px 7px;
}
.placement-mini { width: 56px; height: 38px; display: block; }
/* The sheet, its colour block, and the ink on it. The block takes the option's
   own colour so the selected one reads as the accent and the other as inert
   grey — the same signal the style cards use. */
.placement-mini .pm-page { fill: #fff; stroke: var(--line); stroke-width: 1.2; }
.placement-mini .pm-band { fill: #c3cbdd; }
.placement-mini .pm-dot { fill: #fff; opacity: .95; }
.placement-mini .pm-line { fill: #fff; opacity: .8; }
.placement-mini .pm-text { fill: #ccd3e2; }
.placement-mini .pm-text-strong { fill: #aab4c9; }
.placement-seg .seg-opt.is-on .pm-band { fill: var(--pri); }
.placement-seg .seg-opt.is-on .pm-text-strong { fill: var(--pri); opacity: .55; }
.placement-seg .seg-opt.is-on .pm-page { stroke: rgba(9, 80, 227, .35); }

.seg { display: flex; gap: 5px; background: #f1f4fb; border-radius: 11px; padding: 4px; }
.seg-opt {
  flex: 1; border: none; border-radius: 8px; padding: 8px 6px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  background: transparent; color: var(--muted); text-align: center; line-height: 1.15;
  /* The radio below is positioned against its own option, not against
     whatever positioned ancestor happens to be up the tree. */
  position: relative;
}
.seg-opt.is-on { background: #fff; color: var(--pri); box-shadow: 0 2px 6px rgba(26, 35, 56, .1); }
.seg-opt-price { font-size: 11px; font-weight: 600; opacity: .75; margin-top: 2px; }
/* The radio is the state; the option itself is the control you see. It has to
   stay in the form — the page posts it and the segmented control checks it —
   but it must never be drawn.
   `opacity: 0` alone was not enough. It leaves a real 13px radio at the start
   of the label, out of flow and therefore sitting on top of the first letter:
   any browser that draws it anyway — a stylesheet that arrives late or not at
   all, a user sheet, a zoom mode that ignores opacity — puts a grey circle
   over the "C" of "CV + cover". Given no appearance and no size there is
   nothing left to draw, whichever sheet wins. */
.seg-opt input {
  position: absolute;
  top: 0; inset-inline-start: 0;
  -webkit-appearance: none;
  appearance: none;
  width: 0; height: 0;
  margin: 0; padding: 0; border: 0;
  opacity: 0; pointer-events: none;
}
/* Keyboard focus lands on the radio, which is now zero-sized and cannot show
   a ring — so the option it lives in wears it. Tabbing through the form was
   otherwise invisible here. */
.seg-opt:focus-within { outline: 2px solid var(--pri); outline-offset: 2px; }


/* --- misc --------------------------------------------------------------- */

.warn-box {
  border: 1px solid #fde9c8; background: #fffaf0; border-radius: 14px; padding: 14px 16px;
}
.warn-box-title {
  font-weight: 700; font-size: 13px; color: #b5710a;
  display: flex; align-items: center; gap: 7px; margin-bottom: 8px;
}

.file-row {
  display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.file-row:last-child { border-bottom: none; }
.file-row-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }

/* The generated-files list. A job hunt piles these up, so the column scrolls
   instead of stretching the panel past the card beside it. */
.file-list { max-height: 340px; overflow-y: auto; margin: 0 -2px; padding: 0 2px; }
.file-list .file-row { align-items: flex-start; gap: 10px; padding: 11px 0; }
.file-row-ico { color: var(--pri); font-size: 16px; line-height: 1.35; flex: none; }
/* min-width:0 is what lets the ellipsis happen: without it the flex item
   refuses to shrink below the width of that very long filename. */
.file-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.file-row-meta { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
/* The links sit at the far end of the meta line, and keep their place there
   when the note beside them is long enough to wrap. */
.file-row-meta > .file-row-actions { margin-inline-start: auto; }
.file-tag {
  border-radius: 999px; padding: 2px 9px; font-size: 10.5px; font-weight: 700;
  background: #f1f4fb; color: var(--muted); white-space: nowrap;
}
.file-tag-base_cv, .file-tag-offer_cv { background: rgba(9, 80, 227, .09); color: var(--pri); }
.file-tag-offer_json, .file-tag-source_json { background: rgba(18, 183, 106, .12); color: #0c8a52; }
.file-row-note {
  color: var(--faint); font-size: 11.5px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-row-actions { flex: none; display: flex; align-items: center; gap: 10px; }
.file-row-actions a { font-weight: 600; white-space: nowrap; }
.file-list-empty { color: var(--faint); font-size: 12.5px; line-height: 1.5; padding: 6px 0 2px; }

.eyebrow {
  font-size: 12px; font-weight: 700; color: var(--faint);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px;
}

/* Progress fill inside a generate button. */
.btn-prog { position: relative; overflow: hidden; width: 100%; }
.btn-prog-fill {
  position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 0;
  background: rgba(255, 255, 255, .28); transition: width .15s;
}
.btn-prog > span:not(.btn-prog-fill) { position: relative; display: inline-flex; align-items: center; gap: 9px; }


/* --- el botón verde de los que llaman a la IA ---------------------------- */

.btn-green {
  background: linear-gradient(135deg, #12b76a, #0e9f63);
  border: none; color: #fff; font-weight: 700; border-radius: 12px;
  padding: 12px 22px; font-size: 14.5px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  cursor: pointer; box-shadow: 0 8px 20px rgba(18, 183, 106, .24);
  transition: transform .12s, box-shadow .12s;
}
.btn-green:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(18, 183, 106, .3); color: #fff; }
.btn-green:disabled, .btn-green.disabled {
  background: linear-gradient(135deg, #4f7a68, #527e6b);
  box-shadow: none; cursor: not-allowed; transform: none; opacity: 1;
}


body.app-shell .btn-green, body.app-shell .btn-green:hover, body.app-shell .btn-green:disabled { color: #fff; }
.btn-green * { color: inherit; }

/* --- «Con tecnología de OpenAI» ----------------------------------------- */

.powered-badge {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 999px; padding: 3px 9px;
  background: rgba(26, 35, 56, .05); border: 1px solid var(--line);
  color: var(--muted); font-size: 11px; font-weight: 600;
  line-height: 1.6; white-space: nowrap;
}
.powered-badge svg { width: 12px; height: 12px; flex: none; }

/* The same badge, sized to be read rather than found. It sits at the top of
   the results column, above the preview, because that is where somebody looks
   before they spend a credit — down beside the button it was 11px of grey that
   nobody reported having seen. */
.powered-badge--lead {
  font-size: 12.5px; padding: 6px 13px;
  background: rgba(9, 80, 227, .07);
  border-color: rgba(9, 80, 227, .18);
  color: var(--pri);
}
.powered-badge--lead svg { width: 15px; height: 15px; }


/* --- la barra de un trabajo ---------------------------------------------- */

.progress-custom {
  position: relative;
  display: flex;
  align-items: center;
  height: 2.15rem;
  border-radius: 999px;
  overflow: hidden;
  background: #e9edf7;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background-color: var(--pri);
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.16),
    rgba(255, 255, 255, 0.16) 10px,
    transparent 10px,
    transparent 20px
  );
  background-size: 40px 40px;
  animation: progress-stripes 1s linear infinite;
  transition: width .45s ease;
}

/* Green for the offer bar, matching the button that starts it. */


@keyframes progress-stripes {
  from { background-position: 40px 0; }
  to   { background-position: 0 0; }
}

/* The backing is what makes one label legible on both halves of the track:
   without it the text is white-on-blue on the left and white-on-grey on the
   right, and the second half is unreadable. */
.progress-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: calc(100% - 16px);
  padding: 3px 13px;
  border-radius: 999px;
  background: rgba(16, 24, 44, .78);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.progress-label:empty { display: none; }
/* --- responsive --------------------------------------------------------- */

@media (max-width: 900px) {
  .step-split, .offer-split, .result-split { grid-template-columns: 1fr; }
  /* Con el id delante, como la regla de escritorio: si no, la de cuatro
     columnas ganaba siempre y en un móvil la cuarta salía cortada. */
  #style-options-grid.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .app-cardbody { padding: 24px 20px; }
  .app-cardnav { padding: 10px 20px; }
  .app-width { padding-inline-start: 16px; padding-inline-end: 16px; }
}

@media (max-width: 560px) {
  #style-options-grid.style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stylecard { padding: 9px 9px 8px; }
  .stylecard-frame { height: 200px; }
  /* La barra del paso: la frase en su renglón, encima de los botones (entre
     los dos, en un móvil, quedaba en cinco renglones de dos palabras). */
  .app-cardnav { flex-wrap: wrap; row-gap: 6px; padding-inline: 16px; }
  .app-cardnav-hint { order: -1; flex: 1 1 100%; }
  .app-cardnav [data-nav="next"] { margin-inline-start: auto; }
  .app-cardbody { padding: 22px 16px; }
  /* Los pasos de arriba: las etiquetas, que no lleguen al borde. */
  .step-node .step-label { font-size: 11.5px; text-align: center; padding-inline: 2px; }
  /* El dibujo de LinkedIn: el menú más ancho y en dos renglones si hace falta. */
  .li-howto-menu { width: 76%; }
  .li-howto-item { font-size: 11px; white-space: normal; line-height: 1.25; }
  /* El título del resultado es el nombre del fichero: más pequeño, que se parte. */
  .cv-result .zt-title { font-size: 18px; }
  .app-topbar-actions { gap: 8px; }
  .app-account-btn span:not(.app-avatar) { display: none; }
  /* La fila del logo de la empresa: en un móvil, la miniatura y el texto
     arriba y los botones debajo, a lo ancho. En una sola fila al texto le
     quedaban 60 px: una palabra por línea, y el título se salía de la tarjeta. */
  .logo-drop { flex-wrap: wrap; }
  .logo-drop-text { flex: 1 1 calc(100% - 62px); }
  .logo-drop-text > span:first-child { white-space: normal; }
  .logo-drop > .btn-ghost { flex: 1 1 0; justify-content: center; }
}

/* Shown in place of the offer inputs until a base CV exists. A disabled
   fieldset is invisible as an explanation: the textarea just silently
   refuses a paste. */
.offer-locked {
  display: flex; align-items: center; gap: 9px;
  margin: 14px 20px 0; padding: 11px 14px;
  border: 1px solid #fde9c8; background: #fffaf0; border-radius: 12px;
  font-size: 12.5px; font-weight: 600; color: #b5710a; line-height: 1.4;
}
.offer-locked i { font-size: 15px; flex-shrink: 0; }

/* It is an offer of the next step now, not a refusal, so the button in it has
   to look pressable against the amber. */
.offer-locked .btn-ghost {
  margin-inline-start: auto; flex: none; white-space: nowrap;
  border-color: #e8c88a; color: #96600a; background: #fff;
}

/* Why a button will not work, under the button. Tooltips cannot say it: they
   do not fire on disabled controls. Empty means nothing is wrong, and an empty
   element takes no room. */
.btn-hint {
  margin: 7px 0 0; font-size: 12px; line-height: 1.45;
  color: var(--muted); display: flex; align-items: flex-start; gap: 6px;
}
.btn-hint:empty { display: none; }
.btn-hint::before { content: "↑"; opacity: .6; }

/* --- apply-style bar, top copy ------------------------------------------- */
/* The same button sits above the eighteen templates and below them. Above, it
   is a centred bar of its own so it does not read as part of the first row of
   cards. */
.apply-style-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px;
}
.apply-style-bar .btn-grad { min-width: 240px; }

/* --- "keep going" cue ---------------------------------------------------- */
/* Applying a style reloads the page onto step 2 with the new design and
   nothing to say what comes next. The nav button that leads to step 3 pulses
   until it is clicked (or for twelve seconds), which is long enough to be
   noticed and short enough not to nag. The ring is drawn with box-shadow so
   nothing in the layout moves while it beats. */
@keyframes call-attention {
  0%   { box-shadow: 0 8px 20px rgba(9, 80, 227, .22), 0 0 0 0 rgba(9, 80, 227, .45); }
  70%  { box-shadow: 0 8px 20px rgba(9, 80, 227, .22), 0 0 0 12px rgba(9, 80, 227, 0); }
  100% { box-shadow: 0 8px 20px rgba(9, 80, 227, .22), 0 0 0 0 rgba(9, 80, 227, 0); }
}
.btn-grad.is-calling {
  animation: call-attention 1.6s ease-out infinite;
}
/* A pulsing control is exactly what motion sensitivity means: hold the ring
   still and let the brighter edge do the pointing. */
@media (prefers-reduced-motion: reduce) {
  .btn-grad.is-calling {
    animation: none;
    box-shadow: 0 8px 20px rgba(9, 80, 227, .22), 0 0 0 4px rgba(9, 80, 227, .35);
  }
}


/* --- lo nuevo de esta versión ------------------------------------------- */

.step-node .step-icon.bi, .step-node .step-check.bi { width: 18px; height: 18px; }
.btn-xs { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
.hero-arrows { display: flex; gap: 6px; }
.hero-frame-big { height: 420px; box-shadow: none; }
.style-big { display: grid; grid-template-columns: 1fr; gap: 12px; max-width: 520px; margin: 0 auto; }
.style-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.style-head h3 { font-size: 16.5px; font-weight: 700; margin: 0; }
.style-head-selected { font-size: 13px; color: var(--muted); }
.style-head-selected strong { color: var(--pri); }
.see-all { text-align: center; margin-top: 18px; }
.style-feedback { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.placement-title { font-weight: 600; font-size: 13px; }
.placement-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.cv-upload-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cv-upload-card { position: relative; }
.up-zone { display: block; }
.up-any { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; color: var(--muted); font-size: 12.5px; }
.up-any .bi { width: 15px; height: 15px; flex-shrink: 0; color: var(--pri); }

/* Dónde está «Guardar en PDF» en LinkedIn: un perfil dibujado, con el menú
   «Más» abierto y la opción iluminada (colores de LinkedIn, que es lo que la
   persona va a ver allí). */
.li-howto { margin: 0 0 16px; }
.li-howto-card {
  position: relative; height: 150px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(26, 35, 56, .06);
}
.li-howto-cover { position: absolute; inset: 0 0 auto 0; height: 46px; background: linear-gradient(90deg, #c7d7ec, #dfe8f3); }
.li-howto-avatar {
  position: absolute; left: 18px; top: 18px; width: 58px; height: 58px; border-radius: 50%;
  background: #e8edf3; border: 3px solid #fff; display: grid; place-items: center; color: #97a3b4;
}
.li-howto-avatar .bi { width: 30px; height: 30px; }
.li-howto-name, .li-howto-role { position: absolute; left: 18px; height: 9px; border-radius: 5px; background: #2b3442; }
.li-howto-name { top: 86px; width: 120px; }
.li-howto-role { top: 102px; width: 170px; height: 7px; background: #c4cbd5; }
.li-howto-buttons { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 6px; align-items: center; }
.li-howto-btn { width: 54px; height: 18px; border-radius: 999px; border: 1.5px solid #c4cbd5; }
.li-howto-btn-pri { background: #0a66c2; border-color: #0a66c2; }
.li-howto-more {
  width: auto; padding: 0 9px; height: 22px; display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; color: #0a66c2; border-color: #0a66c2; background: #eaf3fc; font-weight: 700;
  box-shadow: 0 0 0 3px rgba(10, 102, 194, .18);
}
.li-howto-menu {
  position: absolute; right: 14px; top: 16px; width: min(58%, 250px); background: #fff; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(26, 35, 56, .2); padding: 6px; display: flex; flex-direction: column; gap: 2px;
}
.li-howto-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 7px;
  font-size: 12px; color: #3d4654; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.li-howto-item .bi { width: 14px; height: 14px; flex-shrink: 0; }
.li-howto-item.is-on {
  background: #eaf3fc; color: #0a66c2; font-weight: 700; box-shadow: inset 0 0 0 1.5px #0a66c2;
}
[dir="rtl"] .li-howto-avatar, [dir="rtl"] .li-howto-name, [dir="rtl"] .li-howto-role, [dir="rtl"] .li-howto-buttons { left: auto; right: 18px; }
[dir="rtl"] .li-howto-menu { right: auto; left: 14px; }
.up-zone-title { display: block; font-weight: 700; font-size: 16px; }
.up-zone-hint { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; }
.up-zone-ico .bi { width: 30px; height: 30px; }
.up-done[hidden], .up-zone[hidden] { display: none; }
.up-done-ico .bi { width: 26px; height: 26px; }
.up-done-body { flex: 1; }
.up-done-title { font-weight: 700; color: #0c8a52; font-size: 15.5px; }
.up-done-file { margin-top: 10px; display: flex; align-items: center; gap: 7px; font-size: 13.5px; word-break: break-all; }
.up-done-file .ico-pdf { color: #d4483b; }
.up-done-again { margin-top: 16px; }
.up-busy { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.up-busy[hidden] { display: none; }
.zt-spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line);
  border-top-color: var(--pri); animation: cv-spin .8s linear infinite; }
@keyframes cv-spin { to { transform: rotate(360deg); } }

.field > label .bi { color: var(--pri); font-size: 14px; }
.field-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.field-head > label { font-size: 12.5px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.field-head > label .bi { color: var(--pri); }
.photo-row img[hidden], .photo-empty[hidden] { display: none; }
.photo-empty { width: 46px; height: 46px; border-radius: 12px; background: #f1f4fb; color: var(--faint);
  display: grid; place-items: center; font-size: 20px; }
.photo-form { flex: 1; min-width: 160px; }
.photo-title { font-weight: 600; font-size: 13.5px; }
.inp-file { padding: 6px 10px; font-size: 12.5px; max-width: 280px; margin-top: 4px; }

/* El interruptor «Incluir foto»: un checkbox de verdad, dibujado. */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; color: var(--muted); }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { width: 36px; height: 20px; border-radius: 999px; background: #cfd6e6; position: relative; transition: background .15s; flex: none; }
.switch-track::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + .switch-track { background: var(--pri); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
[dir="rtl"] .switch input:checked + .switch-track::after { transform: translateX(-16px); }
/* Las flechas que dicen hacia dónde (Atrás, Continuar, las de la vista previa),
   de derecha a izquierda, al revés: apuntan hacia donde va el texto (la
   auditoría, 2026-11-15: en árabe, «Atrás» apuntaba hacia delante). */
[dir="rtl"] .bi.rtl-flip { transform: scaleX(-1); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--pri); outline-offset: 2px; }

.empty-state-title { font-weight: 700; color: var(--muted); font-size: 13.5px; }
.empty-state-sub { font-size: 12.5px; margin-top: 5px; line-height: 1.5; max-width: 320px; margin-inline: auto; }
.empty-state-ico .bi { width: 24px; height: 24px; }

.offer-card-ico .bi { width: 18px; height: 18px; }
.offer-card-text { flex: 1; min-width: 0; }
.offer-card-title { font-weight: 800; font-size: 15.5px; }
.offer-card-tag { font-weight: 600; opacity: .85; font-size: 12px; }
.offer-card-desc { font-size: 12px; opacity: .94; line-height: 1.5; margin-top: 4px; }
.offer-locked .bi { font-size: 15px; flex-shrink: 0; }
.source-chips-label { color: var(--faint); }
.source-chip { background: rgba(104, 116, 143, .1); color: var(--muted); border-color: rgba(104, 116, 143, .35); }
.source-chip.src-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; padding: 5px 14px; font-size: 12.5px; }
.source-chip.src-indeed { background: rgba(33, 100, 243, .1); color: #2164f3; border-color: rgba(33, 100, 243, .35); }
.source-chip.src-glassdoor { background: rgba(12, 170, 65, .1); color: #0a7d31; border-color: rgba(12, 170, 65, .35); }
.source-chip.src-tecnoempleo { background: rgba(232, 87, 31, .1); color: #b9441a; border-color: rgba(232, 87, 31, .35); }
.ai-note { font-size: 11.5px; color: var(--muted); margin: 0 0 7px; display: flex; align-items: flex-start; gap: 6px; line-height: 1.45; }
.ai-note .bi { color: var(--pri); margin-top: 2px; }
.logo-drop-thumb img { width: 100%; height: 100%; object-fit: contain; }
.logo-drop-thumb img[hidden], .logo-drop-thumb span[hidden] { display: none; }
.logo-drop-title { font-weight: 600; font-size: 13px; }
.logo-drop-optional { color: var(--faint); font-weight: 500; }
.logo-drop-sub { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.logo-drop .btn-ghost[hidden] { display: none; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; margin: 2px 0; }
.check input { margin-top: 3px; accent-color: var(--pri); }
.check-extra { color: var(--faint); }
.check-sub { display: block; font-size: 11.5px; color: var(--faint); }
.offer-total { font-size: 12.5px; color: var(--muted); }
/* Pro o Mini: el nombre, en qué destaca y lo que cuesta, cada uno en su línea. */
.seg-tier .seg-opt-name, .seg-tier .seg-opt-sub, .seg-tier .seg-opt-price { display: block; }
.seg-tier .seg-opt-name { font-size: 13.5px; }
.seg-tier .seg-opt-sub { font-size: 11px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.seg-tier .seg-opt-price { margin-top: 3px; }
[data-tier-show][hidden], [data-offer-combo][hidden] { display: none; }
.tier-caption { font-size: 12px; font-weight: 700; color: var(--muted); margin: 0 0 5px 2px; }
form[data-base-form] .tier-choice { margin-bottom: 10px; }
.offer-total-op[hidden] { display: none; }
.cv-price { font-weight: 600; }
.job-progress { margin-top: 8px; }
.job-progress[hidden] { display: none; }
.offer-result { padding: 0 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.offer-result:empty { display: none; }
.offer-result-head { font-weight: 700; font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; color: var(--pri); }
/* La empresa sigue al título y, si no cabe, baja entera (no en otra columna). */
.offer-result-head > strong { overflow-wrap: anywhere; }
.action-more { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.side-col { display: flex; flex-direction: column; gap: 16px; }
.powered-row { display: flex; justify-content: center; margin-bottom: -4px; }
.powered-badge { font-size: 12.5px; padding: 6px 13px; background: rgba(9, 80, 227, .07);
  border-color: rgba(9, 80, 227, .18); color: var(--pri); }
.panel-preview { padding: 0; overflow: hidden; height: 440px; }
.panel-preview iframe { width: 100%; height: 100%; border: 0; display: block; }
.panel-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.panel-head-ico-ok { background: rgba(18, 183, 106, .12); color: #0e9f63; }
.panel-title { font-weight: 800; font-size: 15px; }
.panel-title-tag { font-weight: 600; color: var(--faint); font-size: 12px; }
.panel-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 2px 0 13px; }
.cover-panel { margin-bottom: 18px; }
.cover-panel:empty { display: none; }
.cover-letter-title { font-weight: 700; font-size: 14.5px; color: var(--pri); display: flex; align-items: center; gap: 8px; }
.cover-letter-actions { flex-wrap: wrap; }
.parsed-card-body { padding: 20px; }
.parsed-title-row { display: flex; align-items: center; gap: 12px; }
.parsed-title { font-size: 17px; font-weight: 800; color: var(--pri); }
.parsed-meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 16px; font-size: 13px; color: var(--muted); }
.parsed-meta span { display: inline-flex; align-items: center; gap: 5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chip-tech { background: rgba(9, 80, 227, .07); color: var(--pri); font-size: 12px; padding: 5px 11px; }
.chip-soft { background: rgba(18, 183, 106, .1); color: #0c8a52; font-size: 12px; padding: 5px 11px; }
.parsed-list { margin: 0 0 18px; padding-inline-start: 18px; font-size: 13px; line-height: 1.6; }
.parsed-json { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.warn-box[hidden] { display: none; }
.warn-list { margin: 0; padding-inline-start: 18px; font-size: 11.5px; color: #7a5a1a; line-height: 1.6; }
.file-list-note { font-size: 12px; margin: 10px 0 0; }
.file-tag-base { background: rgba(9, 80, 227, .09); color: var(--pri); }
.file-tag-offer { background: rgba(18, 183, 106, .12); color: #0c8a52; }

/* La página de un CV hecho. */
.cv-result .action-pair { max-width: 560px; }
.cv-result-frame { margin-top: 18px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; height: 900px; }
.cv-result-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cv-letter { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; margin: 0; }
.cv-diff { border-top: 1px solid var(--line); padding: 8px 0; }
.cv-diff summary { cursor: pointer; font-weight: 600; }
.cv-diff pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; max-height: 420px; overflow: auto; }
.diff-added { display: block; background: #e6ffe6; color: #116611; }
.diff-removed { display: block; background: #ffe6e6; color: #a11; text-decoration: line-through; }
.diff-unchanged { display: block; color: var(--muted); }

/* La portada: un CV de verdad, del perfil sintético. */
/* Cada CV del carrusel de la portada, como una hoja: con su borde y su sombra. */
.zt-l-visual .landing-cv-shot { border: 1px solid var(--line); box-shadow: 0 10px 28px rgba(26, 35, 56, .12); }
/* El carrusel en fila de la portada (núcleo 0.21): la hoja del centro, de 260 px
   (la proporción del CV, 820 × 900, más su pie), y las vecinas asomando. */
.zt-l-visual .zt-carousel-peek { --zt-peek-width: 260px; --zt-peek-step: 165px; }
.landing-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* Las utilidades que estado: lo oculto se oculta aunque una regla de diseño diga otra cosa. */
.d-none { display: none !important; }

/* --- Las webs de empleo (portada, paso 1, paso 3) ---------------------------
   Cada logo entero: el dibujo de su marca y su nombre, en su color, sin
   partirse nunca; si la fila no cabe, sigue en la siguiente. El nombre de
   Glassdoor, algo más oscuro que su verde, para que se lea sobre blanco. */
.job-sites { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; }
.zt-l-feature .job-sites, .zt-l-copy .job-sites { margin-top: 14px; }
.job-sites-label { color: var(--muted); font-size: 13px; margin-inline-end: 4px; }
.job-site {
  display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap;
  padding: 6px 12px 6px 9px; border-radius: 999px; background: #fff;
  border: 1px solid color-mix(in srgb, currentColor 30%, #fff);
  font-weight: 700; font-size: 14px; line-height: 1.1;
}
.job-site svg { width: 19px; height: 19px; flex: none; fill: currentColor; }
.job-site-linkedin { color: #0a66c2; }
.job-site-indeed { color: #003a9b; }
.job-site-glassdoor { color: #0a7d4f; }
.job-site-glassdoor svg { fill: #00a162; }
.job-site-infojobs { color: #2c6e2f; }
.job-site-sm { padding: 3px 10px 3px 7px; font-size: 11.5px; gap: 5px; }
.job-site-sm svg { width: 14px; height: 14px; }
.job-site-lg { padding: 8px 16px 8px 11px; font-size: 17px; }
.job-site-lg svg { width: 26px; height: 26px; }
/* El título del paso 1, con el logo de LinkedIn delante. */
.step-title-li { display: flex; align-items: center; gap: 10px; }
.step-title-logo { width: 30px; height: 30px; flex: none; fill: #0a66c2; }

/* --- «Guardar como PDF», el que se ve ------------------------------------------
   El primero de los botones de un CV, algo más grande y con un halo: es el que
   da el CV que se envía, en A4, y no le cuesta nada a nadie. */
.btn-save-pdf { box-shadow: 0 0 0 3px color-mix(in srgb, var(--pri) 20%, transparent),
                            0 10px 24px color-mix(in srgb, var(--pri) 30%, transparent); }
.btn-action.btn-save-pdf { font-size: 15px; padding: 13px 16px; }
.btn-save-pdf .bi { width: 19px; height: 19px; flex: none; }
.zt-l-feature .landing-pdf-cta { margin: 14px 0 2px; }
/* La etiqueta en su línea y los cuatro logos juntos debajo (en el titular de la
   portada y en el paso 1 caben en una fila); en las tarjetas de «Cómo
   funciona», más pequeños, de dos en dos. */
.job-sites-label { flex-basis: 100%; }
.zt-l-feature .job-site:not(.job-site-lg) { padding: 4px 10px 4px 7px; font-size: 12.5px; gap: 5px; }
.zt-l-feature .job-site:not(.job-site-lg) svg { width: 15px; height: 15px; }
.zt-l-feature .landing-pdf-cta .btn-save-pdf { width: 100%; padding: 11px 12px; font-size: 14px; text-align: center; }

/* El nombre de un CV es una palabra larga (cv_basic_Nombre_Apellido_fecha): en un
   móvil se salía de la tarjeta y ensanchaba la página. Se parte donde haga falta. */
.cv-result .zt-title { overflow-wrap: anywhere; }

/* Con el dedo: lo que se pulsa y es de cv_lin, de al menos 44 px (la auditoría,
   2026-11-15, a 390 px: las celdas de las tablas medían 32, su papelera 30 × 30,
   sus títulos plegables 25, las pastillas y las flechas de los estilos 24–27, y
   los enlaces de la lista de CV y de la oferta leída 32). Los botones y los
   campos del núcleo (.btn-sm-ghost, .btn-ghost, .inp…) se piden allí. */
@media (pointer: coarse) {
  .file-row-actions a, .parsed-json { display: inline-flex; align-items: center; min-height: 44px; }
  .hero-pill, .btn-xs { min-height: 44px; }
  .btn-xs { min-width: 44px; }
  .cv-diff summary { padding-block: 12px; }
}
/* (Las de las tablas, detrás de las suyas: «Las tablas (5a)».) */

/* La carta en PDF (letter_actions): el botón principal y los otros dos, en una
   fila que baja de renglón si no cabe. */
.letter-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 10px; }
.letter-actions .btn-grad { display: inline-flex; align-items: center; gap: 6px; }
.letter-actions-sub { font-size: 11px; font-weight: 500; opacity: .85; }


/* --- diseño 2026-10-09: la cabecera y el paso 3 ---------------------------- */

/* La acción principal del paso 3, en la barra de la tarjeta (verde, como los
   botones que llaman a la IA). Apagada sigue enseñando su porqué al pasar. */
.app-cardnav .nav-primary { padding: 6px 13px; font-size: 12px; border-radius: 10px; white-space: nowrap; gap: 9px; }
.app-cardnav .nav-primary .bi { width: 13px; height: 13px; }
.nav-primary.disabled {
  background: linear-gradient(135deg, #4f7a68, #527e6b); box-shadow: none; cursor: not-allowed; transform: none;
}

/* El número de cada tarjeta del paso 3: «1» el CV sin oferta, «2» el de una empresa. */
.card-num {
  width: 22px; height: 22px; flex: none; border-radius: 50%; display: grid; place-items: center;
  font-size: 11.5px; font-weight: 800; background: var(--ink); color: #fff;
}
.card-num-light { background: #fff; color: var(--pri); margin-top: 9px; }

/* El precio dentro del botón. */
.btn-cost {
  display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 4px; padding: 2px 8px;
  border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; font-weight: 700;
}
.btn-cost .bi { width: 12px; height: 12px; }
.btn-cost .cv-price { color: inherit; }

/* «Paso n de N» y «quedan unos N s», debajo de la barra de un trabajo. */
.job-meta {
  display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums;
}

/* «Generarlo ahora» en el aviso ámbar de la oferta sin CV base: ámbar y al
   final de la línea, como en el diseño. Si al texto no le caben 180 px al lado,
   el botón baja a su renglón (si no, una palabra por línea en un móvil). */
.offer-locked { flex-wrap: wrap; }
.offer-locked > .bi { flex: none; width: 15px; height: 15px; }
.offer-locked > span { flex: 1 1 180px; min-width: 0; }
.offer-locked .offer-unlock {
  display: inline-flex; align-items: center; gap: 6px; flex: none; margin-inline-start: auto;
  background: #fff; border: 1px solid #e8c88a; color: #96600a; white-space: nowrap;
}
.offer-locked .offer-unlock:hover:not(:disabled) { border-color: #d9a94e; background: #fff7e6; }
.offer-locked .offer-unlock .bi { width: 13px; height: 13px; }

/* --- diseño 2026-10-09: el paso 1 ------------------------------------------ */

/* El esquema de LinkedIn va dentro del recuadro de subida: el recuadro es
   menos alto, y el esquema, del ancho del texto. Todo es <span> (va dentro del
   <label>): cada pieza dice cómo se pinta. */
.up-zone { padding: 24px 22px 30px; transition: border-color .3s ease, background-color .3s ease, transform .2s ease; }
.up-zone:hover { transform: translateY(-1px); }
.up-zone:focus-visible { outline: 3px solid color-mix(in srgb, var(--pri) 45%, transparent); outline-offset: 3px; }
.up-zone .li-howto { display: block; max-width: 420px; margin: 0 auto 18px; text-align: start; }
.up-zone .li-howto-card { display: block; }
.up-zone .li-howto-cover, .up-zone .li-howto-avatar, .up-zone .li-howto-name, .up-zone .li-howto-role { display: block; }
.up-zone .li-howto-btn { display: inline-block; }
.up-zone-cta { display: flex; align-items: center; justify-content: center; gap: 8px; }
.up-zone-cta .up-zone-ico { width: auto; height: auto; margin: 0; background: none; border-radius: 0; }
.up-zone-cta .up-zone-ico .bi { width: 20px; height: 20px; }

/* «o», entre dos rayas, y «Empezar sin CV» (4a). */
.or-rule {
  display: flex; align-items: center; gap: 12px; margin: 16px 0 12px;
  color: var(--muted); font-size: 12px; font-weight: 600;
}
.or-rule::before, .or-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.manual-cta {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; font: inherit;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; text-align: start;
  transition: border-color .15s, background-color .15s; color: var(--ink);
}
.manual-cta:hover { border-color: #cfd6e6; background: #fbfcfe; }
.manual-cta-ico {
  width: 38px; height: 38px; flex: none; border-radius: 11px; background: #f1f4fb; color: var(--pri);
  display: grid; place-items: center;
}
.manual-cta-ico .bi { width: 17px; height: 17px; }
.manual-cta-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.manual-cta-title { font-weight: 700; font-size: 14px; }
.manual-cta-hint { font-size: 12.5px; color: var(--muted); }
.manual-cta-go { width: 15px; height: 15px; color: var(--muted); }

/* Empezado sin CV: en azul, con ir a rellenarlo o subir un PDF. */
.up-manual {
  border: 1px solid #d6e0fb; border-radius: 16px; background: #f5f8ff;
  padding: 24px; display: flex; gap: 18px; align-items: flex-start;
}
.up-manual-ico {
  width: 52px; height: 52px; border-radius: 14px; background: rgba(28, 86, 233, .09); color: var(--pri);
  display: grid; place-items: center; flex-shrink: 0;
}
.up-manual-ico .bi { width: 24px; height: 24px; }
.up-manual-title { font-weight: 700; font-size: 15.5px; }
.up-manual-sub { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.up-manual-actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; }
.up-manual-actions > * { display: inline-flex; align-items: center; gap: 8px; }

/* --- diseño 2026-10-09: el paso 2 ------------------------------------------ */

/* Los campos en dos grupos, cada uno con su título. */
.field-group-title {
  font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.field-group-next { margin-top: 20px; }
.inp.is-invalid { box-shadow: 0 0 0 3px rgba(220, 53, 69, .12); }
.field-err { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #b42318; }
.field-err .bi { width: 13px; height: 13px; flex: none; }

/* La foto: una miniatura de 64 px con la cámara encima, el título, «Sin foto
   todavía», «Subir foto» y, a la derecha, «Incluir foto». */
.photo-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe;
}
.photo-thumb { position: relative; flex: none; width: 64px; height: 64px; margin: 0; cursor: pointer; }
.photo-thumb img, .photo-thumb .photo-empty {
  width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--line); background: #fff; object-fit: cover;
}
.photo-thumb .photo-empty { display: grid; place-items: center; }
.photo-thumb .photo-empty .bi { width: 26px; height: 26px; }
.photo-cam {
  position: absolute; inset-inline-end: -6px; bottom: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--pri); color: #fff; display: grid; place-items: center; border: 2px solid #fbfcfe;
}
.photo-cam .bi { width: 12px; height: 12px; }
.photo-form { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.photo-title { font-weight: 700; font-size: 14px; color: var(--ink); }
.photo-file { font-size: 12.5px; color: var(--muted); }
.photo-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-upload { margin-top: 6px; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.photo-row .switch { margin-inline-start: auto; color: var(--ink); font-weight: 600; }

/* Las tablas (5a). */
.tables { margin-top: 28px; }
.tbl-block + .tbl-block, .tbl-pair { margin-top: 22px; }
.tbl-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 22px; }
.tbl-pair .tbl-block { margin-top: 0; }
.tbl-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin: 0 0 8px; }
.tbl-toggle {
  display: inline-flex; align-items: center; gap: 7px; border: none; background: transparent; padding: 4px 8px;
  margin: -4px -8px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 11px; font-weight: 800;
  letter-spacing: .6px; text-transform: uppercase; color: var(--muted); transition: background-color .15s, color .15s;
}
.tbl-toggle:hover { background: #f3f6fc; color: var(--ink); }
.tbl-chevron { width: 11px; height: 11px; transition: transform .15s; }
.tbl-toggle[aria-expanded=false] .tbl-chevron { transform: rotate(-90deg); }
.tbl-count { font-weight: 700; }
.tbl-auto {
  display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--pri);
  background: rgba(28, 86, 233, .09); border-radius: 999px; padding: 4px 11px;
}
.tbl-auto .bi { width: 12px; height: 12px; }
.tbl { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.tbl-row-wide { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1.2fr) 30px; gap: 6px 10px; }
.tbl-row-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px; gap: 10px; align-items: center; }
.tbl-head {
  padding: 9px 14px; background: #fbfcfe; border-bottom: 1px solid var(--line);
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted);
}
.tbl-head > span { padding-inline-start: 9px; }
.tbl-row { padding: 10px 14px; border-bottom: 1px solid #eef1f6; align-items: start; }
.tbl-row-pair.tbl-row { padding: 8px 14px; align-items: center; }
.tbl-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tbl-cell-label { display: none; }
.tbl-cell-del { display: flex; justify-content: flex-end; }
.tbl-row-wide .tbl-cell-del { grid-column: 4; grid-row: 1; }
.tbl-cell-desc { grid-column: 1 / -1; }
.tbl-inp {
  width: 100%; min-width: 0; border: 1px solid transparent; border-radius: 8px; padding: 5px 8px; font: inherit;
  font-size: 13.5px; color: var(--ink); background: transparent; outline: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.tbl-inp:hover { background: #f3f6fc; }
.tbl-inp:focus, .tbl-desc:focus { border-color: var(--pri); background: #fff; box-shadow: 0 0 0 3px rgba(28, 86, 233, .12); }
.tbl-strong { font-weight: 700; }
.tbl-semi { font-weight: 600; }
.tbl-num { font-variant-numeric: tabular-nums; }
.tbl-sub { font-size: 12.5px; color: var(--muted); }
.tbl-select { cursor: pointer; padding-inline: 4px; }
.tbl-desc {
  width: 100%; min-width: 0; border: 1px solid #eef1f6; border-radius: 10px; padding: 9px 11px; font: inherit;
  font-size: 13.5px; line-height: 1.55; color: var(--ink); background: #fbfcfe; outline: none; display: block;
  resize: vertical; field-sizing: content; min-height: 5.4em; max-height: 22em; overflow-y: auto;
}
.tbl-desc-short { min-height: 3.4em; }
.tbl-desc:hover { border-color: #dfe4ee; }
.tbl-del {
  width: 30px; height: 30px; border: none; border-radius: 8px; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s, color .15s;
}
.tbl-del:hover { background: #fdf0ef; color: #b42318; }
.tbl-del .bi { width: 14px; height: 14px; }
.tbl-add {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 11px 23px; border: none; background: #fff;
  color: var(--pri); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; text-align: start;
}
.tbl-add:hover { background: #f6f8fe; }
.tbl-add .bi { width: 13px; height: 13px; }
/* Con las filas que caben: «Añadir», apagado, y debajo por qué. */
.tbl-add:disabled { color: #8a93a6; cursor: not-allowed; background: #fff; }
.tbl-max { margin: 0; padding: 0 23px 11px; font-size: 12px; color: #6b7385; }

/* En una columna, cada celda con su título encima y la papelera arriba. */
@media (max-width: 640px) {
  .tbl-pair { grid-template-columns: 1fr; }
  .tbl-head.tbl-row-wide { display: none; }
  .tbl-row-wide { grid-template-columns: minmax(0, 1fr) 30px; }
  .tbl-row-wide .tbl-cell { grid-column: 1 / -1; }
  .tbl-row-wide .tbl-cell-del { grid-column: 2; grid-row: 1; }
  .tbl-row-wide .tbl-cell:first-child { grid-column: 1; }
  .tbl-row-wide .tbl-cell-label {
    display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
    color: var(--muted); padding-inline-start: 9px;
  }
}

/* Con el dedo, las tablas: celdas, papelera y títulos de 44 px (ver arriba,
   «Con el dedo»). Aquí, detrás de sus reglas, para ganarles. */
@media (pointer: coarse) {
  .tbl-inp { min-height: 44px; }
  .tbl-toggle { min-height: 44px; }
  .tbl-del { width: 44px; height: 44px; }
}
@media (pointer: coarse) and (max-width: 640px) {
  .tbl-row-wide { grid-template-columns: minmax(0, 1fr) 44px; }
}

/* Sin datos (5b): dos botones debajo. */
.empty-state-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.empty-state-actions > * { display: inline-flex; align-items: center; gap: 8px; }

/* El estilo: la rejilla y, al lado, la vista previa grande, fija al bajar.
   Las columnas, las del diseño: 3 al lado de la vista previa; 2 hasta 900 px,
   con la vista previa debajo; 1 hasta 560 px. Con .style-layout delante, como
   la de 3: si no, ésa gana siempre y un móvil tenía tres columnas. */
.style-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }
.style-aside { position: sticky; top: 83px; display: grid; gap: 12px; min-width: 0; }
.style-layout #style-options-grid.style-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .style-layout { grid-template-columns: 1fr; }
  .style-aside { position: static; }
  .style-layout #style-options-grid.style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .style-layout #style-options-grid.style-grid { grid-template-columns: 1fr; }
}

/* El recuadro de subida del paso 1, en su tarjeta. */
.cv-upload-card {
  border: 1px solid #d0d7de; border-radius: 16px; background: #fff; padding: 18px;
  box-shadow: 0 6px 18px rgba(12, 46, 96, .06);
}

/* --- Sin cuenta (decisión del dueño, 2026-11-03) ------------------------- */

/* La entrada: «Con tecnología de OpenAI», grande, y lo que se hace sin cuenta. */
.cv-intro { display: grid; gap: 14px; margin: 4px 0 18px; }
.powered-hero {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(9, 80, 227, .08), rgba(16, 163, 127, .10));
  border: 1px solid rgba(9, 80, 227, .18);
}
.powered-hero-logo { width: 40px; height: 40px; flex: none; display: block; }
.powered-hero-text { display: grid; gap: 2px; min-width: 0; }
.powered-hero-title { font-size: clamp(20px, 3.2vw, 28px); font-weight: 800; line-height: 1.15; color: var(--ink); letter-spacing: -.01em; }
.powered-hero-sub { font-size: 14px; color: var(--muted); }
.powered-hero-landing { margin-top: 16px; }
.cv-intro-anon {
  padding: 14px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
}
.cv-intro-lead { margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.cv-intro-sub { margin: 0 0 10px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cv-intro-sub .bi { width: 14px; height: 14px; flex: none; }
.cv-intro-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cv-intro .btn-link, .cv-intro-forget {
  background: none; border: 0; padding: 0; color: var(--pri); font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}

/* Lo que cuesta y lo que no: «gratis · sin cuenta» y «con cuenta». */
.cv-free-tag {
  display: inline-flex; align-items: center; gap: 2px; margin-inline-start: 6px;
  padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700;
  background: rgba(16, 128, 67, .10); color: #0b6b3a; white-space: nowrap;
}
.cv-account-tag {
  display: inline-flex; align-items: center; gap: 4px; margin-inline-start: 6px;
  padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600;
  background: rgba(255, 255, 255, .22); white-space: nowrap;
}
.cv-account-tag .bi { width: 11px; height: 11px; }
.btn-ghost .cv-account-tag { background: rgba(9, 80, 227, .08); color: var(--pri); }
a.btn-green, a.btn-ghost.offer-unlock { text-decoration: none; }

/* El CV sin IA, al final del paso 2. */
.plain-panel {
  margin-top: 24px; padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  display: grid; gap: 10px;
}
.plain-panel-title { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.plain-panel-title .bi { width: 18px; height: 18px; color: var(--pri); }
.plain-panel-sub, .plain-panel-empty, .plain-panel-ai { margin: 0; font-size: 13.5px; color: var(--muted); }
.plain-panel-ai { display: flex; align-items: center; gap: 6px; }
.plain-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Mientras la página se pinta con el borrador del navegador. */
.cv-wizard.is-hydrating [data-region] { opacity: .45; transition: opacity .15s; }

/* Debajo de la herramienta, sin cuenta: qué es y cómo va. */
.cv-seo { max-width: 1080px; margin: 36px auto 12px; padding: 0 16px; }
.cv-seo-title { font-size: 22px; margin: 0 0 14px; }
.cv-seo-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
}
.cv-seo-step { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.cv-seo-step h3 { margin: 6px 0 4px; font-size: 15px; }
.cv-seo-step p { margin: 0; font-size: 13.5px; color: var(--muted); }
.cv-seo-num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--pri); color: #fff; font-weight: 700; font-size: 13px;
}
.cv-seo-links { margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.landing-try { margin: 12px 0 0; }

@media (max-width: 480px) {
  .powered-hero { padding: 12px 14px; gap: 12px; }
  .powered-hero-logo { width: 32px; height: 32px; }
}
