/* =========================================================
   RADIOS MERO MERO - PANEL ADMINISTRATIVO
   ESTILOS GLOBALES ACCESIBLES
   ========================================================= */

/*
 * Principios:
 *
 * - Alto contraste
 * - Foco visible
 * - No depender solo del color
 * - Tipografía legible
 * - Diseño adaptable
 * - Formularios accesibles
 * - Compatible con contenido dinámico
 */

:root {
    color-scheme: light dark;

    --color-brand: #8b0000;
    --color-brand-strong: #5e0000;
    --color-accent: #c79600;
    --color-success: #176b38;
    --color-warning: #8a5a00;
    --color-danger: #a40000;

    --color-bg: #f4f5f7;
    --color-surface: #ffffff;
    --color-surface-alt: #eef1f4;
    --color-text: #151515;
    --color-text-muted: #4d5560;
    --color-border: #c7ccd1;

    --color-focus: #005fcc;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 0.5rem;
    --radius-md: 0.9rem;
    --radius-lg: 1.4rem;

    --content-width: 82rem;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #111315;
        --color-surface: #1b1f23;
        --color-surface-alt: #242a30;
        --color-text: #f5f7f8;
        --color-text-muted: #c7ced4;
        --color-border: #4b535b;

        --color-brand: #ff6b6b;
        --color-brand-strong: #ff8f8f;
        --color-accent: #ffd45a;
        --color-success: #55c27d;
        --color-warning: #ffcc66;
        --color-danger: #ff7b7b;

        --color-focus: #74b9ff;
    }
}

/* =========================================================
   RESET BÁSICO
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--color-brand) 8%, var(--color-bg)),
            var(--color-bg) 20rem
        );
    color: var(--color-text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    line-height: 1.55;
}

/* =========================================================
   ACCESIBILIDAD GENERAL
   ========================================================= */

a,
button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: var(--color-brand);
    text-underline-offset: 0.18em;
    text-decoration-thickness: 0.08em;
}

a:hover {
    text-decoration-thickness: 0.14em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 0.22rem solid var(--color-focus);
    outline-offset: 0.18rem;
}

[hidden] {
    display: none !important;
}

/* Enlace para saltar contenido */
body > a[href^="#contenido-principal"] {
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    z-index: 9999;
    transform: translateY(-160%);
    padding: 0.75rem 1rem;
    background: var(--color-surface);
    color: var(--color-text);
    border: 2px solid var(--color-focus);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    font-weight: 700;
}

body > a[href^="#contenido-principal"]:focus {
    transform: translateY(0);
}

/* =========================================================
   CABECERA
   ========================================================= */

header {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 1.25rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: var(--color-brand);
    letter-spacing: -0.03em;
}

header p {
    margin: 0.35rem 0 0;
    color: var(--color-text-muted);
}

header p:nth-of-type(1) {
    font-size: 1.15rem;
    font-weight: 700;
}

header p:nth-of-type(2) {
    font-style: italic;
}

#usuario-sesion {
    margin: 1rem auto 0;
    max-width: 50rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    font-style: normal;
}

/* =========================================================
   MENSAJES DE ESTADO Y ERROR
   ========================================================= */

#mensaje-estado,
#mensaje-error {
    max-width: var(--content-width);
    margin: 0.75rem auto;
    padding: 0;
}

#mensaje-estado:not(:empty),
#mensaje-error:not(:empty) {
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid;
    box-shadow: var(--shadow-sm);
}

#mensaje-estado:not(:empty) {
    background:
        color-mix(in srgb, var(--color-success) 12%, var(--color-surface));
    border-color: var(--color-success);
    color: var(--color-text);
}

#mensaje-error:not(:empty) {
    background:
        color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
    border-color: var(--color-danger);
    color: var(--color-text);
    font-weight: 700;
}

/* =========================================================
   NAVEGACIÓN PRINCIPAL
   ========================================================= */

nav[aria-label] {
    max-width: var(--content-width);
    margin: 0 auto 1rem;
    padding: 0 1.25rem;
}

nav[aria-label] h2 {
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

nav[aria-label] ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

nav[aria-label] li {
    margin: 0;
}

nav[aria-label] button,
nav[aria-label] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    text-decoration: none;
    font-weight: 650;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

nav[aria-label] button:hover,
nav[aria-label] a:hover {
    border-color: var(--color-brand);
}

nav[aria-label] [aria-current="page"] {
    background: var(--color-brand);
    color: #ffffff;
    border-color: var(--color-brand);
}

/* =========================================================
   CONTENIDO PRINCIPAL
   ========================================================= */

main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 1.25rem 2rem;
}

