#hero-nosotros {
  height: 85vh;
  position: relative;
  width: 90%;
  margin: auto;
  border-radius: 30px;
  overflow: hidden; /* Para que la imagen respete el borde redondeado */
}

.hero-wrapper {
  position: relative;
  height: 100%;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-content {
  position: absolute;
  bottom: 2rem;

  color: white;
  z-index: 2;
}
.hero-content h1 {
  font-size: clamp(40px, 8vw, 80px);
  font-weight: bold;
  margin: 0;
  line-height: 1.1;
}
.titl-equipos {
  color: #000;
  font-size: clamp(16px, 2.5vw, 28px);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  width: 50%;
}
.img-equipo {
  width: 100%;
  height: auto;
}

.card-equipo {
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 10px;
  transition: all 0.3s ease;
  overflow: visible;
}

.img-equipo {
  width: 100%;
  border-radius: 20px;
  display: block;
}
.img-equipo-4-primeros {
  width: 90%;
  border-radius: 20px;
  display: block;
}

/* Panel lateral oculto */
.card-lateral {
  position: absolute;
  top: 2%;
  width: 200%;
  height: 100%;
  background: white;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
  border-radius: 12px;
}
.card-lateral .descripcion-primeros-4 p {
  font-size: clamp(0.5rem, 0.3733rem + 0.4054vw, 0.875rem);
}
/* Mostrar panel a la derecha */
.card-equipo.show-right .card-lateral {
  left: 100%;
  opacity: 1;
  pointer-events: auto;
}

/* Mostrar panel a la izquierda */
.card-equipo.show-left .card-lateral {
  right: 100%;
  opacity: 1;
  pointer-events: auto;
}

/* Blur al resto */
.card-equipo.blurred {
  filter: blur(3px);
  opacity: 0.5;
}

.closing {
  opacity: 0;
  display: none;
  pointer-events: none;
}
.nombre-plus {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  bottom: 6%;
  width: 90%;
  margin: 0 auto;
  color: white;
  cursor: pointer;
}
.card-equipo-black {
  position: relative;
  background: white;
  border-radius: 10px;
  padding: 10px;
  transition: all 0.3s ease;
  overflow: visible;
}

/* Panel lateral oculto */
.card-lateral-black {
  position: absolute;
  top: 96%;
  width: 94%;
  height: 98%;
  background: white;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 3;
  border-radius: 12px;
  left: 3%;
  background-color: transparent;
  background: rgba(0, 0, 0, 0.8);
}
.card-lateral-black h3 {
  font-size: clamp(14px, 1.2vw, 18px);
  color: white;
}
.card-lateral-black .puesto {
  color: #ba0000;
  font-weight: 700;
  font-size: clamp(11px, 1vw, 10px);
  margin-top: 7px;
  margin-bottom: 5px !important;
}
.card-lateral-black p {
  font-size: clamp(12px, 0.8vw, 11px);
  color: white;
}
.card-lateral-black .link-linkedin {
  display: inline-block;
  margin-top: 7px;
  margin-bottom: 7px !important;
}
.card-lateral-black .link-linkedin img {
  width: 60%;
}
/* Mostrar panel a la derecha */
.card-equipo-black.show-up .card-lateral-black {
  top: 0%;
  opacity: 1;
  pointer-events: auto;
}

.closing {
  opacity: 0;
  display: none;
  pointer-events: none;
}
.nombre-plus-card {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  bottom: 6%;
  width: 90%;
  margin: 0 auto;
  color: white;
}
.nombre-plus-4-primeros {
  position: absolute;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  bottom: 6%;
  width: 90%;
  margin: 0 auto;
  color: white;
}
.col-md-6.card-equipo-black img {
  border-radius: 1;
  width: 90%;
}

.card-lateral-primeros-4 {
  color: #000;
  font-family: Poppins;
  font-size: 32px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  width: 90%;
}
.puesto-primeros-4 {
  color: #ba0000;
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}
.descripcion-primeros-4 p {
  color: #000;
  font-family: Poppins;
  font-size: clamp(14px, 1.1vw + 0.5rem, 16px);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.seccion-mapa {
  margin-top: 100px;
  background-color: black;
}
.seccion-mapa .parrafo {
  color: white;
  height: 160px;
}
.seccion-mapa > .row .col-md-6 {
  margin-top: 100px;
}
.seccion-mapa > .row .col-md-6 .texto-izquierda-mapa {
  margin-left: 4%;
  font-weight: 700;
}
.map-container {
  position: relative;
  width: 100%;
  margin: 0 auto;
}

.mapa-fondo {
  width: 100%;
  height: auto;
  display: block;
}

/* Keyframes para la animación de entrada */
@keyframes slideUpMapaIn {
  50% {
    top: 52.5%; /* A mitad de camino entre 100% y 5% */
    opacity: 0;
    transform: translate(-50%, 0) scale(0.95);
  }
  100% {
    top: 5%;
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* Keyframes para la animación de salida */
@keyframes slideDownMapaOut {
  0% {
    top: 0%; /* A mitad de camino entre 100% y 5% */
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  50% {
    opacity: 0.5;
  }
  80% {
    opacity: 0.2;
  }
  100% {
    top: 50%;
    opacity: 0;
    transform: translate(-50%, 0) scale(0.8);
  }
}

.punto {
  position: absolute;
  cursor: pointer;
}

.cards-mapa {
  background-color: white;
  position: absolute;
  top: 100%; /* Estado inicial fuera de la pantalla */
  width: 440px;
  padding: 20px;
  height: 450px;
  left: 50%;
  transform: translate(-50%, 0);
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
}
.cards-mapa .row .col-md-12 {
  color: black;
}
.cards-mapa .row .col-md-12 img {
  width: 100%;
}
/* Animación de entrada */
.cards-mapa.show {
  animation: slideUpMapaIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: auto;
}

/* Animación de salida */
.cards-mapa.hide {
  animation: slideDownMapaOut 0.4s cubic-bezier(0.55, 0.055, 0.675, 0.19)
    forwards;
  pointer-events: none;
}

/* Estado oculto completamente */
.cards-mapa.hidden {
  display: none;
}

/* Clase legacy para compatibilidad */
.top100 {
  top: 100%;
  display: none;
}

.titulo-punto {
  font-size: clamp(0.875rem, 0.8328rem + 0.1351vw, 1rem);
  font-weight: 700;
  color: #ba0000;
  font-family: Poppins;
  font-style: normal;
  line-height: normal;
  text-transform: uppercase;
  margin-top: 10px;
}

.nombre-punto {
  font-size: clamp(1.125rem, 0.9983rem + 0.4054vw, 1.5rem);
  color: black;
  font-family: Poppins;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 30px; /* 125% */
}

.email-punto {
  font-size: clamp(0.75rem, 0.7078rem + 0.1351vw, 0.875rem);
  color: #ba0000;
  font-style: normal;
  font-weight: 300;
  line-height: normal; /* 125% */
  text-decoration: none;
  margin: 13px 0 22px 0;
}

.parrafo-punto {
  color: #000;
  font-family: Poppins;
  font-size: clamp(0.875rem, 0.7905rem + 0.2703vw, 1.125rem);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  margin-top: 10px;
}
.title-bg-pink {
  margin-left: 4%;
}
.parra-membre {
  font-size: clamp(0.5rem, 0.1622rem + 1.0811vw, 1.5rem);
  margin-right: 6% !important;
}

.img-membresia {
  width: 80%;
  height: auto;
  margin: auto;
  display: block;
}
.plus-membresia {
  position: absolute;
  right: 104px;
  bottom: 32px;
  z-index: 10;
  cursor: pointer;
}
/* Keyframes para la animación de entrada */
@keyframes slideUpIn {
  0% {
    bottom: -100%;
    opacity: 0;
  }
  100% {
    bottom: 0;
    opacity: 1;
  }
}

/* Keyframes para la animación de salida */
@keyframes slideDownOut {
  0% {
    bottom: 0;
    opacity: 1;
  }
  100% {
    bottom: -100%;
    opacity: 0;
  }
}

.full-view {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(2.5px);
  z-index: 11;
  opacity: 0;
  pointer-events: none;
}
.full-view .row {
  max-width: 600px;
}
.full-view .col-md-6 .img-slide-izquierda {
  width: 50%;
  height: auto;
}
.full-view div > img:not(.img-membresia):not(.img-slide-izquierda) {
  width: 32px;
  height: 32px;
  transform: rotate(-180deg);
  margin-bottom: 20px;
  cursor: pointer;
}
.full-view .slide-titulo {
  color: #ba0000;
  font-family: Poppins;
  font-size: clamp(0.875rem, 0.4949rem + 1.2162vw, 2rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.full-view .slide-text {
  color: #000;
  font-family: Poppins;
  font-size: clamp(0.875rem, 0.7483rem + 0.4054vw, 1.25rem);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
}
.full-view a {
  color: #000;
  font-family: Poppins;
  font-size: clamp(0.875rem, 0.7483rem + 0.4054vw, 1.25rem);
  font-style: normal;
  font-weight: 300;
  line-height: normal;
  text-decoration-line: underline;
  text-decoration-style: solid;
  text-decoration-skip-ink: auto;
  text-decoration-thickness: auto;
  text-underline-offset: auto;
  text-underline-position: from-font;
}
/* Estado visible - animación de entrada */
.full-view.show {
  animation: slideUpIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  pointer-events: auto;
}

/* Animación de salida */
.full-view.hide {
  animation: slideDownOut 0.5s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
  pointer-events: none;
}

/* Clase para ocultar completamente */
.full-view.hidden {
  display: none;
}
.par-rojo {
  text-decoration: none;
  font-size: clamp(0.5rem, 0.2466rem + 0.8108vw, 1.25rem);
}
.mienbros-swiper {
  display: none !important;
}
.membresia-swiper {
  display: none !important;
}
.equipo .swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  list-style: none;
  height: 520px;
  padding: 0;
  z-index: 1;
  display: block;
}
.membresia .swiper {
  margin-left: auto;
  margin-right: auto;
  position: relative;
  list-style: none;
  height: 280px;
  padding: 0;
  z-index: 1;
  display: block;
}
.swiper-pagination {
  z-index: 20 !important;
}
.swiper-pagination-bullet {
  width: 12px !important;
  height: 12px !important;
  display: inline-block !important;
}

.swiper-pagination-bullet-active {
  color: #fff;
  position: relative;
  /* margin-top: 20px !important; */
  width: 20px !important;
  height: 20px !important;
  background: #ba0000 !important;
  display: inline-block !important;
  /* margin: 0px 0 0 0 !important; */
  top: 2px;
}
@media (min-width: 0px) and (max-width: 767px) {
  .card-equipo-black {
    display: block;
  }
  .card-equipo {
    display: none;
  }
  .mienbros-swiper {
    display: block !important;
  }
  .membresia-swiper {
    display: block !important;
  }
  .equipo-container {
    display: none;
  }
  .membresia-desk {
    display: none;
  }
  .parra-membre {
    font-size: clamp(0.5rem, 0.1622rem + 1.0811vw, 1.5rem);
    margin-right: 6% !important;
    padding-left: 17px;
  }
  .seccion-mapa > .row .col-md-6 {
    margin-top: 20px;
  }
  .seccion-mapa .parrafo {
    color: white;
    height: 146px;

    width: 350px;
  }
  .seccion-mapa > .row .col-md-6 .texto-izquierda-mapa {
    margin-left: 0%;
    font-weight: 700;
  }
  .texto-mapa {
    margin-top: -50px !important;
  }
  #hero-nosotros {
    height: 75vh;
    width: 95%;
  }

  .hero-content {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
  .parrafo {
    font-size: clamp(18px, 2.5vw, 24px);
  }
  .full-view {
    left: 54%;
    transform: translate(-50%, 0);
  }
  .full-view .slide-titulo {
    font-size: clamp(0.9rem, 0.4949rem + 1.2162vw, 2rem);
  }
  .parra-membre {
    font-size: clamp(0.5rem, 0.1622rem + 1.0811vw, 1.5rem);
    margin-bottom: 40px !important;
  }
  /* Keyframes para la animación de entrada */
  @keyframes slideUpMapaIn {
    50% {
      top: 52.5%; /* A mitad de camino entre 100% y 5% */
      opacity: 0;
      transform: translate(-50%, 0) scale(0.95);
    }
    100% {
      top: -150%;
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
  }

  /* Keyframes para la animación de salida */
  @keyframes slideDownMapaOut {
    0% {
      top: -110.5%; /* A mitad de camino entre 100% y 5% */
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
    100% {
      top: 70%;
      opacity: 0;
      transform: translate(-50%, 0) scale(0.8);
    }
  }
  .cards-mapa {
    background-color: white;
    position: absolute;
    top: 100%;
    width: 240px;
    padding: 20px;
    height: 350px;
    left: 50%;
    transform: translate(-50%, 0);
    border-radius: 10px;
    opacity: 0;
    pointer-events: none;
  }
  .mt-6rem {
    margin-top: 2rem;
  }
}

/* Móvil: reserva espacio para la paginación y colócala al fondo */
@media (max-width: 768px) {
  .mySwiper {
    padding-bottom: 40px; /* espacio para los bullets */
    overflow: visible; /* por si los bullets ocupan fuera del slide */
  }
  .mySwiper .swiper-pagination {
    bottom: 0 !important; /* fija los bullets al borde inferior del carrusel */
  }
  /* por si alguna imagen genera saltos de línea inesperados */
  .mySwiper .img-equipo {
    display: block;
    width: 331px;
    height: 462px;
    margin: auto;
  }
  .nombre-plus-card {
    width: 80%;
    margin-left: 20px;
  }
}
