/* ============================================================
   COPILOT TIMING SYSTEM — CSS PRODUCCIÓN
   Sistema: Kinetic Architect
   Fuentes: Space Grotesk (headlines) + Inter (body)
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    /* Colores primarios */
    --primary:              #b5000b;
    --primary-container:    #e30613;
    --primary-dark:         #850000;
    --primary-fixed:        #ffdad5;
    --on-primary:           #ffffff;
    --on-primary-container: #fff5f3;

    /* Superficie — jerarquía tonal (sin bordes de 1px) */
    --surface:                   #f6f9ff;
    --surface-container-lowest:  #ffffff;
    --surface-container-low:     #f0f4fa;
    --surface-container:         #eaeef5;
    --surface-container-high:    #e4e8ef;
    --surface-container-highest: #dfe3e9;
    --surface-dim:               #d6dae1;

    /* Texto */
    --on-surface:         #171c21;
    --on-surface-variant: #5e3f3b;
    --secondary:          #5a5f64;
    --outline-variant:    #e9bcb6;

    /* Legado (mantener compatibilidad con otras páginas) */
    --primary-color:  #b5000b;
    --primary-light:  #e30613;
    --bg-color:       #f6f9ff;
    --text-color:     #171c21;
    --white:          #ffffff;

    /* Tipografía */
    --font-headline: 'Space Grotesk', sans-serif;
    --font-body:     'Inter', sans-serif;

    /* Sombras ambientales (sin negro puro) */
    --shadow:         0 20px 60px rgba(23, 28, 33, 0.05);
    --shadow-lg:      0 40px 80px rgba(23, 28, 33, 0.04);

    /* Otros */
    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius:  0.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--on-surface);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.main {
    width: 100%;
    padding: 2rem;
    max-width: 1440px;
    margin: 0 auto;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(233, 188, 182, 0.25);
    padding: 0 2rem;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 72px;
}

.navbar-container {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: var(--on-surface);
}

.navbar-brand:hover { transform: none; }

.navbar-brand img {
    height: 42px;
    width: auto;
}

.navbar-brand-text {
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    color: var(--on-surface);
    letter-spacing: -0.01em;
}

.navbar-brand-text span {
    display: block;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
}

/* Links */
.navbar-menu {
    display: flex;
    gap: 0.15rem;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.navbar-menu a {
    font-family: var(--font-headline);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--secondary);
    padding: 0.45rem 0.85rem;
    border-radius: 0.25rem;
    transition: var(--transition);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Quitar el underline animated del viejo CSS */
.navbar-menu a::before { display: none; }

.navbar-menu a:hover { color: var(--primary); background: transparent; }
.navbar-menu a.active { color: var(--primary); border-bottom: 2px solid var(--primary); border-radius: 0; }

/* Toggle móvil */
.navbar-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--on-surface);
    font-size: 1.5rem;
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 0.25rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.navbar-toggle:hover { background: var(--surface-container); }

/* Botones CTA navbar */
.navbar-cta {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.btn-navbar {
    font-family: var(--font-headline) !important;
    font-size: 0.7rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem !important;
    transition: var(--transition) !important;
    white-space: nowrap;
    border: none !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.btn-navbar::before { display: none !important; }

.btn-inscripcion {
    background: var(--primary-container) !important;
    color: var(--on-primary) !important;
}

.btn-inscripcion:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(181, 0, 11, 0.3) !important;
}

.btn-reinscripcion {
    background: var(--surface-container-highest) !important;
    color: var(--on-surface) !important;
}

.btn-reinscripcion:hover {
    background: var(--surface-dim) !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

/* ============================================================
   DROPDOWN MENÚ
   ============================================================ */
.navbar-item { position: relative; }

.dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
}

.navbar-item:hover .fa-chevron-down { transform: rotate(180deg); }

.navbar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: var(--surface-container-lowest);
    min-width: 220px;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(23, 28, 33, 0.1);
    border: 1px solid var(--surface-container-high);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1001;
    overflow: visible;
    margin-top: 0;
}

