
/* ----- Header y menú ----- */
.header {
  background-color: #006BB3;
  height: 56px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;

  /* Header y logo */
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}

.logo {
  position: absolute;
  bottom: -65px;
  left: 22%;
  transform: translateX(-50%);
  height: auto;
  width: 140px;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
}

/* Menú principal */
.menuOpciones {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 340px;
  margin-right: 180px;
  padding: 0;
}

.menuOpciones li {
  position: relative;
  /* importante para submenú */
}

.boton-menu,
.boton-menu-final {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 55px;
  padding: 0 20px;
  color: white;
  text-decoration: none;
  background-color: #006BB3;
  border-left: 1px solid transparent;
  border-top: 1px solid transparent;
  border-bottom: 0 solid transparent;
  border-right: 1px solid #005a96;
  cursor: pointer;
  font-size: 17px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.boton-menu-final {
  border: 1px solid transparent;
  border-bottom: 0 solid transparent;
}

/* Hover */
.boton-menu:hover,
.boton-menu-final:hover {
  background-color: #c70000;
  border-right: 1px solid #960000;
  border-left: 1px solid #960000;
  cursor: pointer;
}

/* Submenú */
.submenu {
  position: absolute;
  top: 55px;
  /* justo debajo del botón */
  left: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  background-color: #006BB3;
  min-width: 150px;
  z-index: 1000;

  max-height: 0;
  /* cerrado por defecto */
  transition: max-height 0.9s ease, opacity 1s ease;
  opacity: 0;

  pointer-events: none;
}

.submenu li a {
  font-size: 14px;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-top: #006BB3 1px solid;
  border-bottom: #006BB3 1px solid;

  display: block;
  transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

.submenu li a:hover {
  background-color: #c70000;
  border-top: 1px solid #960000;
  border-bottom: 1px solid #960000;
  cursor: pointer;
}

/* Mostrar submenú SOLO si el cursor está sobre el botón */
.submenu-container > a:hover + .submenu {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto; /* para que los items del submenú sean clickeables */
}

.submenu-container:hover > .submenu {
  max-height: 300px;
  opacity: 1;
  pointer-events: auto;
}

/* ----- Submenú horizontal (GUARDS, SWINGMANS, FORWARDS, BIGS) ----- */
.submenu-h {
  position: absolute;
  top: 0;
  left: 100%;
  /* aparece a la derecha del item padre */
  background: #006BB3;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  /* evita que se corte en varias líneas */

  display: flex;
  /* siempre presente */
  gap: 1px;

  max-width: 0;
  /* cerrado por defecto */
  overflow: hidden;
  /* oculta el contenido */
  opacity: 0;
  /* transparente al inicio */
  transition: max-width 0.9s ease, opacity 0.4s ease;
}

.submenu-h-container:hover > .submenu-h {
  max-width: 500px;
  /* lo suficiente para que quepan los items */
  opacity: 1;
  padding: 1px;
  /* padding visible solo cuando se abre */
}

/* ----- Estilos de los links ----- */
.submenu a,
.submenu-h a {
  display: block;
  padding: 8px 12px;
  text-decoration: none;
  color: #333;
}

/* Banner */
.banner {
  padding-top: 0px;
  /* mismo alto que el header */
  margin-top: 0px;
}

.bannerImg {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-top: -50px;
}

.separador {
  width: 90%;
  border: 1px solid #006BB3;
  margin: 20px auto;
}

@keyframes resaltarContacto {
  0% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
  30% {
    box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.8);
  }
  60% {
    box-shadow: 0 0 30px 10px rgba(255, 255, 255, 0.8);
  }
  100% {
    box-shadow: 0 0 0px rgba(255, 255, 255, 0);
  }
}


/* Contenedor de About Us */

.contenedorAU {
  width: 50%;
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

.contenedorAU p {
  margin: 0;
  padding: 0;
  white-space: normal;
  /*  permite saltos de línea normales */
  overflow-wrap: anywhere;
  /*  corta palabras largas si es necesario */
  word-break: break-word;
  /*  fallback para navegadores viejos */
  hyphens: auto;
  /*  agrega guiones automáticos si el idioma lo soporta */
}

.AU-titulo1 {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 50px;
  color: #000000;
  margin-bottom: 10px;
}

.AU-nombre {
  margin-left: 20px;
  left: auto;
  position: static;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-size: 20px;
  color: #000000;
  margin-bottom: 5px;
}

.AU-titulo2 {
  margin-left: 20px;
  left: auto;
  position: static;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  color: #000000;
  margin-bottom: 5px;
}

.AU-titulo3 {
  margin-left: 20px;
  left: auto;
  position: static;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 20px;
  color: #000000;
  margin-bottom: 5px;
}

.AU-texto {
  margin-left: 20px;
  left: auto;
  position: static;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: #000000;
  margin-bottom: 5px;
}



.tituloCarrusel {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 50px;
  color: #000000;
  margin-top: 28px;
}

/*contenedor del carrusel entero*/
.carousel-contenedor {
  width: 98%;
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Grid con 6 carruseles */
.carousels-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columnas */
  gap: 110px;
  /* espacio entre carruseles */
  width: 80%;
  margin: 50px auto;

  column-gap: 110px;
  /* espacio horizontal */
  row-gap: 40px;
  /* espacio vertical */
}

/* Cada carrusel */
.carousel {
  position: relative;
  width: 100%;
  overflow: visible;
  /* necesario para botones externos */
  border-radius: 15px;
  box-sizing: border-box;
  background: #ffffff00;
  display: flex;
  flex-direction: column;
  /* apila imagen y botón en vertical */
  align-items: center;
}

/* Contenedor de imágenes: mantener aspecto 4:5 */
.carousel-container {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  position: relative;
  aspect-ratio: 4 / 4; /* fuerza relación 4:5 del contenedor */
  height: auto; /* altura controlada por aspect-ratio */
}

/* El slide ocupa todo el contenedor y sus hijos se estiran a su alto */
.carousel-slide {
  display: flex;
  transition: transform 0.6s ease-in-out;
  height: 100%;
  align-items: stretch; /* fuerza a los children a ocupar todo el alto */
}

/* Asegurar que cada wrapper del slide ocupe 100% ancho del carrusel */
.carousel-slide > .image-wrapper,
.carousel-slide > .player-card,
.carousel-slide > .image-wrapper.player-card {
  min-width: 100%;
  height: 100%;
  box-sizing: border-box;
}

/* Imagenes dentro del wrapper: ocupar todo el contenedor (alto y ancho recortado con object-fit) */
.carousel .image-wrapper img.fotoC,
.carousel .image-wrapper img.img1,
.carousel .image-wrapper img.img2,
.player-card img,
.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* importante: llenar y recortar */
  display: block;
  border-radius: 18px;
  transition: transform 0.5s ease;
}

/* Si tenés overlays, mantenlos encima */
.player-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65) 25%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 18px;
  pointer-events: none;
}

