/* Nigga Spica Awards 2026 — estilos base */
:root {
    color-scheme: dark;
    --bg: #0b0a12;
    --panel: rgba(20, 17, 31, .9);
    --gold: #e7c878;
    --gold-bright: #ffe6a0;
    --violet: #a98bff;
    --text: #f7f3ff;
    --muted: #aaa3bb;
    font-family: Inter, "Segoe UI", system-ui, sans-serif
}

* {
    box-sizing: border-box
}

html {
    min-height: 100%;
    scroll-behavior: smooth
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text)
}

button,
a {
    font: inherit
}

button {
    color: inherit
}

main {
    min-height: 100vh
}

.hidden {
    display: none !important
}

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(94, 65, 140, .17), transparent 52%), linear-gradient(#0d0b15, #09080e)
}

.glow {
    position: absolute;
    width: 34rem;
    height: 34rem;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .14
}

.glow-one {
    background: #b58a39;
    top: -18rem;
    left: -12rem
}

.glow-two {
    background: #7149d4;
    right: -18rem;
    bottom: -12rem
}

.particles {
    position: absolute;
    inset: 0;
    opacity: .32;
    background-image: radial-gradient(circle, rgba(255, 225, 156, .72) 1px, transparent 1.5px), radial-gradient(circle, rgba(180, 151, 255, .55) 1px, transparent 1.5px);
    background-size: 83px 83px, 127px 127px;
    background-position: 0 0, 37px 52px
}

.screen {
    width: min(1120px, 100%);
    min-height: 100vh;
    margin: auto;
    padding: 64px 28px 90px
}

.home-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    animation: rise-in .7s ease both
}

.event-logo {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin-bottom: 26px;
    border: 1px solid #e7c87870;
    border-radius: 24px;
    background: linear-gradient(145deg, #e7c87822, #a98bff14);
    font-size: 2.15rem
}

.eyebrow {
    margin: 0;
    color: var(--gold);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .22em;
    line-height: 1.6
}

.main-title {
    margin: 18px 0 0;
    font-size: clamp(2.3rem, 7vw, 5.7rem);
    font-weight: 900;
    letter-spacing: -.055em;
    line-height: .98;
    text-wrap: balance
}

.main-title span {
    display: block;
    margin-top: 9px;
    color: var(--gold);
    letter-spacing: .1em;
    font-size: .65em
}

.year {
    margin: 16px 0 0;
    color: var(--violet);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: .45em
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: min(260px, 80%);
    margin: 28px auto;
    color: var(--gold)
}

.title-line:before,
.title-line:after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #e7c878bf)
}

.title-line:after {
    transform: rotate(180deg)
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7
}

.event-date {
    margin: 18px 0 28px;
    color: #d5c8f5;
    font-size: .9rem
}

.button {
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 22px;
    cursor: pointer;
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .07em;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s
}

.button:hover {
    transform: translateY(-2px)
}

.button:focus-visible,
.music-button:focus-visible,
.candidate-card:focus-visible,
.clip-vote-button:focus-visible {
    outline: 2px solid var(--violet);
    outline-offset: 4px
}

.button-primary {
    color: #211a0c;
    background: linear-gradient(115deg, #f4d990, #d7b45e);
    box-shadow: 0 8px 30px #e7c8781f
}

.button-primary:hover {
    box-shadow: 0 10px 38px #e7c8783b
}

.button-primary span {
    margin-left: 12px;
    font-size: 1.1rem
}

.small-note {
    margin-top: 22px;
    color: #777184;
    font-size: .72rem
}

.voting-screen {
    animation: rise-in .55s ease both
}

.voting-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 48px
}

.mini-brand {
    color: var(--gold);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .08em
}

.mini-brand span {
    color: var(--muted);
    font-size: .75rem
}

.music-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #a98bff47;
    border-radius: 10px;
    color: #d8c9ff;
    background: #a98bff12;
    cursor: pointer;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em
}

.music-button:hover,
.music-button.active {
    background: #a98bff29;
    border-color: #a98bff99
}

.progress-area {
    width: min(560px, 100%);
    margin: 0 auto 48px
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em
}

#progressPercent {
    color: var(--gold)
}

.progress-track {
    height: 4px;
    overflow: hidden;
    border-radius: 99px;
    background: #ffffff17
}

.progress-fill {
    width: 50%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--violet), var(--gold));
    transition: width .35s
}

.category-header {
    text-align: center
}

.category-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border: 1px solid #e7c87838;
    border-radius: 20px;
    background: #e7c87812;
    font-size: 1.9rem
}

.category-header h2 {
    margin: 12px 0 0;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -.035em
}

.category-header .title-line {
    margin: 20px auto
}

.category-description {
    margin: 0;
    color: var(--muted);
    line-height: 1.6
}

.category-content {
    margin-top: 34px
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px
}

.candidate-card {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 92px;
    padding: 18px;
    border: 1px solid #ffffff17;
    border-radius: 18px;
    text-align: left;
    background: linear-gradient(145deg, rgba(26, 22, 39, .9), rgba(15, 13, 23, .92));
    cursor: pointer;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s
}

.candidate-card:hover {
    transform: translateY(-3px);
    border-color: #e7c87870
}

