/*
 * Evaluación de cumplimiento (/evaluacion/): the styles of this page only.
 *
 * Port of the prototype Joan approved (web/propuestas/evaluacion/index.html, version 6) onto the «Acta» system
 * (web/STYLE_GUIDE.md): only the tokens of css/styles.css, no colour literal, state tints derived with color-mix from
 * the surface. Buttons and form controls are the site's own (.btn, .form-input…). The cards drawn by evaluacion.js are
 * .ev-card, not the site's .card: styles.css greys and un-spaces every paragraph inside .card (`.card p`), which
 * turned the eyebrows and the error hint grey.
 *
 * Every class here starts with `ev-`, because styles.css already has .card, .check, .lead, .step… The welcome screen
 * is static HTML (readable without JavaScript) and its pieces are styled by id: the site gate only accepts, in the
 * HTML, classes that styles.css defines (APP/tests/unit/web/site-gates.test.js). The other screens are drawn by
 * evaluacion.js, whose classes are all defined in this file.
 */

@property --ev-fill { syntax: "<percentage>"; inherits: true; initial-value: 0%; }

/* ---------- Page frame ---------- */
#evaluacion {
  /* Derived tokens: a lighter seal for lines and checks on ink, and the «info» state as a trio like the others. */
  --ev-accent-on-ink: color-mix(in srgb, var(--color-seal) 45%, var(--color-text-inverse));
  --ev-info-bg: color-mix(in srgb, var(--color-brand) 10%, var(--color-surface));
  --ev-info-border: color-mix(in srgb, var(--color-brand) 40%, var(--color-surface));
  --ev-gutter: 20px;
  display: block;
  container-type: inline-size;
  /* The prototype's base size; the site's body text is 17px / 1.6. */
  font-size: 16px;
  line-height: 1.5;
}
#evaluacion [hidden] { display: none !important; }
#evaluacion [data-focus]:focus,
#evaluacion [data-focus]:focus-visible { outline: none; }
.ev-ic { width: 20px; height: 20px; flex: none; }
.ev-muted { color: var(--color-muted); }
.ev-m0 { margin: 0; }
.ev-mb { margin-bottom: 16px; }

/* Ink band with the six-step indicator */
#ev-top { background: var(--color-ink); padding: 14px var(--ev-gutter); }
.ev-top-in { max-width: 1040px; margin: 0 auto; }
@container (min-width: 720px) { #ev-top { padding: 18px 28px; } }

.ev-stepper { --ev-dot: 24px; list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; width: 100%; }
.ev-st { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 7px; transition: --ev-fill 0.5s ease; }
.ev-st + .ev-st::before {
  content: "";
  position: absolute;
  top: calc(var(--ev-dot) / 2 - 2px);
  left: calc(-50% + var(--ev-dot) / 2);
  right: calc(50% + var(--ev-dot) / 2);
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ev-accent-on-ink) 0 var(--ev-fill), var(--color-on-ink-rule) var(--ev-fill) 100%);
}
.ev-dot { position: relative; z-index: 1; width: var(--ev-dot); height: var(--ev-dot); border-radius: 50%; display: grid; place-items: center; background: var(--color-on-ink-rule); transition: background-color 0.3s ease; }
.ev-st.is-done .ev-dot { background: var(--ev-accent-on-ink); color: var(--color-ink); }
.ev-st.is-done .ev-dot .ev-ic { width: 14px; height: 14px; stroke-width: 3; }
.ev-st.is-current .ev-dot { background: var(--color-ink); box-shadow: inset 0 0 0 3px var(--color-text-inverse); }
.ev-st.is-current .ev-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-inverse); }
.ev-lbl { font-size: clamp(11px, 1.3cqi, 13.5px); line-height: 1.2; color: var(--color-text-inverse-muted); font-weight: 500; white-space: nowrap; }
.ev-st.is-current .ev-lbl, .ev-st.is-done .ev-lbl { color: var(--color-text-inverse); font-weight: 700; }
.ev-st-caption { margin: 12px 0 0; font-size: 13px; line-height: 1.3; color: var(--color-text-inverse-muted); text-align: center; }
.ev-st-caption b { color: var(--color-text-inverse); }
@container (max-width: 559px) { .ev-lbl { display: none; } }
@container (min-width: 560px) { .ev-st-caption { display: none; } }

