:root {
    --bg: #ffffff;
    /* slate-900 */
    --card: #ffffff;
    /* gray-900 */
    --muted: #94a3b8;
    /* slate-400 */
    --text: #e5e7eb;
    /* gray-200 */
    --accent: #22d3ee;
    /* cyan-400 */
    --ring: #00fff087;
    /* sky-400 */
}

* {
    box-sizing: border-box;
    text-align: left;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

.container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 16px;
}

h1 {
    margin: 0 0 18px 0;
    font-weight: 700;
    letter-spacing: .3px;
}

.label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
}

.select2-container--default .select2-selection--single {
    background: var(--card);
    border: 1px solid #1f2937;
    height: 44px;
    border-radius: 15px;;
}

.select2-container .select2-selection__rendered {
    line-height: 42px !important;
    color: var(--text);
    border-radius: 15px !important;
}
.select2-container .select2-selection--single .select2-selection__rendered {
    padding-left: 20px;
}

.select2-container .select2-selection__arrow {
    height: 42px !important;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
    height: 36px;
    padding-right: 10px;
}
.select2-dropdown {
    background: var(--card);
    border: 1px solid #1f2937;
    color: var(--text);
}

.select2-results__option--highlighted {
    background: #0ea5e9 !important;
    color: #001018 !important;
}

.cards {
    margin-top: 50px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}
article.card {
    transition: all .2s ease-in-out;
    flex-basis: 200px;
}

article.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 2px 5px 0 #00305712;
    border-radius: 20px;
}
article.card a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    outline: none;
    background-color: #fff !important;
    border-radius: 12px !important;
    border: 1px solid #00305712;
    padding: 15px;
}


article.card a:focus {
    box-shadow: 0 0 0 3px var(--ring);
    border-radius: 12px;
}

article.card svg {
    width: 64px;
    height: 64px;
    display: block;
    opacity: .95;
}

article.card .title {
    font-weight: 700;
    letter-spacing: .2px;
}

.helper {
    margin-top: 12px;
    color: var(--muted);
    font-size: .95rem;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-rows: 1fr;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
    z-index: 60;
}

.modal--open {
    opacity: 1;
    pointer-events: auto;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .6);
    /* slate-950 alpha */
    backdrop-filter: blur(2px);
}

.modal__dialog {
    position: relative;
    margin: auto;
    width: min(1100px, 96vw);
    height: min(86vh, 1000px);
    background: var(--card);
    border: 1px solid #1f2937;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .45);
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    transform: translateY(10px);
    transition: transform .18s ease;
}

.modal--open .modal__dialog {
    transform: translateY(0);
}

.modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #003057;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.modal__title {
    margin: 0;
    padding: 14px 52px 10px 16px;
    border-bottom: 1px solid #1f2937;
    font-weight: 700;
    letter-spacing: .2px;
}

.modal__body {
    padding: 0;
}

.modal__body object,
.modal__body iframe {
    display: block;
    width: 100%;
    height: calc(86vh - 120px);
    /* título + acciones */
    background: #0b1020;
}

.modal__actions {
    display: none;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid #1f2937;
    justify-content: flex-end;
}

.btn {
    appearance: none;
    border: 1px solid #2563eb20;
    background: var(--accent);
    color: #002b33;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
}

.btn:hover {
    filter: brightness(1.05);
}

.btn--secondary {
    background: #0ea5e9;
    color: #001018;
}

/* Evita scroll del body con modal abierto */
body.noscroll {
    overflow: hidden;
}

