/* Estilos para EFIL - Club */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #f4f4f9;
    color: #333;
}

header {
    /*background: #0056a6;
    color: white;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;*/
    background: #0056a6;
    color: white;
    display: flex;
    justify-content: space-between; /* logo a la izquierda, nav/botón a la derecha */
    align-items: center;
    padding: 0 1rem;
    position: relative; /* para que el menú desplegado se posicione bien */
}

header .logo img {
    height: 50px;
    flex: 1;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
}

nav ul li a:hover {
    text-decoration: underline;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 15px;
}

section {
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section h1, section h2 {
    color: #0056a6;
}

/* Textos justificados */
main p, main li {
    text-align: justify;
}

footer {
    text-align: center;
    background: #333;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer a {
    color: #ffd700;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Galería */
.galeria {
    padding: 20px;
    text-align: center;
}
.galeria .fotos {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.galeria img {
    width: 30%;
    max-width: 280px;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}
.galeria img:hover {
    transform: scale(1.05);
}

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

/* Mapa */
#ubicacion {
    padding: 20px;
    text-align: left;
}
#ubicacion .mapa {
    margin-top: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

/* ===== Menú Responsive ===== */
.menu-toggle {
  display: none;
}

@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    align-items: flex-start;
    background: #0056a6;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    display: none;  /* oculto por defecto */
    padding: 1rem;
    z-index: 1000;
  }

  nav ul li {
    margin: 0.5rem 0;
  }

  nav.active ul {
    display: flex;  /* visible cuando se activa con JS */
  }

  .menu-toggle {
    display: block;      /* ahora sí se ve en mobile */
    margin-left: auto;   /* lo manda a la derecha */
    font-size: 1.8rem;
    cursor: pointer;
    color: white;
  }

  
}