
/* Estilos para la imagen del logo */
.logo-bottom-right {
    width: 45px;
    height: auto;
    position: absolute;
    bottom: 20px;
    right: 30px;
    display: block;
    max-width: 45px;
    z-index: 1100;
    border: 2px solid #f5c518;
}

/* General */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #f5c518;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Modo claro */
@media (prefers-color-scheme: light) {
    body {
        background-color: #ffffff;
        color: #b8860b;
    }

    h1, h2 {
        color: #b8860b;
    }

    .menu {
        background-color: #f4f4f4;
    }

    .menu ul li a {
        color: #b8860b;
    }

    .menu ul li a:hover {
        background-color: #e0e0e0;
    }

    header {
        background-color: #ffffff;
        color: #b8860b;
    }

    footer {
        background-color: #ffffff;
        color: #b8860b;
    }

    footer a {
        color: #b8860b;
    }

    .logo-bottom-right {
        border: 2px solid #b8860b;
    }
}

/* Encabezados */
h1, h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #f5c518;
    margin-bottom: 15px;
    text-align: center;
    padding-top: 80px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 90%;
    margin: 0 auto;
}

/* Menú lateral */
.menu {
    width: 250px;
    height: 100vh;
    background-color: #000;
    position: fixed;
    top: 0;
    left: -250px;
    padding-top: 20px;
    transition: left 0.3s ease;
    z-index: 1000;
}

.menu ul {
    list-style-type: none;
    padding: 0;
}

.menu ul li {
    padding: 15px;
    text-align: center;
    font-size: 1.1rem;
}

.menu ul li a {
    color: #f5c518;
    text-decoration: none;
    display: block;
}

.menu ul li a:hover {
    background-color: #222;
}

/* Estilos del menú hamburguesa */
.menu-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle .dot {
    width: 30px;
    height: 5px;
    background-color: #f5c518;
    margin: 5px 0;
    border-radius: 5px;
}

.menu-toggle .dot:hover {
    background-color: #cfae17;
}

/* Contenido principal */
.content {
    margin-left: 0;
    padding: 20px;
    width: 100%;
    transition: margin-left 0.3s ease;
    z-index: 999;
}

/* Encabezado */
header {
    background-color: #000;
    color: #f5c518;
    padding: 20px;
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    padding-top: 60px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 90%;
    margin: 0 auto;
}

/* Footer */
footer {
    background-color: #000;
    color: #f5c518;
    text-align: center;
    padding: 10px;
}