/* The screen under the band */
#ev-screen { padding: 22px var(--ev-gutter) 36px; }
@container (min-width: 720px) { #ev-screen { padding: 36px 28px 64px; } }
.ev-enter { animation: ev-enter 0.28s ease both; }
@keyframes ev-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Type ---------- */
.ev-eyebrow, #ev-eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-seal); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ev-big, #ev-welcome-title { margin: 8px 0 12px; font-size: clamp(32px, 8cqi, 52px); line-height: 1.04; letter-spacing: -0.03em; text-wrap: balance; }
.ev-h2 { margin: 0 0 6px; font-size: clamp(22px, 5.6cqi, 28px); line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
.ev-h3, #ev-areas-title { margin: 0 0 10px; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.ev-h3.ev-mt { margin-top: 24px; }
.ev-lead, #ev-welcome-lead { margin: 0 0 18px; color: var(--color-muted); font-size: 17px; line-height: 1.5; max-width: 60ch; }

/* ---------- Layout and surfaces ---------- */
.ev-grid2, #ev-welcome { max-width: 1040px; margin: 0 auto; display: grid; gap: 16px; }
@container (min-width: 760px) { .ev-grid2, #ev-welcome { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 22px; align-items: start; } }
.ev-card, #ev-welcome-card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-sm); padding: 20px; }
@container (min-width: 720px) { .ev-card, #ev-welcome-card { padding: 30px 34px; } }

/* Ink side panel */
.ev-side, #ev-areas { background: var(--color-ink); color: var(--color-text-inverse); border-radius: var(--radius-xl); padding: 18px 20px; }
@container (min-width: 760px) { .ev-side, #ev-areas { padding: 24px; } }
.ev-side .ev-h3, #ev-areas-title { color: var(--color-text-inverse); }
.ev-side p { margin: 0 0 10px; color: var(--color-text-inverse-muted); font-size: 16px; line-height: 1.5; }
.ev-side :focus-visible, #ev-areas :focus-visible { outline-color: var(--color-text-inverse); }
.ev-side-toggle { appearance: none; width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--color-text-inverse); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; text-align: left; }
.ev-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.2s ease; }
.ev-side.is-open .ev-chev { transform: rotate(-135deg); }
.ev-side-body { padding-top: 8px; }
@container (max-width: 759px) { .ev-side.is-collapsible:not(.is-open) .ev-side-body { display: none; } }
@container (min-width: 760px) { .ev-side-toggle { display: none; } .ev-side-body { padding-top: 0; } }
.ev-side .ev-ref-on-ink { font-size: 13px; }
/* Each norm of a reference links to its official text (item 765e): underlined, so it reads as a link without colour,
   and white on ink, also on hover (the site's hover colour is a dark blue). */
.ev-side .ev-ref-on-ink a { color: var(--color-text-inverse); text-decoration: underline; }
.ev-side .ev-ref-on-ink a:hover { color: var(--color-text-inverse); }

#ev-areas-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
#ev-areas-list li { display: grid; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--color-on-ink-rule); }
#ev-areas-list li:last-child { border-bottom: 0; padding-bottom: 0; }
#ev-areas-list b { color: var(--color-text-inverse); }
#ev-areas-list span { color: var(--color-text-inverse-muted); font-size: 15px; line-height: 1.45; }
#ev-areas-list .ev-area-n { font-size: 13px; color: var(--ev-accent-on-ink); font-weight: 600; }

.ev-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-mini li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 14px; color: var(--color-text-inverse-muted); }
.ev-mini .ev-v { color: var(--color-text-inverse); font-weight: 700; font-variant-numeric: tabular-nums; }
.ev-mini .ev-bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--color-on-ink-rule); overflow: hidden; }
.ev-mini .ev-fill { display: block; height: 100%; border-radius: 3px; background: var(--ev-accent-on-ink); transition: width 0.5s ease; }