.navbar-item:hover .navbar-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.1rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--on-surface);
    border-bottom: 1px solid var(--surface-container-low);
    transition: var(--transition);
    border-radius: 0;
}

.navbar-dropdown > a:first-child,
.navbar-item-sub:first-child > a { border-radius: 0.5rem 0.5rem 0 0; }
.navbar-dropdown > a:last-child  { border-bottom: none; border-radius: 0 0 0.5rem 0.5rem; }
.navbar-dropdown > .navbar-item-sub:last-child > a { border-bottom: none; border-radius: 0 0 0.5rem 0.5rem; }
.navbar-dropdown a::before { display: none; }

.navbar-dropdown a:hover {
    background: var(--surface-container-low);
    color: var(--primary);
    padding-left: 1.4rem;
}

.navbar-dropdown a i {
    font-size: 0.9rem;
    width: 16px;
    color: var(--primary);
}

/* Sub-dropdown */
.navbar-item-sub { position: relative; }

.dropdown-toggle-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.dropdown-toggle-sub .fa-chevron-right {
    font-size: 0.65rem;
    transition: transform 0.2s ease;
    margin-left: auto;
}

.navbar-dropdown-sub {
    position: absolute;
    left: 100%;
    top: 0;
    background: var(--surface-container-lowest);
    min-width: 190px;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(23, 28, 33, 0.1);
    border: 1px solid var(--surface-container-high);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px);
    transition: var(--transition);
    z-index: 1002;
    overflow: hidden;
}

.navbar-item-sub:hover .navbar-dropdown-sub {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.navbar-item-sub:hover .fa-chevron-right { transform: rotate(90deg); }

.navbar-dropdown-sub a {
    padding: 0.7rem 1rem;
    font-size: 0.83rem;
}

/* ============================================================
   SECCIONES GLOBALES
   ============================================================ */
section { margin: 0; }

.section-title {
    font-family: var(--font-headline);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.5rem;
    text-align: center;
    letter-spacing: -0.025em;
    line-height: 1.05;
    position: relative;
    padding-bottom: 0;
}

/* Quitar el underline rojo antiguo */
.section-title::after { display: none; }

.text-center { text-align: center; }

/* ============================================================
   CARDS (compatibilidad con otras páginas)
   ============================================================ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background: var(--surface-container-high);
    border-radius: 0.75rem;
    overflow: hidden;
    margin: 2rem 0;
}

.card {
    background: var(--surface-container-lowest);
    padding: 2.5rem 2rem;
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary-container);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover { background: var(--surface-container-low); transform: none; box-shadow: none; }
.card:hover::after { transform: scaleX(1); }

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: block;
}

.card h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
}

.card p {
    color: var(--secondary);
    line-height: 1.75;
    font-size: 0.9rem;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 0.25rem;
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    color: var(--on-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(181, 0, 11, 0.3);
}

.btn-secondary {
    background: var(--surface-container-highest);
    color: var(--on-surface);
    border: none;
}

.btn-secondary:hover {
    background: var(--surface-dim);
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Botón copiar (páginas de resultados) */
#btn-copiar-todo { position: relative; overflow: hidden; }
#btn-copiar-todo::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}
#btn-copiar-todo:active::after { width: 300px; height: 300px; }
#btn-copiar-todo:disabled { opacity: 0.7; cursor: not-allowed; }
#btn-copiar-todo i.fa-spinner { animation: spin 1s linear infinite; }

/* ============================================================
   TABLAS (DataTables — resultados)
   ============================================================ */
.tables-container { width: 100%; }
.tables-container .table-container { margin-bottom: 3rem; }

.btn-dt-custom {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.25rem !important;
    font-family: var(--font-headline) !important;
    font-weight: 700 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    margin: 0 0.25rem !important;
}

.btn-dt-custom:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(133, 0, 0, 0.25) !important;
}

