@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: #e6f2ff;
    color: #222;
}.contenedor-carrusel {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  display: flex;
  align-items: center;
}

.carrusel {
  overflow: hidden;
  width: 100%;
}

.carrusel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.tarjeta {
  flex: 0 0 calc(33.333% - 20px); /* 3 tarjetas por fila con espacio */
  margin: 0 10px;
  height: 300px;
  border-radius: 15px;
  overflow: hidden;
  text-decoration: none;
  color: white;
  position: relative;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.tarjeta:hover {
  transform: scale(1.05);
}

.tarjeta img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(75%);
  transition: filter 0.3s ease;
}

.tarjeta:hover img {
  filter: brightness(100%);
}

.tarjeta span {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.6);
  padding: 12px 0;
  text-align: center;
  font-size: 1.2em;
  font-weight: bold;
}

/* Botones de navegación */
.btn-carrusel {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s;
}

.btn-carrusel:hover {
  background: rgba(0, 0, 0, 0.8);
}

.prev {
  left: -40px;
}

.next {
  right: -40px;
}

@media (max-width: 900px) {
  .tarjeta {
    flex: 0 0 calc(50% - 20px); /* 2 tarjetas en pantallas medianas */
  }
}

@media (max-width: 600px) {
  .tarjeta {
    flex: 0 0 100%; /* 1 tarjeta en móviles */
  }
}
.bienvenida {
    background: linear-gradient(to right, #003366, #004080);
    color: #fff;
    padding: 50px 20px;
    text-align: center;
    border-bottom: 5px solid #001a33;
}

.bienvenida-contenido {
    max-width: 900px;
    margin: 0 auto;
}

.bienvenida h2 {
    font-size: 2.2em;
    margin-bottom: 20px;
    font-weight: bold;
}

.bienvenida p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
}


header {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 30px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

header h1 {
    font-size: 2.5em;
    margin: 0;
}
.carrusel {
  overflow: hidden;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.carrusel-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
  padding: 10px 0;
}

.tarjeta {
  flex: 0 0 350px;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.tarjeta img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.3s ease;
}

.tarjeta:hover img {
  transform: scale(1.05);
}

.tarjeta span {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.6);
  padding: 10px;
  font-weight: bold;
  text-align: center;
  font-size: 1.1rem;
  box-shadow: 0 0 5px #000;
}


.btn-carrusel {
  background: transparent;
  border: none;
  font-size: 2.5rem;
  color: #00ffcc;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.btn-carrusel:hover {
  color: #00aa88;
}
/* Responsive */
@media (max-width: 700px) {
    .contenedor {
        flex-direction: column;
        align-items: center;
    }
}
.selecciones-galeria {
    flex-direction: column;
    align-items: center;
  }
  .seleccion {
    width: 80%;
    max-width: 300px;
  }
  .seleccion img {
    width: 100%;
    height: auto;
  }
  section h1 {
    font-size: 24px;
    margin-top: 20px;
  }
  nav {
    padding: 15px;
  }
  nav ul li a {
    font-size: 16px;
  }


.selecciones-galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-content: center;
  padding: 50px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.seleccion {
  background-color: #fff;
  border-radius: 15px;
  padding: 25px 20px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  width: 220px;
}

.seleccion:hover {
  transform: translateY(-10px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.2);
}

.seleccion img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.seleccion img:hover {
  transform: scale(1.05);
}

.seleccion p {
  margin: 5px 0;
  font-weight: 600;
  color: #222;
}
.imagenes-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  background-color: #f4f4f4;
}

.imagen-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagen-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.imagen-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.imagen-item:hover img {
  transform: scale(1.05);
}

.imagen-item p {
  padding: 15px;
  font-size: 15px;
  color: #333;
  line-height: 1.4;
}

.imagen-item p strong {
  color: #000;
}
#Menu {
    background-color: #002244;
    padding: 10px 0;
}

/* Lista en línea */
#Menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
}
/* Fondo y padding del menú */
#Menu {
    background-color: #002244;
    padding: 10px 0;
}

/* Lista en línea */
#Menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 20px;
    overflow-x: auto;
}

/* Ítems del menú */
#Menu ul li {
    font-size: 14px;
    white-space: nowrap;
}

/* Enlaces menú: color visible, padding, transición */
#Menu ul li a {
    color: #24629c; /* color claro para visibilidad */
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Al pasar el cursor */
#Menu ul li a:hover {
    background-color: #0099ff; /* azul más vivo */
    color: #fff; /* texto blanco */
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.7); /* brillo sutil */
    cursor: pointer;
}



/* Ítems del menú */
#Menu ul li {
    font-size: 14px;
    white-space: nowrap;
}

/* Enlaces menú: color visible, padding, transición */
#Menu ul li a {
    color: #24629c; /* color claro para visibilidad */
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Al pasar el cursor */
#Menu ul li a:hover {
    background-color: #0099ff; /* azul más vivo */
    color: #fff; /* texto blanco */
    box-shadow: 0 0 8px rgba(0, 153, 255, 0.7); /* brillo sutil */
    cursor: pointer;
}






.descripcion {
  font-weight: 400;
  font-size: 0.9rem;
  color: #555;
  margin-top: 8px;
}

header#n2 {
    background: linear-gradient(to right, #003366, #0059b3);
    color: white;
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

header#n2 h1#n3 {
    font-size: 2.2em;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
    font-weight: bold;
}

/* NAVEGACIÓN */
nav#n4 ul {
    list-style: none;
    display: flex;
    gap: 30px;
    padding: 0;
    margin: 0;
}

nav#n4 li a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.1);
}

nav#n4 li a:hover {
    background-color: white;
    color: #003366;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* RESPONSIVE */
@media (max-width: 600px) {
    nav#n4 ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    header#n2 {
        padding: 30px 20px;
    }
}
#perfil {
  max-width: 1000px;
  margin: 30px auto;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 50, 100, 0.1);
  color: #222;
  font-family: 'Roboto', sans-serif;
}

#perfil section {
  margin-bottom: 35px;
  padding: 20px;
  border-left: 5px solid #004080;
  background-color: #f4f9ff;
  border-radius: 10px;
}

#perfil section h2 {
  color: #003366;
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 1px solid #004080;
  padding-bottom: 5px;
}

#perfil ul {
  margin-left: 20px;
  padding-left: 10px;
  list-style: square;
}

#galeria {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

#galeria-yashin img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #003366;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#btn-volver-porteros {
  display: block;
  margin: 30px auto 0;
  padding: 12px 24px;
  font-size: 1em;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

#btn-volver-porteros:hover {
  background-color: #0059b3;
}
.perfil-portero {
  max-width: 1000px;
  margin: 30px auto;
  padding: 25px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0, 50, 100, 0.1);
  color: #222;
  font-family: 'Roboto', sans-serif;
}

.perfil-portero section {
  margin-bottom: 35px;
  padding: 20px;
  border-left: 5px solid #004080;
  background-color: #f4f9ff;
  border-radius: 10px;
}

.perfil-portero section h2 {
  color: #003366;
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 1px solid #004080;
  padding-bottom: 5px;
}

.perfil-portero ul {
  margin-left: 20px;
  padding-left: 10px;
  list-style: square;
}

.galeria-portero {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.galeria-portero img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid #003366;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-volver {
  display: block;
  margin: 30px auto 0;
  padding: 12px 24px;
  font-size: 1em;
  background-color: #003366;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-volver:hover {
  background-color: #0059b3;
}
