:root {
    /* Paleta principal (dark theme) */
    --bg-main: #0f172a;         /* azul muy oscuro / gris azulado */
    --bg-elevated: #111827;     /* cajas y tarjetas */
    --bg-elevated-soft: #1f2933;

    --border-subtle: #1f2937;

    --text-main: #e5e7eb;       /* gris muy claro */
    --text-muted: #9ca3af;      /* gris medio */
    --text-strong: #f9fafb;     /* casi blanco */

    /* Acentos */
    --accent-blue: #3b82f6;
    --accent-blue-dark: #1d4ed8;

    --accent-orange: #f97316;
    --accent-orange-dark: #ea580c;

    --accent-red: #ef4444;
    --accent-red-dark: #b91c1c;

    --accent-green: #22c55e;
    --accent-green-dark: #16a34a;

    /* Otros */
    --radius-md: 10px;
    --radius-lg: 12px;

    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.45);
    --shadow-card: 0 12px 34px rgba(0, 0, 0, 0.35);

    --transition-fast: 0.18s ease-out;
    --transition-normal: 0.25s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2937 0, #020617 48%, #000 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* Links genéricos */
a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-orange);
}

/* Scrollbar (solo navegadores que lo soportan) */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1f2937;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b4252;
}

/* ========================
   1. Layout AUTH (Login / Registro)
   ======================== */

.auth-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.18), transparent 55%),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.16), transparent 50%),
        #020617;
}

.auth-container {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.92));
    border-radius: 18px;
    width: 100%;
    max-width: 430px;
    padding: 2.2rem 2.3rem 2.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(148, 163, 184, 0.15);
    backdrop-filter: blur(18px);
    position: relative;
    overflow: hidden;
}

/* Pequeños detalles decorativos */
.auth-container::before,
.auth-container::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(34px);
    opacity: 0.12;
    z-index: 0;
}
.auth-container::before {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, var(--accent-blue), transparent 60%);
    top: -50px;
    right: -70px;
}
.auth-container::after {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-orange), transparent 60%);
    bottom: -80px;
    left: -80px;
}

.auth-title,
.auth-subtitle,
.auth-form {
    position: relative;
    z-index: 1;
}

.auth-title {
    text-align: center;
    margin: 0 0 0.3rem;
    letter-spacing: 0.14em;
    font-size: 0.88rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.auth-subtitle {
    text-align: center;
    margin: 0 0 1.8rem;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-strong);
}

/* Form */
.auth-form .form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    width: 100%;
    padding: 0.68rem 0.8rem;
    border-radius: 9px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    background: #0b1120; /* Fondo sólido oscuro para mejor compatibilidad */
    color: var(--text-main);
    font-size: 0.94rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast), transform 0.09s ease-out;
}

/* ✅ Mejora específica para los SELECT y sus opciones */
select option {
    background-color: #0b1120; /* Fondo oscuro para las opciones */
    color: #ffffff;            /* Texto blanco */
    padding: 10px;
}

input::placeholder {
    color: #6b7280;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(59, 130, 246, 0.85);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.4);
    background: #0b1120;
    transform: translateY(-1px);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    transition: background-color var(--transition-fast), box-shadow var(--transition-fast), transform 0.1s ease-out, opacity 0.15s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    color: #f9fafb;
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 16px 38px rgba(59, 130, 246, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 7px 20px rgba(15, 23, 42, 0.85);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn-ghost:hover {
    border-color: rgba(249, 115, 22, 0.8);
    color: var(--accent-orange);
}

/* Alerts */
.alert {
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid transparent;
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fecaca;
}

.alert-success {
    background: rgba(22, 163, 74, 0.09);
    border-color: rgba(22, 163, 74, 0.6);
    color: #bbf7d0;
}

.alert::before {
    content: "●";
    font-size: 0.8rem;
}

/* Links del Auth */
.auth-link {
    text-align: center;
    margin-top: 1.4rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ========================
   2. Layout principal (dashboard)
   ======================== */

body.app {
    display: flex;
    min-height: 100vh;
    background: radial-gradient(ellipse at top, #111827 0, #020617 45%, #000 100%);
}

.sidebar {
    width: 240px;
    min-height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    border-right: 1px solid rgba(15, 23, 42, 0.95);
    padding: 1.1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.65);
}

.sidebar-logo {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-strong);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo span.badge {
    font-size: 0.65rem;    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.18);
    color: #bfdbfe;
    border: 1px solid rgba(59, 130, 246, 0.45);
}

.nav-section-title {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #6b7280;
    margin-bottom: 0.35rem;
    padding: 0 0.35rem;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #9ca3af;
    transition: background-color var(--transition-fast), color var(--transition-fast), transform 0.08s ease-out;
}

.nav-item a span.dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4b5563;
}

.nav-item a:hover {
    background: rgba(31, 41, 55, 0.95);
    color: var(--text-strong);
    transform: translateX(2px);
}

.nav-item a.active {
    background: linear-gradient(120deg, rgba(59, 130, 246, 0.3), rgba(249, 115, 22, 0.22));
    color: #f9fafb;
}
.nav-item a.active span.dot {
    background: #f97316;
}

/* Info usuario abajo */
.sidebar-footer {
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px dashed rgba(55, 65, 81, 0.7);
    font-size: 0.82rem;
    color: #9ca3af;
}

/* Contenedor del contenido principal (con top bar) */
.main-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Bar (encima del main-container, NO ocupa espacio extra raro) */
.top-bar {
    height: 60px;
    min-height: 60px;
    background: #0b1120;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.7rem;
    border-bottom: 1px solid #1f2937;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Campanita */
.notification-bell-wrapper {
    position: relative;
}

.bell-link {
    color: #9ca3af;
    display: flex;
    align-items: center;
    transition: color var(--transition-fast), background-color var(--transition-fast);
    padding: 6px;
    border-radius: 999px;
}

.bell-link:hover {
    color: #f9fafb;
    background: rgba(148, 163, 184, 0.1);
}

.bell-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 999px;
    min-width: 16px;
    text-align: center;
    border: 2px solid #0b1120;
}

.user-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.user-info span {
    font-weight: 600;
    font-size: 0.9em;
    color: var(--text-main);
}

.user-info small {
    color: var(--text-muted);
    font-size: 0.75em;
}

/* Contenido principal */
.main-container {
    flex: 1;
    width: 100%;
    max-width: none;
    padding: 1.5rem 1.7rem;
}

.main-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.6rem;
    margin-bottom: 1.6rem;
}

