* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #0b0b0b;
    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.78),
            rgba(0, 0, 0, 0.78)
        ),
        url("img/fondo-pdf.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f5f5f5;
    margin: 0;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 40px;
    background-color: #111111;
    border-bottom: 2px solid #d4af37;
}

.logo {
    color: #d4af37;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo img {
    width: 120px;
    height: auto;
    display: block;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.2s ease;
}

nav a:hover {
    color: #d4af37;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 30px;
}
.hero {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 20px 70px;
}
.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 30px;
}
.hero button {
    padding: 15px 32px;
    font-size: 16px;
    font-weight: bold;
    background-color: #d4af37;
    color: #111111;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero button:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25);
}

/* ==============================
   REGLAMENTO
   ============================== */

#reglamento {
    max-width: 1000px;
    margin: 50px auto;
    padding: 35px 40px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

#reglamento h2 {
    color: #d4af37;
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#reglamento h3 {
    color: #d4af37;
    font-size: 21px;
    margin-top: 30px;
    margin-bottom: 15px;
}

#reglamento p {
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ==============================
   CÓMO PARTICIPAR
   ============================== */

#como-participar {
    max-width: 1000px;
    margin: 50px auto;
    padding: 35px 40px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

#como-participar h2 {
    color: #d4af37;
    text-align: center;
    font-size: 32px;
    margin-bottom: 35px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#como-participar h3 {
    color: #d4af37;
    font-size: 21px;
    margin-top: 30px;
    margin-bottom: 15px;
}

#como-participar p {
    color: #f5f5f5;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.quiniela {
    margin: 40px auto 0;
    padding: 30px;
    max-width: 500px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
    text-align: center;
}

/* ==============================
   LISTA DE PARTIDOS
   ============================== */

.partidos {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 25px 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.partidos > h3 {
    margin: 0 0 25px;
    padding-bottom: 15px;
    color: #d4af37;
    font-size: 24px;
    text-align: center;
    border-bottom: 1px solid #292929;
}

.quiniela h3 {
    font-size: 26px;
    margin-bottom: 12px;
    color: #d4af37;
    text-transform: uppercase;
}
.quiniela p {
    margin-bottom: 25px;
    color: #dddddd;
    font-size: 16px;
}
.resumen-pronosticos {
    background-color: white;
    padding: 25px;
    margin-top: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.resumen-pronosticos h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.resumen-pronosticos p {
    margin: 12px 0;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
}
#tabla-registros {
    overflow-x: auto;
    width: 100%;
}

#tabla-registros table {
    min-width: 1400px;
    border-collapse: collapse;
}

#seccion-clasificacion,
#seccion-clasificacion-temporada {
    display: none;
}

/* ==============================
   CLASIFICACIÓN PÚBLICA
   ============================== */

#seccion-clasificacion-temporada {
    max-width: 1000px;
    margin: 60px auto;
    padding: 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

#titulo-clasificacion-temporada {
    margin: 0 0 25px;
    padding-bottom: 15px;
    color: #d4af37;
    font-size: 28px;
    text-align: center;
    border-bottom: 1px solid #292929;
}

#tabla-clasificacion-temporada {
    width: 100%;
    overflow-x: auto;
}

#tabla-clasificacion-temporada table {
    width: 100%;
    border-collapse: collapse;
    background-color: #181818;
    border-radius: 10px;
    overflow: hidden;
}

#tabla-clasificacion-temporada th {
    padding: 14px 12px;
    background-color: #202020;
    color: #d4af37;
    border-bottom: 1px solid #d4af37;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

#tabla-clasificacion-temporada td {
    padding: 14px 12px;
    color: #dddddd;
    border-bottom: 1px solid #292929;
    text-align: center;
    font-size: 14px;
}

#tabla-clasificacion-temporada tbody tr {
    transition: all 0.2s ease;
}

#tabla-clasificacion-temporada tbody tr:hover {
    background-color: #202020;
}

