/* =========================================================
   FRAMEUP — CAPA DE INTERFAZ COMPARTIDA
   ---------------------------------------------------------
   Componentes y estados que usan todas las páginas:
   foco visible, enlace "saltar al contenido", avisos (toasts),
   diálogo de confirmación, esqueletos de carga, estados de
   error / vacío / sin conexión, aviso de cookies, centro de
   notificaciones, favoritos y páginas legales.

   Paleta y tipografía del manual de marca.
========================================================= */

:root {
    --fu-ui-orange: var(--frameup-orange, #ED6B27);
    --fu-ui-orange-ink: #B4460C;            /* naranja para TEXTO sobre claro: 5.2:1 */
    --fu-ui-charcoal: var(--frameup-black, #1D1E1D);
    --fu-ui-paper: #FFFFFF;
    --fu-ui-warm: #EFEDEA;
    --fu-ui-warm-2: #F7F6F4;
    --fu-ui-line: #DDDAD6;
    --fu-ui-muted: #5F5E5B;                 /* 6.3:1 sobre blanco */
    --fu-ui-green: #2F7D50;
    --fu-ui-red: #B3403B;
    --fu-ui-ease: cubic-bezier(.23, 1, .32, 1);
    --fu-ui-shadow: 0 2px 6px rgba(29, 30, 29, .06), 0 18px 44px rgba(29, 30, 29, .14);
    --fu-ui-z: 2147483000;
}


/* =========================================================
   SUPERFICIES DEL NAVEGADOR
   Selección, cursor de texto y barras de desplazamiento
   también llevan la marca.
========================================================= */

::selection {
    background: rgba(237, 107, 39, .28);
    color: var(--fu-ui-charcoal);
}

html {
    caret-color: var(--fu-ui-orange);
    scrollbar-color: #BDB9B4 transparent;
    scrollbar-width: thin;
    accent-color: var(--fu-ui-orange);
}

:where(a) { text-underline-offset: .18em; }

:where(h1, h2, h3) { text-wrap: balance; }


/* =========================================================
   FOCO VISIBLE (teclado)
   Carbón + halo naranja: se distingue sobre blanco, gris
   cálido y naranja. En zonas oscuras el anillo es blanco.
========================================================= */

:where(a, button, input, select, textarea, summary, [tabindex], [role="button"], label):focus-visible {
    outline: 2px solid var(--fu-ui-charcoal);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(237, 107, 39, .45);
    border-radius: 6px;
}

:where(.frameup-footer-v2, .frameup-hero, .frameup-dashboard-sidebar, .fu-ui-toast, .fu-ui-offline, [data-fu-dark])
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: #FFFFFF;
}

/* Campos de archivo ocultos: el foco se muestra en su etiqueta */
label:has(input[type="file"]:focus-visible) {
    outline: 2px solid var(--fu-ui-charcoal);
    outline-offset: 2px;
    box-shadow: 0 0 0 5px rgba(237, 107, 39, .45);
}

.fu-ui-skip {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: var(--fu-ui-z);
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--fu-ui-charcoal);
    color: #FFFFFF;
    font: 700 15px/1 "Lato", Arial, sans-serif;
    text-decoration: none;
    transform: translateY(-160%);
    transition: transform 160ms var(--fu-ui-ease);
}

.fu-ui-skip:focus {
    transform: none;
}

.fu-ui-sr {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}


/* =========================================================
   BOTONES DE LA CAPA
========================================================= */

.fu-ui-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 700 15px/1 "Lato", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        scale 140ms var(--fu-ui-ease);
}

.fu-ui-btn:active { scale: .97; }

.fu-ui-btn--primary {
    background: var(--fu-ui-orange);
    color: var(--fu-ui-charcoal);
}

.fu-ui-btn--dark {
    background: var(--fu-ui-charcoal);
    color: #FFFFFF;
}

.fu-ui-btn--ghost {
    background: transparent;
    border-color: var(--fu-ui-line);
    color: var(--fu-ui-charcoal);
}

.fu-ui-btn--danger {
    background: var(--fu-ui-red);
    color: #FFFFFF;
}

