/* =========================================
   RESET
========================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background: #0b0b0b;
    color: #f2f2f2;
    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================
   GLOBAL
========================================= */

button {
    font: inherit;
}

button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.screen {
    display: none;
    min-height: 100vh;
    width: 100%;
}

.screen.active {
    display: flex;
}


/* =========================================
   HOME
========================================= */

#home-screen {
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.home-content {
    width: 100%;
    max-width: 880px;
    text-align: center;
}


/* BRAND */

.brand {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 0.85;
    margin-bottom: 26px;
}

.brand-small {
    display: block;
    width: 100%;

    font-size: clamp(0.85rem, 1.7vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.35em;

    text-align: center;
    margin: 0 0 6px 0;
}

.brand-main {
    display: block;
    width: 100%;

    font-size: clamp(2.4rem, 6.2vw, 4.3rem);
    font-weight: 900;
    letter-spacing: -0.06em;

    text-align: center;
    white-space: nowrap;
}


/* TAGLINE */

.tagline {
    color: #aaa;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.45;
    margin-bottom: 26px;
}


/* TODAY CARD */

.today-card {
    border: 1px solid #292929;
    background: #111111;
    padding: 26px 30px 30px;
}

.eyebrow,
.result-label,
.consequence-label {
    color: #777;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.today-card h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 8px;
}

.location {
    color: #999;
    font-size: 0.88rem;
    margin-bottom: 16px;
}

.home-intro {
    color: #ccc;
    font-size: 0.98rem;
    line-height: 1.55;
    max-width: 560px;
    margin: 0 auto 22px;
}


/* BUTTONS */

.primary-button,
.secondary-button {
    border: none;
    cursor: pointer;
    padding: 15px 32px;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    transition:
        transform 0.15s ease,
        background 0.15s ease,
        color 0.15s ease;
}

.primary-button {
    background: #f2f2f2;
    color: #0b0b0b;
}

.primary-button:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.secondary-button {
    border: 1px solid #333;
    background: transparent;
    color: #ddd;
}

.secondary-button:hover {
    border-color: #777;
}


/* NEXT */

.next-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    color: #555;
    font-size: 0.68rem;
    letter-spacing: 0.15em;
}

.next-info strong {
    color: #888;
    font-variant-numeric: tabular-nums;
}


/* =========================================
   SCENARIO
========================================= */

#scenario-screen {
    justify-content: center;
    align-items: center;
}

.scenario-container {
    width: 100%;
    max-width: 880px;
    padding: 24px 25px 30px;

    /*
       En PC intentamos que todo quepa sin scroll.
       El contenido se distribuye verticalmente.
    */
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}


/* HEADER */

.scenario-header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #222;
    padding-bottom: 14px;
    margin-bottom: 22px;
    min-height: 28px;
    flex-shrink: 0;
}


/* BRAND CENTRADO */

.brand-mini {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    align-items: baseline;
    gap: 0.4em;

    font-size: 1.02rem;
    letter-spacing: 0.17em;
    white-space: nowrap;
}

.brand-mini span {
    color: #cfcfcf;
    font-weight: 700;
}

.brand-mini strong {
    color: #ffffff;
    font-weight: 900;
}


/* CONTADOR */

.decision-counter {
    position: absolute;
    right: 0;

    color: #666;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    white-space: nowrap;
}

.decision-counter span {
    color: #fff;
}

.decision-counter .counter-label {
    color: #666;
    margin-right: 5px;
}

.decision-counter .counter-separator {
    color: #444;
    margin: 0 2px;
}


/* =========================================
   PLAYER HUD
========================================= */

.player-hud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;

    background: #1c1c1c;      /* actúa como línea divisoria */
    border: 1px solid #242424;

    margin-bottom: 26px;
    flex-shrink: 0;
}

.hud-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    background: #0f0f0f;
    padding: 12px 10px;
    text-align: center;
}

.hud-label {
    color: #5f5f5f;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1;
}