.main-header h1 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-strong);
}

.main-header small {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* Widgets del dashboard */
.dashboard-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    background: radial-gradient(circle at top left, #111827, #020617);
    padding: 1rem 1.1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(30, 64, 175, 0.4);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 55%);
    opacity: 0.65;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.widget h2 {
    margin: 0;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.widget-number {
    font-size: 2rem;
    font-weight: 700;
    margin: 0.35rem 0 0;
    color: #e5e7eb;
}

/* Cards de accesos rápidos */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1rem;
}

.link-card {
    text-decoration: none;
    color: inherit;
    padding: 0.85rem 0.95rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(31, 41, 55, 0.8);
    background: radial-gradient(circle at top left, #020617, #020617);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.8);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast), background 0.25s ease-out;
}

.link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 42px rgba(15, 23, 42, 1);
    border-color: rgba(59, 130, 246, 0.7);
    background: radial-gradient(circle at top left, rgba(59, 130, 246, 0.2), #020617);
}

/* Tablas (para módulos tipos grillas) */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(31, 41, 55, 0.8);
    background: rgba(15, 23, 42, 0.95);
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: 0.88rem;
}

th,
td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

th {
    text-align: left;
    font-weight: 600;
    color: #d1d5db;
    background: rgba(15, 23, 42, 0.9);
}

tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.75);
}

tr:hover td {
    background: rgba(31, 41, 55, 0.85);
}

/* Badges de estado */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.badge-success {
    background: rgba(34, 197, 94, 0.16);
    color: #bbf7d0;
}

.badge-warning {
    background: rgba(249, 115, 22, 0.16);
    color: #fed7aa;
}

.badge-danger {
    background: rgba(239, 68, 68, 0.16);
    color: #fecaca;
}

.badge-info {
    background: rgba(59, 130, 246, 0.16);
    color: #bfdbfe;
}

/* Estilos para formularios de módulos */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.8rem;
}

.filters-row {
    display: grid;
    grid-template-columns: minmax(0, 2fr) auto;
    gap: 1rem;
    align-items: flex-end;
}

.pagination {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.page {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.page.current {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-orange));
    color: #fff;
    border-color: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.input-capitalize {
    text-transform: capitalize;
}

/* ========================
   3. Footer
   ======================== */

.app-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--border-subtle);
    padding: 1.2rem 1.7rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.2rem;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link:hover {
    color: var(--accent-blue);
}

.whatsapp-icon {
    width: 18px;
    height: 18px;
    filter: invert(60%) sepia(10%) saturate(200%) hue-rotate(180deg) brightness(95%) contrast(80%);
}

.whatsapp-link:hover .whatsapp-icon {
    filter: invert(40%) sepia(90%) saturate(1500%) hue-rotate(190deg) brightness(100%) contrast(100%);
}

/* ========================
   4. Responsive Mobile (Hamburguesa)
   ======================== */

/* Botón hamburguesa */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    padding: 0.8rem;
    cursor: pointer;
    z-index: 1001;
    position: fixed;
    top: 1rem;
    left: 1rem;
}

/* Icono hamburguesa */
.hamburger-icon {
    display: block;
    width: 24px;
    height: 20px;
    position: relative;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text-strong);
    border-radius: 1px;
    transition: all var(--transition-fast);
    position: absolute;
    left: 0;
}