@media (hover: hover) and (pointer: fine) {
    .fu-ui-btn--primary:hover { background: #F27C3D; }
    .fu-ui-btn--dark:hover { background: #303130; }
    .fu-ui-btn--ghost:hover { border-color: var(--fu-ui-charcoal); background: var(--fu-ui-warm-2); }
    .fu-ui-btn--danger:hover { background: #9C3531; }
}

.fu-ui-btn[disabled],
.fu-ui-btn[aria-busy="true"] {
    opacity: .6;
    cursor: progress;
}

/* Indicador de carga: gira rápido para que la espera se sienta corta */
.fu-ui-spinner {
    width: 16px;
    height: 16px;
    flex: none;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: fu-ui-spin 560ms linear infinite;
}

@keyframes fu-ui-spin { to { transform: rotate(360deg); } }


/* =========================================================
   AVISOS (TOASTS)
   Entran y salen por abajo, por el mismo lado. Transiciones
   (no keyframes) para que varios avisos seguidos no salten.
========================================================= */

.fu-ui-toasts {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: var(--fu-ui-z);
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    width: min(400px, calc(100vw - 32px));
    pointer-events: none;
}

.fu-ui-toast {
    pointer-events: auto;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 14px;
    background: var(--fu-ui-charcoal);
    color: #FFFFFF;
    box-shadow: var(--fu-ui-shadow);
    font: 400 14.5px/1.4 "Lato", Arial, sans-serif;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 400ms ease, transform 400ms ease;
}

.fu-ui-toast[data-visible="true"] {
    opacity: 1;
    transform: none;
}

.fu-ui-toast[data-saliendo="true"] {
    opacity: 0;
    transform: translateY(40%);
    transition-duration: 200ms;
}

.fu-ui-toast-icon {
    width: 22px;
    height: 22px;
    color: var(--fu-ui-orange);
}

.fu-ui-toast[data-tipo="exito"] .fu-ui-toast-icon { color: #6FCF97; }
.fu-ui-toast[data-tipo="error"] .fu-ui-toast-icon { color: #FF8A80; }

.fu-ui-toast strong {
    display: block;
    font-weight: 700;
}

.fu-ui-toast p {
    margin: 2px 0 0;
    color: #D2D0CC;
}

.fu-ui-toast-acciones {
    display: flex;
    align-items: center;
    gap: 4px;
}

.fu-ui-toast-accion,
.fu-ui-toast-cerrar {
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #FFB088;
    font: 700 14px/1 "Lato", Arial, sans-serif;
    cursor: pointer;
    transition: background-color 140ms ease, scale 140ms var(--fu-ui-ease);
}

.fu-ui-toast-cerrar {
    width: 32px;
    padding: 0;
    color: #BDBAB5;
}

.fu-ui-toast-accion:active,
.fu-ui-toast-cerrar:active { scale: .95; }

@media (hover: hover) and (pointer: fine) {
    .fu-ui-toast-accion:hover,
    .fu-ui-toast-cerrar:hover { background: rgba(255, 255, 255, .1); }
}

@media (max-width: 600px) {
    .fu-ui-toasts {
        right: 16px;
        left: 16px;
        bottom: 16px;
        width: auto;
    }
}


/* =========================================================
   DIÁLOGO DE CONFIRMACIÓN
   Solo para acciones que no se pueden deshacer.
========================================================= */

.fu-ui-dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 26px;
    border: 0;
    border-radius: 18px;
    background: var(--fu-ui-paper);
    color: var(--fu-ui-charcoal);
    box-shadow: var(--fu-ui-shadow);
    font-family: "Lato", Arial, sans-serif;
    opacity: 0;
    transform: translateY(8px) scale(.97);
    transition:
        opacity 220ms var(--fu-ui-ease),
        transform 220ms var(--fu-ui-ease),
        overlay 220ms allow-discrete,
        display 220ms allow-discrete;
}

.fu-ui-dialog[open] {
    opacity: 1;
    transform: none;
}

@starting-style {
    .fu-ui-dialog[open] {
        opacity: 0;
        transform: translateY(8px) scale(.97);
    }
}

.fu-ui-dialog::backdrop {
    background: rgba(29, 30, 29, 0);
    transition: background-color 220ms ease, overlay 220ms allow-discrete, display 220ms allow-discrete;
}

.fu-ui-dialog[open]::backdrop {
    background: rgba(29, 30, 29, .5);
}

@starting-style {
    .fu-ui-dialog[open]::backdrop { background: rgba(29, 30, 29, 0); }
}

.fu-ui-dialog h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.25;
}

.fu-ui-dialog p {
    margin: 8px 0 0;
    color: var(--fu-ui-muted);
    font-size: 15px;
    line-height: 1.5;
}

.fu-ui-dialog-acciones {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

@media (max-width: 480px) {
    .fu-ui-dialog-acciones { flex-direction: column-reverse; }
}


/* =========================================================
   ESQUELETOS DE CARGA
========================================================= */

.fu-ui-skeleton {
    display: grid;
    gap: 14px;
}

.fu-ui-bone {
    height: 14px;
    border-radius: 8px;
    background:
        linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%) 0 0 / 200% 100%,
        #E4E1DC;
    animation: fu-ui-shimmer 1.2s linear infinite;
}

.fu-ui-bone--titulo { height: 22px; width: 55%; }
.fu-ui-bone--corta { width: 38%; }
.fu-ui-bone--media { aspect-ratio: 16 / 9; height: auto; border-radius: 12px; }
.fu-ui-bone--avatar { width: 48px; height: 48px; border-radius: 50%; }

.fu-ui-skeleton-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    background: var(--fu-ui-paper);
}

@keyframes fu-ui-shimmer {
    from { background-position: 200% 0, 0 0; }
    to   { background-position: -200% 0, 0 0; }
}

/* Mientras un contenedor carga, su contenido anterior baja de tono */
[aria-busy="true"]:not(button):not(.fu-ui-btn) {
    cursor: progress;
}


/* =========================================================
   ESTADOS: ERROR · VACÍO · SIN DATOS
========================================================= */

.fu-ui-estado {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 40px 24px;
    border: 1px dashed var(--fu-ui-line);
    border-radius: 18px;
    background: var(--fu-ui-warm-2);
    text-align: center;
    font-family: "Lato", Arial, sans-serif;
    animation: fu-ui-estado 240ms var(--fu-ui-ease) backwards;
}

@keyframes fu-ui-estado { from { opacity: 0; transform: translateY(6px); } }

.fu-ui-estado-icono {
    width: 44px;
    height: 44px;
    margin-bottom: 6px;
    color: var(--fu-ui-muted);
}

.fu-ui-estado[data-tipo="error"] {
    border-style: solid;
    border-color: #E8C9C7;
    background: #FBF1F0;
}

.fu-ui-estado[data-tipo="error"] .fu-ui-estado-icono { color: var(--fu-ui-red); }

.fu-ui-estado h3 {
    margin: 0;
    color: var(--fu-ui-charcoal);
    font-size: 18px;
    font-weight: 900;
}

.fu-ui-estado p {
    max-width: 44ch;
    margin: 0;
    color: var(--fu-ui-muted);
    font-size: 15px;
    line-height: 1.5;
}

.fu-ui-estado .fu-ui-btn { margin-top: 14px; }


/* =========================================================
   SIN CONEXIÓN
========================================================= */

.fu-ui-offline {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: calc(var(--fu-ui-z) - 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--fu-ui-charcoal);
    color: #FFFFFF;
    font: 600 14px/1.3 "Lato", Arial, sans-serif;
    transform: translateY(-100%);
    transition: transform 320ms var(--fu-ui-ease);
}

.fu-ui-offline[data-visible="true"] { transform: none; }

.fu-ui-offline svg {
    width: 18px;
    height: 18px;
    color: var(--fu-ui-orange);
}


/* =========================================================
   AVISO DE COOKIES
========================================================= */

.fu-ui-cookies {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: calc(var(--fu-ui-z) - 2);
    width: min(420px, calc(100vw - 32px));
    padding: 20px;
    border-radius: 18px;
    background: var(--fu-ui-paper);
    color: var(--fu-ui-charcoal);
    box-shadow: var(--fu-ui-shadow);
    font-family: "Lato", Arial, sans-serif;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 360ms var(--fu-ui-ease), transform 360ms var(--fu-ui-ease);
}

.fu-ui-cookies[data-visible="true"] {
    opacity: 1;
    transform: none;
}

.fu-ui-cookies h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
}

.fu-ui-cookies p {
    margin: 6px 0 0;
    color: var(--fu-ui-muted);
    font-size: 14px;
    line-height: 1.5;
}

.fu-ui-cookies a { color: var(--fu-ui-orange-ink); font-weight: 700; }

.fu-ui-cookies-acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.fu-ui-cookies-acciones .fu-ui-btn {
    flex: 1 1 140px;
    min-height: 42px;
    padding: 0 14px;
    font-size: 14px;
}

@media (max-width: 600px) {
    .fu-ui-cookies { left: 16px; right: 16px; bottom: 16px; width: auto; }
}


/* =========================================================
   ENLACES LEGALES EN EL FOOTER
========================================================= */

.fu-ui-legal-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.fu-ui-legal-links a,
.fu-ui-legal-links button {
    padding: 0;
    border: 0;
    background: none;
    color: #C9C7C3;
    font: 400 12px/1.4 "Lato", Arial, sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: color 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .fu-ui-legal-links a:hover,
    .fu-ui-legal-links button:hover { color: #FFFFFF; text-decoration: underline; }
}


/* =========================================================
   CENTRO DE NOTIFICACIONES
========================================================= */

.fu-ui-campana {
    position: relative;
}

.fu-ui-campana-punto {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid var(--fu-ui-paper);
    border-radius: 9px;
    background: var(--fu-ui-orange);
    color: var(--fu-ui-charcoal);
    font: 900 10px/14px "Lato", Arial, sans-serif;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.fu-ui-notis {
    position: fixed;
    z-index: calc(var(--fu-ui-z) - 3);
    width: min(360px, calc(100vw - 32px));
    max-height: min(480px, calc(100vh - 120px));
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    background: var(--fu-ui-paper);
    color: var(--fu-ui-charcoal);
    box-shadow: var(--fu-ui-shadow);
    font-family: "Lato", Arial, sans-serif;
    transform-origin: top right;
    opacity: 0;
    transform: scale(.96) translateY(-4px);
    pointer-events: none;
    transition: opacity 160ms var(--fu-ui-ease), transform 160ms var(--fu-ui-ease);
}

.fu-ui-notis[data-visible="true"] {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.fu-ui-notis-cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--fu-ui-warm);
}

.fu-ui-notis-cabecera h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
}

.fu-ui-notis-cabecera button {
    border: 0;
    background: none;
    color: var(--fu-ui-orange-ink);
    font: 700 13px/1 "Lato", Arial, sans-serif;
    cursor: pointer;
}

.fu-ui-notis-lista {
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
}

.fu-ui-notis-lista a,
.fu-ui-notis-lista div {
    display: grid;
    gap: 2px;
    padding: 11px 12px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background-color 140ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .fu-ui-notis-lista a:hover { background: var(--fu-ui-warm-2); }
}

.fu-ui-notis-lista strong { font-size: 14.5px; font-weight: 700; }
.fu-ui-notis-lista span { color: var(--fu-ui-muted); font-size: 13.5px; line-height: 1.4; }
.fu-ui-notis-lista time { color: var(--fu-ui-muted); font-size: 12px; }

.fu-ui-notis-lista [data-nueva="true"] strong::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--fu-ui-orange);
    vertical-align: middle;
}