.candidate-card.selected {
    border-color: var(--gold);
    background: linear-gradient(145deg, #6f53264d, #21192ff2);
    box-shadow: 0 0 0 1px #e7c8781f, 0 12px 34px #0003
}

.candidate-icon {
    font-size: 1.5rem
}

.candidate-name {
    flex: 1;
    font-weight: 800
}

.selection-mark {
    color: var(--gold);
    font-size: 1.15rem
}

.clips-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px
}

.clip-card {
    overflow: hidden;
    border: 1px solid #ffffff1a;
    border-radius: 18px;
    background: var(--panel);
    transition: border-color .2s, box-shadow .2s
}

.clip-card.selected {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px #e7c8781f, 0 14px 36px #0004
}

.video-container {
    aspect-ratio: 16/9;
    background: #050508
}

.video-container video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain
}

.clip-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 20px
}

.clip-info h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.4
}

.clip-info p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .82rem
}

.clip-vote-button {
    min-height: 42px;
    border: 1px solid #e7c87861;
    border-radius: 10px;
    color: var(--gold-bright);
    background: #e7c87812;
    cursor: pointer;
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em
}

.clip-vote-button:hover,
.clip-card.selected .clip-vote-button {
    color: #211a0c;
    background: var(--gold);
    border-color: var(--gold)
}

.selection-message {
    min-height: 1.5em;
    margin: 24px 0 0;
    color: var(--gold);
    text-align: center;
    font-size: .86rem
}

.button-quiet {
    display: block;
    margin: 28px auto 0;
    color: var(--muted);
    background: transparent;
    border-color: #ffffff24
}

.site-footer {
    padding: 0 20px 22px;
    color: #716b7d;
    text-align: center;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .16em
}

.site-footer span {
    padding: 0 7px;
    color: var(--gold)
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px)
    }

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

@media(max-width:760px) {
    .screen {
        padding: 36px 18px 80px
    }

    .home-screen {
        padding-top: 48px
    }

    .voting-topbar {
        margin-bottom: 36px
    }

    .progress-area {
        margin-bottom: 38px
    }

    .candidates-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .candidate-card {
        min-height: 78px;
        gap: 10px;
        padding: 14px
    }

    .clips-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: auto
    }
}

@media(max-width:420px) {
    .main-title {
        font-size: clamp(2rem, 10vw, 2.8rem)
    }

    .eyebrow {
        font-size: .62rem;
        letter-spacing: .15em
    }

    .candidates-grid {
        grid-template-columns: 1fr
    }

    .candidate-card {
        min-height: 68px
    }

    .music-button {
        padding: 0 10px
    }
}

@media(prefers-reduced-motion:reduce) {

    *,
    *:before,
    *:after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important
    }
}

/* Pantalla de resumen */
.completion-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.completion-title {
    margin-top: 16px;
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
}

.completion-description {
    color: var(--muted);
    line-height: 1.6;
}

.selection-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: min(720px, 100%);
    margin: 30px auto;
    text-align: left;
}

.summary-item {
    padding: 20px;
    border: 1px solid #e7c87845;
    border-radius: 16px;
    background: rgba(26, 22, 39, 0.9);
}

