/* AdiosMulta — «Recurrir mi multa»: subir, la lectura en vivo y la primera respuesta.
   Los tokens son los de la web (styles.css: --accent, --border-soft, --muted…), las letras las
   de la portada (Inter 800 y la Instrument Serif en cursiva para lo que se subraya) y el papel,
   el haz de luz y el botón grande son los suyos (portada.css: .pc-linea, .cr-cta).
   Lo vivo de la lectura (el haz, las líneas, cada dato que se ilumina) NO se apaga con «menos
   movimiento»: es el producto, no un adorno (el Windows del fundador lo pide y lo vería quieto). */

body.flujo {
    --fl-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --fl-sombra: 0 1px 2px rgba(10, 10, 10, 0.04), 0 30px 80px -42px rgba(46, 114, 252, 0.45);
    --fl-radio: 28px;
    background: var(--bg);
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    min-height: 100svh;
}
.fl em {
    font-family: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: -0.01em;
}

/* ----- La barra: el logo y los pasos ----- */
.fl-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px;
    box-sizing: border-box;
}
.fl-logo { display: inline-flex; }
.fl-logo .am-logo { height: 34px; }
.fl-pasos {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: paso;
}
.fl-pasos li {
    counter-increment: paso;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 6px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted-soft);
    transition: color 0.4s ease, background 0.4s ease;
}
.fl-pasos li::before {
    content: counter(paso);
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11.5px;
    color: var(--muted);
    background: var(--surface);
    transition: background 0.4s ease, color 0.4s ease;
}
.fl-pasos li[aria-current="step"] { color: var(--fg); background: var(--surface-soft); }
.fl-pasos li[aria-current="step"]::before { background: var(--accent); color: #fff; }
.fl-pasos li.is-hecho::before { content: "✓"; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); }
@media (max-width: 640px) {
    .fl-pasos li span { display: none; }
    .fl-pasos li { padding: 6px; }
    .fl-pasos li[aria-current="step"] span { display: inline; }
}

.fl {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(12px, 3vh, 40px) 24px 80px;
    box-sizing: border-box;
}
/* Hidden is hidden: a rule that gives an element its display (grid, flex) would otherwise beat the
   `hidden` attribute, and the code's box and the «firmada» seal showed on a signature not yet made. */
.fl [hidden] { display: none !important; }
.fl-pantalla { animation: fl-entra 0.7s var(--fl-ease) both; }
@keyframes fl-entra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Every title of the flow on ONE line (the founder, 26-oct): never wrapped here, and its letter
   brought down to its box, only as much as needed, by recurrir.js (ajustarTitulo). */
.fl-cabeza h1, .fl-panel-titulo, .fl-plazo-texto { white-space: nowrap; }