.fu-ui-notis-vacio {
    padding: 34px 20px;
    color: var(--fu-ui-muted);
    font-size: 14.5px;
    text-align: center;
}


/* =========================================================
   FAVORITOS
========================================================= */

.fu-ui-fav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid var(--fu-ui-line);
    border-radius: 999px;
    background: var(--fu-ui-paper);
    color: var(--fu-ui-charcoal);
    font: 700 14px/1 "Lato", Arial, sans-serif;
    cursor: pointer;
    transition: border-color 160ms ease, color 160ms ease, scale 140ms var(--fu-ui-ease);
}

.fu-ui-fav svg {
    width: 18px;
    height: 18px;
    fill: transparent;
    transition: fill 180ms ease, scale 260ms var(--fu-ui-ease);
}

.fu-ui-fav[aria-pressed="true"] {
    border-color: var(--fu-ui-orange);
    color: var(--fu-ui-orange-ink);
}

.fu-ui-fav[aria-pressed="true"] svg {
    fill: var(--fu-ui-orange);
    color: var(--fu-ui-orange);
    scale: 1.12;
}

.fu-ui-fav:active { scale: .95; }


.fu-ui-fav.fu-ui-fav--tarjeta {
    position: absolute;
    top: 12px;
    left: 12px;             /* a la derecha va la insignia de disponibilidad */
    z-index: 3;
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(29, 30, 29, .18);
}