.hud-item strong {
    color: #e8e8e8;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


/* CONTENT */

.scenario-content {
    width: 100%;
    margin: 0 auto;
}

.scenario-meta {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.scenario-meta span:first-child {
    color: #999;
}

#scenario-title {
    font-size: clamp(1.9rem, 4.2vw, 3.1rem);
    letter-spacing: -0.045em;
    line-height: 1;
    margin-bottom: 16px;
}

.scenario-text {
    color: #ddd;
    font-size: clamp(1rem, 1.5vw, 1.13rem);
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 24px;
}


/* OPTIONS */

.options-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.option-button {
    border: 1px solid #292929;
    background: #111;
    color: #eee;
    padding: 14px 16px;
    text-align: left;
    cursor: pointer;
    min-height: 62px;

    /* Letra y texto en la misma línea */
    display: flex;
    align-items: flex-start;
    gap: 10px;

    transition:
        border-color 0.15s ease,
        background 0.15s ease,
        transform 0.15s ease;
}

.option-button:hover {
    border-color: #777;
    background: #171717;
    transform: translateY(-2px);
}

.option-letter {
    color: #666;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.45;
    flex-shrink: 0;
    min-width: 14px;
}

.option-text {
    font-size: 0.94rem;
    line-height: 1.45;
    flex: 1;
}


/* =========================================
   CONSEQUENCE
========================================= */

#consequence-screen {
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.consequence-container {
    width: 100%;
    max-width: 700px;
}

.consequence-text {
    color: #eee;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.6;
    white-space: pre-line;
    margin-bottom: 28px;
}


/* =========================================
   RESULT
========================================= */

#result-screen {
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.result-container {
    width: 100%;
    max-width: 660px;
    text-align: center;
}

.result-label {
    margin-bottom: 12px;
}

.result-container h1 {
    font-size: clamp(2rem, 4.6vw, 3.2rem);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 10px;
}

/*
   Score: número y /100 alineados por la base.
*/

.score {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 14px;
}

#score-number {
    font-size: clamp(3.2rem, 7.5vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.06em;
    line-height: 1;
}

.score small {
    color: #555;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.result-description {
    color: #bbb;
    font-size: 1rem;
    line-height: 1.55;
    margin: 0 auto 20px;
    max-width: 560px;
}


/* STATS */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
    margin-bottom: 18px;
}

.stat {
    padding: 12px 10px;
    border-right: 1px solid #222;
}

.stat:last-child {
    border-right: none;
}

.stat span {
    display: block;
    color: #666;
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    margin-bottom: 5px;
}

.stat strong {
    font-size: 1.15rem;
}


/* TOMORROW */

.tomorrow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    border: 1px solid #222;
    padding: 12px 20px;
    margin-bottom: 18px;
}

.tomorrow span {
    color: #666;
    font-size: 0.66rem;
    letter-spacing: 0.15em;
}

.tomorrow strong {
    font-size: 0.92rem;
    letter-spacing: 0.04em;
}

#result-countdown {
    color: #888;
    font-size: 0.92rem;
    font-variant-numeric: tabular-nums;
}


/* RESULT ACTIONS */

.result-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .primary-button,
.result-actions .secondary-button {
    flex: 1 1 auto;
    min-width: 200px;
    max-width: 260px;
}


/* =========================================
   ERROR
========================================= */

#error-screen {
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-container {
    width: 100%;
    max-width: 700px;
    text-align: center;
}

.error-label {
    color: #777;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.error-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 40px;
}

.error-detail {
    color: #777;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.error-path {
    display: block;
    background: #111;
    border: 1px solid #292929;
    color: #aaa;
    font-family: monospace;
    font-size: 0.9rem;
    padding: 14px 20px;
    margin-bottom: 20px;
    word-break: break-all;
}