/* ---------- Welcome (static HTML) ---------- */
#ev-chips { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--color-muted); font-size: 15px; }
#ev-chips li { display: flex; align-items: center; gap: 8px; }
#ev-chips svg { flex: none; color: var(--color-seal); }
#ev-welcome-note, #ev-noscript { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted); }

/* ---------- Buttons (on top of the site's .btn) ---------- */
#evaluacion .btn { gap: 8px; }
#evaluacion .btn[disabled] { opacity: 0.7; cursor: progress; }
.ev-btn-ghost { background: none; color: var(--color-ink); padding-inline: 10px; }
.ev-btn-ghost:hover { background: var(--color-rule-soft); color: var(--color-ink); }
.ev-btn-xl, #ev-start { min-height: 56px; font-size: 18px; padding: 0 28px; }
.ev-btn-wide, #ev-start { width: 100%; }
@container (min-width: 620px) { .ev-btn-wide, #ev-start { width: auto; } }
.ev-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: ev-rot 0.8s linear infinite; }
@keyframes ev-rot { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.ev-form { display: grid; gap: 18px; }
.ev-row2 { display: grid; gap: 18px; }
@container (min-width: 620px) { .ev-row2 { grid-template-columns: 1fr 1fr; } }
.ev-field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.ev-field > label, .ev-legend { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--color-ink); }
.ev-fieldset { border: 0; border-radius: 0; margin: 0; padding: 0; min-width: 0; }
.ev-fieldset > .ev-legend { margin: 0 0 8px; padding: 0; }
.ev-opt { font-weight: 500; color: var(--color-muted); }
#evaluacion .form-input[aria-invalid="true"], #evaluacion .form-select[aria-invalid="true"] { border-color: var(--status-danger); box-shadow: inset 0 0 0 1px var(--status-danger); }
.ev-fhint { font-size: 13.5px; line-height: 1.4; color: var(--color-muted); }
.ev-err { margin: 0; font-weight: 600; }
.ev-fieldset .ev-err { display: block; margin: -2px 0 8px; }
/* An unanswered group: its options take the red border of an invalid field (the message above says why). */
.ev-fieldset.is-invalid .ev-choice, .ev-fieldset.is-invalid .ev-pill span { border-color: var(--status-danger); }
.ev-legal { margin: 0; line-height: 1.5; }
.ev-formnav { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
/* On the narrowest phones the main button takes the rest of the row, or the whole next row when it wraps. */
@container (max-width: 379px) {
  .ev-formnav > .btn-primary { flex: 1 0 auto; }
  .ev-qnav > [data-act="next"] { margin-left: auto; }
}
/* A 44 px row, with the box on the first line of text. */
#evaluacion .form-checkbox label { color: var(--color-ink); font-size: 15px; line-height: 24px; padding: 10px 0; }
#evaluacion .form-checkbox input[type="checkbox"] { margin-top: 10px; }

.ev-radios { display: grid; gap: 8px; }
@container (min-width: 620px) { .ev-radios-2 { grid-template-columns: 1fr 1fr; } }
.ev-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ev-pill { position: relative; }
.ev-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-pill span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--color-rule); border-radius: var(--radius-full); background: var(--color-surface); font-weight: 600; font-size: 15px; cursor: pointer; }
.ev-pill span:hover { border-color: var(--color-muted); }
.ev-pill input:checked + span { border-color: var(--color-brand); background: var(--color-brand-light); color: var(--color-brand-dark); box-shadow: inset 0 0 0 1px var(--color-brand); }
.ev-pill input:focus-visible + span { outline: 3px solid var(--color-brand); outline-offset: 2px; }