.fu-ui-favbar {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 14px;
}

.fu-ui-favbar b {
    min-width: 22px;
    padding: 3px 6px;
    border-radius: 999px;
    background: var(--fu-ui-warm);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.fu-solo-favoritos > .fu-talent-card:not(:has([data-fu-fav][aria-pressed="true"])) {
    display: none;
}

.fu-solo-favoritos:not(:has([data-fu-fav][aria-pressed="true"]))::after {
    content: "Todavía no guardaste profesionales. Pulsa el corazón de una tarjeta para tenerla a mano.";
    grid-column: 1 / -1;
    padding: 40px 24px;
    border: 1px dashed var(--fu-ui-line);
    border-radius: 18px;
    color: var(--fu-ui-muted);
    font: 400 15px/1.5 "Lato", Arial, sans-serif;
    text-align: center;
}


/* =========================================================
   PÁGINAS LEGALES (lectura)
========================================================= */

.fu-legal {
    width: min(100% - 40px, 1080px);
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px) 0 64px;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
    font-family: "Lato", Arial, sans-serif;
    color: var(--fu-ui-charcoal);
}

.fu-legal-indice {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 2px;
    font-size: 14px;
}

.fu-legal-indice strong {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--fu-ui-muted);
}

.fu-legal-indice a {
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--fu-ui-charcoal);
    text-decoration: none;
    transition: background-color 140ms ease;
}