.error-message {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 40px;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

    #home-screen {
        padding: 25px 15px;
    }

    .brand {
        margin-bottom: 35px;
    }

    .today-card {
        padding: 35px 20px;
    }

    .next-info {
        flex-direction: column;
        gap: 8px;
    }

    /*
       En móvil dejamos scroll libre: forzar todo en
       una pantalla comprime demasiado el texto.
    */

    .scenario-container {
        padding: 16px 14px 30px;
        min-height: auto;
        display: block;
    }

    /*
       El header pasa a columna para que el branding y el
       contador de decisiones no se solapen en pantallas
       estrechas.
    */

    .scenario-header {
        flex-direction: column;
        align-items: center;
        gap: 6px;
        padding-bottom: 10px;
        margin-bottom: 14px;
        min-height: auto;
    }

    .brand-mini {
        position: static;
        transform: none;
        font-size: 0.78rem;
        letter-spacing: 0.14em;
    }

    .decision-counter {
        position: static;
        font-size: 0.66rem;
    }

    #scenario-title {
        font-size: clamp(1.5rem, 6.4vw, 1.95rem);
        margin-bottom: 10px;
    }

    .scenario-text {
        font-size: 0.98rem;
        line-height: 1.55;
        margin-bottom: 16px;
    }

    .scenario-meta {
        font-size: 0.64rem;
        margin-bottom: 8px;
    }

    /* HUD en 2x2 compacto */

    .player-hud {
        grid-template-columns: 1fr 1fr;
        margin-bottom: 14px;
    }

    .hud-item {
        padding: 8px 6px;
        gap: 3px;
    }

    .hud-label {
        font-size: 0.56rem;
        letter-spacing: 0.12em;
    }

    .hud-item strong {
        font-size: 0.82rem;
    }

    /* Opciones compactas — menos scroll */

    .options-container {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .option-button {
        min-height: auto;
        padding: 12px 14px;
        gap: 9px;
    }

    .option-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .option-letter {
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .result-actions {
        flex-direction: column;
    }

    .result-actions .primary-button,
    .result-actions .secondary-button {
        width: 100%;
        max-width: 320px;
    }

    .tomorrow {
        flex-direction: column;
        gap: 6px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat:nth-child(2) {
        border-right: none;
    }

    .stat:nth-child(-n+2) {
        border-bottom: 1px solid #222;
    }
}


/* =========================================
   PANTALLAS DE POCA ALTURA (portátiles)
   ========================================= */

@media (min-width: 651px) and (max-height: 800px) {

    /* HOME */

    #home-screen {
        padding: 16px 20px;
    }

    .brand {
        margin-bottom: 18px;
    }

    .brand-main {
        font-size: clamp(2.1rem, 5.4vw, 3.4rem);
    }

    .tagline {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }

    .today-card {
        padding: 20px 28px 24px;
    }

    .today-card h1 {
        font-size: clamp(1.7rem, 3.8vw, 2.5rem);
    }

    .home-intro {
        font-size: 0.92rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .primary-button,
    .secondary-button {
        padding: 13px 28px;
    }

    .next-info {
        margin-top: 12px;
    }

    /* SCENARIO */

    .scenario-container {
        padding: 16px 25px 20px;
    }

    .scenario-header {
        padding-bottom: 10px;
        margin-bottom: 16px;
    }

    .player-hud {
        margin-bottom: 18px;
    }

    .hud-item {
        padding: 9px 10px;
    }

    #scenario-title {
        font-size: clamp(1.6rem, 3.2vw, 2.3rem);
        margin-bottom: 12px;
    }

    .scenario-text {
        font-size: 1rem;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .option-button {
        min-height: 64px;
        padding: 13px 16px;
    }

    .option-text {
        font-size: 0.89rem;
    }

    .options-container {
        gap: 10px;
    }

    /* RESULTADO */

    #result-screen {
        padding: 16px 20px;
    }

    .result-container h1 {
        font-size: clamp(1.7rem, 3.8vw, 2.5rem);
    }

    #score-number {
        font-size: clamp(2.6rem, 6vw, 3.8rem);
    }

    .result-description {
        font-size: 0.94rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .stat {
        padding: 10px;
    }

    .stats {
        margin-bottom: 14px;
    }

    .tomorrow {
        padding: 10px 18px;
        margin-bottom: 14px;
    }

    /* CONSECUENCIA */

    .consequence-text {
        font-size: clamp(1rem, 1.8vw, 1.25rem);
        margin-bottom: 22px;
    }
}


/* =========================================
   ANIMATIONS
========================================= */

.screen.active .home-content,
.screen.active .scenario-content,
.screen.active .consequence-container,
.screen.active .result-container,
.screen.active .error-container {
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {

    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================================
   HOME NAV
========================================= */

.home-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    z-index: 10;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-button {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #999;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    padding: 8px 14px;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
}

.nav-button:hover {
    color: #fff;
    border-color: #555;
}

/* home-screen necesita position relative para el nav absoluto */
#home-screen {
    position: relative;
}


/* =========================================
   MODALES (archivo + sugerencias)
========================================= */

.modal {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal[hidden] {
    display: none;
}

.modal-inner {
    background: #111;
    border: 1px solid #272727;
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 32px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    border-bottom: 1px solid #1e1e1e;
    padding-bottom: 16px;
}

.modal-title {
    color: #777;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.modal-close {
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    transition: color 0.15s;
}

.modal-close:hover {
    color: #fff;
}


/* =========================================
   ARCHIVO
========================================= */

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.archive-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #1a1a1a;
    cursor: pointer;
    transition: opacity 0.15s;
}

.archive-item:hover {
    opacity: 0.75;
}

.archive-item:last-child {
    border-bottom: none;
}

.archive-date {
    color: #555;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    min-width: 80px;
    flex-shrink: 0;
}

.archive-info {
    flex: 1;
}

.archive-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.archive-location {
    color: #666;
    font-size: 0.75rem;
}

.archive-score {
    text-align: right;
    flex-shrink: 0;
}

.archive-score-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
}

.archive-score-label {
    color: #555;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.archive-score-pending {
    color: #444;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.archive-empty {
    color: #555;
    font-size: 0.85rem;
    line-height: 1.6;
    padding: 12px 0;
}


/* =========================================
   SUGERENCIAS
========================================= */

.suggest-intro {
    color: #999;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.suggest-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggest-textarea,
.suggest-email {
    background: #0b0b0b;
    border: 1px solid #2a2a2a;
    color: #eee;
    font: inherit;
    font-size: 0.9rem;
    line-height: 1.55;
    padding: 14px 16px;
    resize: vertical;
    transition: border-color 0.15s;
    width: 100%;
}

.suggest-textarea:focus,
.suggest-email:focus {
    border-color: #555;
    outline: none;
}

.suggest-textarea::placeholder,
.suggest-email::placeholder {
    color: #444;
}

.suggest-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.suggest-status {
    color: #777;
    font-size: 0.8rem;
    flex: 1;
}

.suggest-status.ok  { color: #5a9; }
.suggest-status.err { color: #c66; }


/* =========================================
   FOOTER
========================================= */

.home-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px 24px;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 6px;
}

.footer-links a,
.footer-link-button {
    background: transparent;
    border: none;
    color: #7a7a7a;
    cursor: pointer;
    font: inherit;
    font-size: 0.74rem;
    letter-spacing: 0.05em;
    padding: 0;
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover,
.footer-link-button:hover {
    color: #ddd;
}

.footer-sep {
    color: #444;
    font-size: 0.74rem;
}

.footer-copy {
    color: #555;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
}


/* =========================================
   RESPONSIVE NAV
========================================= */

@media (max-width: 650px) {

    /*
       En móvil el nav y el footer salen del posicionamiento
       absoluto y entran en el flujo, para que no se solapen
       con el contenido ni con el banner de cookies.
    */

    #home-screen {
        display: block;
        padding: 62px 15px 30px;
    }

    .home-nav {
        padding: 12px 14px;
    }

    .nav-right {
        gap: 7px;
    }

    .home-footer {
        position: static;
        padding: 24px 14px 0;
        margin-top: 24px;
    }



    .nav-button {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
        padding: 7px 10px;
    }

    .modal-inner {
        padding: 24px 20px;
    }
}



/* =========================================
   PÁGINA LEGAL
========================================= */

.legal-page {
    min-height: 100vh;
    background: #0b0b0b;
    color: #f2f2f2;
    display: flex;
    flex-direction: column;
}

.legal-header {
    padding: 22px 32px;
    border-bottom: 1px solid #1a1a1a;
    flex-shrink: 0;
}

.legal-back {
    color: #555;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-decoration: none;
    transition: color 0.15s;
}

.legal-back:hover {
    color: #fff;
}

.legal-content {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 32px 80px;
    flex: 1;
}

.legal-eyebrow {
    color: #555;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 14px;
}

.legal-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 50px;
}

.legal-section {
    margin-bottom: 36px;
}

.legal-section h2 {
    color: #ddd;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #1e1e1e;
}

.legal-section p {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 12px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.75;
    padding-left: 20px;
    margin-top: 10px;
}

.legal-section li {
    margin-bottom: 8px;
}

.legal-section a {
    color: #777;
    text-underline-offset: 3px;
    transition: color 0.15s;
}

.legal-section a:hover {
    color: #ccc;
}

.legal-section strong {
    color: #ccc;
    font-weight: 600;
}

.legal-section em {
    color: #bbb;
    font-style: italic;
}

.legal-updated {
    color: #3a3a3a;
    font-size: 0.75rem;
    margin-top: 50px;
    padding-top: 24px;
    border-top: 1px solid #171717;
}

@media (max-width: 650px) {

    .legal-header {
        padding: 16px 20px;
    }

    .legal-content {
        padding: 40px 20px 60px;
    }

    .legal-title {
        margin-bottom: 36px;
    }
}


/* =========================================
   BANNER DE COOKIES
   Se incluye en index.html via legal.css
   importado en el <head>.
========================================= */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #111;
    border-top: 1px solid #222;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 999;
    flex-wrap: wrap;
    animation: slideUp 0.3s ease;
}

#cookie-banner[hidden] {
    display: none;
}