#tabla-clasificacion-temporada td:first-child {
    color: #d4af37;
    font-weight: bold;
    font-size: 16px;
}

#tabla-clasificacion-temporada td:last-child {
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}

#tabla-clasificacion-temporada tbody tr:first-child {
    background-color: #1c1c1c;
    border-left: 3px solid #d4af37;
}

#tabla-clasificacion-temporada td:nth-child(2) {
    color: #ffffff;
    font-weight: bold;
    font-size: 15px;
}

#tabla-clasificacion-temporada th,
#tabla-clasificacion-temporada td {
    padding-left: 16px;
    padding-right: 16px;
}

.equipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    vertical-align: middle;
    margin: 10px 25px;
    color: #ffffff;
    min-width: 180px;
}

.equipo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}
.competencia-partido {
    margin-bottom: 10px;
    color: #aaaaaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.competencia-partido img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.enfrentamiento {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    max-width: 650px;
    margin: 0 auto;
}

.enfrentamiento .equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    margin: 10px 0;
    gap: 6px;
}

.enfrentamiento .equipo strong {
    font-size: 16px;
    text-align: center;
}

.enfrentamiento .equipo img {
    width: 60px;
    height: 60px;
}

.vs-partido {
    flex: 0 0 auto;
    color: #d4af37;
    font-size: 18px;
    font-weight: bold;
}
.partido > span {
    display: inline-block;
    vertical-align: middle;
    font-weight: bold;
    color: #d4af37;
    font-size: 18px;
    margin: 0 10px;
}

.partido > small {
    display: block;
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pronosticos {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.opcion-pronostico {
    min-width: 105px;
    padding: 12px 16px;
    border: 1px solid #d4af37;
    border-radius: 8px;
    background-color: #151515;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
        text-align: center;
    display: inline-flex;
    justify-content: center;
align-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.opcion-pronostico:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

.resumen-pronosticos {
    max-width: 850px;
    margin: 35px auto 0;
    padding: 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

.resumen-pronosticos h3 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #d4af37;
    text-align: center;
    font-size: 26px;
}

.resumen-pronosticos h4 {
    color: #ffffff;
    margin-bottom: 15px;
}

.resumen-pronosticos p {
    margin: 15px 0;
    padding: 12px;
    background-color: #202020;
    color: #dddddd;
    border-radius: 8px;
}

.datos-participante {
    margin-top: 20px;
}

.datos-participante label {
    display: block;
    margin-top: 15px;
    margin-bottom: 6px;
    color: #dddddd;
    font-weight: bold;
}

.datos-participante input {
    width: 100%;
    padding: 12px 14px;
    background-color: #101010;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.datos-participante input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

.datos-participante input::placeholder {
    color: #888888;
}

#btnNuevoPronostico,
#btnEnviarPronostico {
    padding: 13px 22px;
    margin-top: 18px;
    margin-right: 8px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnNuevoPronostico {
    background-color: #d4af37;
    color: #111111;
}

#btnNuevoPronostico:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#btnEnviarPronostico {
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
}

#btnEnviarPronostico:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

/* ==============================
   CLASIFICACIÓN DE LA EDICIÓN
   ============================== */

#seccion-clasificacion {
    max-width: 1000px;
    margin: 50px auto;
    padding: 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

#seccion-clasificacion h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #d4af37;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#seccion-clasificacion table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#seccion-clasificacion th,
#seccion-clasificacion td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #292929;
}

#seccion-clasificacion th {
    color: #d4af37;
    font-weight: bold;
    background-color: #202020;
}

#seccion-clasificacion td {
    color: #ffffff;
}

#seccion-clasificacion tbody tr:hover {
    background-color: #202020;
}

/* ==============================
   CLASIFICACIÓN DE TEMPORADA
   ============================== */

#seccion-clasificacion-temporada {
    max-width: 1000px;
    margin: 40px auto;
    padding: 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
}

#seccion-clasificacion-temporada h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #d4af37;
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#seccion-clasificacion-temporada table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

