/* Torra Software: capa interactiva ("experiencia").
   Todo lo de este archivo acompaña a experiencia.js. Si alguno de los dos
   no carga, la página se lee igual: los bloques nuevos nacen ocultos y es
   el script quien los enseña. */

:root {
    --exp-crema: #f3efe6;
    --exp-crema-50: #fbf9f4;
    --exp-crema-100: #f6f2ea;
    --exp-crema-200: #ebe5d8;
    --exp-crema-300: #dcd4c3;
    --exp-tinta: #151412;
    --exp-suave: #3f3b35;
    --exp-tenue: #6f695f;
    --exp-firma: #1f5bff;
    --exp-lente: #1f3d99;
    --exp-cripto: #0f766e;
    --exp-quiz: #6d28d9;
    --exp-aguja: #a0731f;
    --exp-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
    --exp-serif: Newsreader, Georgia, serif;
    --exp-display: "Instrument Serif", Georgia, serif;
}

[data-exp][hidden],
[data-exp] [hidden] {
    display: none !important;
}

.exp-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Piezas comunes ---------- */

.exp-etiqueta {
    margin: 0;
    font-family: var(--exp-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--exp-tenue);
}

.exp-titulo {
    margin: 0.35rem 0 0;
    font-family: var(--exp-serif);
    font-weight: 600;
    font-size: 1.6rem;
    line-height: 1.2;
    color: var(--exp-tinta);
}

.exp-texto {
    margin: 0.6rem 0 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--exp-suave);
}

.exp-nota {
    margin: 0.7rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--exp-tenue);
}

.exp-bloque {
    border: 1px solid var(--exp-crema-300);
    background: rgba(255, 255, 255, 0.65);
    border-radius: 1rem;
    padding: 1.5rem;
}

@media (min-width: 640px) {
    .exp-bloque {
        padding: 2rem;
    }
}