@keyframes slideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.cookie-text {
    color: #777;
    font-size: 0.78rem;
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

.cookie-text a {
    color: #666;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: #aaa;
}

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-accept {
    background: #f2f2f2;
    border: none;
    color: #0b0b0b;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 9px 18px;
    transition: background 0.15s;
}

.cookie-accept:hover {
    background: #fff;
}

.cookie-info {
    background: transparent;
    border: 1px solid #2a2a2a;
    color: #666;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 9px 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: border-color 0.15s, color 0.15s;
}

.cookie-info:hover {
    border-color: #555;
    color: #aaa;
}

@media (max-width: 650px) {

    #cookie-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 16px 18px;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-accept {
        flex: 1;
    }
}


/* =========================================
   ARTÍCULOS / PÁGINAS DE CONTENIDO
========================================= */

.article-content {
    max-width: 720px;
}

.article-lead {
    color: #bbb;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid #1e1e1e;
}

.legal-section h3 {
    color: #ccc;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-top: 26px;
    margin-bottom: 8px;
}

.legal-section h3:first-of-type {
    margin-top: 14px;
}


/* CTA */

.article-cta-section {
    border: 1px solid #232323;
    background: #101010;
    padding: 28px 30px;
    margin-top: 48px;
}

.article-cta-section h2 {
    border-bottom-color: #262626;
}

