/* ===== VARIABLES GLOBALES (REFACTOR) ===== */
:root {

    /* ===== FONDOS ===== */
    --bg_principal: #f2f6fc;
    --bg_contenedor: #ffffff;
    --bg_header: #003366;
    --bg_footer: #002244;
    --bg_secundario: #e6f0ff;
    --bg_secundario_2: #f1f6ff;

    /* ===== TEXTO ===== */
    --text_principal: #1a1a1a;
    --text_secundario: #003366;
    --text_terciario: #007acc;
    --text_claro: #ffffff;

    /* ===== INTERACTIVOS ===== */
    --accent: #38bdf8;
    --accent_hover: #0ea5e9;

    /* ===== BORDES ===== */
    --border_principal: #003366;
    --border_suave: #ccc;

    /* ===== SOMBRA ===== */
    --sombra: 0px 4px 10px rgba(0,0,0,0.1);

    /* ===== FUENTE ===== */
    --fuente_principal: Arial, sans-serif;
}

.oscuro {

    /* ===== FONDOS ===== */
    --bg_principal: #050505;
    --bg_contenedor: #111111;
    --bg_header: #0e0e0e;
    --bg_footer: #000000;
    --bg_secundario: #1a1a1a;
    --bg_secundario_2: #141414;

    /* ===== TEXTO ===== */
    --text_principal: #ffb380;
    --text_secundario: #ff7a00;
    --text_terciario: #ff7a00;
    --text_claro: #ff7a00;
  
    /* ===== INTERACTIVOS ===== */
    --accent: #d16500a4;
    --accent_hover: #d1650080;

    /* ===== BORDES ===== */
    --border_principal: #ff7a00;
    --border_suave: #333;

    /* ===== SOMBRA ===== */
    --sombra: 0px 4px 15px rgba(0,0,0,0.8);
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== BODY ===== */
#body_principal {
    font-family: var(--fuente_principal);
    background-color: var(--bg_principal);
    color: var(--text_principal);
    line-height: 1.6;
}

/* ===== HEADER ===== */
#header_principal {
    background-color: var(--bg_header);
    padding: 10px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    position: sticky;
    top: 0;
    z-index: 1000;
}

#titulo_principal {
    color: var(--text_claro);
}

.nav_principal .nav_link {
    color: var(--text_claro);
    text-decoration: none;
    margin: 0 15px;
    padding: 10px 15px;
    border-radius: 5px;
    transition: 0.3s;
}

.nav_principal .nav_link:hover {
    background-color: var(--bg_header);
    filter: brightness(1.6);
}

.btn_modo {
    /*tamanio boton*/
    width: 140px;
    height: 40px;

    margin-left: auto;
    padding: 6px 14px;

    background-color: var(--accent);
    color: var(--text_claro);

    border: none;
    border-radius: 20px;

    font-size: 14px;
    font-family: var(--fuente_principal);

    cursor: pointer;
    transition: all 0.25s ease;
}

/* Hover */
.btn_modo:hover {
    background-color: var(--accent_hover);
    transform: scale(1.05);
}

.playera_index {
    width: 175px;
    height: 175px;
    margin: 10px 0;
}

.datos_index figure {
  text-align: center;
  margin-top: 10px;
}

.datos_index figure {
  display: inline-block;
  margin: 0 5px; /* 👈 aquí las “pegas” */
}

/* ===== LISTA JUGADORES FAVORITOS (NUEVO) ===== */


/* TITULO */
.bloque_jugadores p {
    font-weight: bold;
    color: var(--text_principal);
}

/* INPUT + BOTON */
.bloque_jugadores input {
    width: 70%;
    padding: 8px;

    border-radius: 6px;
    border: 1px solid var(--border_suave);

    background-color: var(--bg_contenedor);
    color: var(--text_principal);
}

.bloque_jugadores button {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;

    background-color: var(--accent);
    color: var(--text_claro);

    cursor: pointer;
    transition: 0.25s;
}

.bloque_jugadores button:hover {
    background-color: var(--accent_hover);
}

/* LISTA */
#lista {
    list-style: disc;
    margin-left: 20px;

    text-align: left;
    direction: ltr;

    width: 100%;
}

/* ITEMS */
#lista li {
    margin-bottom: 5px;
    padding: 5px 10px;

    border-radius: 5px;

    transition: 0.2s;
}

/* HOVER */
#lista li:hover {
    transform: translateX(5px);
    color: var(--text_claro);
}

