/* ============================
   Reset y tipografía
============================ */
* {
    margin: 0;
    padding: 0;
  
    font-family: 'Poppins', sans-serif;
}

body {
    background:  #14374e;
    color: #222;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* ============================
   Header y menú
============================ */
header {
    background: #14374e;
    color: #fff;
    padding: 15px 0;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 100;
}

/* contenedor centrado */
.header-container {
    max-width: 1000px;   /* más angosto */
    margin: 0 auto;      /* centra el menú */
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-container {
    max-width: 1000px;       
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between; /* logo izquierda / menú derecha */
    align-items: center;
  
}

/* menú */
.nav-menu {
    display: flex;
    gap: 25px;
}

/* links */
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #00b4ff;
}

/* 📱 versión celular */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-menu {
        flex-direction: column;
        width: 100%;
        text-align: center;
        gap: 12px;
    }

    .nav-menu a {
        display: block;
        padding: 10px;
    }

}

/* menú */
.nav-menu {
    display: flex;
    gap: 25px;
}

/* links */
.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.nav-menu a:hover {
    color: #00b4ff;
}

/* responsive celular */
@media (max-width: 768px) {

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .nav-menu {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 10px;
    }

}

.logo h1 {
    font-size: 1.8rem;
}

.logo p {
    font-size: 0.85rem;
    color: #c0d4e0;
}

nav {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav a:hover {
    background-color: rgba(255,255,255,0.15);
}

/* ============================
   Hero section
============================ */
.hero {
    position: relative;
    background: url('IMG_0156.jpgs') center/cover no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/* ============================
   Hero con fondo centrado y overlay
============================ */
.hero {
    position: relative;
    min-height: 500px; /* ajusta la altura según necesites */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /* aquí cambias la foto fácilmente */
    background: url('2.jpeg') center center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background: rgba(20, 55, 78, 0.6); /* overlay para mejorar lectura */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2; /* para que el texto esté por encima del overlay */
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
}

/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
    .hero {
        min-height: 350px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.5rem;
}

/* ============================
   Secciones
============================ */
/* Sección Proyectos */
.section.proyectos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 80px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: url('4.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}

/* Sección Proyectos con fondo de imagen */
.section.proyectos {
    position: relative;
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 20px;
    overflow: hidden;
    color: #fff;
    text-align: center;

    /* Fondo de imagen que solo aplica a proyectos */
    background: url('crrito.jpeg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 12px 35px rgba(0,0,0,0.5);
}

/* Overlay para mejorar legibilidad */
.section.proyectos::before {
    content: "";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5); /* oscurece la imagen para que el texto se lea */
    z-index:0;
}

/* Contenido sobre overlay */
.section.proyectos * {
    position: relative;
    z-index: 1;
}

/* Títulos y párrafos */
.section.proyectos h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.section.proyectos p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
    color: #fff;
}

/* Contenedor de tarjetas */
.proyectos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Tarjetas de proyecto */
.card {
    background: rgba(255,255,255,0.95);
    color: #222;
    width: 250px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 1rem;
    text-align: center;
}

.card button {
    margin-top: 15px;
    padding: 10px 20px;
    border: none;
    background-color: #00aaff;
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.card button:hover {
    background-color: #0055aa;
}


/* Contenido encima del overlay */
.section.proyectos * { position: relative; z-index:1; }

/* Título y párrafo */
.section.proyectos h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.section.proyectos p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Contenedor de tarjetas */
.proyectos-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

/* Tarjetas con mini-fondo */
.card {
    width: 300px;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s;
    background-size: cover;
    background-position: center;
}

/* Efecto hover */
.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    filter: brightness(1.1);
}

/* Texto de tarjeta con fondo semitransparente */
.card h3, .card p {
    background: rgba(0,0,0,0.5);
    padding: 5px 10px;
    border-radius: 10px;
}

/* Botón moderno */
.card button {
    margin-top: 15px;
    padding: 12px 25px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #dedcd5, #f4f5f8);
    color: #222;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.3s;
}

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

.section h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 30px;
    border-left: 5px solid #fcfcff;
    padding-left: 10px;
}

/* ============================
   Cards de proyectos
============================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ============================
   Partidos
============================ */
.match-item {
    display: flex;
    justify-content: space-between;
    background: #fff;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.match-item:hover {
    transform: translateY(-3px);
}

/* ============================
   Galería
============================ */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.gallery img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.4s, box-shadow 0.4s;
}

.gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}


    /* Formulario de contacto moderno */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-family: 'Arial', sans-serif;
}

/* Inputs y textarea */
.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border 0.3s, box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00aaff;
    box-shadow: 0 0 8px rgba(0, 170, 255, 0.4);
}

/* Textarea tamaño */
.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

/* Botón de enviar */
.contact-form button {
    padding: 14px;
    background: #14374e;
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: #00aaff;
    transform: translateY(-2px);
}

/* Mensajes de error o éxito */
.contact-form .form-message {
    font-size: 0.95rem;
    color: #ff6f61;
    text-align: center;
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .contact-form {
        padding: 30px 20px;
    }
}

/* ============================
   Footer
============================ */
footer {
    text-align: center;
    padding: 25px 20px;
    background: #14374e;
    color: #fff;
    margin-top: 40px;
}

/* ============================
   Responsive
============================ */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 10px;
        margin-top: 10px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    .match-item {
        flex-direction: column;
        gap: 5px;
    }
}
/* Sección Directivos con fondo de imagen */
.section.directivos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 80px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);

    /* Fondo de imagen (cambiá la URL por la que quieras) */
    background: url('URL_IMAGEN_FONDO_DIRECTIVOS.jpg1') no-repeat center center;
    background-size: cover;
}