/* ----- 1 · Subir ----- */
.fl-subir { max-width: 680px; margin: 0 auto; text-align: center; }
.fl-cabeza h1 {
    font-size: clamp(42px, 7.4vw, 68px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin: clamp(8px, 4vh, 40px) 0 14px;
    color: var(--fg);
}
.fl-cabeza h1 em { font-size: 1.08em; }
/* One line on a laptop (at 30em it left «ella.» alone on the second), and never one word alone on
   the last line anywhere. */
.fl-cabeza p, .fl-legal, .fl-pista { text-wrap: pretty; }
.fl-cabeza p { font-size: clamp(16.5px, 2.2vw, 19px); color: var(--muted); margin: 0 auto 34px; max-width: 32em; line-height: 1.5; }

.fl-zona {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 44px 28px 40px;
    border-radius: var(--fl-radio);
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 6%, #fff) 0%, #fff 60%) padding-box,
        linear-gradient(180deg, var(--border-soft), var(--border)) border-box;
    border: 1px solid transparent;
    box-shadow: var(--fl-sombra);
    cursor: pointer;
    outline: none;
    transition: transform 0.5s var(--fl-ease), box-shadow 0.5s var(--fl-ease);
}
.fl-zona:hover { transform: translateY(-2px); }
.fl-zona:focus-visible { box-shadow: var(--fl-sombra), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.fl-zona.is-encima {
    transform: translateY(-4px) scale(1.01);
    background:
        radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--accent) 12%, #fff) 0%, #fff 62%) padding-box,
        linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 50%, #fff)) border-box;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 40px 90px -36px rgba(46, 114, 252, 0.65);
}
.fl-zona-papel {
    position: relative;
    width: 150px;
    padding: 18px 16px 14px;
    margin-bottom: 18px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 22px 50px -24px rgba(46, 114, 252, 0.45);
    overflow: hidden;
    transform: rotate(-2.5deg);
    animation: fl-flota 6s ease-in-out infinite;
}
.fl-zona-papel .pc-linea { transform: scaleX(1); height: 6px; margin-bottom: 9px; }
.fl-zona.is-encima .fl-zona-papel { transform: rotate(0deg) translateY(-6px); }
@keyframes fl-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.fl-zona-haz, .fl-escaner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 46px;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, rgba(46, 114, 252, 0.12));
}
.fl-zona-haz::after, .fl-escaner::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent) 18%, var(--accent) 82%, transparent);
    box-shadow: 0 0 14px 3px rgba(46, 114, 252, 0.55);
}
.fl-zona-haz { animation: fl-barrido 2.8s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes fl-barrido {
    0% { transform: translateY(-46px); opacity: 0; }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% { transform: translateY(120px); opacity: 0; }
}
.fl-zona-titulo { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin: 0; color: var(--fg); }
.fl-zona-sub { font-size: 15px; color: var(--muted); margin: 0; }
.fl-enlace { color: var(--accent-texto); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.fl-botones { display: grid; gap: 12px; width: 100%; max-width: 340px; }
.fl-boton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 58px;
    border-radius: 18px;
    font-size: 17px;
    font-weight: 700;
    color: var(--fg);
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.fl-boton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fl-boton:active { transform: scale(0.98); }
.fl-boton--azul {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 85%, #000) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 16px 36px -14px color-mix(in srgb, var(--accent) 70%, transparent);
}

.solo-movil { display: none; }
@media (hover: none) and (pointer: coarse) {
    .solo-movil { display: grid; }
    .solo-ordenador { display: none; }
    .fl-zona { cursor: default; padding: 34px 22px 30px; }
}

.fl-error {
    margin: 18px auto 0;
    max-width: 30em;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 15px;
    color: #9f1d1d;
    background: #fff4f2;
    border: 1px solid #ffd9d2;
}
.fl-legal {
    margin: 26px auto 0;
    max-width: 36em;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--muted-soft);
}
.fl-legal a { color: var(--muted); text-underline-offset: 2px; white-space: nowrap; }

/* ----- 1b · Tus hojas: cada una subiéndose sola, hasta «Ya están todas» ----- */
/* Wide enough for five sheets in a row on a computer (5 × 148 px and their gaps). */
.fl-hojas { max-width: 840px; margin: 0 auto; text-align: center; }
.fl-bandeja {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 148px));
    justify-content: center;
    gap: 18px 14px;
    list-style: none;
    margin: 0;
    padding: 14px;
    border-radius: var(--fl-radio);
    counter-reset: hoja;
    outline: 2px dashed transparent;
    outline-offset: -2px;
    transition: outline-color 0.3s ease, background 0.3s ease;
}
.fl-bandeja.is-encima { outline-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.fl-bandeja-hoja { position: relative; counter-increment: hoja; animation: fl-entra 0.5s var(--fl-ease) both; }
.fl-bandeja-papel {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(180deg, #fff, var(--surface-soft));
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 22px 44px -30px rgba(10, 30, 80, 0.45);
    display: grid;
    place-items: center;
}
/* The whole sheet, never cropped: an envelope lying down is an envelope. */
.fl-bandeja-papel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fl-bandeja-papel::before {
    content: counter(hoja);
    position: absolute;
    z-index: 2;
    left: 8px;
    top: 8px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    box-sizing: border-box;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px -2px rgba(10, 10, 10, 0.25);
}
.fl-bandeja-tipo { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.con-imagen .fl-bandeja-tipo { display: none; }
/* Going up: a ring that fills with the upload, over the sheet a little veiled. */
.fl-anillo { position: absolute; z-index: 2; width: 44px; height: 44px; opacity: 0; transform: rotate(-90deg); transition: opacity 0.3s ease; }
.fl-anillo circle { fill: none; stroke-width: 3; stroke: rgba(255, 255, 255, 0.85); }
.fl-anillo .fl-anillo-lleno {
    stroke: var(--accent);
    stroke-linecap: round;
    stroke-dasharray: var(--progreso, 4) 100;
    transition: stroke-dasharray 0.25s ease;
}
.is-subiendo .fl-anillo { opacity: 1; }
.is-subiendo .fl-bandeja-papel img { filter: saturate(0.6) brightness(1.06); opacity: 0.75; }
.fl-bandeja-visto {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 14px -6px rgba(46, 114, 252, 0.8);
    opacity: 0;
    transform: scale(0.4);
}
.is-lista .fl-bandeja-visto { opacity: 1; transform: none; transition: opacity 0.3s ease, transform 0.45s var(--fl-ease); }
.is-error .fl-bandeja-papel { border-color: #f3b4a8; box-shadow: 0 0 0 2px #ffd9d2; }
.fl-bandeja-nota { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); min-height: 1em; text-wrap: pretty; }
.is-error .fl-bandeja-nota { color: #9f1d1d; }
.fl-bandeja-reintentar {
    border: 0;
    padding: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--accent-texto);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}
.fl-bandeja-quitar {
    position: absolute;
    z-index: 3;
    top: -9px;
    right: -9px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-soft);
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(10, 10, 10, 0.35);
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease;
}
.fl-bandeja-quitar:active { transform: scale(0.92); }
.fl-bandeja-quitar svg { width: 15px; height: 15px; fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; }
.fl-hojas-acciones { display: grid; justify-items: center; gap: 10px; margin: 18px auto 0; }
.fl-hojas-acciones .fl-botones { grid-template-columns: 1fr 1fr; max-width: 420px; }
.fl-boton--anadir { padding: 0 26px; }
.fl-boton--anadir svg { stroke-width: 2.2; stroke-linecap: round; }
.fl-hojas .fl-veredicto { margin-top: 26px; }
/* A short computer screen (a 1366×640 laptop): the sheets a little smaller and less air between
   blocks, so that five sheets and both buttons fit without scrolling (measured, 26-oct). */
@media (min-width: 641px) and (max-height: 700px) {
    .fl-bandeja { grid-template-columns: repeat(auto-fill, minmax(110px, 130px)); }
    .fl-hojas-acciones { margin-top: 10px; }
    .fl-hojas .fl-veredicto { margin-top: 16px; }
}
/* On a phone, three in a row: the sheets and both buttons fit on the screen after each photo. */
@media (max-width: 640px) {
    .fl-bandeja { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; padding: 10px 6px; }
    .fl-bandeja-papel { border-radius: 11px; }
    .fl-bandeja-papel::before { left: 6px; top: 6px; min-width: 20px; height: 20px; font-size: 11px; }
    .fl-bandeja-visto { right: 6px; bottom: 6px; width: 21px; height: 21px; font-size: 12px; }
    .fl-bandeja-quitar { width: 28px; height: 28px; top: -8px; right: -8px; }
    .fl-bandeja-nota { font-size: 11.5px; }
    .fl-hojas .fl-cabeza p { margin-bottom: 18px; }
}

/* ----- 2 · La lectura en vivo ----- */
.fl-leer {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(24px, 4vw, 56px);
    align-items: start;
}
@media (max-width: 900px) { .fl-leer { grid-template-columns: 1fr; } }

.fl-lienzo { display: grid; justify-items: center; position: sticky; top: 16px; }
@media (max-width: 900px) { .fl-lienzo { position: static; } }
.fl-hoja {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05), 0 40px 90px -50px rgba(10, 30, 80, 0.45);
    transform: perspective(1400px) rotateX(2deg);
    transition: transform 1.2s var(--fl-ease);
}
.fl-hoja.is-leida { transform: none; }
.fl-hoja img { display: block; width: 100%; height: auto; user-select: none; }
.fl-hojas-vivas { display: grid; gap: 18px; width: 100%; }
/* Several sheets: the one being read in large, the rest in the strip. The large one fits the
   screen's height, so the strip below it is always in sight. */
.fl-hojas-vivas.is-varias { justify-items: center; }
.fl-hojas-vivas.is-varias .fl-hoja { width: auto; max-width: 100%; }
.fl-hojas-vivas.is-varias .fl-hoja img { width: auto; max-width: 100%; max-height: calc(100svh - 230px); }
.fl-hojas-vivas.is-varias .fl-hoja:not(.is-vista) { display: none; }
.fl-hojas-vivas.is-varias .fl-hoja.is-vista { animation: fl-entra 0.5s var(--fl-ease) both; }
.fl-hoja-pie { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: center; text-wrap: balance; }
.fl-tira {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 12px 0 0;
    padding: 6px 4px 10px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    justify-content: safe center;
}
.fl-tira-hoja { flex: 0 0 auto; scroll-snap-align: center; }
.fl-tira-hoja button {
    position: relative;
    display: block;
    width: 54px;
    height: 72px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-soft);
    background: #fff;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.05);
    transition: transform 0.25s var(--fl-ease), box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}
