﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;

    background-image: url('Imagenes/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* ========== HEADER ========== */
.header {
    border-bottom: 5px solid black !important;
    background: linear-gradient(135deg, #ffd015 0%, #d4a800 100%);
    color: #000;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .logo img {
        height: 50px;
        width: auto;
    }

    .logo span {
        font-size: 1.3rem;
        font-weight: 800;
        letter-spacing: 1px;
        color: #000;
    }

/* ========== MENÚ PRINCIPAL ========== */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

    .nav-menu a {
        color: #000;
        text-decoration: none;
        font-weight: 600;
        transition: all 0.3s;
        font-size: 0.95rem;
        display: flex;
        align-items: center;
        gap: 5px;
    }

        .nav-menu a:hover {
            color: #fff;
        }

    .nav-menu i {
        font-size: 0.9rem;
    }

/* ========== DROPDOWN PRINCIPAL ========== */
.dropdown {
    position: relative !important;
}

    .dropdown > a i.fa-chevron-down {
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

    .dropdown:hover > a i.fa-chevron-down {
        transform: rotate(180deg);
    }

/* Menú desplegable */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: linear-gradient(135deg, #ffd015 0%, #d4a800 100%) !important;
    min-width: 240px !important;
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    list-style: none;
    z-index: 100 !important;
    display: none !important;
}


.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block !important;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.5rem;
    color: #000;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s;
}

    .dropdown-menu a:hover {
        background: rgba(0, 0, 0, 0.1);
        padding-left: 2rem;
        color: #fff;
    }

.dropdown-menu i {
    width: 20px;
    font-size: 0.9rem;
}

/* Separador */
.dropdown-menu .divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.2);
    margin: 0.5rem 0;
}

/* ========== SUBMENÚ ANIDADO ========== */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > a i.fa-chevron-right {
        margin-left: auto;
        font-size: 0.7rem;
        transition: transform 0.3s;
    }

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: linear-gradient(135deg, #ffd015 0%, #d4a800 100%);
    min-width: 200px;
    border-radius: 12px;
    padding: 0.8rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
    list-style: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu a {
    padding: 0.7rem 1.5rem;
}

/* ========== BOTÓN LOGIN ========== */
.login-btn {
    background: #000;
    color: #ffd015;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .login-btn:hover {
        background: #333;
        color: #ffd015;
        transform: translateY(-2px);
    }

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #000;
    transition: all 0.3s;
}

/* ========== HERO SECTION ========== */
.hero {
    background: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffd015;
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 0.3rem;
    animation: fadeInUp 1s ease;
}

.hero-content p {
    font-size: 1.5rem;
    margin: 0 0 2rem 0;
    animation: fadeInUp 1s ease 0.3s both;
    color: #ffd015;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #ffd015;
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s;
    animation: fadeInUp 1s ease 0.6s both;
}

    .cta-button:hover {
        background: white;
        transform: translateY(-3px);
        box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }

/* ========== CONTENT SECTIONS ========== */
.content-section {
    padding: 5rem 5%;
    background: #000;
}

    .content-section:nth-child(even) {
        background: #000;
    }

.container {
    max-width: 1200px;
    margin: 0 auto;
    color: #ffd015;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffd015;
    position: relative;
}

    .content-section h2:after {
        content: '';
        display: block;
        width: 100px;
        height: 4px;
        background: #ffd015;
        margin: 1rem auto;
    }

/* ========== RESULTS SECTION ========== */
.results {
    padding: 5rem 5%; /* Espaciado: 5rem arriba/abajo, 5% laterales */
    background: #000000; /* Fondo negro */
}

    /* Estilos comunes para títulos h2 en varias secciones */
    .results h2, .squad h2, .news h2 {
        text-align: center; /* Texto centrado */
        font-size: 2.5rem; /* Tamaño grande */
        margin-bottom: 3rem; /* Margen inferior grande */
        color: #ffd700; /* Color azul */
        position: relative; /* Posición relativa para el pseudo-elemento */
    }

        /* Línea decorativa debajo de los títulos (pseudo-elemento after) */
        .results h2:after, .squad h2:after, .news h2:after {
            content: ''; /* Necesario para crear el pseudo-elemento */
            display: block; /* Se muestra como bloque */
            width: 100px; /* Ancho de 100px */
            height: 4px; /* Alto de 4px */
            background: #ffd700; /* Color granate */
            margin: 1rem auto; /* Margen: 1rem arriba/abajo, auto laterales (centrado) */
        }

/* Contenedor de tarjetas de partidos */
.matches-container {
    display: grid; /* Usa CSS Grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Columnas automáticas, mínimo 300px, máximo 1 fracción */
    gap: 2rem; /* Espacio entre tarjetas */
    max-width: 1200px; /* Ancho máximo */
    margin: 0 auto; /* Centrado */
}

/* Tarjeta de partido individual */
.match-card {
    background: #ffd700; /* Fondo blanco */
    padding: 2rem; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center; /* Texto centrado */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s; /* Transición solo en transform */
}

    /* Efecto hover en tarjetas de partido */
    .match-card:hover {
        transform: translateY(-5px); /* Se eleva 5px */
        box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Sombra más intensa */
    }

    /* Nombre del equipo en tarjeta */
    .match-card .team {
        font-size: 1.2rem; /* Tamaño: 1.2rem */
        font-weight: 600; /* Seminegrita */
        color: #000; /* Color azul */
        margin-bottom: 1rem; /* Margen inferior */
    }

    /* Fecha del partido */
    .match-card .match-date {
        color: #666; /* Gris medio */
        font-size: 0.9rem; /* Tamaño más pequeño */
    }








