/* Specific style for the "Cartas" link in the navigation */
.nav-links li a[href="cartas.html"] {
    color: #ff5733;
    /* Cambia esto al color que desees */
}

/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f0f2f5;
    color: #333;
}

header {
    background-color: #003366;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    /* Asegura que el header tenga un contexto de apilamiento */
    z-index: 10;
    /* Mayor que el z-index de .hero */
}

nav {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-left: auto;
    padding: 0;
}

.nav-links li {
    margin-left: 2rem;
    position: relative;
    /* Para dropdown */
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #0099cc;
}

/* Dropdown Styles */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    z-index: 1;
    min-width: 160px;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-content a:hover {
    background-color: #575757;
    color: #0099cc;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: #0099cc;
}

/* Hero Section */
.hero {
    position: relative;
    text-align: center;
    color: white;
}

.hero img {
    width: 100%;
    height: auto;
    opacity: 0.7;
}

.hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-text h1 {
    font-size: 3rem;
    margin: 0;
}

.hero-text p {
    font-size: 1.5rem;
    margin: 0;
}

main {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
}

section {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

h2,
h3 {
    color: #003366;
    text-align: center;
}

footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    bottom: 0;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

a {
    color: #003366;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #0099cc;
}

/* History Page Specific */
.history-main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80vh;
    text-align: center;
}

/* Participants Page Specific */
.participants-main {
    text-align: center;
}

.participants-main h2 {
    margin-bottom: 1.5rem;
}

.participant {
    border: 1px solid #ddd;
    padding: 1.5rem;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f9f9f9;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participant-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.participant h3 {
    margin-top: 0;
    color: #003366;
}

.participant p {
    margin: 0.5rem 0;
}

.participant ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.participant ul li {
    margin-bottom: 0.5rem;
}

.participant ul li strong {
    color: #003366;
}

.participant:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.video-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    background-color: #003366;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.video-button:hover {
    background-color: #00509e;
}

.video-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
}

/* Video Page Specific */
.videos-main {
    padding: 2rem;
    margin: 2rem auto;
    max-width: 800px;
    text-align: center;
}

.videos-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.video {
    display: flex;
    align-items: flex-start;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 700px;
}

.video-thumbnail {
    width: 150px;
    height: auto;
    margin-right: 1rem;
    border-radius: 4px;
}

.video-details {
    flex: 1;
    text-align: left;
}

.video-details h3 {
    margin: 0 0 0.5rem 0;
    color: #003366;
}

.video-details p {
    margin: 0;
    color: #666;
}

/* Cards Page Specific */
.cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.card {
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    padding: 1rem;
    max-width: 200px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.card h3 {
    color: #003366;
}

.card p {
    margin: 0.5rem 0;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Filter Styles */
label[for="filter"],
#filter {
    margin: 1rem;
    font-size: 1rem;
}

/* No Cards Found Message */
.no-cards-message {
    text-align: center;
    font-size: 1.5rem;
    color: #ff0000;
    margin-top: 2rem;
}

/* Matches Page Specific */
.match-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.match {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 1rem;
}

.vs {
    font-size: 2rem;
    color: #003366;
}

/* Responsive Styles */

/* Estilos para la sección de competiciones */
.competitions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
}

.competition {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    width: 300px;
}

.competition img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.competition h3 {
    color: #003366;
    margin-bottom: 0.5rem;
}

.competition p {
    margin: 0.5rem 0;
}

.competition .button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.competition a {
    background-color: #003366;
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.competition a:hover {
    background-color: #00509e;
}

.directivo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.member {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    align-items: center;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
}

.member-info h3 {
    margin-top: 0;
    color: #003366;
}

/* Contact Form Specific */
.contact-form {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#chatbot-container {
    margin-top: 2rem;
}

.member-info p {
    margin: 0.5rem 0;
}

.member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Filters Section */
.filters {
    margin-bottom: 1.5rem;
    text-align: center;
}

.filters label {
    font-weight: bold;
    margin-right: 0.5rem;
}

.filters select {
    padding: 0.5rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f9f9f9;
    color: #333;
    transition: border-color 0.3s ease;
}

.filters select:focus {
    border-color: #003366;
    outline: none;
}

/* Responsive Styles */

/* Esconder el menú hamburguesa por defecto */
.menu-toggle {
    display: none;
}


/* Estilos para la sección de enlaces */
.links-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
}

.link-item {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    width: 300px;
    transition: transform 0.3s ease;
}

.link-item img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    cursor: pointer;
}

.link-item h3 {
    color: #003366;
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.link-item p {
    margin: 0.5rem 0;
    cursor: pointer;
}

.link-item:hover {
    transform: translateY(-10px);
}

.link-item a {
    text-decoration: none;
    color: inherit;
}

/* Estilos para la sección de cartas de la jornada */
.matches-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    padding: 2rem;
}

.match {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    text-align: center;
    width: 650px;
    /* Aumenta el ancho para acomodar el VS */
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.player-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.match img {
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
}

.player-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-top: -30px;
    border: 2px solid #fff;
}

.vs {
    font-size: 2rem;
    font-weight: bold;
    color: #003366;
}

/* Configurar el diseño para dispositivos pequeños */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #003366;
        position: absolute;
        top: 80px;
        /* Altura del header */
        left: 0;
        padding: 1rem 0;
        z-index: 10;
        /* Mayor que el z-index de .hero */
    }

    .nav-links li {
        margin: 0;
        text-align: center;
        padding: 1rem 0;
    }

    .nav-links li a {
        color: white;
        text-decoration: none;
        display: block;
    }

    .nav-links li a:hover {
        background-color: #00509e;
    }

    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 2rem;
        color: white;
        cursor: pointer;
        position: absolute;
        right: 20px;
        /* Alineación a la derecha */
        top: 20px;
        /* Alineación vertical */
    }

    .nav-links.active {
        display: flex;
    }
}