#main_index {
  display: grid;
  grid-template-columns: 2.8fr 1.2fr;
  grid-template-areas:
    "descripcion datos"
    "visual datos";
  gap: 20px;
  align-items: start;
}

.descripcion_index { grid-area: descripcion; }
.visual_index { grid-area: visual; }
.datos_index { grid-area: datos; }

/* ===== MAIN ===== */
#main_index {
    display: grid;
    grid-template-columns: 2.8fr 1.2fr;
    gap: 20px;
    grid-auto-flow: dense;

    padding: 30px;
    margin: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);
}

/* ===== DATOS ===== */
.datos_index {
    grid-column: 2;
    background-color: var(--bg_secundario);
    padding: 20px;
    border-left: 5px solid var(--border_principal);
    border-radius: 5px;
}

.titulo_datos {
    margin-bottom: 10px;
}

.dato_titulo {
    font-weight: bold;
    margin-top: 10px;
}

.dato_descripcion {
    margin-left: 20px;
    margin-bottom: 10px;
}

/* ===== DESCRIPCION ===== */
.descripcion_index {
    grid-column: 1;
    font-size: 18px;
    margin: 20px 0;
    color: var(--text_principal);
}

/* ===== VISUAL ===== */
.visual_index {
    grid-column: 1;
    text-align: center;
    margin-top: 30px;
}

.fuego_texto {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.fuego {
    width: 100px;
    height: 100px;
}

.frase {
    font-size: 20px;
    font-weight: bold;
    color: var(--text_secundario);
}

.escudo {
    width: 450px;
    height: 225px;
}

/* ===== ASIDE ===== */
.aside_principal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    background-color: var(--bg_header);
    color: var(--text_claro);
    padding: 25px;
    margin: 20px;
    border-radius: 10px;
}

.lado_izquierdo,
.lado_derecho {
    display: flex;
    flex-direction: column;
    gap: 35px;
}
.lado_derecho{
    align-items: flex-end;
}

.aside_titulo {
    margin-bottom: 10px;
    color: var(--text_claro);
}

.aside_lista {
    margin-bottom: 20px;
    list-style-position: none;
    text-align: right;
}

.aside_lista li {
    direction: rtl;
}

.contactos {
    display: flex;
    gap: 33px;
}

.contactos li {
    direction: ltr;
}

.aside_link {
    color: var(--accent);
    text-decoration: none;
}

.aside_link:hover {
    text-decoration: underline;
}

.imagen_leyenda {
    margin: 10px 0;
    border-radius: 8px;
}

.texto_leyenda {
    display: block;
    margin-top: 10px;
    color: var(--accent);
}

.audio_leyenda {
    margin-top: 10px;
}

.video_himno {
    margin-top: 10px;
    border-radius: 10px;
}

/* ===== MEDIA ===== */
img {
    border-radius: 8px;
}

video, audio {
    border-radius: 10px;
}

/* ===== FOOTER ===== */
#footer_principal {
    background-color: var(--bg_footer);
    color: var(--text_claro);
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

/* ===== HISTORIA ===== */
#main_historia {
    padding: 30px;
    margin: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);

    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
}

/* TITULO */
.titulo_historia {
    color: var(--text_secundario);
    margin-bottom: 20px;
}

/* SUBTITULOS */
.subtitulo_historia {
    color: var(--text_terciario);
    margin-top: 25px;
    margin-bottom: 10px;
}

/* PARRAFOS */
.parrafo_historia {
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text_principal);
}

.leyendas_historia {
    display: none;
}

.contenedor_carrusel {
    position: relative;
    display: inline-block;
}

/* BOTONES EXISTENTES */
.botonesDireccionales {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    width: 45px;
    height: 60px;

    background-color: rgba(0, 0, 0, 0);
    color: var(--text_claro);

    border: none;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 20%;

    transition: 0.25s;

}

.zona_imagen {
    position: relative;
    width: fit-content;
    margin: auto;
}

/* IZQUIERDA */
#boton_regresar {
    left: 0;
}

/* DERECHA */
#boton_siguiente {
    right: 0;
}

/* HOVER */
.botonesDireccionales:hover {
    background-color: var(--accent_hover);
}

.contenedor_carrusel {
    text-align: center;
}

.nombres_leyenda {
    margin-top: 12px;
    text-align: center;

    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;

    color: var(--text_secundario);

    padding: 6px 10px;
    border-radius: 6px;
}

/* ===== JUGADORES ===== */

#main_jugadores {
    padding: 30px;
    margin: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);
    text-align: center;
}