/* ========== PPArtidos SECTION ========== */
.PPartidos {
    padding: 5rem 5%; /* Espaciado: 5rem arriba/abajo, 5% laterales */
    background: #000000; /* Fondo negro */
}

    /* Estilos comunes para títulos h2 en varias secciones */
    .PPartidos h2, .squad h2, .news h2 {
        text-align: center; /* Texto centrado */
        font-size: 2.5rem; /* Tamaño grande */
        margin-bottom: 3rem; /* Margen inferior grande */
        color: #ffd700; /* Color azul */
        position: relative; /* Posición relativa para el pseudo-elemento */
    }

        /* Línea decorativa debajo de los títulos (pseudo-elemento after) */
        .PPartidos h2:after, .squad h2:after, .news h2:after {
            content: ''; /* Necesario para crear el pseudo-elemento */
            display: block; /* Se muestra como bloque */
            width: 100px; /* Ancho de 100px */
            height: 4px; /* Alto de 4px */
            background: #ffd700; /* Color granate */
            margin: 1rem auto; /* Margen: 1rem arriba/abajo, auto laterales (centrado) */
        }

/* Contenedor de tarjetas de partidos */
.matches-container {
    display: grid; /* Usa CSS Grid */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Columnas automáticas, mínimo 300px, máximo 1 fracción */
    gap: 2rem; /* Espacio entre tarjetas */
    max-width: 1200px; /* Ancho máximo */
    margin: 0 auto; /* Centrado */
}

/* Tarjeta de partido individual */
.match-card {
    background: #ffd700; /* Fondo blanco */
    padding: 2rem; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    text-align: center; /* Texto centrado */
    box-shadow: 0 3px 10px rgba(0,0,0,0.1); /* Sombra suave */
    transition: transform 0.3s; /* Transición solo en transform */
}

    /* Efecto hover en tarjetas de partido */
    .match-card:hover {
        transform: translateY(-5px); /* Se eleva 5px */
        box-shadow: 0 5px 20px rgba(0,0,0,0.15); /* Sombra más intensa */
    }

    /* Nombre del equipo en tarjeta */
    .match-card .team {
        font-size: 1.2rem; /* Tamaño: 1.2rem */
        font-weight: 600; /* Seminegrita */
        color: #000; /* Color azul */
        margin-bottom: 1rem; /* Margen inferior */
    }

    /* Fecha del partido */
    .match-card .match-date {
        color: #666; /* Gris medio */
        font-size: 0.9rem; /* Tamaño más pequeño */
    }








/* Players Grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.player-card {
    text-align: center;
    background: #ffd015;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .player-card:hover {
        transform: translateY(-10px);
    }

    .player-card img {
        width: 150px;
        height: 150px;
        border-radius: 50%;
        margin-bottom: 1rem;
        object-fit: cover;
        border: 3px solid #000;
    }

    .player-card h3 {
        color: #000;
        margin-bottom: 0.5rem;
    }

    .player-card p {
        color: #000;
        font-weight: 600;
    }

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: slideDown 0.3s;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
}

    .close:hover {
        color: #ffd015;
    }

.modal-content h2 {
    text-align: center;
    color: #000;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        color: #333;
        font-weight: 500;
    }

    .form-group input {
        width: 100%;
        padding: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
    }

        .form-group input:focus {
            outline: none;
            border-color: #ffd015;
        }

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #ffd015;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

    .submit-btn:hover {
        background: #e6bc00;
    }

.register-link {
    text-align: center;
    margin-top: 1.5rem;
    color: #666;
}

    .register-link a {
        color: #ffd015;
        text-decoration: none;
        font-weight: 600;
    }

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    color: #ffd015;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: #ffd015;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

.footer-section a {
    color: #ffd015;
    text-decoration: none;
    transition: color 0.3s;
}

    .footer-section a:hover {
        color: #ffd015;
    }

.social-icons {
    display: flex;
    gap: 1rem;
}

    .social-icons a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255,255,255,0.1);
        border-radius: 50%;
        transition: all 0.3s;
    }

        .social-icons a:hover {
            background: #ffd015;
            color: #000;
            transform: translateY(-3px);
        }

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 1024px) {
    .nav-menu {
        gap: 1rem;
    }

        .nav-menu a {
            font-size: 0.85rem;
        }
}

@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

        .hamburger.active .bar:nth-child(2) {
            opacity: 0;
        }

        .hamburger.active .bar:nth-child(1) {
            transform: translateY(8px) rotate(45deg);
        }

        .hamburger.active .bar:nth-child(3) {
            transform: translateY(-8px) rotate(-45deg);
        }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        gap: 0;
        flex-direction: column;
        background: linear-gradient(135deg, #ffd015 0%, #d4a800 100%);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        padding: 1rem 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

        .nav-menu.active {
            left: 0;
        }

        .nav-menu li {
            width: 100%;
            margin: 0;
        }

        .nav-menu a {
            padding: 1rem 2rem;
            width: 100%;
            font-size: 1rem;
        }

    /* Dropdown en móvil */
    .dropdown {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.1);
        box-shadow: none;
        padding-left: 1rem;
        width: 100%;
    }

        .dropdown-menu.active {
            display: block;
        }

    .dropdown > a i.fa-chevron-down {
        float: right;
        margin-top: 5px;
    }

    /* Submenú en móvil */
    .dropdown-submenu {
        width: 100%;
    }

    .submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        background: rgba(0, 0, 0, 0.1);
        padding-left: 1rem;
        width: 100%;
        box-shadow: none;
    }

        .submenu.active {
            display: block;
        }

    .dropdown-submenu > a i.fa-chevron-right {
        float: right;
        margin-top: 5px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .content-section h2 {
        font-size: 1.8rem;
    }

    .players-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media screen and (max-width: 480px) {
    .logo span {
        font-size: 0.9rem;
    }

    .logo img {
        height: 35px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .cta-button {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .players-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }
}