/* ---------- Answers ---------- */
.ev-choices { display: grid; gap: 10px; }
.ev-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 14px; border: 1.5px solid var(--color-rule); border-radius: var(--radius-xl); background: var(--color-surface); color: var(--color-ink); font-size: 16px; line-height: 1.4; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.ev-choice:hover { border-color: var(--color-muted); }
.ev-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ev-choice-t { min-width: 0; }
.ev-key { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 1.5px solid var(--color-rule); background: var(--color-paper); display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.ev-choice:has(input:checked) { border-color: var(--color-brand); background: var(--color-brand-light); box-shadow: inset 0 0 0 1px var(--color-brand); }
.ev-choice:has(input:checked) .ev-key { background: var(--color-brand); border-color: var(--color-brand); color: var(--color-text-inverse); }
.ev-choice:has(input:focus-visible) { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.ev-choice.is-soft { background: transparent; border-style: dashed; color: var(--color-muted); min-height: 48px; }
.ev-choice.is-soft:has(input:checked) { color: var(--color-ink); border-style: solid; }
.ev-choice.is-picked { animation: ev-spring 0.42s cubic-bezier(0.3, 1.5, 0.6, 1); }
@keyframes ev-spring { 0% { transform: scale(0.97); } 60% { transform: scale(1.015); } 100% { transform: scale(1); } }
.ev-choice.is-compact { min-height: 48px; padding: 10px 12px; font-size: 15.5px; }
.ev-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--color-muted); background: var(--color-surface); display: grid; place-items: center; }
.ev-choice:has(input:checked) .ev-mark { border-color: var(--color-brand); background: var(--color-brand); }
.ev-choice:has(input:checked) .ev-mark::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-inverse); }

.ev-qmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 14px; color: var(--color-muted); }
.ev-count { font-weight: 700; color: var(--color-ink); font-variant-numeric: tabular-nums; }
.ev-qdots { display: inline-flex; gap: 5px; }
.ev-qdots i { width: 8px; height: 8px; border-radius: 50%; background: var(--color-rule); }
.ev-qdots i.is-on { background: var(--color-seal); }
.ev-qdots i.is-cur { background: var(--color-brand); }
.ev-qtext { margin: 10px 0 20px; font-size: clamp(22px, 5.6cqi, 31px); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
.ev-pick-hint { min-height: 22px; margin: 10px 0 0; color: var(--status-danger); font-size: 14px; font-weight: 600; }
.ev-qnav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.ev-keys { font-size: 14px; color: var(--color-muted); }
@container (max-width: 719px) { .ev-keys { display: none; } }

/* ---------- Block intro (the breather between blocks) ---------- */
.ev-intro { max-width: 640px; margin: 0 auto; }
.ev-blist { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.ev-blist li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-surface); }
.ev-bdot { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--color-rule-soft); color: var(--color-muted); font-size: 13px; font-weight: 700; }
.ev-blist li.is-done .ev-bdot { background: var(--color-seal); color: var(--color-text-inverse); }
.ev-blist li.is-done .ev-bdot .ev-ic { width: 15px; height: 15px; stroke-width: 3; }
.ev-blist li.is-now { border-color: var(--color-brand); box-shadow: inset 0 0 0 1px var(--color-brand); }
.ev-blist li.is-now .ev-bdot { background: var(--color-brand); color: var(--color-text-inverse); }
.ev-bname { font-weight: 700; min-width: 0; }
.ev-bmeta { margin-left: auto; font-size: 13.5px; color: var(--color-muted); white-space: nowrap; }