.image-wrapper:hover .player-overlay,
.player-card:hover .player-overlay {
  opacity: 1;
}

/* Hover activa zoom en la img1 */
.image-wrapper:hover .img1 {
  transform: scale(1.03);
  cursor: pointer;
}

/* Hover muestra la img2 */
.image-wrapper:hover .img2 {
  opacity: 1;
  cursor: pointer;
}

/* Botones prev/next */
.carousel button.prev,
.carousel button.next {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  background-color: #006BB3;
  /* igual al botón "Ver más" */
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 25px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

/* Hover */
.carousel button.prev:hover,
.carousel button.next:hover {
  background-color: #c70000;
  /* mismo hover que "Ver más" */
}

/* Ajustamos posición */
.carousel button.prev {
  left: -33px;
  /* afuera del carrusel */
}

.carousel button.next {
  right: -33px;
  /* afuera del carrusel */
}

/* Contenedor del botón "Ver más" */
.carousel-btn-container {
  text-align: center;
  position: relative;
  width: 100%;
  /* mismo ancho que el carrusel */
}

.carousel-btn-container::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 100%;
  background-color: transparent;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.8s ease, background-color 0.8s ease;
}

/* activa la línea al hacer hover en el botón */
.carousel-btn-container:hover:has(.carousel-btn:hover)::after {
  transform: scaleX(1);
}