.exp-acciones {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.exp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border: 1px solid var(--exp-tinta);
    border-radius: 999px;
    padding: 0.7rem 1.4rem;
    background: var(--exp-tinta);
    color: var(--exp-crema-50);
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exp-btn:hover {
    background: #000;
}

.exp-btn[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.exp-btn--borde {
    background: transparent;
    color: var(--exp-tinta);
    border-color: rgba(21, 20, 18, 0.7);
}

.exp-btn--borde:hover {
    background: var(--exp-tinta);
    color: var(--exp-crema-50);
}

.exp-btn--mini {
    padding: 0.5rem 1.05rem;
    font-size: 0.88rem;
}

.exp-btn--ancho {
    width: 100%;
}

.exp-btn--claro {
    background: var(--exp-crema-50);
    border-color: var(--exp-crema-50);
    color: var(--exp-tinta);
}

.exp-btn--claro:hover {
    background: #fff;
}

.exp-btn--bordeclaro {
    background: transparent;
    border-color: rgba(251, 249, 244, 0.6);
    color: var(--exp-crema-50);
}

.exp-btn--bordeclaro:hover {
    background: var(--exp-crema-50);
    color: var(--exp-tinta);
}

.exp-enlace {
    border: 0;
    padding: 0;
    background: none;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--exp-suave);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}

.exp-enlace:hover {
    color: var(--exp-tinta);
}

.exp-enlace[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.exp-enlace--claro {
    color: var(--exp-crema-200);
}

.exp-enlace--claro:hover {
    color: #fff;
}

.exp-btn:focus-visible,
.exp-enlace:focus-visible,
.exp-modo-grupo button:focus-visible,
.exp-quiz-op:focus-visible,
.exp-brujula:focus-visible {
    outline: 2px solid var(--exp-firma);
    outline-offset: 3px;
}

/* ---------- Aviso de la página de pruebas ---------- */

.exp-lab-aviso {
    margin: 0;
    padding: 0.6rem 1rem;
    background: var(--exp-tinta);
    color: var(--exp-crema-50);
    font-family: var(--exp-mono);
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
}

/* ---------- Aviso de la portada ---------- */

.exp-pistas {
    margin-top: 2.25rem;
    max-width: 36rem;
    padding: 1.1rem 1.25rem 1.25rem;
    border: 1px dashed rgba(38, 71, 181, 0.45);
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.55);
}

.exp-pistas-titulo {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--exp-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.2;
    color: #2647b5;
}

.exp-pistas-punto {
    flex: none;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #2647b5;
    animation: exp-latido 1.8s ease-in-out infinite;
}

@keyframes exp-latido {
    0%, 100% { box-shadow: 0 0 0 0 rgba(38, 71, 181, 0.45); }
    50% { box-shadow: 0 0 0 7px rgba(38, 71, 181, 0); }
}

.exp-pistas-lista {
    margin: 0.9rem 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-pistas-lista a {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--exp-crema-300);
    border-radius: 999px;
    background: var(--exp-crema-50);
    color: var(--exp-tinta);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.exp-pistas-lista a:hover {
    background: var(--exp-tinta);
    border-color: var(--exp-tinta);
    color: var(--exp-crema-50);
}

.exp-pistas-lista a:focus-visible {
    outline: 2px solid var(--exp-firma);
    outline-offset: 3px;
}

/* ---------- 5 · Versión compleja / simple ---------- */

.exp-modo {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.1rem;
}

.exp-modo-grupo {
    display: inline-flex;
    padding: 4px;
    border: 1px solid var(--exp-crema-300);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
}

.exp-modo-grupo button {
    border: 0;
    border-radius: 999px;
    padding: 0.5rem 1.15rem;
    background: transparent;
    color: var(--exp-suave);
    font-family: var(--exp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.exp-modo-grupo button[aria-pressed="true"] {
    background: var(--exp-tinta);
    color: var(--exp-crema-50);
}

.exp-modo-nota {
    font-size: 0.9rem;
    color: var(--exp-tenue);
}

.solo-simple {
    display: none;
}

html[data-modo="simple"] .solo-simple {
    display: block;
}

html[data-modo="simple"] .ficha [data-detalle] {
    display: none !important;
}

html[data-modo="simple"] .ficha > .grid {
    grid-template-columns: minmax(0, 1fr);
}

.exp-lema {
    margin: 0.75rem 0 0;
    font-family: var(--exp-display);
    font-style: italic;
    font-size: 1.65rem;
    line-height: 1.375;
    color: var(--exp-aguja);
}

/* ---------- 1 · Firmasure: firmar aquí mismo ---------- */

.exp-firma {
    border-color: rgba(31, 91, 255, 0.3);
}

.exp-firma .exp-etiqueta--marca {
    color: var(--exp-firma);
}

.exp-firma-rejilla {
    margin-top: 1.5rem;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 900px) {
    .exp-firma-rejilla {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.exp-doc {
    position: relative;
    padding: 1.4rem 1.5rem 1.2rem;
    background: #fff;
    border: 1px solid var(--exp-crema-300);
    border-radius: 0.5rem;
    box-shadow: 0 18px 30px -22px rgba(60, 45, 20, 0.45);
}

.exp-doc-meta {
    margin: 0;
    font-family: var(--exp-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--exp-tenue);
}

.exp-doc-titulo {
    margin: 0.7rem 0 0;
    font-family: var(--exp-serif);
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.25;
    color: var(--exp-tinta);
}

.exp-doc-texto {
    margin: 0.6rem 0 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--exp-suave);
}

.exp-doc-firma {
    margin-top: 1.3rem;
    max-width: 16rem;
}

.exp-doc-hueco {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5.2rem;
    border-bottom: 1px dashed #b9b2a3;
    font-family: var(--exp-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a9a293;
}

.exp-doc-hueco img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.exp-doc.es-firmado .exp-doc-hueco img {
    animation: exp-estampar 0.45s ease-out both;
}

.exp-doc-pie {
    margin: 0.4rem 0 0;
    font-size: 0.78rem;
    color: var(--exp-tenue);
}

.exp-sello {
    position: absolute;
    right: 1.1rem;
    bottom: 1.2rem;
    padding: 0.3rem 0.7rem;
    border: 2px solid var(--exp-firma);
    border-radius: 0.35rem;
    color: var(--exp-firma);
    font-family: var(--exp-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(-6deg);
    animation: exp-sellar 0.4s ease-out 0.2s both;
}

@keyframes exp-estampar {
    from {
        opacity: 0;
        transform: scale(1.25);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes exp-sellar {
    from {
        opacity: 0;
        transform: rotate(-6deg) scale(1.5);
    }
    to {
        opacity: 1;
        transform: rotate(-6deg) scale(1);
    }
}

.exp-pad {
    position: relative;
    background: #fff;
    border: 1px solid var(--exp-crema-300);
}

.exp-pad canvas {
    display: block;
    width: 100%;
    height: 11.5rem;
    touch-action: none;
    cursor: crosshair;
}

.exp-pad.es-bloqueado canvas {
    pointer-events: none;
    opacity: 0.55;
}

.exp-pad-rotulo {
    position: absolute;
    left: 0.9rem;
    top: 0.75rem;
    font-family: var(--exp-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--exp-tenue);
    pointer-events: none;
}

.exp-pad-linea {
    position: absolute;
    left: 1.6rem;
    right: 1.6rem;
    bottom: 2.6rem;
    border-bottom: 1px dashed #b9b2a3;
    font-size: 0.9rem;
    line-height: 1;
    color: var(--exp-tenue);
    pointer-events: none;
}

.exp-pad-esq {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 0 solid var(--exp-firma);
    pointer-events: none;
}

.exp-pad-esq--1 {
    left: -1px;
    top: -1px;
    border-left-width: 2px;
    border-top-width: 2px;
}

.exp-pad-esq--2 {
    right: -1px;
    top: -1px;
    border-right-width: 2px;
    border-top-width: 2px;
}

.exp-pad-esq--3 {
    left: -1px;
    bottom: -1px;
    border-left-width: 2px;
    border-bottom-width: 2px;
}

.exp-pad-esq--4 {
    right: -1px;
    bottom: -1px;
    border-right-width: 2px;
    border-bottom-width: 2px;
}

.exp-pad-acciones {
    margin: 0.7rem 0 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1.2rem;
}

.exp-btn--firma {
    background: var(--exp-firma);
    border-color: var(--exp-firma);
    color: #fff;
    border-radius: 0.2rem;
}

.exp-btn--firma:hover {
    background: #1447d9;
}

.exp-cert {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--exp-crema-300);
    outline: none;
}

.exp-cert dl {
    margin: 0.9rem 0 0;
    border: 1px solid var(--exp-crema-300);
    border-radius: 0.75rem;
    background: var(--exp-crema-50);
    overflow: hidden;
}

.exp-cert dl > div {
    display: grid;
    gap: 0.15rem 1.25rem;
    padding: 0.75rem 1rem;
}

.exp-cert dl > div + div {
    border-top: 1px solid var(--exp-crema-200);
}

@media (min-width: 640px) {
    .exp-cert dl > div {
        grid-template-columns: 15rem minmax(0, 1fr);
        align-items: baseline;
    }
}

.exp-cert dt {
    font-family: var(--exp-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--exp-tenue);
}

.exp-cert dd {
    margin: 0;
    font-size: 0.93rem;
    color: var(--exp-tinta);
}

.exp-cert dd.exp-hash {
    font-family: var(--exp-mono);
    font-size: 0.74rem;
    line-height: 1.5;
    word-break: break-all;
    color: var(--exp-suave);
}

/* ---------- 2 · Las Lentes: una lupa de verdad ---------- */

.exp-lente-zona {
    position: relative;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

.exp-lente-zona.es-activa {
    cursor: none;
}

.exp-lente-zona img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

.exp-lente {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 5;
    width: 11rem;
    height: 11rem;
    border: 3px solid var(--exp-lente);
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    opacity: 0;
    pointer-events: none;
    transform: translate(-999px, -999px);
    transition: opacity 0.15s ease;
    will-change: transform;
}

.exp-lente-zona--cripto .exp-lente {
    border-color: var(--exp-cripto);
}

.exp-lente.es-visible {
    opacity: 1;
}

@media (max-width: 639px) {
    .exp-lente {
        width: 8.75rem;
        height: 8.75rem;
    }
}

.exp-lente-chip {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: rgba(21, 20, 18, 0.86);
    color: var(--exp-crema-50);
    font-family: var(--exp-mono);
    font-size: 10px;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.exp-lente-chip svg {
    width: 12px;
    height: 12px;
    flex: none;
}

.exp-lente-zona.es-usada .exp-lente-chip {
    opacity: 0;
}

/* ---------- 3 · QuizLive: tres preguntas ---------- */

.exp-quiz {
    border-color: rgba(109, 40, 217, 0.28);
}

.exp-quiz .exp-etiqueta--marca {
    color: var(--exp-quiz);
}

.exp-quiz-cab {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.exp-quiz-puntos {
    font-family: var(--exp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--exp-quiz);
    white-space: nowrap;
}

.exp-quiz-tiempo {
    margin-top: 0.9rem;
    height: 6px;
    border-radius: 999px;
    background: var(--exp-crema-200);
    overflow: hidden;
}

.exp-quiz-tiempo span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: var(--exp-quiz);
    transform-origin: left center;
}

.exp-quiz-pregunta {
    margin: 1.1rem 0 0;
    font-family: var(--exp-serif);
    font-weight: 600;
    font-size: 1.45rem;
    line-height: 1.25;
    color: var(--exp-tinta);
    outline: none;
}

.exp-quiz-ops {
    margin-top: 1.2rem;
    display: grid;
    gap: 0.7rem;
}

@media (min-width: 640px) {
    .exp-quiz-ops {
        grid-template-columns: 1fr 1fr;
    }
}

.exp-quiz-op {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    min-height: 3.6rem;
    border: 0;
    border-radius: 0.9rem;
    padding: 0.9rem 1.1rem;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: left;
    cursor: pointer;
    transition: transform 0.1s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.exp-quiz-op:hover:not([disabled]) {
    transform: translateY(-1px);
}

.exp-quiz-op--0 {
    background: #6d28d9;
}

.exp-quiz-op--1 {
    background: #2563eb;
}

.exp-quiz-op--2 {
    background: #e11d48;
}

.exp-quiz-op--3 {
    background: #b45309;
}

.exp-quiz-letra {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-family: var(--exp-mono);
    font-size: 12px;
    font-weight: 500;
}

.exp-quiz-op[disabled] {
    cursor: default;
}

.exp-quiz-op.es-apagada {
    opacity: 0.32;
}

.exp-quiz-op.es-fallo {
    opacity: 0.6;
    text-decoration: line-through;
}

.exp-quiz-op.es-correcta {
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px #059669;
}

.exp-quiz-resp {
    margin-top: 1.3rem;
    padding-left: 1rem;
    border-left: 3px solid var(--exp-quiz);
}

.exp-quiz-resp strong {
    display: block;
    font-family: var(--exp-serif);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--exp-tinta);
}

.exp-quiz-total {
    margin: 0.4rem 0 0;
    font-family: var(--exp-display);
    font-size: 4rem;
    line-height: 1;
    color: var(--exp-quiz);
}

.exp-quiz-total span {
    margin-left: 0.4rem;
    font-family: var(--exp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--exp-tenue);
}

.exp-podio {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 0.5rem;
    max-width: 26rem;
}

.exp-podio > div {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.15rem;
    padding: 0.6rem 0.3rem;
    border-radius: 0.75rem 0.75rem 0 0;
    background: var(--exp-crema-200);
    color: var(--exp-tenue);
    font-family: var(--exp-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.exp-podio b {
    font-family: var(--exp-display);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: none;
}

.exp-podio .p-oro {
    height: 7.2rem;
}

.exp-podio .p-plata {
    height: 5.6rem;
}

.exp-podio .p-bronce {
    height: 4.4rem;
}

.exp-podio .es-tuyo {
    background: var(--exp-quiz);
    color: #fff;
}

/* ---------- 4 · La Aguja Madre: una isla que se puede borrar ---------- */

.exp-mapa {
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}

/* En pantallas estrechas la cartela taparía las islas: pasa a ir debajo del mapa */
@media (max-width: 639px) {
    .exp-mapa-caja > div {
        position: static;
        border-width: 1px 0 0;
        border-radius: 0;
    }
}

.exp-isla {
    cursor: grab;
    touch-action: none;
}

.exp-isla.es-borrada {
    cursor: default;
    touch-action: auto;
}

.exp-isla-panel {
    margin-top: 1.1rem;
    color: var(--exp-crema-200);
}

.exp-isla-texto {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--exp-crema-200);
}

.exp-isla-titulo {
    margin: 0 0 0.3rem;
    font-family: var(--exp-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.25;
    color: #fcd34d;
}

.exp-isla-panel .exp-enlace {
    margin-top: 0.5rem;
}

/* ---------- 6 · La aguja como brújula ---------- */

.exp-brujula {
    position: fixed;
    right: 6px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 30;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s linear 0.25s;
    filter: drop-shadow(0 10px 16px rgba(60, 45, 20, 0.3));
    -webkit-tap-highlight-color: transparent;
}

.exp-brujula.es-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.exp-brujula svg {
    display: block;
    width: 100%;
    height: 100%;
}

.exp-brujula-num {
    position: absolute;
    left: 50%;
    top: -15px;
    min-width: 28px;
    margin-left: -14px;
    padding: 1px 6px;
    border-radius: 999px;
    background: var(--exp-tinta);
    color: var(--exp-crema-50);
    font-family: var(--exp-mono);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.08em;
    text-align: center;
}

@media (min-width: 640px) {
    .exp-brujula {
        right: 24px;
        bottom: 24px;
        width: 64px;
        height: 64px;
    }

    .exp-brujula-num {
        left: -8px;
        top: -6px;
        margin-left: 0;
        padding: 2px 6px;
    }
}

/* ---------- 7 · Un veredicto al terminar ---------- */

.exp-seccion {
    border-top: 1px solid rgba(220, 212, 195, 0.7);
}

.exp-cont {
    max-width: 72rem;
    margin: 0 auto;
    padding: 5rem 1.25rem;
}

@media (min-width: 640px) {
    .exp-cont {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (min-width: 1024px) {
    .exp-cont {
        padding-top: 7rem;
        padding-bottom: 7rem;
    }
}

.exp-cabecera {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--exp-serif);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 2rem;
    color: var(--exp-tinta);
}

.exp-cabecera span {
    width: 2rem;
    height: 1px;
    background: var(--exp-tinta);
}

.exp-frase {
    margin: 1.5rem 0 0;
    max-width: 56rem;
    font-family: var(--exp-display);
    font-size: 2.4rem;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: var(--exp-tinta);
}

.exp-frase span {
    font-style: italic;
    color: #2647b5;
}

@media (min-width: 640px) {
    .exp-frase {
        font-size: 3.4rem;
    }
}

.exp-veredicto {
    margin-top: 2.5rem;
    max-width: 52rem;
    border: 1px solid rgba(220, 212, 195, 0.8);
    border-radius: 28px;
    background: var(--exp-crema-50);
    box-shadow: 0 24px 60px -36px rgba(60, 45, 20, 0.35);
    overflow: hidden;
}

.exp-v-cab {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem 1.5rem;
    padding: 1.5rem 1.5rem 1.25rem;
}

.exp-v-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.4rem 1rem;
    color: #fff;
    font-family: var(--exp-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.exp-v-nota {
    font-family: var(--exp-display);
    font-size: 2.6rem;
    line-height: 1;
    color: var(--exp-tinta);
}

.exp-v-nota small {
    font-family: var(--exp-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--exp-tenue);
}

.exp-v-motivo {
    margin: 0;
    padding: 0 1.5rem 1.4rem;
    font-family: var(--exp-display);
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.3;
    color: var(--exp-tinta);
}

.exp-v-filas {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--exp-crema-200);
}

.exp-v-filas li {
    padding: 1rem 1.5rem;
}

.exp-v-filas li + li {
    border-top: 1px solid var(--exp-crema-200);
}

.exp-v-linea {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 0.3rem 1rem;
}

.exp-v-factor {
    font-weight: 600;
    color: var(--exp-tinta);
}

.exp-v-factor small {
    font-weight: 400;
    color: var(--exp-tenue);
}

.exp-v-valor {
    font-family: var(--exp-mono);
    font-size: 0.85rem;
    color: var(--exp-tinta);
    white-space: nowrap;
}

.exp-v-valor--nc {
    color: var(--exp-tenue);
    font-style: italic;
}

.exp-v-barra {
    margin-top: 0.55rem;
    height: 6px;
    border-radius: 999px;
    background: var(--exp-crema-200);
    overflow: hidden;
}

.exp-v-barra span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: #047857;
    transition: width 0.4s ease;
}

.exp-v-origen {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--exp-tenue);
}

.exp-v-pie {
    padding: 1.25rem 1.5rem 1.5rem;
    border-top: 1px solid var(--exp-crema-200);
    background: rgba(246, 242, 234, 0.6);
}

.exp-v-pie p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: var(--exp-tenue);
}

@media (min-width: 640px) {
    .exp-v-cab,
    .exp-v-filas li,
    .exp-v-pie {
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .exp-v-motivo {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* ---------- Menos movimiento ---------- */

@media (prefers-reduced-motion: reduce) {
    .exp-doc.es-firmado .exp-doc-hueco img,
    .exp-sello {
        animation: none;
    }

    .exp-pistas-punto {
        animation: none;
    }

    .exp-brujula,
    .exp-brujula.es-visible,
    .exp-lente,
    .exp-v-barra span,
    .exp-quiz-op {
        transition: none;
    }
}

/* Los atajos del aviso no dejan el bloque escondido bajo la cabecera fija */
#prueba-firma,
#prueba-quiz {
    scroll-margin-top: 6.5rem;
}