#seccion-clasificacion-temporada th,
#seccion-clasificacion-temporada td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #292929;
}

#seccion-clasificacion-temporada th {
    color: #d4af37;
    font-weight: bold;
    background-color: #202020;
}

#seccion-clasificacion-temporada td {
    color: #ffffff;
}

#seccion-clasificacion-temporada tbody tr:hover {
    background-color: #202020;
}

/* ==============================
   ENCABEZADO DEL PANEL ADMIN
   ============================== */

#panel-admin {
    max-width: 1200px;
    margin: 40px auto;
    padding: 30px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.45);
}

.panel-contacto-ganadores {
    margin-top: 30px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

.panel-contacto-ganadores h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #d4af37;
    text-align: center;
    font-size: 24px;
}

#lista-contacto-ganadores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.contacto-ganador {
    padding: 20px;
    background-color: #151515;
    border: 1px solid #d4af37;
    border-radius: 10px;
}

.contacto-ganador h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #d4af37;
    font-size: 18px;
}

.contacto-ganador p {
    margin: 8px 0;
}

.contacto-ganador button {
    width: 100%;
    margin-top: 15px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #25d366;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: all .2s;
}

.contacto-ganador button:hover {
    transform: translateY(-2px);
    opacity: .9;
}

#panel-admin > h2 {
    margin: 25px 0 30px;
    padding-bottom: 15px;
    text-align: center;
    color: #d4af37;
    font-size: 32px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #292929;
}

#panel-admin .resumen-edicion {
    margin-top: 10px;
    margin-bottom: 25px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#panel-admin .resumen-edicion > h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    color: #d4af37;
    font-size: 24px;
    text-align: center;
    border-bottom: 1px solid #292929;
}

/* ==============================
   BOTONES SUPERIORES DEL ADMIN
   ============================== */

#btnCerrarAdmin,
#btnCerrarRegistros {
    padding: 11px 20px;
    margin-right: 10px;
margin-bottom: 10px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnCerrarAdmin {
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
}

#btnCerrarAdmin:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

#btnCerrarRegistros {
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
}

#btnCerrarRegistros:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#estadoRegistros {
    display: inline-block;
    margin-top: 12px;
    margin-bottom: 25px;
    margin-left: 2px;
    padding: 8px 14px;
    background-color: #101010;
    border: 1px solid #444444;
    border-radius: 8px;
    color: #dddddd;
    font-size: 14px;
    font-weight: bold;
}

#resumen-edicion {
    margin-top: 10px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#resumen-edicion > h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #292929;
    color: #d4af37;
    font-size: 24px;
    text-align: center;
}

.resumen-datos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.resumen-datos span {
    display: block;
    padding: 18px 10px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
    text-align: center;
    color: #dddddd;
    font-size: 14px;
    transition: all 0.2s ease;
}

.resumen-datos span:hover {
    background-color: #202020;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.resumen-datos strong {
    display: block;
    margin-top: 8px;
    color: #d4af37;
    font-size: 26px;
    line-height: 1;
}

#temporadas-futbol {
    margin-top: 25px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#temporadas-futbol > h3 {
    margin-top: 0;
    margin-bottom: 16px;
    padding-bottom: 12px;
    color: #d4af37;
    font-size: 22px;
    border-bottom: 1px solid #292929;
}

#temporadas-futbol > p {
    margin-top: 0;
    margin-bottom: 22px;
    color: #bbbbbb;
    line-height: 1.6;
    font-size: 15px;
}

#btnMostrarTemporadas {
    padding: 13px 24px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnMostrarTemporadas:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#panelTemporadas > h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #292929;
    color: #ffffff;
    font-size: 18px;
}

#listaTemporadas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#listaTemporadas > div {
    padding: 16px 18px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 9px;
    color: #ffffff;
    transition: all 0.2s ease;
}

#listaTemporadas > div:hover {
    background-color: #202020;
    border-color: #d4af37;
    transform: translateY(-1px);
}