.dt-buttons { margin-bottom: 1rem !important; }

.table-container {
    background: var(--surface-container-lowest);
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    overflow-x: auto;
}

.table-header {
    margin-bottom: 2rem;
    text-align: center;
}

.table-header h2,
.table-header h3 {
    font-family: var(--font-headline);
    color: var(--on-surface);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

table.display {
    width: 100% !important;
    border-collapse: collapse;
    margin: 1rem 0;
}

table.display thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
}

table.display thead th {
    padding: 1rem;
    color: var(--on-primary);
    font-family: var(--font-headline);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: left;
    border: none;
}

table.display tbody tr {
    border-bottom: 1px solid var(--surface-container-low);
    transition: var(--transition);
}

table.display tbody tr:hover { background-color: rgba(181, 0, 11, 0.04); }
table.display tbody tr:nth-child(even) { background-color: var(--surface-container-low); }
table.display tbody tr:nth-child(even):hover { background-color: rgba(181, 0, 11, 0.06); }

table.display tbody td {
    padding: 0.875rem 1rem;
    border: none;
    font-size: 0.875rem;
}

/* Podio */
.podium-1 { background: linear-gradient(90deg, rgba(255, 215, 0, 0.15), transparent) !important; }
.podium-2 { background: linear-gradient(90deg, rgba(192, 192, 192, 0.15), transparent) !important; }
.podium-3 { background: linear-gradient(90deg, rgba(205, 127, 50, 0.15), transparent) !important; }

/* ============================================================
   FOOTER / CONTACTO
   ============================================================ */
#contacto {
    background: var(--on-surface);
    color: var(--on-primary);
    padding: 4rem 2rem;
    margin-top: 0;
}

#contacto > .footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

/* Footer brand */
.footer-brand-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.footer-brand-wrap img { height: 40px; }
.footer-brand-name {
    font-family: var(--font-headline);
    font-size: 1rem;
    font-weight: 700;
    color: white;
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.65;
    max-width: 280px;
}

.footer-socials { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

.footer-social-link {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.07);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.65);
    font-size: 1rem;
    transition: var(--transition);
}

.footer-social-link:hover { background: var(--primary-container); color: white; }

.footer-col-title {
    font-family: var(--font-headline);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-links a:hover { color: white; }

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.55);
    margin-bottom: 0.75rem;
}

.footer-contact-item .material-symbols-outlined { font-size: 1rem; color: var(--primary-container); }