main > section,
main > form,
main > article {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

main > section {
    padding: clamp(1rem, 2vw, 1.75rem);
}

main > section + section {
    margin-top: 1rem;
}

main h2,
main h3 {
    color: var(--color-text);
    line-height: 1.25;
}

main h2 {
    margin-top: 0;
    font-size: clamp(1.6rem, 3vw, 2.35rem);
}

main h3 {
    margin-top: 1.4rem;
    font-size: 1.25rem;
}

/* =========================================================
   DASHBOARD
   ========================================================= */

dl {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(12rem, 1fr));
    gap: 0.85rem;
    margin: 1rem 0;
}

dt,
dd {
    margin: 0;
}

dt {
    font-weight: 700;
    color: var(--color-text-muted);
}

dd {
    margin-top: 0.3rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-brand);
}

dl > div {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
}

/* Cuando dt y dd vienen sueltos, cada pareja conserva legibilidad */
dl dt,
dl dd {
    padding: 0.45rem 0.65rem;
}

dl dt {
    border-top:
        1px solid color-mix(
            in srgb,
            var(--color-border) 75%,
            transparent
        );
}

/* =========================================================
   LISTAS DINÁMICAS
   ========================================================= */

[id^="lista-"] {
    display: grid;
    gap: 1rem;
}

[id^="lista-"] article {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

[id^="lista-"] article h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

[id^="lista-"] article p {
    margin: 0.45rem 0;
}

[id^="lista-"] article p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.85rem;
}

/* =========================================================
   FORMULARIOS
   ========================================================= */

form {
    display: grid;
    gap: 1rem;
}

fieldset {
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
}

legend {
    padding: 0 0.45rem;
    font-weight: 800;
    color: var(--color-brand);
}

form > div,
fieldset > div {
    display: grid;
    gap: 0.45rem;
}

form > div + div,
fieldset > div + div {
    margin-top: 0.85rem;
}

label {
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.7rem 0.8rem;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

textarea {
    min-height: 8rem;
    resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--color-brand);
}

input:disabled,
select:disabled,
textarea:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    min-height: auto;
    accent-color: var(--color-brand);
    transform: scale(1.18);
}

/* Agrupar checkboxes con su etiqueta */
div:has(> input[type="checkbox"]),
div:has(> input[type="radio"]) {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.7rem;
}

/* =========================================================
   BOTONES Y ENLACES DE ACCIÓN
   ========================================================= */

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius-sm);
    background: var(--color-brand);
    color: #ffffff;
    font-weight: 750;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
    background: var(--color-brand-strong);
    border-color: var(--color-brand-strong);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

button[type="reset"] {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border);
}

button[type="reset"]:hover {
    border-color: var(--color-brand);
    background: var(--color-surface-alt);
}

main a[href$=".html"],
main a[href*=".html?"] {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-brand);
    font-weight: 700;
    text-decoration: none;
}

main a[href$=".html"]:hover,
main a[href*=".html?"]:hover {
    border-color: var(--color-brand);
    background: var(--color-surface-alt);
}

/* Acciones de formulario */
form > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

/* =========================================================
   LOGIN
   ========================================================= */

body:has(#formulario-login) main {
    max-width: 34rem;
}

body:has(#formulario-login) main > section,
body:has(#formulario-login) main {
    background: transparent;
}

#formulario-login {
    padding: 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

#formulario-login button[type="submit"] {
    width: 100%;
}

/* =========================================================
   AUDITORÍA
   ========================================================= */

#formulario-filtros {
    grid-template-columns:
        repeat(auto-fit, minmax(12rem, 1fr));
    align-items: end;
}

#formulario-filtros > div:last-child {
    grid-column: 1 / -1;
}

#contador-resultados {
    font-weight: 800;
    color: var(--color-brand);
}

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

footer {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

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

@media (max-width: 48rem) {
    header {
        text-align: left;
    }

    nav[aria-label] ul {
        display: grid;
        grid-template-columns: 1fr;
    }

    nav[aria-label] button,
    nav[aria-label] a {
        width: 100%;
        justify-content: flex-start;
        border-radius: var(--radius-sm);
    }

    main {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    main > section {
        padding: 1rem;
    }

    [id^="lista-"] article p:last-child,
    form > div:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    [id^="lista-"] article p:last-child > *,
    form > div:last-child > * {
        width: 100%;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

/* =========================================================
   ALTO CONTRASTE / FORCED COLORS
   ========================================================= */

@media (forced-colors: active) {
    button,
    input,
    select,
    textarea,
    a,
    fieldset,
    article,
    section {
        forced-color-adjust: auto;
    }
}

/* =========================================================
   LOGOTIPO RADIOS MERO MERO
   ========================================================= */

.logo-principal {
    display: block;
    width: min(100%, 220px);
    height: auto;
    margin: 0 auto 1rem;
    object-fit: contain;
}

@media (max-width: 48rem) {

    .logo-principal {
        width: min(100%, 170px);
        margin-left: 0;
        margin-right: 0;
    }
}


/* =========================================================
   DASHBOARD DE RESUMEN
   ========================================================= */

.dashboard-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );
    gap: 1rem;
    margin: 1.25rem 0;
}

.dashboard-card {
    padding: 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

.dashboard-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: var(--color-text-muted);
}

.dashboard-number {
    margin: 0;
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-brand);
}


/* =========================================================
   LISTAS DINÁMICAS DEL PANEL
   ========================================================= */

[id^="lista-"] {
    display: grid;
    gap: 1rem;
}

[id^="lista-"] article {
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface-alt);
    box-shadow: var(--shadow-sm);
}