.fl-tira-hoja img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fl-tira-numero {
    position: absolute;
    left: 4px;
    bottom: 4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--fg);
    background: rgba(255, 255, 255, 0.92);
}
.fl-tira-hoja.is-leida .fl-tira-numero { color: #fff; background: var(--accent); }
.fl-tira-hoja.is-vista button { transform: translateY(-3px); box-shadow: 0 0 0 2px var(--accent), 0 10px 22px -10px rgba(46, 114, 252, 0.7); }
/* On a phone the reading is one column: its head centred like every other screen of the flow, and
   the sheet no taller than 40 % of the screen, so «¿qué día te llegó?» is reached at once. */
@media (max-width: 900px) {
    .fl-hojas-vivas { justify-items: center; }
    .fl-hojas-vivas .fl-hoja { width: auto; max-width: 100%; }
    .fl-hojas-vivas .fl-hoja img,
    .fl-hojas-vivas.is-varias .fl-hoja img { width: auto; max-width: 100%; max-height: 40svh; }
    .fl-leer .fl-estado, .fl-leer .fl-panel-titulo { text-align: center; }
    .fl-leer .fl-etapas { justify-content: center; }
    .fl-leer .fl-borrar { display: block; margin-inline: auto; }
}
.fl-capa { position: absolute; inset: 0; }
.fl-escaner { height: 80px; animation: fl-escanea 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.fl-hoja.is-leida .fl-escaner { animation: none; opacity: 0; transition: opacity 0.6s ease; }
@keyframes fl-escanea {
    0% { top: -80px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* Where the OCR found text: soft blue light, line by line, top to bottom. */
.fl-linea {
    position: absolute;
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 9%, transparent);
    opacity: 0;
    transform: scaleX(0.6);
    transform-origin: left center;
    animation: fl-linea 0.55s var(--fl-ease) forwards;
    animation-delay: var(--retraso, 0s);
}
@keyframes fl-linea { to { opacity: 1; transform: none; } }

/* Each datum the moment it is read: a box draws itself around it, its name above, then it rests. */
.fl-dato {
    position: absolute;
    border-radius: 6px;
    box-shadow: 0 0 0 2px var(--accent), 0 0 22px 2px rgba(46, 114, 252, 0.35);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    animation: fl-dato 0.9s var(--fl-ease) both;
}
.fl-dato.is-reposo { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); transition: box-shadow 1.2s ease; }
.fl-dato.is-duda { box-shadow: 0 0 0 2px #d97706, 0 0 18px 2px rgba(217, 119, 6, 0.3); }
@keyframes fl-dato {
    0% { opacity: 0; transform: scale(1.12); }
    55% { opacity: 1; transform: scale(0.99); }
    100% { opacity: 1; transform: none; }
}
.fl-dato-nombre {
    position: absolute;
    left: -2px;
    bottom: calc(100% + 6px);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 6px 16px -6px rgba(46, 114, 252, 0.7);
    animation: fl-nombre 1.8s var(--fl-ease) forwards;
}
@keyframes fl-nombre {
    0% { opacity: 0; transform: translateY(4px); }
    15%, 70% { opacity: 1; transform: none; }
    100% { opacity: 0; transform: translateY(-2px); }
}

.fl-panel { padding-top: 6px; }
.fl-estado {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-texto);
}
.fl-encontrada {
    max-width: 560px;
    margin: -6px auto 22px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-soft);
}
.fl-encontrada a { color: var(--accent-texto); font-weight: 600; }
.fl-panel-titulo {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    margin: 0 0 22px;
}

.fl-etapas { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 0 0 22px; padding: 0; }
.fl-etapas li { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--muted-soft); transition: color 0.4s ease; }
.fl-etapas i {
    position: relative;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    transition: border-color 0.4s ease, background 0.4s ease;
}
.fl-etapas li.is-activa { color: var(--fg); }
.fl-etapas li.is-activa i { border-color: var(--accent); border-right-color: transparent; animation: fl-gira 0.9s linear infinite; }
.fl-etapas li.is-hecha { color: var(--fg); }
.fl-etapas li.is-hecha i { border-color: var(--accent); background: var(--accent); }
.fl-etapas li.is-hecha i::after {
    content: "";
    position: absolute;
    left: 4.5px;
    top: 1.5px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@keyframes fl-gira { to { transform: rotate(360deg); } }

.fl-ficha {
    margin: 0 0 22px;
    padding: 6px 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--fl-sombra);
}
.fl-ficha:empty { display: none; }
.fl-fila {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.4fr) 22px;
    align-items: baseline;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
    animation: fl-fila 0.6s var(--fl-ease) both;
}
.fl-fila:last-child { border-bottom: 0; }
@keyframes fl-fila { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.fl-fila dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); }
.fl-fila dd { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.fl-fila dd .fl-letra { opacity: 0; animation: fl-letra 0.28s ease forwards; animation-delay: var(--d); }
@keyframes fl-letra { to { opacity: 1; } }
.fl-fila .fl-visto { width: 18px; height: 18px; opacity: 0; transform: scale(0.6); transition: opacity 0.4s ease, transform 0.4s var(--fl-ease); color: var(--accent); }
.fl-fila.is-comprobada .fl-visto { opacity: 1; transform: none; }
.fl-fila.is-duda dd { color: #b45309; }
.fl-fila.is-duda .fl-visto { opacity: 1; transform: none; color: #d97706; }

.fl-pregunta {
    margin: 0 0 18px;
    padding: 18px 20px 16px;
    border-radius: 22px;
    background: color-mix(in srgb, var(--accent) 5%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, #fff);
    animation: fl-fila 0.6s var(--fl-ease) both;
}
.fl-pregunta-titulo { margin: 0 0 12px; font-size: 16px; color: var(--fg-soft); }
.fl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fl-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    color: var(--fg);
    background: #fff;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.fl-chip:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.fl-chip:active { transform: scale(0.97); }
.fl-chip.is-elegida { color: #fff; background: var(--accent); border-color: var(--accent); }
.fl-chip--fecha input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fl-pista { margin: 10px 0 0; font-size: 13px; color: var(--muted-soft); line-height: 1.5; }

.fl-borrar, .fl-otra {
    margin-top: 8px;
    padding: 6px 0;
    font: inherit;
    font-size: 13.5px;
    color: var(--muted-soft);
    background: none;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.fl-borrar:hover, .fl-otra:hover { color: var(--fg); }

/* ----- 3 · La primera respuesta ----- */
.fl-respuesta { max-width: 760px; margin: 0 auto; text-align: center; }
.fl-plazo { margin: clamp(6px, 3vh, 30px) 0 30px; }
.fl-plazo-dias { margin: 0; line-height: 0.9; }
.fl-plazo-dias span {
    display: inline-block;
    font-size: clamp(110px, 22vw, 200px);
    font-weight: 800;
    letter-spacing: -0.06em;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 80%, #fff) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 80%, #000) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fl-numero 1s var(--fl-ease) both;
}
@keyframes fl-numero { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.fl-plazo-texto { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; letter-spacing: -0.035em; margin: 6px 0 8px; }
.fl-plazo-hasta { font-size: 17px; color: var(--muted); margin: 0; }
.fl-plazo.is-sin-plazo .fl-plazo-dias { display: none; }

.fl-tarjeta {
    text-align: left;
    padding: 26px 26px 10px;
    border-radius: var(--fl-radio);
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--fl-sombra);
    animation: fl-fila 0.8s var(--fl-ease) 0.15s both;
}
.fl-tarjeta-que { margin: 0 0 16px; font-size: clamp(21px, 3vw, 26px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; color: var(--fg); }
.fl-tarjeta-datos { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 18px; margin: 0; }
.fl-tarjeta-datos div { padding: 14px 0; border-top: 1px solid var(--border-soft); }
.fl-tarjeta-datos dt { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-soft); margin-bottom: 4px; }
.fl-tarjeta-datos dd { margin: 0; font-size: 17px; font-weight: 600; }

/* ----- 3b · Nuestro análisis: el veredicto ----- */
/* La fuerza se dice con el azul de la marca, nunca con un semáforo: tres barras, llenas según el nivel
   (sólidos 3, defendibles 2, débiles 1); sin motivos o sin recurso posible, en gris y sin barras. Mientras
   se estudia, las barras respiran. Las frases vienen de la API (recurrir.js no escribe ninguna). */
.fl-analisis {
    --nivel: var(--muted-soft);
    position: relative;
    text-align: left;
    margin: 0 0 4px;
    padding: 24px 26px 22px;
    border-radius: var(--fl-radio);
    background:
        radial-gradient(130% 120% at 0% 0%, color-mix(in srgb, var(--nivel) 7%, #fff) 0%, #fff 58%) padding-box,
        linear-gradient(160deg, color-mix(in srgb, var(--nivel) 42%, #fff), var(--border-soft) 55%) border-box;
    border: 1px solid transparent;
    box-shadow: var(--fl-sombra);
    animation: fl-fila 0.8s var(--fl-ease) both;
}
/* Sólo los tres niveles que se recurren llevan el azul; cualquier otro (sin motivos, incompleta, no cubierta,
   fuera del recurso…) es gris, y un nivel nuevo del motor nace gris sin tocar esta hoja. */
.fl-analisis.is-estudiando, .fl-analisis[data-nivel="solidos"], .fl-analisis[data-nivel="defendibles"],
.fl-analisis[data-nivel="debiles"] { --nivel: var(--accent); }
.fl-analisis-sello {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--nivel);
}
.fl-medidor { display: inline-flex; gap: 4px; }
.fl-medidor i { width: 18px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--nivel) 16%, #fff); }
.fl-analisis[data-nivel="solidos"] .fl-medidor i,
.fl-analisis[data-nivel="defendibles"] .fl-medidor i:nth-child(-n + 2),
.fl-analisis[data-nivel="debiles"] .fl-medidor i:first-child { background: var(--nivel); }
.fl-analisis:not(.is-estudiando):not([data-nivel="solidos"]):not([data-nivel="defendibles"]):not([data-nivel="debiles"]) .fl-medidor {
    display: none;
}
.fl-analisis.is-estudiando .fl-medidor i { animation: fl-respira 1.3s ease-in-out infinite; }
.fl-analisis.is-estudiando .fl-medidor i:nth-child(2) { animation-delay: 0.18s; }
.fl-analisis.is-estudiando .fl-medidor i:nth-child(3) { animation-delay: 0.36s; }
@keyframes fl-respira {
    0%, 100% { background: color-mix(in srgb, var(--accent) 14%, #fff); }
    50% { background: var(--accent); }
}
.fl-analisis-titulo {
    margin: 0;
    font-size: clamp(21px, 3vw, 26px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.22;
    color: var(--fg);
    text-wrap: balance;
}
/* Estudiando: dos líneas de luz donde irá la frase. */
.fl-analisis.is-estudiando .fl-analisis-titulo:empty {
    height: 54px;
    border-radius: 10px;
    background:
        linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%) 0 0 / 40% 100% no-repeat,
        linear-gradient(var(--surface), var(--surface)) 0 0 / 88% 22px no-repeat,
        linear-gradient(var(--surface), var(--surface)) 0 32px / 56% 22px no-repeat;
    animation: fl-luz 1.6s ease-in-out infinite;
}
@keyframes fl-luz { from { background-position: -40% 0, 0 0, 0 32px; } to { background-position: 140% 0, 0 0, 0 32px; } }
.fl-analisis-razon { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); text-wrap: pretty; }
.fl-analisis.is-estudiando .fl-analisis-razon, .fl-analisis.is-estudiando .fl-motivos { opacity: 0.55; transition: opacity 0.3s ease; }

.fl-motivos { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: motivo; }
.fl-motivo {
    position: relative;
    padding: 14px 16px 14px 48px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-soft);
    counter-increment: motivo;
    animation: fl-fila 0.7s var(--fl-ease) both;
}
.fl-motivo:nth-child(2) { animation-delay: 0.08s; }
.fl-motivo:nth-child(3) { animation-delay: 0.16s; }
.fl-motivo::before {
    content: counter(motivo);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: var(--nivel);
}
.fl-motivo-titulo { margin: 0 0 3px; font-size: 16px; font-weight: 700; line-height: 1.35; color: var(--fg); }
.fl-motivo-que { margin: 0 0 9px; font-size: 15px; line-height: 1.5; color: var(--fg-soft); }
.fl-motivo-pide {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-texto);
    background: color-mix(in srgb, var(--accent) 9%, #fff);
}
.fl-motivo[data-pide="rebaja"] .fl-motivo-pide, .fl-motivo[data-pide="prueba"] .fl-motivo-pide {
    color: var(--muted);
    background: var(--surface);
}
.fl-analisis-preguntas { margin-top: 18px; display: grid; gap: 12px; }
.fl-pregunta--veredicto { margin: 0; text-align: left; }
.fl-pregunta--veredicto .fl-chip:disabled { opacity: 0.6; cursor: progress; }

.fl-garantias {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    display: grid;
    gap: 7px;
    max-width: 540px;
    text-align: left;
    font-size: 14px;
    line-height: 1.5;
    color: var(--muted);
}
.fl-garantias li { position: relative; padding-left: 26px; }
.fl-garantias li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 17px;
    height: 17px;
    background: var(--accent);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 4.5 5.4v5.8c0 4.6 3.1 8.8 7.5 10.3 4.4-1.5 7.5-5.7 7.5-10.3V5.4z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='m8.6 12.2 2.4 2.4 4.5-4.7' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5 4.5 5.4v5.8c0 4.6 3.1 8.8 7.5 10.3 4.4-1.5 7.5-5.7 7.5-10.3V5.4z' fill='none' stroke='%23000' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='m8.6 12.2 2.4 2.4 4.5-4.7' fill='none' stroke='%23000' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.fl-respuesta .fl-tarjeta { margin-top: 30px; }

.fl-veredicto { margin: 38px 0 6px; display: grid; justify-items: center; gap: 18px; }
.fl-veredicto-texto { margin: 0; font-size: clamp(22px, 3.2vw, 28px); font-weight: 800; letter-spacing: -0.025em; }
.fl-veredicto .fl-pista { margin: 0; }
button.cr-cta { border: 0; font: inherit; cursor: pointer; }
button.cr-cta:disabled { cursor: progress; opacity: 0.75; }

/* ----- 4 · Tus datos ----- */
.fl-datos { max-width: 600px; margin: 0 auto; }
.fl-datos .fl-cabeza { text-align: center; }
.fl-datos .fl-cabeza h1 { margin-top: clamp(4px, 2vh, 20px); }
.fl-datos .fl-cabeza p:not(.fl-contexto) { margin-bottom: 28px; }
.fl-volver {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    background: none;
    border: 0;
    cursor: pointer;
}
.fl-volver::before { content: "←"; }
.fl-volver:hover { color: var(--fg); }
.fl-cabeza .fl-contexto {
    display: inline-block;
    max-width: 100%;
    margin: 6px 0 0;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-sizing: border-box;
}
.fl-formulario {
    display: grid;
    gap: 20px;
    padding: 28px;
    border-radius: var(--fl-radio);
    background: #fff;
    border: 1px solid var(--border-soft);
    box-shadow: var(--fl-sombra);
}
.fl-campos-par { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) {
    .fl-formulario { padding: 22px 18px; gap: 18px; }
    .fl-campos-par { grid-template-columns: 1fr; gap: 18px; }
}
.fl-campo { display: grid; gap: 8px; min-width: 0; }
/* One line always: two fields side by side keep their inputs level (at 1440 px «Segundo apellido ·
   si lo tienes · De tu multa» wrapped and its input sat lower than its neighbour's). */
.fl-campo label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fg-soft);
    white-space: nowrap;
}
.fl-campo input::placeholder { color: var(--muted-soft); font-weight: 400; }
.fl-campo input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 17px;
    font-weight: 500;
    color: var(--fg);
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fl-campo input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
.fl-campo[data-campo="documento"] input { text-transform: uppercase; letter-spacing: 0.04em; }
/* What comes from the fine: a breath of the brand's blue, and its name on the label. */
.fl-campo.is-de-la-multa input {
    background: color-mix(in srgb, var(--accent) 4%, #fff);
    border-color: color-mix(in srgb, var(--accent) 26%, var(--border));
}
.fl-insignia {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-texto);
    white-space: nowrap;
}
.fl-insignia::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.fl-campo.is-duda input { border-color: #f3c27a; background: #fffaf1; }
.fl-campo.is-duda .fl-insignia { color: #b45309; }
.fl-campo.is-error input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12); background: #fff; }
.fl-campo-error { margin: 0; font-size: 13.5px; font-weight: 500; color: #b42318; }
.fl-campo-ayuda { margin: 0; font-size: 13px; color: var(--muted-soft); text-wrap: pretty; }
.fl-campo-aviso {
    margin: 0;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13.5px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    text-wrap: pretty;
}
.fl-datos .fl-error { text-align: center; }
.fl-datos .fl-veredicto { margin-top: 32px; }

/* ----- 5 · Firma ----- */
.fl-firma { max-width: 640px; margin: 0 auto; }
.fl-firma .fl-cabeza { text-align: center; }
.fl-firma .fl-cabeza p { margin-bottom: 28px; }
.fl-autorizacion { padding: 24px 26px 18px; }
.fl-resumen { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.fl-resumen li {
    position: relative;
    padding-left: 34px;
    font-size: 16.5px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--fg);
    text-wrap: pretty;
}
.fl-resumen li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 12%, #fff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.4l2.7 2.7 5.7-5.9' fill='none' stroke='%232E72FC' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.fl-completa { margin-top: 18px; border-top: 1px solid var(--border-soft); }
.fl-completa summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0 4px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--accent-texto);
    cursor: pointer;
    list-style: none;
}
.fl-completa summary::-webkit-details-marker { display: none; }
.fl-completa summary::after { content: "⌄"; transition: transform 0.3s var(--fl-ease); }
.fl-completa[open] summary::after { transform: rotate(180deg); }
.fl-completa-texto {
    max-height: 340px;
    overflow: auto;
    margin-top: 10px;
    padding: 4px 4px 4px 0;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--fg-soft);
}
.fl-completa-texto p { margin: 0 0 10px; text-wrap: pretty; }
.fl-completa-texto ul { margin: 0 0 10px; padding-left: 20px; }
.fl-completa-texto li { margin-bottom: 4px; }
.fl-completa-titulo { font-weight: 700; color: var(--fg); }
.fl-completa-aceptacion { color: var(--muted); font-size: 13.5px; }

.fl-firmando { display: grid; gap: 14px; margin-top: 24px; }
.fl-casilla {
    position: relative;
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 12px;
    align-items: start;
    font-size: 15px;
    line-height: 1.5;
    color: var(--fg-soft);
    cursor: pointer;
    text-wrap: pretty;
}
.fl-casilla input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.fl-casilla-marca {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1.5px solid var(--border-light);
    background: #fff;
    box-sizing: border-box;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.fl-casilla input:checked + .fl-casilla-marca {
    border-color: var(--accent);
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.6 10.4l2.8 2.8 6-6.1' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.fl-casilla input:focus-visible + .fl-casilla-marca { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.fl-casilla a { color: var(--muted); text-underline-offset: 2px; }

/* The pad: paper-white, a baseline to sign on, and the guide in the brand's italic serif. Lo vivo
   del trazo no depende del movimiento: es la firma de la persona. */
.fl-almohadilla {
    position: relative;
    aspect-ratio: 3 / 1;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 3px rgba(10, 10, 10, 0.04), var(--fl-sombra);
    overflow: hidden;
    transition: border-color 0.3s ease;
}
@media (max-width: 560px) { .fl-almohadilla { aspect-ratio: 2.2 / 1; } }
.fl-almohadilla.is-firmada { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.fl-almohadilla canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    touch-action: none;
    cursor: crosshair;
}
.fl-almohadilla-guia {
    position: absolute;
    left: 0;
    right: 0;
    top: 38%;
    margin: 0;
    text-align: center;
    font-family: 'Instrument Serif', 'Instrument Serif Fallback', Georgia, serif;
    font-style: italic;
    font-size: clamp(26px, 5vw, 36px);
    color: var(--muted-soft);
    opacity: 0.55;
    pointer-events: none;
}
.fl-almohadilla-linea {
    position: absolute;
    left: 8%;
    right: 8%;
    top: 72%;
    height: 1px;
    background: var(--border-light);
    pointer-events: none;
}
.fl-almohadilla-borrar {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface-soft);
    border: 1px solid var(--border-soft);
    cursor: pointer;
}
.fl-almohadilla-borrar:hover { color: var(--fg); }

.fl-codigo { display: grid; justify-items: center; gap: 10px; margin-top: 6px; text-align: center; }
.fl-codigo label { font-size: 15px; color: var(--fg-soft); text-wrap: pretty; }
.fl-codigo input {
    width: 230px;
    height: 64px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit;
    font-size: 30px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.16em;
    text-align: center;
    color: var(--fg);
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.fl-codigo input::placeholder { color: var(--border-light); }
.fl-codigo input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.fl-firma .fl-error { margin-top: 4px; text-align: center; }
.fl-firma .fl-veredicto { margin-top: 30px; }

.fl-firmada { display: grid; justify-items: center; gap: 12px; margin-top: 34px; text-align: center; }
.fl-firmada-sello {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0;
    border-radius: 50%;
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 78%, #fff) 0%, var(--accent) 60%, color-mix(in srgb, var(--accent) 85%, #000) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 18px 40px -16px color-mix(in srgb, var(--accent) 75%, transparent);
    animation: fl-numero 0.8s var(--fl-ease) both;
}
.fl-firmada .fl-pista { margin: 0; }
/* Signed: the seal goes first, where the title was; the title, its line and «Volver» go. */
.fl-firma.is-firmada .fl-volver, .fl-firma.is-firmada > .fl-cabeza { display: none; }
.fl-firma.is-firmada .fl-firmada { margin: clamp(8px, 4vh, 40px) 0 30px; }

/* ----- 6 · Pago: lo que se contrata, su precio y su plazo, la petición de empezar ya y el botón ----- */
.fl-firmada .fl-firmada-seguir { margin-top: 14px; }
.fl-pago, .fl-pagado { max-width: 640px; margin: 0 auto; }
.fl-pago .fl-cabeza, .fl-pagado .fl-cabeza { text-align: center; }
.fl-pago .fl-cabeza p { margin-bottom: 28px; }
.fl-cuenta { padding: 24px 26px 22px; }
.fl-cuenta-linea {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}
.fl-cuenta-que { margin: 0; font-size: clamp(19px, 2.6vw, 22px); font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.fl-cuenta-de { margin: 4px 0 0; font-size: 14px; color: var(--muted); text-wrap: pretty; }
.fl-cuenta-precio { margin: 0; display: grid; justify-items: end; gap: 2px; white-space: nowrap; }
.fl-cuenta-precio b { font-size: clamp(26px, 3.6vw, 32px); font-weight: 800; letter-spacing: -0.035em; color: var(--fg); line-height: 1; }
.fl-cuenta-precio span { font-size: 12.5px; color: var(--muted-soft); }
.fl-pagando { display: grid; gap: 12px; margin-top: 24px; }
.fl-pagando .fl-pista { margin: 0; }
.fl-pago .fl-error { margin-top: 14px; text-align: center; }
.fl-pago .fl-veredicto { margin-top: 28px; }

/* ----- 7 · Pagado: el sello arriba, como al firmar ----- */
/* The column is the screen's, never a title's: a title wider than a phone (nowrap) made the track grow with it
   and the whole screen went out by the right (26-oct). Its head and its blocks take the column's width, so
   ajustarTitulo (recurrir.js) brings the title down to it. */
.fl-pagado-hecho { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
.fl-pagado-hecho > .fl-cabeza, .fl-pagado-hecho > .fl-veredicto { justify-self: stretch; min-width: 0; }
.fl-pagado-hecho .fl-firmada-sello { margin: clamp(8px, 4vh, 40px) 0 22px; }
.fl-pagado .fl-cabeza p { margin-bottom: 26px; }
.fl-pagado .fl-tarjeta { width: 100%; box-sizing: border-box; }
.fl-pagado-comprobando { margin: clamp(40px, 12vh, 120px) 0 0; text-align: center; font-size: 16px; }

/* A fine addressed to a company (recurrir.js, empresa): its fields, then who signs for it. */
.fl-empresa { display: grid; gap: inherit; }
.fl-empresa[hidden] { display: none; }
.fl-empresa-quien { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-soft); }
.fl-campo select { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--void, #fff); color: var(--text); width: 100%; }
/* The document of the office: the site's button, its input out of sight but still reached by keyboard. */
/* Over `.fl-campo label` and `.fl-campo input`, which it also is. */
.fl-campo .fl-boton--documento { position: relative; justify-content: center; align-items: center; height: 52px;
                                 font-size: 16px; font-weight: 700; color: var(--fg); white-space: normal; }
.fl-campo .fl-boton--documento input { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0;
                                       overflow: hidden; clip-path: inset(50%); }
.fl-campo .fl-boton--documento:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.fl-campo-elegidos { margin: 0; font-size: 14px; font-weight: 500; color: var(--fg-soft); overflow-wrap: anywhere; }