.footer-bottom {
    max-width: 1440px;
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* Fallback para footer antiguo (otras páginas) */
#contacto > div:not(.footer-inner):not(.footer-bottom) {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

#contacto > p { text-align: center; color: rgba(255,255,255,0.7); }

#contacto a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

#contacto a:hover { color: var(--primary-container); transform: scale(1.15); }

/* ============================================================
   LOADING
   ============================================================ */
.loading {
    display: inline-block;
    width: 48px; height: 48px;
    border: 4px solid rgba(181, 0, 11, 0.15);
    border-radius: 50%;
    border-top-color: var(--primary);
    animation: spin 1s linear infinite;
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

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

.fade-in { animation: fadeIn 0.6s ease forwards; }

.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE — NAVBAR
   ============================================================ */
@media (max-width: 1024px) {
    .navbar-menu { gap: 0; }
    .navbar-menu a { padding: 0.4rem 0.6rem; font-size: 0.7rem; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 1rem; }
    .navbar-toggle { display: flex; align-items: center; justify-content: center; }
    .navbar-cta { display: none; }

    .navbar-menu {
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: var(--surface-container-lowest);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        max-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        transition: max-height 0.35s ease;
        box-shadow: 0 20px 40px rgba(23,28,33,0.1);
        border-top: 1px solid var(--surface-container-high);
    }

    .navbar-menu.active { max-height: calc(100vh - 72px); padding-bottom: 2rem; }

    .navbar-menu a {
        width: 100%;
        text-align: left;
        padding: 1rem 1.5rem;
        font-size: 0.875rem;
        color: var(--on-surface);
        border-bottom: 1px solid var(--surface-container-low);
        border-radius: 0;
        letter-spacing: 0.05em;
    }

    .navbar-menu a:hover { color: var(--primary); background: var(--surface-container-low); }
    .navbar-menu a.active { border-bottom: 1px solid var(--surface-container-low); border-left: 3px solid var(--primary); padding-left: calc(1.5rem - 3px); }

    /* Dropdowns en móvil */
    .navbar-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--surface-container-low);
        margin: 0;
        border-radius: 0;
        border: none;
        display: none;
    }

    .navbar-item.active .navbar-dropdown { display: block; }

    .navbar-dropdown a {
        color: var(--on-surface);
        border-bottom: 1px solid var(--surface-container);
        padding-left: 2.5rem;
    }

    .navbar-dropdown a:hover { padding-left: 3rem; }

    .navbar-dropdown-sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--surface-container);
        border: none;
        border-radius: 0;
        display: none;
    }

    .navbar-item-sub.active .navbar-dropdown-sub { display: block; }
    .navbar-dropdown-sub a { padding-left: 3.5rem !important; }
    .navbar-dropdown-sub a:hover { padding-left: 4rem !important; }

    .dropdown-toggle { justify-content: space-between; }

    /* Botones inscripción en móvil dentro del menú */
    .btn-navbar {
        margin: 0 !important;
        padding: 1rem 1.5rem !important;
        font-size: 0.875rem !important;
        text-align: left !important;
        display: flex !important;
        width: 100% !important;
        border-radius: 0 !important;
        border-bottom: 1px solid var(--surface-container-low) !important;
    }

    .btn-inscripcion { background: rgba(181,0,11,0.08) !important; color: var(--primary) !important; }
    .btn-reinscripcion { background: var(--surface-container-low) !important; color: var(--on-surface) !important; }

    /* Layout */
    .main { padding: 1rem; }
    .section-title { font-size: 1.75rem; }
    .card-grid { grid-template-columns: 1fr; gap: 0; }

    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }

    /* Footer */
    #contacto > .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    /* Tablas */
    .table-container { padding: 1rem; }
    table.display { font-size: 0.82rem; }
    table.display thead th,
    table.display tbody td { padding: 0.6rem 0.5rem; }
}

@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .navbar-brand img { height: 36px; }
    table.display { font-size: 0.72rem; }
    table.display thead th,
    table.display tbody td { padding: 0.5rem 0.25rem; }
}

/* ============================================================
   PRINT — ocultar elementos de navegación y UI
   ============================================================ */
@media print {
    .navbar,
    .refresh-band,
    .controls-bar,
    .export-bar,
    .btn-refresh,
    .live-badge,
    #contacto,
    .puntos-section,
    .stats-bar,
    [id="stats-bar"] { display: none !important; }

    body { padding-top: 0 !important; background: #fff !important; color: #000 !important; }

    .live-hero {
        padding: 1rem 1.5rem !important;
        background: #111 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .live-main,
    .live-hero-inner { max-width: 100% !important; }

    .results-table-wrap {
        border: none !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }

    table.live-table {
        min-width: 0 !important;
        width: 100% !important;
        font-size: 0.75rem;
    }

    /* Asegurar que thead y mini-headers se muestren */
    table.live-table thead { display: table-header-group !important; }
    table.live-table tbody tr.cat-col-header { display: table-row !important; }
    td.insc-desktop { display: table-cell !important; }
    .insc-mobile-badges { display: none !important; }
    .etapa-col { display: table-cell !important; }
    td.equipo { display: table-cell !important; }

    /* Evitar cortes de página dentro de una fila */
    tr { page-break-inside: avoid; }
}