.fu-legal-indice a[aria-current="page"] {
    background: var(--fu-ui-paper);
    font-weight: 700;
}

@media (hover: hover) and (pointer: fine) {
    .fu-legal-indice a:hover { background: var(--fu-ui-paper); }
}

.fu-legal-cuerpo {
    max-width: 70ch;
    font-size: 17px;
    line-height: 1.65;
}

.fu-legal-cuerpo h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 46px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.fu-legal-fecha {
    margin: 12px 0 0;
    color: var(--fu-ui-muted);
    font-size: 15px;
}

.fu-legal-resumen {
    margin: 28px 0 0;
    padding: 20px 22px;
    border-radius: 14px;
    background: var(--fu-ui-paper);
    font-size: 16px;
}

.fu-legal-cuerpo h2 {
    margin: 44px 0 10px;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.25;
    scroll-margin-top: 104px;
}

.fu-legal-cuerpo h3 {
    margin: 26px 0 6px;
    font-size: 17px;
    font-weight: 700;
}

.fu-legal-cuerpo p,
.fu-legal-cuerpo ul,
.fu-legal-cuerpo ol { margin: 0 0 14px; }

.fu-legal-cuerpo ul,
.fu-legal-cuerpo ol { padding-left: 22px; }

.fu-legal-cuerpo li { margin-bottom: 6px; }

.fu-legal-cuerpo a { color: var(--fu-ui-orange-ink); font-weight: 700; }

.fu-legal-tabla {
    width: 100%;
    margin: 8px 0 18px;
    border-collapse: collapse;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
}

.fu-legal-tabla th,
.fu-legal-tabla td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--fu-ui-line);
    text-align: left;
    vertical-align: top;
}

.fu-legal-tabla th { font-weight: 700; }

.fu-legal-tabla-scroll { overflow-x: auto; }

@media (max-width: 820px) {
    .fu-legal { grid-template-columns: 1fr; }

    .fu-legal-indice {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .fu-legal-indice strong { width: 100%; margin: 0; }
}


/* =========================================================
   CITA EN LA PÁGINA PÚBLICA DEL PROYECTO
========================================================= */

.fu-case-quote {
    position: relative;
    max-width: 780px;
    margin: clamp(32px, 6vw, 64px) auto;
    padding-left: clamp(44px, 7vw, 72px);
    font-family: "Lato", Arial, sans-serif;
}

.fu-case-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -.18em;
    color: var(--fu-ui-orange);
    font-size: clamp(72px, 11vw, 120px);
    font-weight: 900;
    line-height: 1;
}

.fu-case-quote blockquote { margin: 0; }

.fu-case-quote p {
    margin: 0;
    color: var(--fu-ui-charcoal);
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

.fu-case-quote figcaption {
    margin-top: 14px;
    color: var(--fu-ui-muted);
    font-size: 15px;
}


/* =========================================================
   PÁGINA 404 — el visor sin imagen
========================================================= */

.fu-404 {
    display: grid;
    justify-items: center;
    gap: 14px;
    width: min(100% - 40px, 640px);
    margin: 0 auto;
    padding: clamp(56px, 12vh, 128px) 0;
    text-align: center;
    font-family: "Lato", Arial, sans-serif;
    color: var(--fu-ui-charcoal);
}

.fu-404-visor {
    position: relative;
    display: grid;
    place-items: center;
    width: min(100%, 300px);
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
}

.fu-404-visor strong {
    color: var(--fu-ui-orange);
    font-size: 64px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}

.fu-404-visor span {
    position: absolute;
    width: 34px;
    height: 34px;
    border: 0 solid var(--fu-ui-charcoal);
    animation: fu-404-encuadre 700ms var(--fu-ui-ease) backwards;
}

.fu-404-visor span:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 10px; transform-origin: 0 0; }
.fu-404-visor span:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 10px; transform-origin: 100% 0; animation-delay: 60ms; }
.fu-404-visor span:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 10px; transform-origin: 0 100%; animation-delay: 120ms; }
.fu-404-visor span:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 10px; transform-origin: 100% 100%; animation-delay: 180ms; }