/* ---------- Result: an audit report with the look of a document ---------- */
.ev-res { max-width: 880px; margin: 0 auto; display: grid; gap: 18px; }
.ev-resnav { margin-bottom: -6px; }
.ev-tone-danger { --ev-tone: var(--status-danger); --ev-tone-bg: var(--status-danger-bg); --ev-tone-border: var(--status-danger-border); }
.ev-tone-warn { --ev-tone: var(--status-warn); --ev-tone-bg: var(--status-warn-bg); --ev-tone-border: var(--status-warn-border); }
.ev-tone-info { --ev-tone: var(--color-brand); --ev-tone-bg: var(--ev-info-bg); --ev-tone-border: var(--ev-info-border); }
.ev-tone-ok { --ev-tone: var(--status-ok); --ev-tone-bg: var(--status-ok-bg); --ev-tone-border: var(--status-ok-border); }
.ev-doc { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-sm); padding: 22px 18px; box-shadow: var(--shadow-md); }
@container (min-width: 720px) { .ev-doc { padding: 40px 48px; } }
.ev-doc-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 18px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 2px solid var(--color-ink); }
.ev-doc-title { margin: 4px 0 0; font-size: clamp(22px, 5.6cqi, 30px); line-height: 1.15; letter-spacing: -0.015em; overflow-wrap: anywhere; }
.ev-doc-ref { margin: 0; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--color-muted); text-align: right; overflow-wrap: anywhere; }
.ev-doc-sum { display: grid; gap: 16px; align-items: center; }
@container (min-width: 560px) { .ev-doc-sum { grid-template-columns: auto minmax(0, 1fr); } }
.ev-doc-sum p { margin: 0 0 6px; }
.ev-lv-name { margin: 0 0 6px; font-size: clamp(21px, 5.4cqi, 27px); line-height: 1.15; letter-spacing: -0.015em; color: var(--ev-tone); }
.ev-role-line { color: var(--color-muted); }
/* Item 0cd8: the global score that decides the level, out of 100 like the bars by block. */
.ev-score { font-size: 15px; color: var(--color-text-primary); }
.ev-score strong { color: var(--ev-tone); white-space: nowrap; }
.ev-blocks-note { margin: -4px 0 12px; font-size: 14px; line-height: 1.45; }
.ev-stamp { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--ev-tone); border: 3px solid var(--ev-tone); box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 6px var(--ev-tone); transform: rotate(-7deg); line-height: 1.05; }
.ev-stamp small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.ev-stamp small:last-child { font-size: 10px; letter-spacing: 0.04em; }
.ev-stamp strong { display: block; font-size: 36px; }
.ev-doc-sec { padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--color-rule-soft); }
.ev-doc-h { margin: 0 0 12px; font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 0.08em; text-transform: uppercase; color: var(--color-muted); }
.ev-doc-foot { margin: 18px 0 0; font-size: 13px; color: var(--color-muted); }
/* The three figures of the result, one per step (item 4346): in a row where the result is wide enough for three. */
.ev-nums { display: grid; gap: 12px; }
@container (min-width: 720px) { .ev-nums { grid-template-columns: repeat(3, 1fr); } }
.ev-num { border: 1px solid var(--ev-tone-border); background: var(--ev-tone-bg); border-radius: var(--radius-lg); padding: 14px 16px; }
.ev-num strong { display: block; font-size: 34px; line-height: 1; color: var(--ev-tone); font-variant-numeric: tabular-nums; }
.ev-num span { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.4; }
.ev-gapline { margin: 12px 0 0; }
.ev-evid { display: grid; gap: 10px; margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-surface); }
.ev-evid-t { margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; color: var(--color-ink); }
.ev-evid-you { margin: 0; font-weight: 600; }
.ev-evid-cols { display: grid; gap: 10px; }
@container (min-width: 560px) { .ev-evid-cols { grid-template-columns: 1fr 1fr; } }
.ev-evid-cols > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: start; align-content: start; padding: 10px 12px; border: 1px solid var(--ev-tone-border); border-radius: var(--radius-md); background: var(--ev-tone-bg); font-size: 14.5px; line-height: 1.4; }
.ev-evid-cols .ev-ic { grid-row: span 2; margin-top: 2px; color: var(--ev-tone); }
.ev-evid-foot { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--color-muted); }
.ev-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ev-bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 12px; }
.ev-bars .ev-l { font-weight: 600; }
.ev-bars .ev-v { font-size: 14px; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.ev-bars .ev-v b { color: var(--ev-tone); }
.ev-bars .ev-bar { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--color-rule-soft); overflow: hidden; }
.ev-bars .ev-fill { display: block; height: 100%; border-radius: 4px; background: var(--ev-tone); }
.ev-nsnote { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--status-warn-bg); border: 1px solid var(--status-warn-border); font-size: 15px; line-height: 1.45; }
.ev-nsnote .ev-ic { color: var(--status-warn); margin-top: 2px; }
.ev-gaps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-gaps li { padding: 14px 16px; border: 1px solid var(--color-rule); border-radius: var(--radius-lg); background: var(--color-surface); }
.ev-gap-t { margin: 0 0 6px; font-weight: 700; line-height: 1.4; }
.ev-gap-g { margin: 0; color: var(--color-muted); font-size: 15px; line-height: 1.45; }
.ev-gap-g b { color: var(--color-seal); }
.ev-oblig { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ev-oblig li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; }
.ev-oblig .ev-ic { color: var(--color-seal); margin-top: 2px; }
.ev-ref { display: block; margin-top: 4px; font-size: 13px; color: var(--color-muted); }
.ev-ref a { color: var(--color-link); text-decoration: underline; }
.ev-disclaimer { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--color-muted); }