.titulo_jugadores {
    font-size: 22px;
    font-weight: bold;
    color: var(--text_secundario);
    margin-bottom: 20px;
}

.imagen_principal {
    border-radius: 10px;
    box-shadow: var(--sombra);
}

.imagen_secundaria {
    border-radius: 10px;
    box-shadow: var(--sombra);
    margin: 5px;
}
.imagen_secundaria:hover{
    transform: scale(1.15);
    filter: brightness(0.8);
    transition: 0.3s;
}

.btn_like,
.btn_dislike {
    border: none;
    padding: 4px 8px;
    margin-left: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;

    background-color: var(--bg_secundario);
    color: var(--text_principal);

    transition: all 0.25s ease;
}

.btn_dislike{
    background-color: red;
}

.btn_like{
    background-color: green;
}

/* LIKE */
.btn_like:hover {
    background-color: var(--accent);
    color: var(--text_claro);
}

/* DISLIKE */
.btn_dislike:hover {
    background-color: var(--accent_hover);
    color: var(--text_claro);
}

/* ===== ASIDE JUGADORES ===== */

.aside_jugadores {
    margin: 20px;
    padding: 20px;
    background-color: var(--bg_header);
    color: var(--text_claro);
    border-radius: 10px;
}

/* LISTA GENERAL */
.lista_posiciones {
    list-style: none;
}

/* TITULOS DE POSICION */
.posicion {
    font-weight: bold;
    font-size: 18px;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--text_claro);
}

/* LISTA DE JUGADORES */
.lista_jugadores {
    margin-left: 20px;
    margin-bottom: 15px;
}

/* JUGADORES */
.lista_jugadores li {
    margin-bottom: 5px;
    padding: 6px 10px;
    transition: all 0.3s ease;
    border-radius: 5px;
}

/* EFECTO HOVER */
.lista_jugadores li:hover {
    color: var(--text_claro);
    background-color: var(--bg_header);
    transform: translateX(8px);
    box-shadow: var(--sombra);
}

/* ===== FORMULARIO ===== */

#main_formulario {
    padding: 30px;
    margin: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);
}

/* TITULO */
.titulo_formulario {
    color: var(--text_secundario);
    margin-bottom: 20px;
    text-align: center;
}

/* FORM */
.formulario_pachuca {
    max-width: 600px;
    margin: auto;
}

/* FIELDSET */
.grupo_formulario {
    border: 2px solid var(--border_principal);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

/* LEGEND */
.legend_formulario {
    color: var(--text_secundario);
    font-weight: bold;
}

/* LABEL */
.label_formulario {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--text_principal);
}

/* INPUTS */
.input_formulario,
.textarea_formulario,
select {
    width: 100%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border_suave);
    margin-bottom: 10px;
    background-color: var(--bg_contenedor);
    color: var(--text_principal);
}

/* RADIO / CHECKBOX */
.label_radio,
.label_checkbox {
    margin-right: 15px;
    color: var(--text_principal);
}

/* BOTON */
.boton_formulario {
    background-color: var(--accent);
    color: var(--text_claro);
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.boton_formulario:hover {
    background-color: var(--accent_hover);
}
/* BOTON AGREGAR (MISMO ESTILO INPUT) */
#btnAgregarJugador {
    width: 20%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border_suave);
    background-color: var(--bg_contenedor);
    color: var(--text_principal);
    font-family: var(--fuente_principal);
    cursor: pointer;
    transition: all 0.25s ease;
}

#btnAgregarJugador:hover {
    background-color: var(--accent);
    color: var(--text_claro);
    border-color: var(--accent);
}

/* ocultar input real */
.input_file {
    display: none;
}

/* botón visual */
.label_file {
    display: block;
    width: 45%;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid var(--border_suave);
    background-color: var(--bg_contenedor);
    color: var(--text_principal);
    cursor: pointer;
    text-align: center;
    transition: 0.25s;
}

.label_file:hover {
    background-color: var(--accent);
    color: var(--text_claro);
}

/* RADIO */
.input_radio {
    accent-color: var(--accent);
    transform: scale(1.4);
    margin-right: 8px;
}

/* CHECKBOX */
.input_checkbox {
    accent-color: var(--accent);
    transform: scale(1.4);
    margin-right: 8px;
}

.label_radio,
.label_checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== TABLA TITULOS ===== */

.contenedor_tabla {
    margin: 20px;
    padding: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);
    overflow-x: auto;
}