footer a {
    color: #f5c518;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

/* Ajuste específico para Android */
@media screen and (max-width: 600px) {
    .logo-bottom-right {
        width: 40px;
        right: 20px;
        bottom: 20px;
    }

    h1, h2 {
        font-size: 1.8rem;
    }
}

/* Ajuste del tamaño del mapa */
.map-container {
    width: 100%;
    height: 700px;
    margin: 0 auto;
    display: block;
    padding: 0;
    position: relative;
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Ajustes para pantallas de tamaño mediano (tablets) */
@media screen and (max-width: 768px) {
    .map-container {
        height: 500px;
    }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media screen and (max-width: 480px) {
    .map-container {
        height: 400px;
    }
}

/* Sección de patrocinadores */
.patrocinadores {
    text-align: center;
    padding: 40px 20px;
    background-color: #1a1a1a;
    border-radius: 15px;
    margin-top: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Contenedor de patrocinadores */
.patrocinador-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Tarjetas de patrocinadores */
.patrocinador {
    background-color: #000;
    border: 1px solid #f5c518;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(245, 197, 24, 0.3);
    transition: transform 0.3s ease-in-out;
}

/* Animación al pasar el cursor */
.patrocinador:hover {
    transform: scale(1.05);
}

/* Estilo de los logos */
.patrocinador-logo {
    width: 100px;
    height: auto;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 2px solid #f5c518;
}

/* Texto dentro de patrocinadores */
.patrocinador h3 {
    font-size: 1.3rem;
    color: #f5c518;
    margin-top: 10px;
}

.patrocinador p {
    font-size: 1rem;
    color: #ccc;
}

/* Ajustes para pantallas medianas y móviles */
@media (max-width: 768px) {
    .patrocinador {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .patrocinador-logo {
        width: 80px;
    }

    .patrocinador h3 {
        font-size: 1.1rem;
    }

    .patrocinador p {
        font-size: 0.9rem;
    }
}

/* -------------------------- */
/* Estilos para la galería */
/* -------------------------- */
.carousel {
    max-width: 900px;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

/* Imágenes del carrusel */
.carousel-inner img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

/* Ajustes para botones del carrusel */
.carousel-control-prev,
.carousel-control-next {
    width: 8%;
}

/* Íconos de control del carrusel */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

/* Indicadores del carrusel */
.carousel-indicators button {
    background-color: #f5c518;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 5px;
}

/* Ajuste para el contenido */
.content {
    padding: 20px;
    margin-top: 20px;
}

/* Ajuste para el footer */
footer {
    background-color: #000;
    color: #f5c518;
    text-align: center;
    padding: 15px 10px;
    font-size: 1rem;
    margin-top: 20px;
}

/* Asegura que el footer no se amontone */
footer p {
    margin: 5px 0;
}

/* Ajustes para pantallas medianas (tablets) */
@media screen and (max-width: 768px) {
    .carousel {
        max-width: 100%;
        margin: 20px auto;
    }

    .carousel-inner img {
        height: 300px;
    }

    .logo-bottom-right {
        width: 40px;
        right: 20px;
        bottom: 20px;
    }

    footer {
        padding: 12px 8px;
        font-size: 0.95rem;
    }
}

/* Ajustes para pantallas pequeñas (móviles) */
@media screen and (max-width: 480px) {
    .carousel {
        max-width: 100%;
        margin: 10px auto;
    }

    .carousel-inner img {
        height: 250px;
    }

    .logo-bottom-right {
        width: 35px;
        right: 15px;
        bottom: 15px;
    }

    footer {
        padding: 10px 5px;
        font-size: 0.9rem;
    }
}
/* Estilos de los jugadores como cards */
.jugadores-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.jugador-card {
    background-color: #000;
    color: #f5c518;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.jugador-card:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

.jugador-info {
    padding: 20px;
    background-color: #222;
    border-top: 2px solid #f5c518;
}

.jugador-info h3 {
    font-size: 1.5rem;
    color: #f5c518;
    margin-bottom: 10px;
}

.jugador-info p {
    font-size: 1rem;
    color: #ccc;
}

/* Animación al seleccionar la carta */
.jugador-card:active {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}
/* Estilos para el encabezado */
header {
    background: linear-gradient(90deg, #000000, #1a1a1a);
    color: #f5c518;
    padding: 25px 15px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    margin: 0 auto;
    border-bottom: 4px solid #f5c518;
    box-shadow: 0 4px 10px rgba(245, 197, 24, 0.3);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Estilo mejorado del h1 */
h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: bold;
    margin: 10px 0;
    padding: 10px;
    text-transform: uppercase;
    text-shadow: 2px 2px 8px rgba(245, 197, 24, 0.5);
    transition: text-shadow 0.3s ease-in-out;
}

/* Efecto de iluminación al pasar el cursor */
h1:hover {
    text-shadow: 0px 0px 15px rgba(245, 197, 24, 0.8);
}

/* Ajustes para modo claro */
@media (prefers-color-scheme: light) {
    header {
        background: linear-gradient(90deg, #ffffff, #f4f4f4);
        color: #b8860b;
        border-bottom: 4px solid #b8860b;
        box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    }

    h1 {
        text-shadow: 2px 2px 8px rgba(184, 134, 11, 0.5);
    }

    h1:hover {
        text-shadow: 0px 0px 15px rgba(184, 134, 11, 0.8);
    }
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    header {
        padding: 20px;
    }

    h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 15px;
    }

    h1 {
        font-size: 2rem;
    }
}
.main-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 20px;
    background: linear-gradient(90deg, #000000, #1a1a1a);
    color: #f5c518;
    border-bottom: 4px solid #f5c518;
    box-shadow: 0 4px 10px rgba(245, 197, 24, 0.3);
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
}

.main-header h1 {
    flex: 1 1 60%;
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin: 0;
    padding: 10px;
    text-shadow: 2px 2px 8px rgba(245, 197, 24, 0.5);
    transition: text-shadow 0.3s ease-in-out;
}

.logo-right {
    flex: 0 0 auto;
    max-width: 120px;
    height: auto;
    margin-left: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(245, 197, 24, 0.4);
}

/* Responsivo: en pantallas pequeñas, poner logo debajo del título */
@media (max-width: 600px) {
    .main-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-right {
        margin: 15px 0 0 0;
        max-width: 100px;
    }
}

/* Modo claro */
@media (prefers-color-scheme: light) {
    .main-header {
        background: linear-gradient(90deg, #ffffff, #f4f4f4);
        color: #b8860b;
        border-bottom: 4px solid #b8860b;
        box-shadow: 0 4px 10px rgba(184, 134, 11, 0.3);
    }

    .main-header h1 {
        text-shadow: 2px 2px 8px rgba(184, 134, 11, 0.5);
    }

    .logo-right {
        box-shadow: 0 0 10px rgba(184, 134, 11, 0.4);
    }
}
.tabla-container {
    width: 100%;
    overflow-x: auto;               /* Scroll horizontal */
    -webkit-overflow-scrolling: touch;
    padding-left: 5px;              /* espacio para primera columna */
    box-sizing: border-box;
}

#tabla-asistencias {
    border-collapse: collapse;
    width: max-content;             /* ancho según contenido */
    min-width: 100%;                /* se adapta al contenedor */
}


#tabla-asistencias th,
#tabla-asistencias td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: center;
    font-size: 14px;
    white-space: nowrap;            /* 🔑 columnas en una sola línea */
}

#tabla-asistencias th:first-child,
#tabla-asistencias td:first-child {
    text-align: left;
    min-width: 200px;               /* más espacio para nombres */
}

#tabla-asistencias th {
    background-color: #f5c518;
    color: #000;
    position: sticky;
    top: 0;
    z-index: 2;
}

/* 📱 Ajustes móviles */
@media (max-width: 768px) {
    #tabla-asistencias th,
    #tabla-asistencias td {
        font-size: 12px;
        padding: 5px 6px;
    }
}

@media (max-width: 480px) {
    #tabla-asistencias th,
    #tabla-asistencias td {
        font-size: 11px;
        padding: 4px 5px;
    }
}
#descargarPDF {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: #2980b9; /* Azul FIFA */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
}

#descargarPDF:hover {
    background-color: #1f5c85;
}
/* Botón flotante de Facebook */
#fb-float.fb-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #1877f2; /* Azul oficial Facebook */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  color: white;
  text-decoration: none;
  overflow: hidden;
}