#btnNuevaTemporadaFutbol {
    padding: 12px 22px;
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnNuevaTemporadaFutbol:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#formularioNuevaTemporadaFutbol {
    margin-top: 20px;
    padding: 20px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
}

#formularioNuevaTemporadaFutbol > h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #d4af37;
    font-size: 18px;
}

#formularioNuevaTemporadaFutbol label {
    display: block;
    margin-bottom: 7px;
    color: #dddddd;
    font-weight: bold;
}

#formularioNuevaTemporadaFutbol input {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 15px;
    background-color: #101010;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

#formularioNuevaTemporadaFutbol input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#btnGuardarNuevaTemporadaFutbol {
    padding: 12px 22px;
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnGuardarNuevaTemporadaFutbol:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

/* ==============================
   CONFIGURAR EDICIÓN
   ============================== */

#configurador-edicion {
    margin-top: 25px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#configurador-edicion > h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #d4af37;
    font-size: 22px;
}

#configurador-edicion > p {
    margin-bottom: 20px;
    color: #bbbbbb;
    line-height: 1.5;
}

#btnMostrarConfigurador {
    padding: 12px 22px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnMostrarConfigurador:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#panelConfigurador .partido-configuracion {
    margin-top: 20px;
    padding: 20px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
}

#panelConfigurador .partido-configuracion h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #d4af37;
    font-size: 18px;
}

#panelConfigurador .partido-configuracion label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #dddddd;
    font-weight: bold;
}

#panelConfigurador .partido-configuracion select {
    width: 100%;
    padding: 11px 12px;
    background-color: #101010;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

#panelConfigurador .partido-configuracion select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#panelConfigurador .partido-configuracion button {
    margin-top: 18px;
    padding: 11px 20px;
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#panelConfigurador .partido-configuracion button:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

/* ==============================
   CATÁLOGO DE EQUIPOS
   ============================== */

#catalogo-equipos {
    margin-top: 25px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#catalogo-equipos > h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #d4af37;
    font-size: 22px;
}

#catalogo-equipos > p {
    margin-bottom: 20px;
    color: #bbbbbb;
    line-height: 1.5;
}

#btnMostrarCatalogo {
    padding: 12px 22px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnMostrarCatalogo:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

#panelCatalogoEquipos > h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #292929;
    color: #ffffff;
    font-size: 18px;
}

#panelCatalogoEquipos > label {
    display: block;
    margin-bottom: 7px;
    color: #dddddd;
    font-weight: bold;
}

#filtroCompetencia {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 20px;
    background-color: #101010;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

#filtroCompetencia:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#listaEquipos {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

#listaEquipos > div {
    padding: 14px 16px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 8px;
    color: #ffffff;
}

#btnNuevoEquipo {
    padding: 12px 22px;
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnNuevoEquipo:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

/* ==============================
   FORMULARIO AGREGAR EQUIPO
   ============================== */

#formularioNuevoEquipo {
    margin-top: 20px;
    padding: 20px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
}

#formularioNuevoEquipo > h4 {
    margin-top: 0;
    margin-bottom: 18px;
    color: #d4af37;
    font-size: 18px;
}

#formularioNuevoEquipo label {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #dddddd;
    font-weight: bold;
}

#formularioNuevoEquipo input,
#formularioNuevoEquipo select {
    width: 100%;
    padding: 11px 12px;
    background-color: #101010;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

#formularioNuevoEquipo input:focus,
#formularioNuevoEquipo select:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#btnGuardarNuevoEquipo {
    margin-top: 20px;
    padding: 12px 22px;
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnGuardarNuevoEquipo:hover {
    background-color: #f0cf55;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(212, 175, 55, 0.25);
}

/* ==============================
   BUSCADOR DE PARTICIPANTES
   ============================== */

.buscador-participante {
    margin-top: 25px;
    padding: 20px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 10px;
}