[id^="lista-"] article h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 800;
}

[id^="lista-"] article p {
    margin: 0.4rem 0;
    color: var(--color-text-muted);
}

[id^="lista-"] article p:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}

[id^="lista-"] article a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0.65rem 0.9rem;
    border: 2px solid var(--color-brand);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-brand);
    font-weight: 750;
    text-decoration: none;
}

[id^="lista-"] article a:hover {
    background: var(--color-surface-alt);
}

[id^="lista-"] article button {
    min-height: 2.7rem;
    padding: 0.65rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 750;
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #ffffff;
}


/* =========================================================
   FORMULARIOS - AJUSTES FINALES
   ========================================================= */

form {
    width: 100%;
}

form fieldset + fieldset {
    margin-top: 0.5rem;
}

form small,
form .ayuda,
form [id*="ayuda"] {
    color: var(--color-text-muted);
}

form button,
form a {
    touch-action: manipulation;
}

input[type="url"],
input[type="email"],
input[type="text"],
input[type="password"],
input[type="number"],
select,
textarea {
    max-width: 100%;
}


/* =========================================================
   ACCESIBILIDAD DE ESTADOS
   ========================================================= */

[role="status"]:not(:empty),
[role="alert"]:not(:empty) {
    scroll-margin-top: 1rem;
}

[aria-current="page"] {
    font-weight: 800;
}


/* =========================================================
   RESPONSIVE EXTRA
   ========================================================= */