/* Sección Directivos con overlay y fondo */
.section.directivos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    text-align: center;
    background: url('URL_IMAGEN_FONDO_DIRECTIVOS.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* Overlay para mejorar legibilidad */
.section.directivos::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

/* Contenido sobre overlay */
.section.directivos * {
    position: relative;
    z-index: 1;
}

/* Título y descripción */
.section.directivos h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.section.directivos p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Contenedor de tarjetas alineadas horizontalmente */
.directivos-container {
    display: flex;
    flex-wrap: nowrap; /* no columnas, lado a lado */
    justify-content: center;
    gap: 20px;
    overflow-x: auto; /* scroll horizontal en pantallas pequeñas */
    padding-bottom: 10px; /* espacio para scroll */
}

/* Tarjetas más pequeñas y modernas */
.card {
    background: rgba(255,255,255,0.95);
    color: #222;
    width: 180px; /* más compactas */
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0; /* evita que se encojan en scroll horizontal */
}

/* Hover en tarjetas */
.card:hover {
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0,0,0,0.5);
}

/* Imagen del directivo */
.card img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 2px solid #c8c8c8;
}

/* Nombre del directivo */
.card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
}

/* Cargo del directivo */
.card p {
    font-size: 0.95rem;
    color: #555;
    text-align: center;
}

/* Responsive: scroll horizontal en pantallas pequeñas */
@media (max-width: 900px) {
    .directivos-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
    }
}
/* Sección Jugador Destacado con fondo de imagen */
.section.jugador-destacado {
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    color: #fff;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);

    /* Fondo con imagen que se puede cambiar */
    background: url('mv.jpeg') no-repeat center top;
    background-size: cover;
}

section.jugador-destacado{
    position: relative;
    background-image: url("tu-imagen.jpg");
    background-size: cover;        /* adapta la imagen a cualquier pantalla */
    background-position: center;   /* mantiene el centro visible */
    background-repeat: no-repeat;
    min-height: 400px;             /* evita que se aplaste en pantallas chicas */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

section.jugador-destacado{
    position: relative;
    background-image: url("mv.jpeg");
    background-size: cover;
    background-position: center 40%; /* ajusta para que el rostro quede visible */
    background-repeat: no-repeat;
}

section.jugador-destacado::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

section.jugador-destacado > *{
    position: relative;
    z-index: 1;
}


section.jugador-destacado > *{
    position: relative;
    z-index: 1;                    /* texto por arriba del overlay */
}
/* Contenedor flex para imagen + info */
.jugador-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
    position: relative; /* para que quede sobre el overlay */
    z-index: 1;
}

/* Imagen del jugador */
.jugador-imagen img {
    width: 300px;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.jugador-imagen img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

/* Información del jugador */
.jugador-info {
    max-width: 600px;
    text-align: left;
}

.jugador-info h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.jugador-info p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

.jugador-info .descripcion {
    font-style: italic;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 15px;
}

/* Responsive */
@media (max-width: 900px) {
    .jugador-container {
        flex-direction: column;
        text-align: center;
    }
    .jugador-info {
        max-width: 100%;
    }
}
/* Sección Trofeos */
.section.trofeos {
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: url('URL_IMAGEN_FONDO_TROFEOS.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

/* Overlay para legibilidad */
.section.trofeos::before {
    content: "";
    position: absolute;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(0,0,0,0.5);
    z-index:0;
}

/* Contenido sobre overlay */
.section.trofeos * {
    position: relative;
    z-index:1;
}

/* Títulos */
.section.trofeos h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.8rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.7);
}

.section.trofeos p {
    font-size: 1.2rem;
    margin-bottom: 50px;
    line-height: 1.6;
    color: #e0e0e0;
}

/* Contenedor de trofeos */
.trofeos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
    justify-items: center;
    align-items: start;
}

/* Tarjeta de trofeo */
.trofeo-card {
    background: rgba(255,255,255,0.95);
    color: #222;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Hover en tarjeta */
.trofeo-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

/* Imagen del trofeo */
.trofeo-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-bottom: 10px;
}

/* Nombre y año del trofeo */
.trofeo-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 5px;
    text-align: center;
}

.trofeo-card p {
    font-size: 1rem;
    text-align: center;
    color: #555;
}

/* Responsive */
@media (max-width: 900px) {
    .trofeos-container {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}
/* Sección Historia del Club */
.section.historia-club {
    max-width: 1200px;
    margin: 60px auto;
    padding: 60px 20px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    background: url('URL_IMAGEN_FONDO_HISTORIA.jpg') no-repeat center center;
    background-size: cover;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    color: #fff;
}

/* Overlay para legibilidad */
.section.historia-club{
    position: relative;
    background-image: url("3\ 12.15.55.jpg");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 20px;
}

.section.historia-club::before{
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 0;
}

.section.historia-club > *{
    position: relative;
    z-index: 1;
}
/* Contenido sobre overlay */
.section.historia-club * {
    position: relative;
    z-index:1;
}

/* Contenedor flex para imagen + texto */
.historia-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    justify-content: center;
}

/* Imagen lateral */
.historia-imagen img {
    width: 400px;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s, box-shadow 0.3s;
}

.historia-imagen img:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0,0,0,0.7);
}

/* Texto de historia */
.historia-texto {
    max-width: 600px;
}

.historia-texto h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.historia-texto p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 900px) {
    .historia-container {
        flex-direction: column;
        text-align: center;
    }

    .historia-texto {
        max-width: 100%;
    }
}