.buscador-participante label {
    display: block;
    margin-bottom: 7px;
    color: #dddddd;
    font-weight: bold;
}

.buscador-participante input {
    width: 100%;
    padding: 12px 14px;
    background-color: #181818;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.buscador-participante input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#listaEquipos > div button {
    padding: 8px 13px;
    margin-right: 6px;
    margin-top: 8px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 6px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#listaEquipos > div button:hover {
    background-color: #d4af37;
    color: #111111;
    border-color: #d4af37;
    transform: translateY(-1px);
}

/* ==============================
   BUSCADOR DE PARTICIPANTES
   ============================== */

.buscador-participante {
    margin-top: 25px;
    padding: 20px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 10px;
}

.buscador-participante label {
    display: block;
    margin-bottom: 7px;
    color: #dddddd;
    font-weight: bold;
}

.buscador-participante input {
    width: 100%;
    padding: 12px 14px;
    background-color: #181818;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
}

.buscador-participante input:focus {
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.15);
}

#btnLimpiarBusqueda {
    margin-top: 12px;
    padding: 10px 18px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnLimpiarBusqueda:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

/* ==============================
   TABLA DE REGISTROS
   ============================== */

#tabla-registros {
    margin-top: 25px;
    padding: 15px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 10px;
    overflow-x: auto;
}

#tabla-registros table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1200px;
}

#tabla-registros th {
    padding: 12px 10px;
    background-color: #202020;
    color: #d4af37;
    border-bottom: 2px solid #d4af37;
    font-size: 13px;
    text-align: center;
    white-space: nowrap;
}

#tabla-registros td {
    padding: 10px 8px;
    color: #dddddd;
    border-bottom: 1px solid #292929;
    text-align: center;
    white-space: nowrap;
}

#tabla-registros tbody tr {
    transition: background-color 0.2s ease;
}

#tabla-registros tbody tr:hover {
    background-color: #181818;
}

#tabla-registros td button {
    padding: 7px 12px;
    margin: 2px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#tabla-registros td button:hover {
    transform: translateY(-1px);
}

#tabla-registros td button:first-child {
    background-color: #d4af37;
    color: #111111;
    border: 1px solid #d4af37;
}

#tabla-registros td button:first-child:hover {
    background-color: #f0cf55;
    border-color: #f0cf55;
}

#tabla-registros td button:last-child {
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #555555;
}

#tabla-registros td button:last-child:hover {
    background-color: #333333;
    border-color: #777777;
}

#tabla-registros td .estado {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
}

.buscador-participante label {
    font-size: 15px;
    margin-bottom: 10px;
}

.buscador-participante input::placeholder {
    color: #777777;
}

#btnLimpiarBusqueda:hover {
    background-color: #d4af37;
    color: #111111;
    border-color: #d4af37;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.15);
}

#resultados-oficiales {
    margin-top: 25px;
    padding: 25px;
    background-color: #101010;
    border: 1px solid #292929;
    border-radius: 12px;
}

#resultados-oficiales > h3 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #d4af37;
    font-size: 22px;
}

#resultados-oficiales > p {
    margin-bottom: 20px;
    color: #bbbbbb;
    line-height: 1.5;
}

#resultados-oficiales > div {
    margin-top: 15px;
    padding: 18px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
}

#resultados-oficiales > div h4 {
    margin: 0 0 15px;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
}

#resultados-oficiales > div {
    text-align: center;
}

#resultados-oficiales .resultado-oficial {
    min-width: 110px;
    padding: 10px 16px;
    margin: 4px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 7px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#resultados-oficiales .resultado-oficial:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

/* ==============================
   BOTONES DE ACCIONES DE EDICIÓN
   ============================== */

#btnGuardarResultados,
#btnGenerarPDFResultados,
#btnCerrarEdicion,
#btnFinalizarTemporada,
#btnProbarPDFTemporada {
    padding: 11px 16px;
    margin-top: 15px;
    margin-right: 6px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #444444;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnGuardarResultados:hover,