/* Ícono SVG blanco dentro */
#fb-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* Tooltip */
.fb-tooltip {
  position: absolute;
  right: 70px;
  bottom: 50%;
  transform: translateY(50%);
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  white-space: nowrap;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-in-out;
}

/* Mostrar tooltip al pasar mouse (en PC) */
#fb-float:hover .fb-tooltip {
  opacity: 1;
}
.content section p {
  background-color: #fdf6e3; /* color suave de fondo */
  border-left: 4px solid #fcbf49; /* barra dorada a la izquierda */
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  line-height: 1.6;
  font-size: 1rem;
}
.content section h2 {
  color: #ffe600; /* título más oscuro */
  font-size: 2rem;
  margin-bottom: 20px;
}
.content section p strong {
  color: #fcbf49; /* dorado */
  font-weight: 700;
  background-color: rgba(236, 180, 11, 0.2);
  padding: 2px 6px;
  border-radius: 4px;
}
.content section {
  font-family: 'Roboto', sans-serif;
  font-size: 1.05rem;
  color: #222;
  line-height: 1.7;
  margin: 0 10px;
}
/* Solo para la página de torneos */
.torneos-page {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    text-align: center;
}

.torneos-page .main-header {
    background-color: #1877f2;
    color: white;
    padding: 20px;
    position: relative;
}

.torneos-page .main-header .logo-right {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 60px;
    height: auto;
}

.torneos-page section {
    margin: 40px auto;
    max-width: 900px;
}

.torneos-page section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    border-bottom: 2px solid #1877f2;
    display: inline-block;
    padding-bottom: 5px;
}

.torneos-page .torneo-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 20px;
    margin: 15px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 600px;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
}

.torneos-page .torneo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.torneos-page .historial ul {
    list-style-type: none;
    padding: 0;
}

.torneos-page .historial ul li {
    background-color: #fff;
    margin: 10px auto;
    padding: 15px;
    border-radius: 12px;
    max-width: 500px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    font-weight: bold;
}

.torneos-page .historial ul li:nth-child(1) { border-left: 5px solid gold; }
.torneos-page .historial ul li:nth-child(2) { border-left: 5px solid silver; }
.torneos-page .historial ul li:nth-child(3) { border-left: 5px solid #cd7f32; }

.torneos-page footer {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    margin-top: 50px;
    font-size: 0.9em;
}

/* Responsive */
@media screen and (max-width: 600px) {
    .torneos-page .torneo-card, 
    .torneos-page .historial ul li {
        max-width: 90%;
    }
    .torneos-page .main-header .logo-right {
        position: static;
        margin-top: 15px;
    }
}
/* Estilos para resaltar filas al pasar el cursor */
#tabla-asistencias tbody tr {
    transition: background-color 0.2s ease;
}

#tabla-asistencias tbody tr:hover {
    background-color: #f0f8ff !important;
    cursor: pointer;
}