/* =========================================
   0. DESIGN TOKENS — Sistema de colores
   ========================================= */
:root {
    --bg-void:        #080b12;
    --bg-base:        #0d1117;
    --bg-surface:     #111827;
    --bg-elevated:    #1a2236;
    --bg-hover:       #1f2d47;
    --bg-input:       #090d15;

    --border-subtle:  rgba(99, 120, 255, 0.08);
    --border-soft:    rgba(99, 120, 255, 0.18);
    --border-glow:    rgba(99, 120, 255, 0.45);

    --accent:         #6366f1;
    --accent-bright:  #818cf8;
    --accent-dim:     #4338ca;
    --accent-glow:    rgba(99, 102, 241, 0.25);

    --cyan:           #22d3ee;
    --cyan-dim:       #0891b2;
    --cyan-glow:      rgba(34, 211, 238, 0.18);

    --text-primary:   #e2e8f8;
    --text-secondary: #8892b0;
    --text-muted:     #4a5280;

    --success:        #10d9a0;
    --success-bg:     rgba(16, 217, 160, 0.10);
    --success-border: rgba(16, 217, 160, 0.35);

    --error:          #f43f6e;
    --error-bg:       rgba(244, 63, 110, 0.10);
    --error-border:   rgba(244, 63, 110, 0.30);

    --warning:        #fbbf24;
    --warning-bg:     rgba(251, 191, 36, 0.10);

    --grad-accent:    linear-gradient(135deg, #6366f1 0%, #4338ca 100%);
    --grad-gaming:    linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --grad-surface:   linear-gradient(160deg, #111827 0%, #0d1117 100%);

    --shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md:      0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg:      0 8px 40px rgba(0, 0, 0, 0.6);
    --shadow-accent:  0 4px 20px rgba(99, 102, 241, 0.35);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

/* =========================================
   1. RESET BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb {
    background: var(--accent-dim);
    border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================
   2. COMPONENTES GENERALES COMPARTIDOS
   ========================================= */

/* --- Input Group --- */
.input-group {
    text-align: left;
    margin-bottom: 1.2rem;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

/* Input de texto normal (NO date, NO select — esos son custom) */
.input-group input:not([type="date"]) {
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.97rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.input-group input:not([type="date"]):focus {
    border-color: var(--accent);
    background-color: #0c1020;
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.input-group input::placeholder {
    color: var(--text-muted);
}

/* Oculta los nativos que reemplazamos con custom */
.input-group input[type="date"],
.input-group select {
    display: none;
}

/* --- Botón primario --- */
.btn-primary {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--grad-accent);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.4px;
    margin-top: 1rem;
    box-shadow: var(--shadow-accent);
    transition: transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.btn-primary:hover::after { opacity: 1; }
.btn-primary:hover {
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: scale(0.98) translateY(0);
    box-shadow: var(--shadow-accent);
}

/* --- Mensajes de feedback --- */
.error-hidden {
    display: none;
}

.error-visible {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 8px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
}

.error-visible::before {
    content: "⚠";
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* --- Badges --- */
.badge {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border: 1px solid var(--border-glow);
    padding: 3px 9px;
    border-radius: 99px;
    font-size: 0.72rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    vertical-align: middle;
    margin-left: 10px;
}

.badge-admin {
    background: var(--warning-bg);
    color: var(--warning);
    border-color: rgba(251, 191, 36, 0.3);
}

/* =========================================
   3. LOGIN — Scoped bajo .login-container
   ========================================= */

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-void);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.07) 0%, transparent 45%),
        radial-gradient(ellipse at 60% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 40%);
}

.login-box {
    background: var(--grad-surface);
    border: 1px solid var(--border-soft);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow:
        var(--shadow-lg),
        0 0 0 1px var(--border-subtle),
        inset 0 1px 0 rgba(255,255,255,0.04);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: loginFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.login-box::before {
    content: "🎮";
    display: block;
    font-size: 2.4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 12px rgba(99, 102, 241, 0.6));
}

.login-box h2 {
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.4px;
}

.login-box > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.login-box .btn-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--grad-gaming);
    color: white;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.2rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: transform 0.15s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.login-box .btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.login-box .btn-login:hover::after { opacity: 1; }
.login-box .btn-login:hover {
    box-shadow: 0 6px 30px rgba(34, 211, 238, 0.35);
    transform: translateY(-1px);
}

.login-box .btn-login:active { transform: scale(0.98); }

/* =========================================
   4. DASHBOARD — Layout y sidebar
   ========================================= */

.dashboard-layout {
    display: flex;
    height: 100vh;
}

/* --- Sidebar --- */
.sidebar {
    width: 250px;
    background: var(--grad-surface);
    border-right: 1px solid var(--border-subtle);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.sidebar-header {
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--grad-gaming);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-menu { list-style: none; }

.sidebar-menu li { margin-bottom: 4px; }

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.sidebar-menu a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.sidebar-menu a.active {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border-color: var(--border-glow);
    font-weight: 700;
}

.btn-logout {
    background: var(--error-bg);
    color: var(--error);
    border: 1px solid var(--error-border);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.2s, box-shadow 0.2s;
}

.btn-logout:hover {
    background: var(--error);
    color: white;
    box-shadow: 0 4px 16px rgba(244, 63, 110, 0.35);
}

/* --- Contenido principal --- */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background-color: var(--bg-base);
    background-image: radial-gradient(
        ellipse at 70% 10%,
        rgba(99, 102, 241, 0.05) 0%,
        transparent 50%
    );
}

.header-top { margin-bottom: 32px; }

.header-top h1 {
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.header-top p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 4px;
}

/* --- Cards — declaración única y completa --- */
.card {
    position: relative;
    /* overflow: hidden  ← ESTA es la causa, la eliminamos */
    background-color: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
    border-color: var(--border-soft);
    box-shadow: var(--shadow-md), 0 0 0 1px var(--border-subtle);
}


/* Línea acento lateral — usa clip-path para no depender de overflow:hidden */
.card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
    background: var(--grad-gaming);
    clip-path: inset(20% 0 20% 0 round 2px);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before { opacity: 1; }

.card h3 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* =========================================
   6. HISTORIAL — Tabla Gaming Moderna
   ========================================= */

/* Contador de registros (Cabecera de la tabla) */
.table-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.table-meta__count {
    font-size: 1.1rem; /* Letra más grande y legible */
    color: #b5bac1;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.table-meta__count span {
    color: #f2f3f5;
    font-weight: 700;
}

/* Estructura principal de la tabla */
.discord-table {
    width: 100%;
    border-collapse: separate; 
    border-spacing: 0 8px; /* Separación vertical más notoria entre filas */
    margin-top: 10px;
}

/* Cabeceras de las columnas */
.discord-table thead th {
    background-color: #111214;
    color: #b5bac1;
    text-transform: uppercase;
    font-size: 0.95rem;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 14px 20px;
    border-bottom: none;
    text-align: center; /* <-- Aseguramos que el encabezado esté centrado */
}

.discord-table thead th:first-child { border-radius: 8px 0 0 8px; }
.discord-table thead th:last-child  { border-radius: 0 8px 8px 0; }

/* Filas del cuerpo (Efecto de tarjetas flotantes) */
.discord-table tbody tr {
    background-color: #1e1f22;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* Efecto Hover Gaming: Se desplaza a la derecha e ilumina el borde izquierdo */
.discord-table tbody tr:hover {
    background-color: #2b2d31;
    transform: translateX(6px);
    box-shadow: -4px 0 0 #5865F2, 0 6px 15px rgba(0,0,0,0.3);
}

.discord-table tbody td {
    padding: 16px 20px;
    border-bottom: none; 
    color: #dbdee1;
    font-size: 1.1rem;
    vertical-align: middle;
    text-align: center; /* <-- Esto centrará todos los datos de las filas */
}

.discord-table tbody td:first-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    border-left: none; /* Quitamos el borde izquierdo para que el centro sea real */
    padding-left: 20px; /* Igualamos el padding */
    transition: color 0.2s;
}
.discord-table tbody td:last-child  { border-radius: 0 8px 8px 0; }

/* Columna de la Fecha (La hacemos resaltar más) */
.discord-table tbody td:first-child {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.15rem;
    border-left: 3px solid #404249; /* Línea indicadora apagada */
    padding-left: 18px;
    transition: border-color 0.2s;
}

.discord-table tbody tr:hover td:first-child {
    color: #5865F2; 
}
/* Estados vacíos y errores */
.table-empty, .table-error {
    text-align: center;
    padding: 50px 20px !important;
    font-size: 1.1rem;
    font-weight: 500;
}
.table-empty { color: #b5bac1 !important; }
.table-error { color: #fa777c !important; }

/* Animación de entrada en cascada */
@keyframes rowFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.discord-table tbody tr {
    animation: rowFadeIn 0.35s ease forwards;
}

/* =========================================
   Badges (Etiquetas Sí/No) con efecto Glow Neon
   ========================================= */
.status-badge {
    display: inline-flex;
    justify-content: center; /* Centra el contenido interno del badge */
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 800;
    min-width: 80px; /* Les damos un ancho mínimo para que se vean uniformes */
}
/* Verde Neón para "Sí" */
.status-yes { 
    background-color: rgba(87, 242, 135, 0.1); 
    color: #57F287; 
    border: 1px solid #57F287; 
    box-shadow: 0 0 8px rgba(87, 242, 135, 0.25); /* Efecto de brillo */
}
.status-yes::before { content: '●'; font-size: 0.7rem; text-shadow: 0 0 5px #57F287; }

/* Rojo Neón para "No" */
.status-no { 
    background-color: rgba(237, 66, 69, 0.1); 
    color: #ed4245; 
    border: 1px solid #ed4245; 
    box-shadow: 0 0 8px rgba(237, 66, 69, 0.25); /* Efecto de brillo */
}
.status-no::before  { content: '●'; font-size: 0.7rem; text-shadow: 0 0 5px #ed4245; }

/* =========================================
   6. CUSTOM SELECT DROPDOWN
   ========================================= */

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.97rem;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-select__trigger:hover       { border-color: var(--border-soft); }
.custom-select__trigger.placeholder { color: var(--text-muted); }

.custom-select__trigger.open {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-select__arrow {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.2s, color 0.2s;
}

.custom-select__trigger.open .custom-select__arrow {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle);
    z-index: 999;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-select__dropdown.open { display: block; }

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.custom-select__option {
    padding: 11px 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    transition: background 0.15s, color 0.15s;
}

.custom-select__option:last-child  { border-bottom: none; }
.custom-select__option:hover       { background: var(--bg-hover); color: var(--text-primary); }

.custom-select__option.selected {
    background: var(--accent-glow);
    color: var(--accent-bright);
    font-weight: 700;
}

.custom-select__option.disabled {
    color: var(--text-muted);
    cursor: default;
    pointer-events: none;
    font-style: italic;
    font-size: 0.88rem;
}

/* =========================================
   7. CUSTOM DATE PICKER
   ========================================= */

.custom-date__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-input);
    color: var(--text-primary);
    font-size: 0.97rem;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.custom-date__trigger:hover       { border-color: var(--border-soft); }
.custom-date__trigger.placeholder { color: var(--text-muted); }

.custom-date__trigger.open {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.custom-date__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.custom-date__trigger.open .custom-date__icon { color: var(--accent); }

.custom-date__dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 300px;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-subtle);
    z-index: 999;
    overflow: hidden;
    animation: dropdownFadeIn 0.15s cubic-bezier(0.22, 1, 0.36, 1);
}

.custom-date__dropdown.open { display: block; }

.custom-date__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
}

.custom-date__nav {
    background: none;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.custom-date__nav:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-soft);
}

.custom-date__month-label {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.custom-date__grid { padding: 12px 14px 14px; }

.custom-date__weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 6px;
}

.custom-date__weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    padding: 4px 0;
}

.custom-date__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.custom-date__day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    cursor: pointer;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: background 0.15s, color 0.15s;
}

.custom-date__day:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.custom-date__day.today {
    color: var(--accent-bright);
    border-color: var(--border-glow);
    font-weight: 700;
}

.custom-date__day.selected {
    background: var(--accent);
    color: white;
    font-weight: 700;
    border-color: transparent;
    box-shadow: 0 2px 8px var(--accent-glow);
}

.custom-date__day.selected:hover { background: var(--accent-dim); }

.custom-date__day.other-month {
    color: var(--text-muted);
    opacity: 0.4;
}

.custom-date__day.disabled {
    color: var(--text-muted);
    opacity: 0.25;
    cursor: not-allowed;
    pointer-events: none;
}

.custom-date__footer {
    padding: 10px 14px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
}

.custom-date__today-btn {
    background: var(--accent-glow);
    color: var(--accent-bright);
    border: 1px solid var(--border-glow);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: background 0.15s, box-shadow 0.15s;
}

.custom-date__today-btn:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 10px var(--accent-glow);
}

/* =========================================
   MODAL DE EDICIÓN Y BOTONES DE ACCIÓN
   ========================================= */
.action-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; margin: 0 5px; opacity: 0.7; transition: all 0.2s; }
.action-btn:hover { opacity: 1; transform: scale(1.1); }
.btn-edit { color: #fee75c; } /* Amarillo Discord */
.btn-delete { color: #ed4245; } /* Rojo Discord */

.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center; align-items: center;
    backdrop-filter: blur(3px);
}
.modal-content {
    background: #313338;
    padding: 25px;
    border-radius: 8px;
    width: 90%; max-width: 500px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    animation: rowFadeIn 0.3s ease forwards;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #404249; padding-bottom: 10px; }
.modal-header h3 { margin: 0; color: #f2f3f5; }
.close-modal { cursor: pointer; color: #b5bac1; font-size: 1.5rem; font-weight: bold; }
.close-modal:hover { color: #fa777c; }