/* ============================================================
   ACTC eSports — Estilos públicos
   ============================================================ */

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

:root {
    --bg:         #000000;
    --surface:    #181818;
    --surface2:   #1C1C1C;
    --border:     #1e2040;
    --accent:     #f300ff;
    --accent2:    #f300ff;
    --text:       #e8eaf2;
    --text-muted: #7a82a0;
    --gold:       #f5c518;
    --silver:     #adb5bd;
    --bronze:     #cd7f32;
    --success:    #f300ff;
    --radius:     6px;
    --shadow:     0 4px 20px rgba(0,0,0,0.5);
}

html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Segoe UI', Arial, sans-serif; font-size: 15px; line-height: 1.5; min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--text); }
img { max-width: 100%; }


     @font-face {
            font-family: "Russo One";
            font-style: normal;
            font-weight: 400;
            src: url(https://d3syewzhvzylbl.cloudfront.net/fonts/google-fonts/russoone/regular.woff2) format('woff2');
          }
        

          @font-face {
            font-family: "Open Sans";
            font-style: normal;
            font-weight: 700;
            src: url(https://d3syewzhvzylbl.cloudfront.net/fonts/google-fonts/opensans/700.woff2) format('woff2');
          }
        

          @font-face {
            font-family: "Open Sans";
            font-style: normal;
            font-weight: 400;
            src: url(https://d3syewzhvzylbl.cloudfront.net/fonts/google-fonts/opensans/regular.woff2) format('woff2');
          }
        


/* ── Header ─────────────────────────────────────────────── */
.site-header {
    background: var(--surface);
    border-bottom: 2px solid var(--accent);
    position: sticky; top: 0; z-index: 100;
    box-shadow: 0 2px 20px rgba(0,149,232,0.15);
}
.header-inner {
    max-width: 1200px; margin: 0 auto;
    padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.site-logo img { height: 40px; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a {
    padding: 8px 14px; border-radius: var(--radius);
    color: var(--text-muted); font-size: 0.88rem; font-weight: 500;
    transition: all 0.2s;
}
.site-nav a:hover, .site-nav a.active { color: var(--text); background: var(--surface2); }
.site-nav a.active { color: var(--accent); }

/* ── Hero / Page title ───────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface2) 100%);
    border-bottom: 1px solid var(--border);
    padding: 36px 24px;
    text-align: center;
}
.page-hero h1 { font-size: 1.8rem; font-weight: 700; margin-bottom: 6px; }
.page-hero .sub { color: var(--text-muted); font-size: 0.9rem; }
.accent-line {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    margin: 14px auto 0;
    border-radius: 2px;
}



/*header de actc esports*/


        /* Contenedor principal del Header */
        .header-section {
            width: 100%;
            padding: 35px 0;
            background-color: rgb(17, 17, 17);
            display: flex;
            justify-content: center;
            font-family: 'Rubik', sans-serif;
        }

        .header-container {
            max-width: 1120px;
            width: 90%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        /* Logo */
        .logo-container img {
            width: 81px;
            height: auto;
            display: block;
        }

        /* Navegación */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .nav-link {
            color: #FFFFFF;
            text-decoration: none;
            font-size: 16px;
            font-weight: 300;
            font-family: 'Rubik', sans-serif;
            font-style: normal;
            cursor: pointer;
            transition: opacity 0.3s ease;
            margin-bottom: 2px;
        }

        .nav-link:hover {
           color: rgb(255, 10, 232);
           border-bottom: 2px solid rgb(255, 10, 232);
        margin-bottom: 0px;
        }

        /* El link activo (Torneo según tu código original) */
        .nav-link.active {
            font-weight: 500;
            color: rgb(255, 10, 232);
        }

        /* Botón de Inscripción */
        .btn-inscription {
            text-align: center;
                width: auto;
                align-self: flex-end;
                cursor: pointer;
                background: rgb(243, 0, 255);
                padding: 16px 45px;
                font-size: 14px;
                color: rgb(255, 255, 255);
                font-family: Roboto;
                font-weight: 700;
                font-style: normal;
                border-radius: 5px;
                border-style: none;
                border-top-width: 0px;
                border-left-width: 0px;
                border-right-width: 0px;
                box-shadow: none;
                line-height: 28px;
                transition-duration: 0.3s;
                transition-property: color, transform, background;
        }

        .btn-inscription:hover {
            background-color: rgb(243, 0, 255);
            color: #fff;
        }

        /* Responsive: Menu Hamburguesa (Oculto en Desktop) */
        .mobile-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
        }

        .mobile-toggle span {
            width: 25px;
            height: 3px;
            background-color: #FFFFFF;
        }

        @media (max-width: 992px) {
            .nav-menu {
                display: none; /* Ocultar links en móvil para usar el side-menu */
            }
            .mobile-toggle {
                display: flex;
            }

        }


/* ── Container ───────────────────────────────────────────── */
.container { max-width: 1200px; width: 100%; margin: 0 auto; padding: 32px 24px; flex: 1; }

/* ── Cards de carrera (home) ─────────────────────────────── */
.race-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; margin-top: 28px; }
.race-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    border-top: 3px solid var(--accent);
    transition: transform 0.2s, box-shadow 0.2s;
}
.race-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.race-card .fecha-badge {
    display: inline-block; background: var(--accent); color: #fff;
    font-size: 0.72rem; font-weight: 700; padding: 3px 10px;
    border-radius: 20px; margin-bottom: 10px; letter-spacing: 0.5px;
    text-transform: uppercase;
}
.race-card h3 { font-size: 1rem; margin-bottom: 10px; }
.race-card .meta { color: var(--text-muted); font-size: 0.82rem; line-height: 1.8; }
.race-card .meta span { display: block; }

/* Podio en tarjetas */
.podio-preview { margin-top: 12px; display: flex; flex-direction: column; gap: 5px; }
.podio-row { display: flex; align-items: center; gap: 8px; font-size: 0.83rem; }
.podio-icono { font-size: 1rem; line-height: 1; flex-shrink: 0; }
.podio-nombre { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podio-sin-datos { color: var(--text-muted); font-size: 0.8rem; font-style: italic; margin-top: 12px; }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs-bar {
    display: flex; gap: 2px;
    background: var(--surface); border-radius: var(--radius);
    padding: 4px; margin-bottom: 20px;
    border: 1px solid var(--border);
    width: fit-content;
}
.tabs-bar a {
    padding: 8px 18px; border-radius: calc(var(--radius) - 2px);
    color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
    transition: all 0.2s;
}
.tabs-bar a:hover { color: var(--text); }
.tabs-bar a.active { background: var(--accent); color: #fff; }

/* ── Filtros categoría ───────────────────────────────────── */
.cat-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.cat-filter a {
    padding: 4px 13px; border-radius: 20px; font-size: 0.78rem;
    border: 1px solid var(--border); color: var(--text-muted);
    transition: all 0.2s;
}
.cat-filter a:hover, .cat-filter a.active {
    background: var(--accent2); color: #fff; border-color: var(--accent2);
}

/* ── Tablas de resultados ────────────────────────────────── */
.result-table-wrap { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
thead th {
    background: var(--surface2); color: var(--text-muted);
    padding: 10px 14px; text-align: left; font-weight: 600;
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}
tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.03); }

/* Posiciones con colores */
.pos { font-weight: 700; font-size: 0.95rem; width: 42px; text-align: center; }
tr.p1 .pos { color: var(--gold); }
tr.p2 .pos { color: var(--silver); }
tr.p3 .pos { color: var(--bronze); }
tr.p1 td:first-child::before { content: '🥇 '; }
tr.p2 td:first-child::before { content: '🥈 '; }
tr.p3 td:first-child::before { content: '🥉 '; }

.piloto-link { color: var(--text); font-weight: 500; }
.piloto-link:hover { color: var(--accent); }

.cat-badge {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 0.72rem; font-weight: 600; background: rgba(0,149,232,0.15);
    color: var(--accent); border: 1px solid rgba(0,149,232,0.3);
}
.pts { font-weight: 700; color: var(--success); font-size: 0.95rem; }
.nl { color: var(--text-muted); font-style: italic; }
.tiempo { font-family: 'Courier New', monospace; font-size: 0.83rem; color: var(--text-muted); }

/* Campeonato ranking */
.rank-num { font-weight: 800; font-size: 1.1rem; color: var(--text-muted); width: 42px; text-align: center; }
.puntos-detalle { font-size: 0.75rem; color: #3a4060; }

/* ── Sanciones ───────────────────────────────────────────── */
.sanciones-section { margin-top: 28px; }
.sanciones-section h3 {
    font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}
.sanciones-section h3::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.sancion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent2);
    padding: 9px 14px; margin-bottom: 6px;
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 0.84rem;
}
.sancion-item strong { color: var(--text); }

/* ── Nav categorías campeonato ───────────────────────────── */
.camp-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.camp-nav a {
    padding: 6px 16px; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
    border: 1px solid var(--border); color: var(--text-muted); transition: all 0.2s;
}
.camp-nav a:hover { color: var(--text); border-color: var(--accent); }
.camp-nav a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.camp-nav a.general { border-color: var(--accent2); color: var(--accent2); }
.camp-nav a.general.active, .camp-nav a.general:hover { background: var(--accent2); color: #fff; }

/* ── Botones ─────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 9px 20px; border-radius: var(--radius);
    font-size: 0.86rem; font-weight: 600; cursor: pointer; border: none;
    transition: all 0.2s; text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #8f0d96; color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* ── Contador de filas ───────────────────────────────────── */
.row-count { color: var(--text-muted); font-size: 0.78rem; margin-top: 10px; text-align: right; }

/* ── Footer ──────────────────────────────────────────────── */


/*footer de actc esports*/
   
.site-footer {
    background-color: #1a1a1a;
    color: #8f8f8f;
    padding: 80px 20px 31px 20px;
    margin-top: 60px;
    /* border-top: 1px solid #333; */
    text-align: left;
}

.footer-content {
    max-width: 1120px;
    margin: 0 auto;
}

.footer-container {
    width: 100%;
}

.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
}

.footer-col-6 {
    flex: 0 0 50%;
}

.footer-col-7 {
    flex: 0 0 58.333%;
}

.footer-col-5 {
    flex: 0 0 41.667%;
}

.footer-section {
    width: 100%;
}

.footer-row-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.footer-col-inner {
    flex: 1;
}

.footer-branding,
.footer-links-section,
.footer-contacts {
    width: 100%;
}

.footer-title {
    font-family: 'Russo One', sans-serif;
    font-size: 16px;
    color: #ffffff;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
    margin-bottom: 10px;
}

.footer-spacer {
    height: 12px;
}

.footer-description {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #9b9b9b;
    font-weight: 300;
    line-height: 1.6;
    margin: 0;
}

.footer-links-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.footer-links-col {
    flex: 1;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 8px;
}

.footer-links-list a {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #8f8f8f;
    text-decoration: none;
    font-weight: 300;
    transition: color 0.3s ease;
}

.footer-links-list a:hover {
    color: #ffffff;
}

.footer-contacts p {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #8f8f8f;
    margin: 8px 0;
}

.footer-contacts a {
    color: #8f8f8f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contacts a:hover {
    color: #ffffff;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.social-icon img {
    max-width: 100%;
    height: auto;
}

.social-icon:hover img {
    opacity: 0.7;
}

.footer-divider {
    border: none;
    border-top: 1px solid #333;
    margin: 30px 0;
    padding: 0;
}

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

.footer-copyright {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #9c9da0;
    font-weight: 300;
    margin: 0;
    line-height: 1.6;
}

.footer-copyright a {
    color: #9c9da0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: #ffffff;
}

.footer-copyright span {
    color: #9c9da0;
    margin: 0 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-row-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-links-row {
        grid-template-columns: 1fr;
    }

    .footer-title {
        font-size: 14px;
    }

    .footer-description,
    .footer-links-list a,
    .footer-contacts a,
    .footer-copyright {
        font-size: 14px;
    }

    .social-row {
        justify-content: center;
    }
}



/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
    .header-inner { padding: 0 16px; }
    .site-nav a { padding: 6px 10px; font-size: 0.8rem; }
    .container { padding: 20px 16px; }
    .page-hero { padding: 24px 16px; }
    .page-hero h1 { font-size: 1.4rem; }
    table { font-size: 0.78rem; }
    thead th, tbody td { padding: 8px 10px; }
    .tabs-bar { width: 100%; overflow-x: auto; }
    .btn-inscription {display: none;}
}