.carousel-btn {
  background-color: #006BB3;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: visible;
}

/* Línea animada */
.carousel-btn::after {
  content: "";
  position: absolute;
  bottom: 6px;                /* distancia desde el borde inferior del botón */
  left: 50%;
  transform: translateX(-50%) scaleX(0);  /* empieza en el centro, invisible */
  transform-origin: center;   /* animación desde el centro */
  width: 80%;                 /* largo máximo de la línea */
  height: 3px;                /* grosor de la línea */
  background-color: white;    /* color de la línea */
  border-radius: 2px;
  transition: transform 0.4s ease;
}

/* Al hacer hover: aparece la línea */
.carousel-btn:hover::after {
  transform: translateX(-50%) scaleX(1); /* se expande a ambos lados */
}

.carousel-btn:hover {
  background-color: #c70000;
}

.fotoC {
  border-radius: 18px;
}

/* Contenedor que superpone dos imágenes */
.image-wrapper {
  position: relative;
  overflow: hidden;
  min-width: 100%; /* cada wrapper ocupa todo el ancho del carrusel */
  height: 100%;
  box-sizing: border-box;
}

/* Imagen base (siempre visible) */
.image-wrapper .img1 {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover; /* <- clave */
  transition: transform 0.5s ease;
}

/* Imagen oculta encima */
.image-wrapper .img2 {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover; /* <- clave */
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Al pasar el mouse aparece la segunda */
.image-wrapper:hover .img2 {
  opacity: 1;
}




/* ====== Footer ====== */

.footer {
  background-color: #005a96;
  color: white;
  text-align: center;
  padding-bottom: 7px;
  padding-top: 7px;
  bottom: 0;
  width: 100%;
}

.footer-contenido {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;

  width: 90%;
  background-color: #006BB3;
  height: auto; 
  border: #ffffff 2px solid;
  border-radius: 18px;
  margin: 0px auto 0px auto;
  padding: 20px 5%; 
  box-sizing: border-box;
}

.footer-izq {
  display: flex;
  flex-direction: column; /* 🔹 logo arriba, texto debajo */
  align-items: flex-start;
  /*margin-left: 15%;*/
}

.logo-footer {
  height: 150px;
  width: auto;
  margin-left: 50px;
}

.info-footer h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  line-height: 0.5;
  font-size: 14px;
}

.info-footer {
  margin-top: 0px;
  margin-bottom: 10px;
  margin-left: 20px;
}

.contacto {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 10px;
  margin-right: 58px;
  
}

.correo-pag {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 8px;
  margin-right: 15px;
}

.icono {
  width: 30px;
  height: 30px;
  margin: 0 10px;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.1s ease;
}

.icono:hover {
  background-color: #c70000;
  cursor: pointer;
  transform: scale(1.1);
}

.icono::after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50px;
}

.icono:hover::after {
  transform: scaleX(1);
}

.footer-der {
  margin-top: 2%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 18px;
  justify-content: center;
  justify-items: center;
}


/* Contenedor de iconos de redes */
.redes {
  margin-top: 10px;
  display: flex;
  gap: 15px;
  justify-content: center; /* CENTRA horizontal */
  align-items: center;      /* CENTRA vertical */
  width: 100%;
}