/* Send card */
.ev-sendcard { display: grid; gap: 18px; }
.ev-to { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--color-muted); }
.ev-to strong { color: var(--color-ink); }
.ev-sent { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ev-sent p { margin: 0 0 8px; }
/* An e-mail address moves whole to the next line, and breaks only if it does not fit in a full line. */
.ev-sent strong, .ev-to strong { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.ev-ic-lg { width: 30px; height: 30px; color: var(--color-seal); }
.ev-alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-lg); background: var(--status-danger-bg); border: 1px solid var(--status-danger-border); color: var(--color-ink); font-size: 15px; line-height: 1.45; }
.ev-alert:focus { outline: 3px solid var(--color-brand); outline-offset: 2px; }
.ev-alert > .ev-ic { color: var(--status-danger); margin-top: 1px; }
.ev-alert-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; overflow-wrap: anywhere; }
.ev-alert-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ev-book { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 18px; border-top: 1px solid var(--color-rule-soft); }
.ev-book p { margin: 0; flex: 1 1 220px; }
.ev-rcline { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--color-muted); }
.ev-rcline .ev-ic { color: var(--color-seal); margin-top: 2px; }

/* Mobile: the action stays at hand while reading the report (hidden when the send card is on screen). It sits above
   the cookie notice while that is open (--cookie-banner-space, set by js/consent.js). */
.ev-sticky { position: sticky; bottom: var(--cookie-banner-space, 0px); z-index: 2; margin: 0 calc(var(--ev-gutter) * -1) -36px; padding: 12px var(--ev-gutter) calc(12px + env(safe-area-inset-bottom, 0px)); background: var(--color-paper); border-top: 1px solid var(--color-rule); transition: transform 0.2s ease, visibility 0.2s ease; }
.ev-sticky.is-off { transform: translateY(110%); visibility: hidden; }
.ev-sticky .btn { padding-inline: 12px; }
@container (min-width: 720px) { .ev-sticky { display: none; } }
/* The site's floating «Volver arriba» (js/main.js, appended to <body> after this <main>) covered answers, help texts
   and the copy field (blind test, 2026-10-10): this page has the step indicator and the sticky header instead. */
#evaluacion ~ .back-to-top { display: none; }

@media (prefers-reduced-motion: reduce) {
  .ev-enter, .ev-choice.is-picked { animation: none; }
  .ev-st, .ev-dot, .ev-mini .ev-fill, .ev-chev, .ev-sticky { transition: none; }
  .ev-spin { animation: none; }
}