#btnGenerarPDFResultados:hover,
#btnCerrarEdicion:hover,
#btnFinalizarTemporada:hover,
#btnProbarPDFTemporada:hover {
    background-color: #d4af37;
    color: #111111;
    border-color: #d4af37;
    transform: translateY(-2px);
}

/* ==============================
   HISTORIAL DE EDICIONES
   ============================== */

#historial-ediciones {
    margin-top: 25px;
}

.edicion-historica {
    margin-bottom: 15px;
    padding: 20px;
    background-color: #181818;
    border: 1px solid #292929;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.edicion-historica:hover {
    background-color: #202020;
    border-color: #d4af37;
    transform: translateY(-2px);
}

.edicion-historica h3 {
    margin: 0 0 12px;
    color: #d4af37;
    font-size: 20px;
}

.edicion-historica p {
    margin: 6px 0;
    color: #cccccc;
    font-size: 14px;
}

.edicion-historica .btn-ver-edicion {
    margin-top: 12px;
    padding: 9px 16px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edicion-historica .btn-ver-edicion:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

#panel-admin > h2:nth-of-type(2) {
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #292929;
}

/* ==============================
   PIE DE PÁGINA
   ============================== */

footer {
    margin-top: 60px;
    padding: 25px 20px;
    background-color: #111111;
    border-top: 1px solid #d4af37;
    text-align: center;
}

footer p {
    margin: 0;
    color: #888888;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ==============================
   BOTÓN DE ADMINISTRACIÓN
   ============================== */

#btnAdmin {
    padding: 11px 20px;
    background-color: #202020;
    color: #ffffff;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

#btnAdmin:hover {
    background-color: #d4af37;
    color: #111111;
    transform: translateY(-2px);
}

/* ==============================
   CLASIFICACIÓN EN CELULAR
   ============================== */

@media (max-width: 700px) {

    #seccion-clasificacion-temporada {
        margin: 35px 15px;
        padding: 20px 12px;
    }

    #titulo-clasificacion-temporada {
        font-size: 22px;
    }

    #tabla-clasificacion-temporada {
        overflow-x: auto;
    }

   #tabla-clasificacion-temporada table {
    min-width: 0;
    width: 100%;
    table-layout: fixed;
}
}

@media (max-width: 700px) {

    header {
        flex-direction: column;
        padding: 18px 15px;
        gap: 18px;
        #tabla-clasificacion-temporada th,
#tabla-clasificacion-temporada td {
    padding: 10px 6px;
    font-size: 11px;
    white-space: normal;
    overflow-wrap: break-word;
}

#tabla-clasificacion-temporada td:first-child {
    font-size: 13px;
}

#tabla-clasificacion-temporada td:nth-child(2) {
    font-size: 12px;
}

#tabla-clasificacion-temporada td:last-child {
    font-size: 14px;

    #tabla-clasificacion-temporada th:nth-child(1),
#tabla-clasificacion-temporada td:nth-child(1) {
    width: 18%;
}

#tabla-clasificacion-temporada th:nth-child(2),
#tabla-clasificacion-temporada td:nth-child(2) {
    width: 23%;
}

#tabla-clasificacion-temporada th:nth-child(3),
#tabla-clasificacion-temporada td:nth-child(3) {
    width: 20%;
}

#tabla-clasificacion-temporada th:nth-child(4),
#tabla-clasificacion-temporada td:nth-child(4) {
    width: 39%;

    }

    #seccion-clasificacion-temporada th {
    font-size: 0;
    color: transparent;
}

#tabla-clasificacion-temporada th:nth-child(4) {
    font-size: 10px;
}

#tabla-clasificacion-temporada th:nth-child(1)::after {
    content: "POS.";
    font-size: 11px;
    color: #d4af37;
}

#tabla-clasificacion-temporada th:nth-child(2)::after {
    content: "APODO";
    font-size: 11px;
}

#tabla-clasificacion-temporada th:nth-child(3)::after {
    content: "EDIC.";
    font-size: 11px;
}