/* Ajuste visual de los íconos */
.redes .icono {
  width: 35px;
  height: 35px;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.redes .icono:hover {
  transform: scale(1.1);
}

/* Efecto de iluminación temporal */
.footer-der.highlight {
  animation: resaltarContacto 2.5s ease;
}



/* Mantener tus estilos de búsqueda y player-info intactos (pequeño recordatorio) */
.header-search {
  margin-left: 0px;
  margin-right: 40px;
  display: flex;
  align-items: center;
  position: relative;
}

.header-search input {
  padding: 6px 12px;
  border-radius: 20px;
  border: none;
  outline: none;
  font-size: 14px;
  transition: width 0.3s ease;
  width: 180px;
  background-color: #ffffff;
  color: #000000;
}

.header-search input::placeholder {
  color: #aaa;
}

.header-search input:focus {
  width: 250px;
  background-color: #e1e1e1;
}

/* Resultados (mantener) */
#searchResults {
  position: absolute;
  top: 40px;
  right: 20px;
  width: 250px;
  max-height: 400px;
  overflow-y: auto;
  background-color: #006BB3;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 99999;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  text-align: right;
}

/* Tarjeta de jugador en el listado de búsqueda */
.player-card-list {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.player-card-list:hover {
  background-color: #003a61;
}

.player-card-list img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.player-info {
  display: flex;
  flex-direction: column;
}

.player-info h3 {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.player-info p {
  margin: 0;
  font-size: 12px;
  color: #ffffff;
}


/*PERFILES*/

.contenedor-perfil {
  width: 60%;
  height: 100%; /* altura automática según contenido */
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 100px auto 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Nombre del perfil */
.titulo-perfil {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 45px;
  color: #000000;
  margin-bottom: 10px;
}

.banner {
  margin-top: 180px;
}
.separador-perfil {
  width: 95%;
  border: 1px solid #006BB3;
  margin: 10px auto 20px auto;
}

/* Contenedor de la info del perfil */
:root {
  --foto-altura: 400px;
}

.info-imagen {
  position: relative;      /* 🔥 base para posicionar la imagen dentro */
  display: flex;
  align-items: flex-start;
  margin-left: 100px;
  margin-bottom: 20px;
  padding: 0 20px;
  box-sizing: border-box;

  min-height: var(--foto-altura);        /* 🔥 reserva espacio igual a la altura de la imagen */

}

.info-perfil {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  color: #000000;
  line-height: 45px;              /* espacio entre líneas */


  flex-shrink: 0; /* evita que el texto se reduzca */
  max-width: 50%; /* ocupa la mitad del ancho o menos */
  overflow: hidden; /* evita que el texto sobresalga */
}

.eurobasket-button {
  background-color: #006BB3;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;

  overflow: hidden; /* asegura que la línea no sobresalga */
  position: relative; /* necesario para la línea animada */
}

/* Línea animada */
.eurobasket-button::after {
  content: "";
  position: absolute;
  bottom: 6px;                /* distancia desde el borde inferior del botón */
  left: 50%;
  transform: translateX(-50%) scaleX(0);  /* empieza en el centro, invisible */
  transform-origin: center;   /* animación desde el centro */
  width: 80%;                 /* largo máximo de la línea */
  height: 3px;                /* grosor de la línea */
  background-color: white;    /* color de la línea */
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.eurobasket-button:hover {
  background-color: #c70000;
}

.eurobasket-button:hover::after {
  transform: translateX(-50%) scaleX(1); /* se expande a ambos lados */
}

.contenedor-foto-perfil{
  border: #006BB3 2px solid;
  border-radius: 18px;
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  overflow: hidden;            /* por si la imagen sobresale */


  width: var(--foto-altura);           /* tamaño fijo */
  height: var(--foto-altura);          /* cuadrado fijo */
  position: absolute;       /* saca la imagen del flujo del texto */
  right: 100px;             /* 🔥 separación respecto al borde derecho */
  top: 0;                   /* fija arriba del contenedor */
}

.imagen-perfil{
  text-align: center;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.imagen-perfil img {
  width: 100%;
  height: 100%;
  object-fit: contain;           /* ✅ muestra toda la imagen */
  border-radius: 15px;
}





/* === Carrusel del perfil === */
.perfil-carousel {
  position: relative;
  width: 60%;
  max-width: 500px;
  overflow: hidden;
  border-radius: 15px;
  left: 27%;
  overflow: visible;
}

/* Contenedor de imágenes */
.perfil-carousel-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 25px;
}

.perfil-carousel-slide {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.perfil-carousel-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 15px;
  display: block;
}

/* Botones prev/next */
.perfil-prev,
.perfil-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #006BB3;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 25px;
  padding: 25px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
  
}

.perfil-prev:hover,
.perfil-next:hover {
  background-color: #c70000;
  opacity: 1;
}

.perfil-prev {
  left: -35px;  /* visible dentro del carrusel */
}

.perfil-next {
  right: -35px;
}





/* Carrusel de videos */
.perfil-carousel-video {
  position: relative;
  width: 60%;
  max-width: 500px;
  border-radius: 15px;
  left: 27%;
  overflow: visible;
}

.perfil-carousel-video .perfil-carousel-container {
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 25px;
}

.perfil-carousel-video .perfil-carousel-slide-2 {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

/* 🔹 Cada video ocupa 100% del ancho visible */
.perfil-carousel-video iframe {
  width: 100%;
  height: 280px;
  border-radius: 15px;
  display: block;
  flex-shrink: 0;
}

/* Botones prev/next */
.perfil-prev-video,
.perfil-next-video {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #006BB3;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 25px;
  padding: 25px 10px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.perfil-prev-video:hover,
.perfil-next-video:hover {
  background-color: #c70000;
}

.perfil-prev-video {
  left: -35px;
}

.perfil-next-video {
  right: -35px;
}

/* --- RESPONSIVE HEADER AJUSTADO Y OPTIMIZADO PARA MÓVIL --- */
@media (max-width: 1200px) {
  /* Header general */
.header {
  height: 270px;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to bottom, #006BB3 60%, #ffffff 40%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 10000;
  transition: justify-content 0.3s ease, padding-left 0.3s ease;
  padding: 0 15px;
}


  /* Logo centrado inicialmente */
  .logo {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 340px;
    height: auto;
    transition: all 0.3s ease;
    margin-top: 20px;
  }



.menu-toggle {
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  width: 80px; 
  height: 70px; 
  cursor: pointer; 
  position: absolute; 
  right: 120px; 
  top: 70px; 
  z-index: 10001;
}

.menu-toggle span {
  display: block; 
  height: 12px;  
  background: white; 
  border-radius: 2px; 
  transition: all 0.3s ease; 
  border: 2px solid #006BB3;
}

/* Ocultar la barra del medio cuando está activo */
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

/* Rotar las otras dos barras */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(19px, 19px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(17px, -17px);
}




  /* Menú oculto */
  .menuOpciones {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 640px;
    height: 100vh;
    background-color: #006BB3;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 30px 30px;
    margin: 0;
    gap: 20px;
    transition: right 0.45s ease;
    z-index: 9999;
    box-shadow: -8px 0 20px rgba(0,0,0,0.4);
  }

  .menuOpciones.active {
    right: 0;
  }

  /* Logo al margen izquierdo cuando se abre el menú */
  .header.menu-open {
    justify-content: flex-start;
    padding-left: 25px;
  }

  /* Botones en menú móvil */
  .boton-menu,
  .boton-menu-final {
    width: 100%;
    justify-content: flex-start;
    padding: 18px 10px;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 49px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: #fff;
  }

  .boton-menu:hover,
  .boton-menu-final:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
  }

  /* Submenús verticales */
  .submenu,
  .submenu-h {
    position: static;
    display: none;
    opacity: 1;
    background: none;
    padding-left: 15px;
  }

  .submenu-container.open > .submenu {
    display: block;
  }

  .submenu a {
    font-size: 17px;
    padding: 12px 0;
    display: block;
  }

  /* Fondo opaco para el resto de la pantalla cuando se abre el menú */
  body.menu-active::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 9998;
    backdrop-filter: blur(3px);
  }

  /* Animación de aparición del menú (suave) */
  .menuOpciones.active {
    animation: slideIn 0.4s ease-out forwards;
  }

  @keyframes slideIn {
    from {
      right: -100%;
      opacity: 0;
    }
    to {
      right: 0;
      opacity: 1;
    }
  }

/* Contenedor del banner */
.banner {
  padding-top: 56px;
  margin-top: 180px;
  margin-bottom: 80px;
  overflow: hidden; /* importante para ocultar partes que se salen */
  position: relative;
  width: 100%;
  height: 700px; /* mismo alto que tu imagen */
}

/* Imagen que se mueve */
.bannerImg {
  width: 200%; /* duplicamos ancho para tener espacio para el movimiento */
  height: 100%;
  object-fit: cover;
  animation: slideBanner 20s linear infinite alternate;
}

/* Animación de desplazamiento */
@keyframes slideBanner {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%); /* mueve hasta la mitad del ancho extra */
  }
}

.header-search {
  margin-left: 40px;
  margin-right: 20px;
  display: none;
  align-items: center;
  position: relative;
}

/* Grid con 1 carrusel por fila */
  .carousels-grid {
    display: grid;
    grid-template-columns: 1fr; /* 1 columna */
    gap: 40px; /* espacio vertical */
    width: 90%; /* margen más pequeño en móvil */
    margin: 30px auto;
    column-gap: 0; /* no hay columnas */
    row-gap: 40px;
  }

  .carousel-contenedor {
    width: 95%;
    padding: 15px;
    margin: 15px auto;
  }

  .tituloCarrusel {
    font-size: 32px; /* más pequeño en móvil */
    margin-top: 20px;
  }

  .carousel-container {
    aspect-ratio: 4 / 4;
    width: 100%;
  }

  .carousel {
    gap: 15px;
  }

  .carousel-slide {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .carousel-slide img {
    width: 100%;
    height: auto;
    border-radius: 15px;
  }

  /* Hover se puede mantener en tablets */
  .image-wrapper:hover .img1 {
    transform: scale(1.02);
  }

  /* Botones prev/next */
  .carousel button.prev,
  .carousel button.next {
    top: 40%;
    padding: 15px 8px;
    font-size: 14px;
    border-radius: 8px;
  }

  .carousel button.prev {
    left: 5px; /* dentro del carrusel */
  }

  .carousel button.next {
    right: 5px; /* dentro del carrusel */
  }

  /* Botón "Ver más" */
  .carousel-btn-container {
    margin-top: 10px;
  }
}

@media screen and (max-width: 600px) {
  .carousel-slide {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
  }

  .carousel-slide img {
    width: 990%; /* dejar margen lateral */
    height: auto;
    flex-shrink: 0;
    scroll-snap-align: center;
  }

  .carousel button.prev,
  .carousel button.next {
    top: 40%;
    padding: 12px 6px;
    font-size: 12px;
    border-radius: 6px;
  }

  .carousel-btn-container {
    margin-top: 5px;
  }

    /* Botón "Ver más" */
  .carousel-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .carousel-btn::after {
    bottom: 4px;
    height: 2px;
    width: 70%;
  }

  /* Imagenes del wrapper */
  .image-wrapper {
    min-width: 100%;
    height: auto;
  }

  .image-wrapper .img1,
  .image-wrapper .img2 {
    width: 100%;
    height: auto;
  }

  .fotoC {
    border-radius: 15px;
  }
}

@media screen and (max-width: 600px) {
  .carousel-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  .carousel-btn::after {
    bottom: 3px;
    height: 2px;
    width: 160%;
  }

  .image-wrapper {
    min-width: 90%; /* deja margen lateral para scroll */
  }

  .image-wrapper .img1,
  .image-wrapper .img2 {
    width: 100%;
    height: auto;
  }

  .fotoC {
    border-radius: 12px;
  }


}

.AboutUs {
  width: 100%;          /* tu ancho deseado */
  max-width: 2800px;
  margin: 0 auto;          /* 👈 centra horizontalmente */
  padding: 20px;
  box-sizing: border-box;
}


.contenedorAU {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.AU-titulo1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 48px;
  text-align: center;
  margin-bottom: 30px;
}

.AU-nombre {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 36px;
}

.AU-titulo2, .AU-titulo3 {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.AU-titulo2 { font-size: 24px; }
.AU-titulo3 { font-size: 20px; }

.AU-texto {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  text-align: justify;
  margin: 0;
}

.AU-cita {
  font-style: italic;
  margin: 15px 0;
}

/* ====== RESPONSIVE ====== */
@media screen and (max-width: 992px) {
  .AU-titulo1 { font-size: 38px; }
  .AU-nombre { font-size: 28px; }
  .AU-titulo2 { font-size: 20px; }
  .AU-titulo3 { font-size: 18px; }
  .AU-texto { font-size: 16px; line-height: 1.5; }
  .contenedorAU {
  width: 90%;
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}
}

@media screen and (max-width: 600px) {
  .AU-titulo1 { font-size: 28px; }
  .AU-nombre { font-size: 22px; }
  .AU-titulo2 { font-size: 18px; }
  .AU-titulo3 { font-size: 16px; }
  .AU-texto { font-size: 14px; line-height: 1.4; }
  .AboutUs { padding: 0px; }
  .contenedorAU {
  width: 90%;
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 20px auto;
  padding: 20px;
  box-sizing: border-box;
}
}


/* SEECION.html*/



.titulo-seccion {
  text-align: center;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
  font-size: 45px;
  color: #000000;
  margin-top: 10px;
  margin-bottom: 20px;
}

.contenedor-clientes {
  width: 90%;
  height: 100%; /* altura automática según contenido */
  border: #006BB3 2px solid;
  border-radius: 18px;
  margin: 100px auto 20px auto;
  padding: 20px;
  box-sizing: border-box;
}

.contenedor-clientes-grid {
  width: 100%;
  height: 100%; /* altura automática según contenido */
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.cont-cliente {
  width: 270px;
  height: 300px;
  margin: 20px auto;
  text-align: center;
  overflow: hidden;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-size: 16px;
  color: #ffffff;
  border: #ffffff 2px solid;
  border-radius: 18px;
  background-color: #006BB3;

  transition: 
    box-shadow 0.3s ease,
    border-color 0.5s ease,
    transform 0.3s ease; /* 🔹 Transición suave del zoom */
  transform-origin: center; /* 🔹 Que el zoom se centre */
}

.cont-cliente:hover {
  cursor: pointer;
  box-shadow: 0 4px 12px #006BB3;
  transform: scale(1.03); /* 🔹 Pequeño zoom sin mover otros elementos */
}

.foto-cliente {
  width: 100%;
  height: 80%;
  object-fit: cover; /* 🔹 La imagen llena el contenedor sin deformarse */
  border-radius: 12px; /* 🔹 Mantiene el borde redondeado */
  display: block; /* 🔹 Elimina espacio debajo de la imagen */
}

.nombre-cliente {
  position: relative; /* Necesario para posicionar la línea debajo */
  display: inline-block; /* Ajusta el ancho al texto */
  margin-top: 17px;
}

.nombre-cliente::after{
  content: "";
  position: absolute;
  bottom: -6px;                /* distancia desde el borde inferior del botón */
  left: 50%;
  transform: translateX(-50%) scaleX(0);  /* empieza en el centro, invisible */
  transform-origin: center;   /* animación desde el centro */
  width: 80%;                 /* largo máximo de la línea */
  height: 3px;                /* grosor de la línea */
  background-color: #ffffff;    /* color de la línea */
  border-radius: 2px;
  transition: transform 0.4s ease;
}

.cont-cliente:hover .nombre-cliente::after{
  transform: translateX(-50%) scaleX(1); 
}

.player-info {
    margin-left: 20px;
    margin-bottom: 10px;
}
.player-info h3 {
    font-size: 1.4rem;
}
.player-info p {
    font-size: 1rem;
}


.elfsight-app-f3fa75b9-7369-4e3d-834c-92e9cdc9cb58 {
    justify-content: center;
    align-items: center;
    align-content: center;
    margin-left: 40px;
}

/* ========================================================= */
/*                  RESPONSIVE PERFIL JUGADOR                */
/* ========================================================= */

/* --------- Tablets --------- */
@media (max-width: 1024px) {
  .contenedor-perfil {
    margin-top: 280px;
    width: 80%;
    padding: 20px;
  }

  .info-imagen {
    margin-left: 40px;
  }

  .contenedor-foto-perfil {
    right: 40px;
    width: 350px;
    height: 350px;
  }

  .info-perfil {
    font-size: 18px;
    line-height: 38px;
  }

  .titulo-perfil {
    font-size: 38px;
  }

  .perfil-carousel,
  .perfil-carousel-video {
    width: 80%;
    left: 10%;
  }

  .perfil-carousel-video iframe {
    height: 260px;
  }

  .perfil-prev,
  .perfil-next,
  .perfil-prev-video,
  .perfil-next-video {
    font-size: 22px;
    padding: 20px 8px;
  }
}

/* --------- Móviles --------- */
@media (max-width: 768px) {
  .contenedor-perfil {
    width: 90%;
    padding: 15px;
    border-width: 1.5px;
  }

  .titulo-perfil {
    font-size: 30px;
    margin-bottom: 5px;
  }

  .info-imagen {
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    text-align: center;
    min-height: auto;
  }

  .info-perfil {
    max-width: 100%;
    font-size: 18px;
    line-height: 32px;
  }

  .eurobasket-button {
    font-size: 18px;
    padding: 10px 25px;
    border-radius: 12px;
  }

  .contenedor-foto-perfil {
    position: static;
    margin-top: 20px;
    width: 280px;
    height: 280px;
  }

  .imagen-perfil img {
    object-fit: cover;
  }

  .perfil-carousel,
  .perfil-carousel-video {
    width: 100%;
    left: 0;
  }

  .perfil-carousel-slide img {
    width: 100%;
    height: auto;
  }

  .perfil-carousel-video iframe {
    height: 220px;
  }

  .perfil-prev,
  .perfil-next,
  .perfil-prev-video,
  .perfil-next-video {
    font-size: 20px;
    padding: 15px 7px;
  }

  .separador-perfil {
    width: 90%;
  }
}

/* --------- Móviles pequeños (iPhone SE, etc.) --------- */
@media (max-width: 480px) {
  .contenedor-perfil {
    width: 95%;
    padding: 10px;
  }

  .titulo-perfil {
    font-size: 26px;
  }

  .info-perfil {
    font-size: 16px;
    line-height: 28px;
  }

  .eurobasket-button {
    font-size: 16px;
    padding: 10px 20px;
  }

  .contenedor-foto-perfil {
    width: 230px;
    height: 230px;
  }

  .perfil-carousel-video iframe {
    height: 200px;
  }

  .perfil-prev,
  .perfil-next,
  .perfil-prev-video,
  .perfil-next-video {
    font-size: 18px;
    padding: 10px 6px;
  }

  .separador-perfil {
    width: 85%;
  }
}