@keyframes fu-404-encuadre { from { opacity: 0; transform: scale(1.6); } }

.fu-404 h1 {
    margin: 0;
    font-size: clamp(30px, 5vw, 44px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.fu-404 p {
    max-width: 46ch;
    margin: 0;
    color: var(--fu-ui-muted);
    font-size: 17px;
    line-height: 1.55;
}

.fu-404-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}


/* =========================================================
   CUENTA: recuperar contraseña y confirmar correo
========================================================= */

.fu-cuenta {
    display: grid;
    place-items: center;
    padding: clamp(40px, 9vh, 104px) 20px;
    font-family: "Lato", Arial, sans-serif;
    color: var(--fu-ui-charcoal);
}

.fu-cuenta-card {
    width: min(100%, 460px);
    padding: clamp(26px, 5vw, 40px);
    border-radius: 20px;
    background: var(--fu-ui-paper);
    box-shadow: 0 1px 3px rgba(29, 30, 29, .06), 0 18px 44px rgba(29, 30, 29, .08);
}

.fu-cuenta-card [data-paso]:not([hidden]) {
    animation: fu-ui-estado 260ms var(--fu-ui-ease) backwards;
}

.fu-cuenta-icono {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--fu-ui-warm);
    color: var(--fu-ui-charcoal);
}

.fu-cuenta-icono svg { width: 26px; height: 26px; }
.fu-cuenta-icono .fu-ui-spinner { width: 22px; height: 22px; color: var(--fu-ui-orange); }
.fu-cuenta-icono[data-tipo="exito"] { background: #E7F3EC; color: var(--fu-ui-green); }
.fu-cuenta-icono[data-tipo="error"] { background: #FBF1F0; color: var(--fu-ui-red); }

.fu-cuenta-card h1 {
    margin: 0;
    font-size: clamp(26px, 4vw, 32px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.015em;
}

.fu-cuenta-card h1:focus { outline: none; }

.fu-cuenta-card p {
    margin: 10px 0 0;
    color: var(--fu-ui-muted);
    font-size: 16px;
    line-height: 1.55;
}

.fu-cuenta-card p strong { color: var(--fu-ui-charcoal); overflow-wrap: anywhere; }

.fu-cuenta-card form {
    display: grid;
    gap: 18px;
    margin-top: 26px;
}

.fu-cuenta-campo { display: grid; gap: 6px; }

.fu-cuenta-campo label {
    font-size: 14px;
    font-weight: 700;
}

.fu-cuenta-campo input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #C9C5C0;
    border-radius: 10px;
    background: var(--fu-ui-paper);
    color: var(--fu-ui-charcoal);
    font: 400 16px/1.4 "Lato", Arial, sans-serif;
}

.fu-cuenta-campo input::placeholder { color: #75736F; }
.fu-cuenta-campo input[aria-invalid="true"] { border-color: var(--fu-ui-red); }

@media (hover: hover) and (pointer: fine) {
    .fu-cuenta-campo input:hover { border-color: var(--fu-ui-muted); }
}

.fu-cuenta-card .fu-cuenta-error {
    margin: 0;
    color: var(--fu-ui-red);
    font-size: 14px;
    font-weight: 700;
    animation: fu-ui-estado 180ms var(--fu-ui-ease);
}

.fu-cuenta-card .fu-ui-btn { width: 100%; min-height: 48px; }

.fu-cuenta-acciones {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
    .fu-cuenta-card [data-paso]:not([hidden]),
    .fu-cuenta-card .fu-cuenta-error { animation: none; }
}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
    .fu-ui-toast,
    .fu-ui-cookies,
    .fu-ui-offline,
    .fu-ui-notis,
    .fu-ui-dialog {
        transform: none !important;
        transition: opacity 150ms ease !important;
    }

    .fu-ui-offline:not([data-visible="true"]) { display: none; }

    .fu-ui-bone { animation: none; }

    .fu-ui-estado,
    .fu-404-visor span { animation: none; }

    .fu-ui-fav svg { scale: 1 !important; }

    .fu-ui-spinner { animation-duration: 1.2s; }
}