#tabla-clasificacion-temporada th:nth-child(4)::after {
    content: "ACIERTOS";
    font-size: 11px;
}
}
}
    }

.partido {
    display: block;
    text-align: center;
}

.partido .equipo {
    margin: 8px 0;
    min-width: 0;
    width: auto;
}

.partido .equipo img {
    width: 55px;
    height: 55px;
}

.partido > span {
    margin: 4px 0;
}

.partido .pronosticos {
    width: 100%;
    margin-top: 12px;
}

.partido {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #292929;
}

.competencia-partido {
    margin-bottom: 8px;
    color: #aaaaaa;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enfrentamiento {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 8px;
}

.enfrentamiento .equipo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 8px 0;
    gap: 5px;
}

.enfrentamiento .equipo strong {
    font-size: 15px;
    text-align: center;
}

.vs-partido {
    flex: 0 0 auto;
    color: #d4af37;
    font-size: 17px;
    font-weight: bold;
}

.enfrentamiento .equipo img {
    width: 55px;
    height: 55px;
}

.resumen-datos {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

    .logo {
        text-align: center;
        font-size: 22px;
        line-height: 1.15;
    }

    .logo img {
    width: 90px;
    height: auto;
}

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        font-size: 14px;
    }

    #btnAdmin {
        font-size: 13px;
        padding: 9px 15px;
    }


/* ==============================
   ACCIONES FIJAS EN TABLA MÓVIL
   ============================== */

@media (max-width: 700px) {

    #tabla-registros th:last-child,
    #tabla-registros td:last-child {
        position: sticky;
        right: 0;
        background-color: #202020;
        z-index: 3;
        box-shadow: -5px 0 8px rgba(0, 0, 0, 0.35);
    }

    #tabla-registros td:last-child {
        background-color: #101010;
    }

    #tabla-registros td:last-child button {
        display: block;
        width: 150px;
        margin: 6px auto;
        white-space: normal;
    }
}

/* ==============================
   REGLAMENTO Y CÓMO PARTICIPAR - MÓVIL
   ============================== */

@media (max-width: 700px) {

    #reglamento,
    #como-participar {
        margin: 30px 10px;
        padding: 25px 18px;
    }

    #reglamento h2,
    #como-participar h2 {
        font-size: 24px;
        line-height: 1.3;
        margin-bottom: 25px;
    }

    #reglamento h3,
    #como-participar h3 {
        font-size: 18px;
        line-height: 1.4;
        margin-top: 25px;
    }

    #reglamento p,
    #como-participar p {
        font-size: 15px;
        line-height: 1.6;
    }

}

.seccion-colapsada {
    padding: 20px 25px !important;
}

.seccion-colapsada h2 {
    margin-bottom: 15px !important;
}

.seccion-colapsada h3,
.seccion-colapsada p {
    display: none;
}

.seccion-colapsada #tabla-clasificacion-temporada {
    display: none;
}

.seccion-colapsada#seccion-clasificacion-temporada {
    padding: 20px 25px !important;
}

.seccion-colapsada#seccion-clasificacion-temporada h2 {
    margin-bottom: 15px !important;
}

/* ==============================
   BOTONES MOSTRAR / OCULTAR
   ============================== */

.btn-toggle-seccion {
    display: block;
    margin: 0 auto 25px;
    padding: 10px 20px;
    background-color: #202020;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-toggle-seccion:hover {
    background-color: #d4af37;
    color: #111;
}

/* ==============================
   BOTÓN ANULAR / REHABILITAR PARTIDO
   ============================== */

.btn-anular-partido {
    display: block;
    margin: 15px auto 5px;
    padding: 9px 18px;
    background-color: #202020;
    color: #d4af37;
    border: 1px solid #d4af37;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-anular-partido:hover {
    background-color: #d4af37;
    color: #111;
}

.btn-anular-partido:disabled {
    opacity: 1;
    cursor: pointer;
}