.hamburger-icon span:nth-child(1) { top: 0; }
.hamburger-icon span:nth-child(2) { top: 9px; }
.hamburger-icon span:nth-child(3) { top: 18px; }

/* Animación X cuando está abierto */
.sidebar-open .hamburger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}
.sidebar-open .hamburger-icon span:nth-child(2) {
    opacity: 0;
}
.sidebar-open .hamburger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* Overlay cuando sidebar está abierto */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: none;
}

/* Sidebar en mobile */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .sidebar-overlay {
        display: block;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
    }

    body.sidebar-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-open .sidebar-overlay {
        opacity: 1;
        visibility: visible;
    }

    /* Contenido principal se ajusta */
    .main-content-wrapper {
        margin-left: 0 !important;
        padding-top: 4rem;
    }

    /* Evita que la nav se ponga en horizontal */
    .main-nav,
    .nav-list {
        display: flex;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        align-items: stretch;
        width: 100%;
    }

    .nav-list {
        gap: 0.35rem;
    }

    .nav-item {
        width: 100%;
    }

    .nav-item a {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        white-space: nowrap;
    }

    /* Subimos el contenido */
    .main-content-wrapper {
        padding-top: 1.25rem !important;
    }

    /* Para que el botón hamburguesa no tape */
    .main-container {
        padding-top: 3.2rem;
    }

    /* Botón hamburguesa encima de todo */
    .hamburger-btn {
        z-index: 2002;
    }

    .sidebar-overlay {
        z-index: 2000;
    }

    .sidebar {
        z-index: 2001;
    }
}

/* Desktop: sidebar fija */
@media (min-width: 769px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 100;
        overflow-y: auto;
    }

    .main-content-wrapper {
        margin-left: 280px;
        min-height: 100vh;
    }

    .app-footer {
        padding: 1.2rem 2rem;
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================
   5. Estilos para Detalle de Partido (show.php)
   ======================== */

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-top: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
}

.detail-value {
    font-size: 0.95rem;
    color: #e5e7eb;
}

.detail-observaciones {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-observaciones p {
    margin-top: 0.4rem;
    color: #d1d5db;
    white-space: pre-wrap;
}

.detail-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: flex-end;
}

/* ========================
   6. Notificaciones
   ======================== */

.notificaciones-lista {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notificacion-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(31, 41, 55, 0.8);
    background: rgba(15, 23, 42, 0.5);
    transition: background 0.2s, border-color 0.2s;
}

.notificacion-item.no-leida {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.4);
}

.notificacion-item:hover {
    background: rgba(31, 41, 55, 0.7);
}

.notif-content {
    flex: 1;
}

.notif-titulo {
    margin: 0 0 0.3rem;
    font-size: 1rem;
    color: var(--text-strong);
}

.notif-mensaje {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-main);
}

.notif-fecha {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.notif-acciones {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* ========================
   7. CORRECCIÓN PARA TABLAS EN MÓVILES (POSICIONES, GOLEADORES, FAIR PLAY)
   ======================== */

/* Contenedor de secciones de estadísticas */
.incidencias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Cada sección (Goleadores, Fair Play, etc.) */
.equipo-section {
    background: rgba(15, 23, 42, 0.6);
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(31, 41, 55, 0.8);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.equipo-section h3 {
    margin: 0 0 1rem 0;
    color: var(--text-strong);
    font-size: 1.1rem;
}

/* Tablas dentro de equipo-section */
.equipo-section table {
    width: 100%;
    min-width: 450px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.equipo-section table th,
.equipo-section table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.equipo-section table th {
    background: rgba(15, 23, 42, 0.9);
    color: #d1d5db;
    font-weight: 600;
}

.equipo-section table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.75);
}

.equipo-section table tr:hover td {
    background: rgba(31, 41, 55, 0.85);
}

/* Clase para textos sutiles */
.subtle {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Clase para ocultar visualmente pero mantener accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Clase para tablas específicas (como la de posiciones) */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.table th,
.table td {
    padding: 0.65rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(31, 41, 55, 0.9);
}

.table th {
    background: rgba(15, 23, 42, 0.9);
    color: #d1d5db;
    font-weight: 600;
}

.table tr:nth-child(even) td {
    background: rgba(15, 23, 42, 0.75);
}

.table tr:hover td {
    background: rgba(31, 41, 55, 0.85);
}

/* si se arma la cagada con las cajas */
/* Elimina el borde doble en las tablas dentro de cards */
.card .table-wrapper {
    border: none;
    background: transparent;
    margin: 0;
}

.card {
    overflow: hidden; /* Esto hace que las esquinas de la tabla respeten el redondeo de la card */
}

/* Asegúrate de que la tabla ocupe todo el ancho sin dejar márgenes internos */
.card table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}