.tabla_titulos {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

/* ENCABEZADOS */
.tabla_titulos th {
    background-color: var(--bg_header);
    color: var(--text_claro);
    padding: 10px;
    border: 1px solid var(--border_suave);
}

/* CELDAS */
.tabla_titulos td {
    padding: 10px;
    border: 1px solid var(--border_suave);
    vertical-align: middle;
    color: var(--text_principal);
}

/* FILAS */
.tabla_titulos tbody tr:nth-child(even) {
    background-color: var(--bg_secundario_2);
}

.tabla_titulos tbody tr:hover {
    background-color: var(--accent);
    color: var(--text_claro);
    transition: 0.3s;
}

/* COLUMNA EPOCA */
.epoca {
    font-weight: bold;
    background-color: var(--bg_secundario);
}

/* COLUMNA ANIO */
.anio {
    font-weight: bold;
    background-color: var(--bg_secundario_2);
}

/* ===== TITULOS ===== */

#main_titulos {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    
    padding: 30px;
    margin: 20px;
    background-color: var(--bg_contenedor);
    border-radius: 10px;
    box-shadow: var(--sombra);
}

/* MENU LATERAL */
.menu_titulos {
    position: sticky;
    top: 100px;

    align-self: start;

    display: flex;
    flex-direction: column;
    gap: 10px;
    
    width: 200px;
    height: fit-content;
}

.menu_link {
    text-decoration: none;
    color: var(--text_claro);
    background-color: var(--bg_header);
    padding: 10px 15px;
    border-radius: 6px;
    transition: 0.3s;
}

.menu_link:hover {
    background-color: var(--accent);
}

/* SECCIONES */
.seccion_titulos {
    grid-column: 2;
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.titulo_seccion {
    color: var(--text_secundario);
    margin-bottom: 15px;
    border-left: 5px solid var(--accent);
    padding-left: 10px;
}

/* LISTA */
.lista_titulos {
    list-style: none;
}

/* ITEM */
.item_titulo {
    font-weight: bold;
    margin-top: 20px;
    color: var(--text_terciario);
}

/* TEXTO */
.parrafo_titulo {
    margin: 10px 0 15px 0;
    text-align: justify;
    color: var(--text_principal);
}

/* IMAGENES */
.imagen_titulo {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 10px auto 25px auto;
    border-radius: 10px;
    box-shadow: var(--sombra);
}

#arriba {
    position: fixed;
    bottom: 20px;
    right: 20px;
    
    width: 40px;
    height: 35px;
    border-radius: 30%;
    
    background-color: var(--accent);
    color: var(--text_claro);
    font-size: 24px;
    
    border: none;
    outline: none;
    
    display: none;
    align-items: center;
    justify-content: center;
    
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.25);
}
/* hover */
#arriba:hover {
    background-color: var(--accent_hover);
}


/* ===== Tienda ===== */

/* BOTONES ACCIONES */
.btn_accion {
    padding: 6px 12px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    margin: 2px;
    font-family: var(--fuente_principal);
    transition: 0.2s;
}

.btn_editar {
    background-color: var(--accent);
    color: var(--text_claro);
}

.btn_eliminar {
    background-color: #c0392b;
    color: #fff;
}

.btn_accion:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* TABLA JERSEYS (hover suave) */
.tabla_jerseys tbody tr:hover {
    background-color: var(--bg_secundario_2);
    color: var(--text_principal);
}

/* FILA EN EDICIÓN */
.fila_editando {
    background-color: var(--bg_secundario);
    border-left: 5px solid var(--accent);
}

/* ===== TOAST (VENTANAS EMERGENTES) ===== */
.toast {
    position: fixed;
    top: 80px; /* 👈 BAJA el toast debajo del header */
    right: 20px;

    background-color: var(--accent);
    color: var(--text_claro);
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: var(--sombra);

    opacity: 0;
    transform: translateY(-20px);
    transition: 0.3s;

    z-index: 100; /* 👈 menor que el header */
}

/* ESTADO VISIBLE */
.toast.mostrar {
    opacity: 1;
    transform: translateY(0);
}

/* VARIANTES */
.toast.exito {
    background-color: #2ecc71;
}

.toast.error {
    background-color: #e74c3c;
}

/* INPUTS MODO OSCURO / GENERAL */
.input_formulario {
    background-color: var(--bg_contenedor);
    color: var(--text_principal);
    border: 1px solid var(--border_principal);
}

/* SELECT también */
select.input_formulario {
    background-color: var(--bg_contenedor);
    color: var(--text_principal);
}

/* FOCUS bonito */
.input_formulario:focus {
    outline: none;
    border-color: var(--accent);
}