.summary-category {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.summary-choice {
    font-size: 1.05rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.completion-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 12px 0 24px;
}

.complete-voting-button {
    display: block;
    margin: 24px auto 0;
}

@media (max-width: 600px) {
    .selection-summary {
        grid-template-columns: 1fr;
    }

    .completion-actions {
        flex-direction: column;
        width: 100%;
    }

    .completion-actions button {
        width: 100%;
    }
}
/* ==========================================
   PANEL ADMINISTRATIVO INTEGRADO
========================================== */
.admin-screen { animation: none; transform-origin: 50% 12%; }
.admin-screen.is-entering { animation: admin-panel-enter .48s cubic-bezier(.2,.78,.2,1) both; }
.admin-screen.is-leaving { pointer-events: none; animation: admin-panel-leave .26s cubic-bezier(.4,0,.8,.4) both; }
.admin-topbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.admin-return-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid #e7c87855; border-radius: 10px; color: var(--gold-bright); background: linear-gradient(110deg, #e7c87812, #a98bff12); font-size: .68rem; font-weight: 850; letter-spacing: .07em; cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.admin-return-button span:first-child { display: inline-block; font-size: 1rem; transform: rotate(-45deg); transition: transform .18s ease; }
.admin-return-button:hover { transform: translateY(-1px); border-color: #ffe6a0aa; background: #e7c87820; box-shadow: 0 6px 22px #0003, 0 0 18px #e7c87810; }
.admin-return-button:hover span:first-child { transform: rotate(-45deg) translate(2px,-2px); }
.admin-return-button:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
.admin-topbar, .admin-heading-row, .admin-actions, .admin-row-actions, .admin-bottom-actions {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.admin-role-badge {
    padding: 8px 11px; border: 1px solid #e7c87855; border-radius: 999px;
    color: var(--gold); background: #e7c87812; font-size: .68rem; font-weight: 850; letter-spacing: .1em;
}
.admin-title { margin: 12px 0; font-size: clamp(2rem, 5vw, 3.4rem); letter-spacing: -.04em; }
.admin-status { min-height: 1.4em; color: var(--muted); overflow-wrap: anywhere; }
.admin-status[data-type="error"] { color: #ff9fba; }
.admin-status[data-type="success"] { color: var(--gold); }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 22px; padding-bottom: 14px; border-bottom: 1px solid #ffffff17; }
.admin-tab { border: 1px solid #a98bff35; border-radius: 10px; padding: 11px 15px; color: var(--muted); background: #a98bff0b; cursor: pointer; font-size: .78rem; font-weight: 800; }
.admin-tab:hover, .admin-tab.active { color: var(--gold-bright); border-color: #e7c8788a; background: #e7c87813; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.admin-columns-small { margin: 18px 0; }
.admin-card { min-width: 0; padding: clamp(17px, 3vw, 26px); border: 1px solid #a98bff26; border-radius: 18px; background: var(--panel); box-shadow: 0 15px 45px #0002; }
.admin-card h3 { margin: 0 0 18px; font-size: 1.15rem; }
.admin-card h4 { margin: 8px 0 18px; color: var(--gold); font-size: 1rem; }
.admin-form { display: grid; gap: 9px; }
.admin-form label, .admin-columns label { margin-top: 4px; color: #d6cfea; font-size: .78rem; font-weight: 750; }
.admin-form input:not([type="checkbox"]), .admin-form textarea, .admin-form select, .admin-columns input {
    width: 100%; min-width: 0; border: 1px solid #ffffff20; border-radius: 9px; padding: 11px 12px;
    color: var(--text); background: #0d0b15; font: inherit; font-size: .86rem;
}
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus, .admin-columns input:focus { outline: 2px solid #a98bff88; outline-offset: 1px; }
.admin-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 10px; }
.admin-actions .button, .admin-card > .button { margin: 0; }
.admin-inline-button { display: inline-flex; align-items: center; justify-content: center; margin: 0; min-height: 40px; padding: 0 13px; font-size: .72rem; }
.admin-list { display: grid; gap: 9px; margin-top: 20px; }
.admin-list-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px; border: 1px solid #ffffff17; border-radius: 12px; background: #ffffff05; }
.admin-list-copy { display: grid; gap: 4px; min-width: 0; }
.admin-list-copy strong { overflow-wrap: anywhere; font-size: .82rem; }
.admin-list-copy span { overflow-wrap: anywhere; color: var(--muted); font-size: .7rem; }
.admin-row-actions { flex-shrink: 0; justify-content: flex-end; }
.admin-small-button { border: 1px solid #a98bff45; border-radius: 8px; padding: 7px 9px; color: #d7c9ff; background: #a98bff10; cursor: pointer; font-size: .7rem; font-weight: 800; }
.admin-small-button.danger { color: #ffb5c4; border-color: #ff829b55; background: #ff829b0d; }
.admin-small-button:disabled { opacity: .35; cursor: not-allowed; }
.admin-help { color: var(--muted); font-size: .8rem; line-height: 1.6; }
.admin-switch { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--text); font-size: .82rem; }
.admin-switch input { accent-color: var(--violet); width: 17px; height: 17px; flex: 0 0 auto; }
.admin-bottom-actions { justify-content: center; margin-top: 24px; }
.admin-bottom-actions .button { margin: 0; }
.admin-results { display: grid; gap: 22px; margin-top: 20px; }
.result-group { padding: 17px; border: 1px solid #ffffff16; border-radius: 13px; background: #ffffff04; }
.result-line { margin-top: 14px; }
.result-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: .8rem; }
.result-label span { overflow-wrap: anywhere; }
.result-label strong { flex-shrink: 0; color: var(--gold); font-size: .75rem; }
.result-track { height: 7px; overflow: hidden; border-radius: 99px; background: #ffffff12; }
.result-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--violet), var(--gold)); transition: width .35s ease; }
.admin-open-button { margin: 0; }
@media (max-width: 850px) { .admin-columns { grid-template-columns: 1fr; } }
@media (max-width: 520px) {
    .admin-topbar { align-items: flex-start; }
    .admin-topbar-actions { align-items: flex-end; flex-direction: column; gap: 7px; }
    .admin-return-button { min-height: 35px; padding: 0 10px; }
    .admin-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-tab { padding: 10px 8px; }
    .admin-list-row { align-items: flex-start; flex-direction: column; }
    .admin-row-actions { width: 100%; justify-content: flex-start; }
    .admin-columns-small { grid-template-columns: 1fr; }
    .admin-heading-row { align-items: flex-start; }
}
.candidate-image { display: block; width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }


/* Cuenta de Discord: CTA antes de iniciar sesión; tarjeta compacta después. */
.auth-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: min(100%, 440px);
    margin: 18px auto 14px;
    padding: 16px 18px;
    border: 1px solid #a98bff35;
    border-radius: 16px;
    background: rgba(20, 17, 31, .82);
    box-shadow: 0 12px 36px #0002;
    transition: width .25s, padding .25s, border-color .25s, background .25s;
}
.auth-profile-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-width: 0;
}
.auth-avatar, .auth-avatar-fallback {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e7c878aa;
    box-shadow: 0 0 0 3px #a98bff20;
}
.auth-avatar-fallback {
    display: grid;
    place-items: center;
    color: var(--gold-bright);
    background: linear-gradient(135deg, #272039, #171321);
    font-weight: 800;
}
.auth-avatar-fallback[hidden], .auth-avatar[hidden] { display: none !important; }
.auth-status {
    margin: 0;
    color: var(--muted);
    font-size: .82rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    min-width: 0;
}
.auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}
.auth-panel .button { margin: 0; }
.auth-panel .button[hidden] { display: none !important; }
.auth-panel.is-authenticated {
    position: absolute;
    z-index: 20;
    top: 16px;
    right: 18px;
    width: min(330px, calc(100vw - 28px));
    align-items: stretch;
    gap: 8px;
    margin: 0;
    padding: 12px 14px;
    border-color: #e7c87845;
    background: rgba(15, 12, 24, .94);
    backdrop-filter: blur(16px);
    text-align: left;
}
.auth-panel.is-authenticated .auth-profile-row {
    justify-content: flex-start;
    gap: 10px;
}
.auth-panel.is-authenticated .auth-avatar,
.auth-panel.is-authenticated .auth-avatar-fallback {
    flex-basis: 44px;
    width: 44px;
    height: 44px;
}
.auth-panel.is-authenticated .auth-status {
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auth-panel.is-authenticated .auth-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
}
.auth-panel.is-authenticated .auth-actions .button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 0 12px;
    font-size: .68rem;
    letter-spacing: .04em;
}
.admin-open-button {
    width: 100%;
    min-height: 38px;
    margin: 0;
    padding: 0 12px;
    font-size: .68rem;
    letter-spacing: .04em;
}
.auth-panel.is-authenticated .admin-open-button {
    order: 1;
    align-self: stretch;
    border-color: #e7c87870;
    color: var(--gold-bright);
    background: linear-gradient(110deg, #e7c87812, #a98bff15);
}
@media (max-width: 600px) {
    .auth-panel.is-authenticated {
        top: 10px;
        right: 10px;
        width: min(280px, calc(100vw - 20px));
        padding: 10px 11px;
    }
    .auth-panel.is-authenticated .auth-status { font-size: .75rem; }
    .auth-panel.is-authenticated .auth-avatar,
    .auth-panel.is-authenticated .auth-avatar-fallback { flex-basis: 38px; width: 38px; height: 38px; }
    .auth-panel.is-authenticated .auth-actions .button { min-height: 36px; width: 100%; }
    .home-screen { padding-top: 160px; }
}

/* Mantener el acceso al panel arriba y el cierre de sesión debajo, con el mismo ancho. */
.auth-panel.is-authenticated #openAdminButton { order: 1; }
.auth-panel.is-authenticated #logoutButton { order: 2; }

/* Calidad de vida: navegación y progreso de votación */
.voting-overview {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #a98bff25;
    border-radius: 14px;
    background: linear-gradient(135deg, #171322cc, #100e18cc);
}
.overview-copy {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px 12px;
    margin-bottom: 12px;
    font-size: .78rem;
}
.overview-copy strong { color: var(--gold-bright); }
.overview-copy span { color: var(--muted); font-size: .72rem; }
.category-navigator {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    max-width: 100%;
    padding: 7px 11px;
    border: 1px solid #ffffff20;
    border-radius: 999px;
    background: #ffffff06;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.category-nav-item:hover { border-color: #e7c87880; color: var(--text); }
.category-nav-item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.category-nav-item.is-current {
    border-color: var(--violet);
    background: #a98bff18;
    color: var(--text);
}
.category-nav-item.is-complete .category-nav-marker {
    background: #e7c878;
    color: #17111f;
    border-color: #e7c878;
}
.category-nav-marker {
    display: grid;
    place-items: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 1px solid #ffffff30;
    border-radius: 50%;
    color: var(--gold-bright);
    font-size: .66rem;
    font-weight: 900;
}
.category-nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .72rem;
    font-weight: 750;
}
@media (max-width: 600px) {
    .voting-overview { padding: 12px; }
    .category-navigator { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-nav-item { width: 100%; min-width: 0; border-radius: 11px; padding: 8px; }
    .category-nav-label { font-size: .68rem; }
    .overview-copy { align-items: flex-start; flex-direction: column; }
}


/* Revisión previa al envío de votos */
.review-screen { width: min(100% - 32px, 1040px); margin: 0 auto; padding-bottom: 56px; }
.review-tag { color: var(--gold); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.review-heading { max-width: 760px; margin: 38px auto 24px; text-align: center; }
.review-heading .completion-title { margin-bottom: 12px; }
.review-progress-wrap { width: min(760px, 100%); margin: 0 auto 26px; padding: 18px; border: 1px solid #a98bff35; border-radius: 16px; background: rgba(20,17,31,.78); }
.review-summary { width: 100%; max-width: 1040px; margin: 0 auto 24px; }
.review-summary-item { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.review-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; width: 100%; }
.review-item-top .summary-category { margin: 0; line-height: 1.5; }
.review-status { flex-shrink: 0; border-radius: 99px; padding: 5px 9px; font-size: .72rem; font-weight: 800; }
.review-status.is-done { color: #a6e5bf; background: #2c895326; }
.review-status.is-pending { color: var(--gold-bright); background: #e7c8781b; }
.review-edit-button { margin-top: auto; min-height: 40px; }
.review-message { min-height: 1.5em; color: var(--muted); text-align: center; line-height: 1.6; }
.review-actions { margin-top: 24px; }
.review-actions .button:disabled { opacity: .55; cursor: not-allowed; }
.review-footnote { text-align: center; }
@media (max-width: 600px) {
  .review-screen { width: min(100% - 22px, 1040px); }
  .review-heading { margin-top: 24px; }
  .review-progress-wrap { padding: 14px; }
  .review-summary { grid-template-columns: 1fr; }
  .review-item-top { flex-direction: column; gap: 8px; }
  .review-edit-button { width: 100%; }
}

/* Mejoras de navegación y búsqueda del panel administrativo */
.admin-card-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:18px; }
.admin-card-heading h3 { margin-bottom:5px; }
.admin-card-heading .admin-help { margin:0; }
.admin-count { display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; min-height:28px; padding:5px 9px; border:1px solid #e7c87845; border-radius:999px; color:var(--gold); background:#e7c8780d; font-size:.66rem; font-weight:850; letter-spacing:.04em; }
.admin-count[data-state="activas"] { color:#b9f3d0; border-color:#7be0a055; background:#7be0a00d; }
.admin-count[data-state="programadas"] { color:#d7c9ff; border-color:#a98bff66; background:#a98bff12; }
.admin-count[data-state="cerradas"], .admin-count[data-state="pausadas"] { color:#ffcad4; border-color:#ff829b55; background:#ff829b0b; }
.admin-search-label { display:block; margin-top:20px; margin-bottom:7px; color:#d6cfea; font-size:.75rem; font-weight:750; }
.admin-search { width:100%; min-width:0; padding:11px 12px; border:1px solid #a98bff35; border-radius:10px; color:var(--text); background:#0d0b15; font:inherit; font-size:.84rem; }
.admin-search:focus { outline:2px solid #a98bff88; outline-offset:1px; }
.admin-tabs { position:sticky; top:8px; z-index:5; padding:10px; border:1px solid #a98bff25; border-radius:14px; background:#100d19ed; backdrop-filter:blur(12px); }
.admin-tab:focus-visible, .admin-small-button:focus-visible, .admin-search:focus-visible { outline:2px solid var(--gold); outline-offset:2px; }
@media (max-width:520px) { .admin-card-heading { align-items:center; } .admin-tabs { top:4px; } }

/* El panel administrativo se anima desde admin.js con Web Animations API. */
#adminScreen { animation: none !important; }

/* Panel de contenido: tarjetas equilibradas y listas en ventanas dedicadas */
.admin-columns { align-items: stretch; }
.admin-columns > .admin-card { display: flex; flex-direction: column; height: 100%; min-height: 100%; }
.admin-columns > .admin-card .admin-form { flex: 1 1 auto; align-content: start; }
.admin-list-launch { margin-top: auto; padding-top: 22px; }
.admin-list-launch .admin-help { min-height: 3.2em; margin: 0 0 14px; }
.admin-list-open { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-color: #e7c87855; background: linear-gradient(110deg, #e7c87812, #a98bff13); color: var(--gold-bright); }
.admin-list-open:hover { border-color: #e7c878aa; background: linear-gradient(110deg, #e7c87820, #a98bff20); }
.admin-modal-open { overflow: hidden; }
.admin-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 22px; }
.admin-modal.hidden { display: none !important; }
.admin-modal-backdrop { position: absolute; inset: 0; background: #05040be8; backdrop-filter: blur(9px); }
.admin-modal-panel { position: relative; width: min(760px, 100%); max-height: min(82vh, 850px); overflow: auto; padding: clamp(18px, 3vw, 30px); border: 1px solid #a98bff55; border-radius: 20px; background: linear-gradient(145deg, #171322, #0c0a12 78%); box-shadow: 0 28px 100px #0009; }
.admin-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.admin-modal-header .eyebrow { margin: 0 0 8px; }
.admin-modal-header h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.admin-modal-header .admin-help { margin: 0; max-width: 560px; }
.admin-modal-close { flex: 0 0 auto; width: 40px; height: 40px; border: 1px solid #a98bff45; border-radius: 11px; color: var(--text); background: #a98bff12; cursor: pointer; font-size: 1.1rem; }
.admin-modal-close:hover { border-color: #e7c87888; color: var(--gold-bright); }
.admin-modal-panel .admin-search-label { display: block; margin: 0 0 8px; color: #d6cfea; font-size: .78rem; font-weight: 750; }
.admin-modal-panel .admin-search { display: block; width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #a98bff55; border-radius: 11px; outline: none; color: var(--text); background: #090710; font: inherit; }
.admin-modal-panel .admin-search:focus { border-color: #e7c878aa; box-shadow: 0 0 0 3px #e7c87818; }
.admin-modal-list { margin-top: 16px; }
.admin-modal-list .admin-list-row { background: #ffffff06; }
@media (max-width: 850px) { .admin-columns > .admin-card { min-height: 0; } }
@media (max-width: 520px) {
  .admin-modal { padding: 10px; align-items: end; }
  .admin-modal-panel { max-height: 88vh; border-radius: 18px 18px 12px 12px; padding: 18px 14px; }
  .admin-modal-header { gap: 10px; }
  .admin-modal-list .admin-list-row { align-items: flex-start; }
}

/* Listado de nominados agrupado por categoría */
.admin-candidate-category-group {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}
.admin-candidate-category-group:first-child { margin-top: 0; }
.admin-candidate-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 2px;
  padding: 10px 12px;
  border-left: 3px solid var(--gold-bright, #e7c878);
  border-bottom: 1px solid #a98bff38;
  border-radius: 0 9px 9px 0;
  color: var(--gold-bright, #e7c878);
  background: linear-gradient(90deg, #e7c87812, #a98bff08 70%, transparent);
  font-size: .88rem;
  font-weight: 800;
  letter-spacing: .025em;
}
.admin-candidate-category-count {
  flex: 0 0 auto;
  color: var(--muted, #b6afc9);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: 0;
}
.admin-candidate-category-group .admin-list-row { margin-left: 7px; }
@media (max-width: 560px) {
  .admin-candidate-category-heading { align-items: flex-start; font-size: .82rem; }
  .admin-candidate-category-group .admin-list-row { margin-left: 0; }
}


/* Reproductor flotante global: visible en inicio, votación, revisión y administración. */
.music-button-floating {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 1200;
    min-height: 46px;
    padding: 0 16px;
    box-shadow: 0 8px 28px #0008;
    backdrop-filter: blur(14px);
    white-space: nowrap;
}
.music-button-floating .music-icon { font-size: 1.1rem; line-height: 1; }
.music-button-floating.active .music-icon { animation: music-pulse 1.6s ease-in-out infinite; }
@keyframes music-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
@media (max-width: 520px) {
    .music-button-floating { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 42px; padding: 0 12px; font-size: .64rem; }
}

/* Robustez de textos de botones administrativos frente a escalado y flex wrapping. */
#adminScreen button,
#authPanel .auth-actions button {
    min-width: 0;
    max-width: 100%;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
    -webkit-text-fill-color: currentColor;
    text-rendering: auto;
}
#adminScreen button:not(:disabled) { opacity: 1; }
#adminScreen .admin-tab,
#adminScreen .admin-small-button,
#adminScreen .button {
    flex-shrink: 0;
    min-height: 40px;
}
#authPanel .auth-actions { display: flex; flex-direction: column; align-items: stretch; }
#authPanel .auth-actions #openAdminButton { order: 1 !important; }
#authPanel .auth-actions #logoutButton { order: 2 !important; }


/* NSA 2026 — identidad ceremonial: estrella ecuestre, oro y amatista */
:root {
    --gold: #e9cb7d;
    --gold-bright: #fff0b5;
    --violet: #b6a0ff;
    --panel: rgba(22, 18, 34, .9);
}
body {
    background-image: radial-gradient(ellipse at 50% 18%, rgba(104, 76, 150, .12), transparent 52%),
                      linear-gradient(180deg, #0b0912 0%, #100b18 54%, #09080e 100%);
}
.background:after {
    content: "";
    position: absolute;
    inset: 8% -20% auto;
    height: min(76vw, 720px);
    border: 1px solid rgba(231, 200, 120, .08);
    border-radius: 50%;
    box-shadow: 0 0 0 28px rgba(169, 139, 255, .025),
                0 0 0 64px rgba(231, 200, 120, .018),
                inset 0 0 70px rgba(169, 139, 255, .025);
    transform: rotate(-8deg);
    animation: orbital-drift 28s ease-in-out infinite alternate;
}
.particles {
    opacity: .25;
    background-size: 97px 97px, 151px 151px;
    animation: particle-drift 48s linear infinite;
}
.event-logo {
    position: relative;
    width: 104px;
    height: 104px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 230, 160, .65);
    border-radius: 32px;
    background: linear-gradient(145deg, rgba(231, 200, 120, .15), rgba(169, 139, 255, .12) 60%, rgba(10, 8, 16, .8));
    box-shadow: 0 0 0 7px rgba(231, 200, 120, .035),
                0 18px 65px rgba(0, 0, 0, .32),
                0 0 48px rgba(169, 139, 255, .12),
                inset 0 1px rgba(255, 255, 255, .12);
    animation: crest-arrive 1.25s cubic-bezier(.2,.8,.2,1) both, crest-breathe 6s ease-in-out 1.25s infinite;
}
.event-logo:before, .event-logo:after {
    content: "";
    position: absolute;
    width: 22px;
    height: 1px;
    top: 50%;
    background: linear-gradient(90deg, transparent, var(--gold));
    opacity: .7;
}
.event-logo:before { right: calc(100% + 10px); }
.event-logo:after { left: calc(100% + 10px); transform: rotate(180deg); }
.crest-art { width: 76%; height: 76%; overflow: visible; filter: drop-shadow(0 2px 7px rgba(231, 200, 120, .2)); }
.crest-horseshoe { stroke-dasharray: 180; stroke-dashoffset: 0; }
.main-title {
    text-shadow: 0 4px 32px rgba(169, 139, 255, .12);
    animation: title-arrive .9s .12s cubic-bezier(.2,.8,.2,1) both;
}
.main-title span {
    background: linear-gradient(100deg, #c6a65d, #fff0b5 44%, #d9b763 72%, #a98bff);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 4px 20px rgba(231, 200, 120, .1));
}
.home-screen > .eyebrow, .home-screen > .year, .home-screen > .title-line,
.home-screen > .subtitle, .home-screen > .event-date, .home-screen > .button,
.home-screen > .small-note {
    animation: title-arrive .75s cubic-bezier(.2,.8,.2,1) both;
}
.home-screen > .eyebrow { animation-delay: .08s; }
.home-screen > .year { animation-delay: .2s; }
.home-screen > .title-line { animation-delay: .28s; }
.home-screen > .subtitle { animation-delay: .34s; }
.home-screen > .event-date { animation-delay: .4s; }
.home-screen > .button { animation-delay: .48s; }
.home-screen > .small-note { animation-delay: .55s; }
.title-line { gap: 16px; }
.title-line span { display: inline-block; text-shadow: 0 0 16px rgba(231, 200, 120, .5); animation: star-turn 12s linear infinite; }
.button-primary {
    position: relative;
    overflow: hidden;
    border-color: rgba(255, 240, 181, .7);
    background: linear-gradient(115deg, #f5df9f 0%, #e4c36d 48%, #c5a052 100%);
    box-shadow: 0 10px 34px rgba(231, 200, 120, .13), inset 0 1px rgba(255,255,255,.55);
}
.button-primary:after {
    content: "";
    position: absolute;
    top: -40%; bottom: -40%; left: -45%; width: 24%;
    transform: rotate(22deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
    transition: left .65s ease;
    pointer-events: none;
}
.button-primary:hover:after { left: 125%; }
.button-primary:hover { box-shadow: 0 12px 42px rgba(231, 200, 120, .24), inset 0 1px rgba(255,255,255,.6); }
.voting-screen, .review-screen, .completion-screen, .admin-screen { animation: cinematic-enter .7s cubic-bezier(.2,.75,.2,1) both; }
.category-header { animation: category-arrive .65s cubic-bezier(.2,.8,.2,1) both; }
.category-icon {
    border-color: rgba(255, 230, 160, .32);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(231,200,120,.14), rgba(169,139,255,.13));
    box-shadow: 0 12px 34px rgba(0,0,0,.16), inset 0 1px rgba(255,255,255,.06);
}
.candidate-card, .clip-card {
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.candidate-card.selected { animation: selection-arrive .35s ease-out both; }
.clip-card.selected { animation: selection-arrive .35s ease-out both; }
.mini-brand { text-shadow: 0 0 22px rgba(231,200,120,.1); }
.music-button-floating { border-color: rgba(231,200,120,.35); background: rgba(18,14,28,.86); }
.music-button-floating.active { box-shadow: 0 0 0 1px rgba(231,200,120,.12), 0 8px 30px rgba(0,0,0,.45), 0 0 24px rgba(169,139,255,.12); }
.site-footer { position: relative; }
.site-footer:before { content: ""; display: block; width: 74px; height: 1px; margin: 0 auto 15px; background: linear-gradient(90deg, transparent, rgba(231,200,120,.55), transparent); }
@keyframes admin-panel-enter { from { opacity: 0; transform: translateY(18px) scale(.985); filter: blur(3px); } 70% { opacity: 1; filter: blur(0); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes admin-panel-leave { from { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } to { opacity: 0; transform: translateY(10px) scale(.992); filter: blur(2px); } }
@keyframes crest-arrive { from { opacity: 0; transform: translateY(18px) rotate(-8deg) scale(.86); filter: blur(5px); } to { opacity: 1; transform: translateY(0) rotate(0) scale(1); filter: blur(0); } }
@keyframes crest-breathe { 0%,100% { box-shadow: 0 0 0 7px rgba(231,200,120,.035), 0 18px 65px rgba(0,0,0,.32), 0 0 40px rgba(169,139,255,.10), inset 0 1px rgba(255,255,255,.12); } 50% { box-shadow: 0 0 0 7px rgba(231,200,120,.05), 0 18px 65px rgba(0,0,0,.32), 0 0 58px rgba(169,139,255,.18), inset 0 1px rgba(255,255,255,.16); } }
@keyframes title-arrive { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes cinematic-enter { from { opacity: 0; transform: translateY(18px) scale(.992); filter: blur(2px); } to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes category-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes selection-arrive { 0% { transform: scale(.985); } 55% { transform: scale(1.012); } 100% { transform: scale(1); } }
@keyframes star-turn { to { transform: rotate(360deg); } }
@keyframes orbital-drift { from { transform: translate3d(-1%, -1%, 0) rotate(-8deg); } to { transform: translate3d(1%, 2%, 0) rotate(-4deg); } }
@keyframes particle-drift { from { background-position: 0 0, 37px 52px; } to { background-position: 0 -194px, 37px -302px; } }
@media (max-width: 600px) {
    .event-logo { width: 88px; height: 88px; border-radius: 27px; margin-bottom: 24px; }
    .event-logo:before, .event-logo:after { width: 12px; }
    .event-logo:before { right: calc(100% + 5px); }
    .event-logo:after { left: calc(100% + 5px); }
    .main-title { letter-spacing: -.045em; }
    .background:after { inset: 18% -65% auto; height: 95vw; }
}
@media (prefers-reduced-motion: reduce) {
    .background:after, .particles, .event-logo, .main-title, .title-line span,
    .home-screen > *, .voting-screen, .review-screen, .completion-screen,
    .admin-screen, .admin-screen.is-entering, .admin-screen.is-leaving, .category-header, .candidate-card.selected, .clip-card.selected {
        animation: none !important;
    }
    .button-primary:after { display: none; }
}


/* Portada editorial inspirada en una gala de premios */
.home-screen { max-width: 1120px; }
.home-intro { margin: clamp(38px, 7vw, 76px) auto 0; max-width: 900px; }
.home-intro h2, .home-section-heading h2 { color: var(--gold-light, #f4df9b); font-family: inherit; font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 8px 0 12px; }
.home-intro > p:not(.eyebrow), .home-section-heading > p:not(.eyebrow) { color: var(--muted, #c0bacd); line-height: 1.75; margin-left: auto; margin-right: auto; max-width: 720px; }
.home-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.home-feature { padding: 22px 18px; border: 1px solid rgba(231,200,120,.18); border-radius: 16px; background: linear-gradient(145deg, rgba(255,255,255,.045), rgba(145,111,203,.055)); text-align: left; display: flex; flex-direction: column; gap: 9px; }
.home-feature-icon { color: #e7c878; font-size: 1.55rem; }
.home-feature strong { color: #f8f1dc; font-size: 1rem; }
.home-feature span:last-child { color: #bdb6c9; font-size: .9rem; line-height: 1.6; }
.home-categories { margin: clamp(42px, 7vw, 78px) auto 0; padding-top: 28px; border-top: 1px solid rgba(231,200,120,.2); }
.home-section-heading { margin-bottom: 24px; }
.home-category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; text-align: left; }
.home-category-card { position: relative; overflow: hidden; min-height: 185px; padding: 22px; border-radius: 16px; border: 1px solid rgba(231,200,120,.23); background: radial-gradient(ellipse at 100% 0%, rgba(143,105,198,.16), transparent 60%), rgba(20,17,31,.84); animation: homeCardIn .5s both; animation-delay: calc(var(--card-index, 0) * 45ms); }
.home-category-card::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, #a98bcb, #e7c878, transparent); opacity: .8; }
.home-category-number { position: absolute; top: 13px; right: 17px; color: rgba(231,200,120,.5); font-size: 1.1rem; letter-spacing: .12em; }
.home-category-icon { display: block; font-size: 1.6rem; margin-bottom: 14px; }
.home-category-card h3 { margin: 0 24px 9px 0; font-size: 1.08rem; color: #f7e9bf; }
.home-category-card p { margin: 0; color: #bdb6c9; font-size: .9rem; line-height: 1.65; }
.home-category-empty { grid-column: 1 / -1; color: #bdb6c9; text-align: center; padding: 25px; }
.home-vote-cta { margin: 38px auto 12px; padding-top: 22px; border-top: 1px solid rgba(231,200,120,.14); }
.home-vote-cta .small-note { margin-bottom: 16px; }
.button-danger { background: rgba(171,64,83,.16); color: #ffd9df; border: 1px solid rgba(240,112,136,.45); }
.button-danger:hover { background: rgba(171,64,83,.28); }
.vote-test-reset { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0; padding: 18px; border: 1px solid rgba(231,200,120,.2); border-radius: 14px; background: rgba(231,200,120,.045); }
.vote-test-reset p { margin-bottom: 0; }
.vote-duplicate-flag { display: inline-block; width: fit-content; margin-top: 7px; color: #ffda9b; font-size: .78rem; border: 1px solid rgba(255,218,155,.35); border-radius: 6px; padding: 4px 7px; }
.vote-management-row { align-items: center; }
@keyframes homeCardIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 720px) { .home-feature-grid { grid-template-columns: 1fr; } .home-feature { padding: 18px; } .home-category-card { min-height: 150px; } .vote-test-reset { align-items: stretch; flex-direction: column; } .vote-test-reset .button { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .home-category-card { animation: none; } }


/* Confirmación por categoría y transiciones suaves */
.category-confirm-actions { display:flex; justify-content:center; margin:30px auto 0; animation: category-arrive .35s ease both; }
.category-confirm-button { min-width:min(360px,100%); }
.category-confirm-button:disabled { opacity:.42; cursor:not-allowed; transform:none; box-shadow:none; }
.category-content.entering { animation: category-arrive .38s cubic-bezier(.2,.8,.2,1) both; }
.category-content.category-leaving { animation: category-leave .24s ease both; pointer-events:none; }
@keyframes category-leave { to { opacity:0; transform:translateY(-8px) scale(.995); filter:blur(2px); } }
@media (prefers-reduced-motion: reduce) { .category-content.entering, .category-content.category-leaving, .category-confirm-actions { animation:none !important; } }