.article-cta {
    margin-top: 22px;
    margin-bottom: 46px;
}

.article-button {
    display: inline-block;
    text-decoration: none;
}


/* LISTA DE ESCENARIOS */

.article-scenarios {
    list-style: none;
    padding-left: 0;
    margin-top: 6px;
}

.article-scenarios li {
    border-bottom: 1px solid #1a1a1a;
    padding: 16px 0;
    margin-bottom: 0;
}

.article-scenarios li:last-child {
    border-bottom: none;
}

.article-scenarios a {
    color: #eee;
    display: block;
    font-size: 1rem;
    margin-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s;
}

.article-scenarios a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-scenarios a strong {
    color: inherit;
    font-weight: 700;
}

.article-scenarios span {
    color: #6a6a6a;
    display: block;
    font-size: 0.88rem;
    line-height: 1.55;
}

@media (max-width: 650px) {

    .article-lead {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .article-cta-section {
        padding: 22px 20px;
    }

    .article-button {
        width: 100%;
        text-align: center;
    }
}


/* PÁGINAS DE ESCENARIO */

.scenario-meta-line {
    color: #5f5f5f;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin-top: -34px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.scenario-points {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.scenario-points li {
    border-left: 2px solid #242424;
    color: #999;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    padding-left: 16px;
}

.scenario-points li:last-child {
    margin-bottom: 0;
}

.scenario-points strong {
    color: #ddd;
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}


/* =========================================
   BANNER DE COOKIES — MÓVIL
   =========================================

   En móvil el banner entra en el flujo en lugar de quedarse
   fijo, para que nunca tape el countdown ni el footer.
   Va al final del archivo para ganar en especificidad de orden.
========================================= */

@media (max-width: 650px) {

    #cookie-banner {
        position: static;
        margin-top: 22px;
        border-top: 1px solid #222;
        padding: 16px 15px 20px;
    }

}