@media (max-width: 48rem) {

    [id^="lista-"] article p:last-child {
        flex-direction: column;
        align-items: stretch;
    }

    [id^="lista-"] article p:last-child a,
    [id^="lista-"] article p:last-child button {
        width: 100%;
    }

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

/* =========================================================
   RADIOS MERO MERO - REDISEÑO MODERNO ACCESIBLE 2026
   Capa visual: no modifica lógica, endpoints ni formularios.
   ========================================================= */

:root {
    --color-brand: #8f1020;
    --color-brand-strong: #650813;
    --color-accent: #9a6a00;
    --color-bg: #f3f5f8;
    --color-surface: #ffffff;
    --color-surface-alt: #f7f8fa;
    --color-text: #17191d;
    --color-text-muted: #4b5563;
    --color-border: #c8cdd5;
    --color-focus: #005fcc;
    --shadow-sm: 0 2px 10px rgba(18, 24, 40, 0.07);
    --shadow-md: 0 12px 34px rgba(18, 24, 40, 0.11);
    --radius-sm: 0.65rem;
    --radius-md: 1rem;
    --radius-lg: 1.35rem;
    --content-width: 88rem;
}

body {
    background:
        radial-gradient(circle at top left,
            color-mix(in srgb, var(--color-brand) 9%, transparent),
            transparent 30rem),
        linear-gradient(180deg, #eef1f5 0, var(--color-bg) 24rem);
}

header {
    padding-top: 1.4rem;
    padding-bottom: 1rem;
}

.logo-principal {
    width: min(100%, 150px);
    filter: drop-shadow(0 8px 18px rgba(0,0,0,.12));
}

header h1 {
    font-size: clamp(2rem, 4vw, 3.15rem);
    font-weight: 850;
}

#usuario-sesion {
    max-width: 42rem;
    border: 1px solid var(--color-border);
    box-shadow: none;
}

nav[aria-label] {
    position: sticky;
    top: 0;
    z-index: 100;
    padding-top: .75rem;
    padding-bottom: .75rem;
    background: color-mix(in srgb, var(--color-bg) 94%, transparent);
    border-top: 1px solid color-mix(in srgb, var(--color-border) 65%, transparent);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

nav[aria-label] h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

nav[aria-label] ul {
    justify-content: center;
}

nav[aria-label] button,
nav[aria-label] a {
    min-height: 3rem;
    padding: .7rem 1rem;
    border: 2px solid transparent;
    background: transparent;
    box-shadow: none;
    font-weight: 750;
}

nav[aria-label] button:hover,
nav[aria-label] a:hover {
    background: var(--color-surface);
    border-color: var(--color-border);
}

nav[aria-label] [aria-current="page"] {
    background: var(--color-brand);
    border-color: var(--color-brand);
    color: #fff;
    box-shadow: 0 5px 14px color-mix(in srgb, var(--color-brand) 25%, transparent);
}

#mensaje-estado,
#mensaje-error {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

main {
    padding-top: 1.25rem;
    padding-bottom: 3rem;
}

main > section,
main > form,
main > article {
    border-color: color-mix(in srgb, var(--color-border) 80%, transparent);
}

main > section {
    padding: clamp(1.2rem, 2.5vw, 2rem);
}

main h2 {
    letter-spacing: -.025em;
}

.dashboard-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.1rem;
}

.dashboard-card {
    position: relative;
    overflow: hidden;
    padding: 1.25rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.dashboard-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .32rem;
    background: var(--color-brand);
}

.dashboard-number {
    font-size: clamp(2rem, 4vw, 2.7rem);
    line-height: 1.05;
}

[id^="lista-"] {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

[id^="lista-"] article {
    background: var(--color-surface);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

[id^="lista-"] article:hover {
    border-color: color-mix(in srgb, var(--color-brand) 50%, var(--color-border));
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

fieldset {
    padding: clamp(1rem, 2vw, 1.35rem);
    background: var(--color-surface-alt);
}

input,
select,
textarea {
    min-height: 3rem;
    border-width: 2px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-focus);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
    min-height: 3rem;
    border-radius: .7rem;
}

main a[href$=".html"],
main a[href*=".html?"] {
    min-height: 3rem;
    border-width: 2px;
}

#formulario-login {
    padding: clamp(1.25rem, 4vw, 2rem);
}

footer {
    border-top: 1px solid var(--color-border);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f1216;
        --color-surface: #181c21;
        --color-surface-alt: #20262c;
        --color-text: #f6f7f9;
        --color-text-muted: #c5ccd5;
        --color-border: #4c5661;
        --color-brand: #ff6f7d;
        --color-brand-strong: #ff93a0;
        --color-accent: #ffd36a;
        --color-focus: #83bdff;
    }

    body {
        background:
            radial-gradient(circle at top left,
                color-mix(in srgb, var(--color-brand) 10%, transparent),
                transparent 30rem),
            var(--color-bg);
    }

    nav[aria-label] {
        background: color-mix(in srgb, var(--color-bg) 94%, transparent);
    }

    nav[aria-label] [aria-current="page"] {
        color: #111;
    }
}

@media (max-width: 48rem) {
    header {
        text-align: center;
    }

    .logo-principal {
        margin-left: auto;
        margin-right: auto;
    }

    nav[aria-label] {
        position: static;
    }

    nav[aria-label] ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    nav[aria-label] button,
    nav[aria-label] a {
        justify-content: center;
        text-align: center;
    }

    [id^="lista-"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 30rem) {
    nav[aria-label] ul {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    [id^="lista-"] article {
        transition: none;
    }

    [id^="lista-"] article:hover {
        transform: none;
    }
}

/* =========================================================
   DIÁLOGOS ACCESIBLES DEL PANEL
   ========================================================= */

.dialogo-confirmacion {
    width: min(92vw, 34rem);
    max-height: min(85vh, 36rem);
    padding: 0;
    color: var(--color-text);
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.dialogo-confirmacion::backdrop {
    background: rgba(8, 12, 18, .68);
    backdrop-filter: blur(3px);
}

.dialogo-confirmacion-contenido {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: clamp(1.25rem, 4vw, 2rem);
}

.dialogo-confirmacion h2 {
    margin: 0;
    color: var(--color-brand-strong);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.dialogo-confirmacion p {
    margin: 0;
    line-height: 1.65;
}

.dialogo-confirmacion-acciones {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .75rem;
    margin-top: .5rem;
}

.dialogo-confirmacion-acciones button {
    min-width: 9rem;
}

.boton-peligro {
    background: #b42318;
    border-color: #b42318;
    color: #fff;
}

.boton-peligro:hover {
    background: #8f1b13;
    border-color: #8f1b13;
}

@media (prefers-color-scheme: dark) {
    .dialogo-confirmacion h2 {
        color: var(--color-brand);
    }

    .boton-peligro {
        background: #ff7b70;
        border-color: #ff7b70;
        color: #161616;
    }

    .boton-peligro:hover {
        background: #ff9a91;
        border-color: #ff9a91;
    }
}

@media (max-width: 30rem) {
    .dialogo-confirmacion-acciones {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dialogo-confirmacion-acciones button {
        width: 100%;
    }
}
