* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif !important;
}

body {
  font-family: 'Poppins', sans-serif;
  padding: 0 !important;
  margin: 0 !important; 
}

header {
  background-image: url('https://www.biobarica.com/_next/image/?url=%2Fnext%2Fimages%2Fhome%2FheroDesktop3.jpg&w=1920&q=75');
  background-size: cover;
  background-position: center;
  height: auto;
  width: 100%;
  z-index: 1;
  box-shadow: 0 0px 120px rgba(0, 14, 145, 0.9);
  padding-bottom: 10vh;
}

nav {
  display: flex;
  width: 95%;
  height: 20vh;
  margin-left: 5vh;
  margin-right: 2vh;
  align-items: center;
  justify-content: center;
  gap: 8vh;
  position: relative;
}

.links {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1vh !important;
}

nav img {
  height: 25vh;
}

nav a {
  color: rgb(255, 255, 255);
  padding: 1.6vh;
  text-decoration: none;
  font-size: 2.3vh;
}

nav a:hover {
  background-color: rgb(142, 75, 230);
  border-radius: 2vh;
  color: #fff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 0px 7px rgba(255, 255, 255, 0.2);
  transition: 0.2s;
}

@media (max-width: 768px) {
  nav {
  margin-left: 0;
  margin-right: 0;
}
}
.btn {
  background-color: rgb(142, 75, 230);
  border-radius: 2vh;
  color: #fff;
  box-shadow:
    0 4px 10px rgba(0, 0, 0, 0.35),
    inset 0 0px 7px rgba(255, 255, 255, 0.2);
  font-size: 2.4vh;
  border: none;
  padding: 1.5vh 3vh;
  margin: 2vh 0;
  display: inline-block;
  text-decoration: none;
  max-width: 90vw;
  text-align: center;
}

.btn:hover {
  background-color: rgb(95, 39, 224);
}

header .info {
  width: 80%;
  margin-left: 20vh;
}

header .info h1 {
  font-size: 40px;
  color: #fff;
  line-height: 1.3;
  margin-top: 15vh;
  margin-bottom: 4.5vh;
}

header .info .btn {
  margin-left: 0;
  padding-left: 5.5vh;
  padding-right: 5.5vh;
  padding-top: 1.8vh;
  padding-bottom: 1.8vh;
  font-size: 2.9vh;
}

.Section1 {
  position: relative;
  height: 98vh;
  display: flex;
  padding: 5vh;
  align-items: flex-start;
  background: none;
  overflow: hidden;
}

.Section1::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('https://centers.biobarica.com/next/images/webp/fondo_oxigeno_hiperbarico2x.webp');
  background-size: cover;
  background-position: center;
  transform: scaleX(-1);
  z-index: -1;
}

.Section1 img {
  position: absolute;
  right: 6vw;
  bottom: 0;
  height: 100vh;
  z-index: 1000;
}

.Section1 .Contenido {
  width: 43%;
  margin-left: 15vh;
}

.Section1 h1 {
  font-size: 45px;
  color: rgb(180, 19, 255);
  margin-top: 15vh;
}

.Section1 p {
  font-size: 16px;
  color: rgb(104, 104, 104);
  margin-top: 8vh;
  margin-bottom: 7vh;
}

.Section2 {
  position: relative;
  background-image: url('https://centers.biobarica.com/next/images/webp/fondo_oxigeno_hiperbarico2x.webp');
  background-position: center;
  background-size: cover;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.Section2 img {
  bottom: 0;
  height: 75vh;
  margin-left: 2.5vh;
}

.Section2 .Contenido {
  width: 43%;
  margin-left: 15vh;
}

.Section2 h1 {
  font-size: 45px;
  color: rgb(26, 25, 25);
  margin-top: 5vh;

}

.Section2 p {
  font-size: 16px;
  color: rgb(104, 104, 104);
  margin-top: 8vh;
  margin-bottom: 7vh;
}

.Section3 {
  position: relative;
  background-image: url('https://centers.biobarica.com/next/images/posterVideo.jpg');
  background-position: center;
  background-size: cover;
  height: 85vh;
  display: flex;
  padding: 5vh;
  align-items: center;
  justify-content: center;
  display: flex;
  flex-direction: column;
}

.Section3 img {
  transition: 0.2s;
}

.Section3 img:hover {
  cursor: pointer;
  transform: scale(1.1);
}

.Section3 .Contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  margin-left: 20vh;
  margin-right: 15vh;
  text-align: center;
}

.Section3 h1 {
  font-size: 52px;
  color: rgb(255, 255, 255);
  margin-top: 5vh;
  margin-bottom: 7vh;
}

.Section4 {
  display: flex;
  background-color: rgb(185, 173, 238);
  align-items:end;
  justify-content: center;
}

#container {
  width: 500px;
  height: 500px;
  margin-right: 20vh;
  margin-bottom: 7vh;
}

.Section4 .informacion {
  display: flex;
  flex-direction: column;
  width: 100vh;
  right: 0;
  margin-bottom: 10vh;
}

.Section4 .informacion .certificados {
  display: flex;
  align-items: center;
  margin-top: 10vh;
  margin-left: 2vh;
}

.Section4 .informacion .certificados2 {
  display: flex;
  align-items: center;
  margin-top: 10vh;
  margin-left: -80vh;
}

.Section4 .informacion .certificados p {
  color: rgb(43, 43, 43);
  font-weight: 400;
  font-size: 20px;
  margin-left: 1vh;
}

.Section4 .informacion .certificados h3 {
  color: rgb(0, 0, 0);
  font-weight: 800;
  font-size: 20px;
  margin-left: 1vh;
}

.Section4 .informacion h1 {
  color: rgb(17, 17, 17);
  font-weight: 900;
  font-size: 38px;
  margin-left: -80vh;
  margin-top: 15vh;
  margin-bottom: -5vh;
}

.Section4 .informacion h2 {
  color: rgb(17, 17, 17);
  font-weight: 900;
  font-size: 34px;
  margin-left: 2vh;
  margin-top: 20vh;
}

.hamburger {
  display: none;
  font-size: 4vh;
  background: none;
  border: none;
  color: #ffffff;
  cursor: pointer;
}


.Endless{
  height: 50vh;
  background-color: #fff;
  width: 100%;
  display: flex;
  align-items:first baseline;
  justify-content: center;
  gap: 20vh;
}

.Endless .colums{
  display: flex;
  flex-direction: column;
  margin-top: 10vh;
}

.Endless .colums h3{
  color: #7a7a7a;
  font-weight: 300;
}

.Endless .colums a{
  color: #1a1a1a;
  text-decoration: none;
  margin-top: 3vh;
}

.Endless .colums a:hover{
  color: #932be9;
}

video:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
}


/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    gap: 2vh;
    padding-top: 3vh;
    align-items: flex-start;
    padding-bottom: 2vh;
  }

  nav img {
    margin-left: 3vh;
    height: 5vh;
  }

  .hamburger {
    display: block;
    position: absolute;
    top: 3vh;
    right: 4vh;
    z-index: 999;
  }

  nav .links {
    display: none;
    flex-direction: column;
    background-color: rgba(8, 30, 85, 0.658);
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2vh 0;
    z-index: 998;
  }

  nav .links.show {
    display: flex !important;
  }

  nav .links a {
    padding: 2vh 0;
    font-size: 2.2vh;
    margin-left: 5vh;
  }

  nav .links .btn {
    padding-left: 2vh;
    padding-right: 2vh;
  }

  header {
    background-image: url(imgs/FondoResponsive.png);
  }

  header .info {
    width: 90%;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
  }

  header .info h1 {
    font-size: 9.5vw;
    margin-top: 40vh;
  }

  header .info .btn {
    margin-bottom: 15vh;
    padding: 1.5vh 4vh;
    font-size: 2.5vh;
    max-width: 90vw;
    display: block;
    text-align: center;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .btn {
    font-size: 2.4vh;
    padding: 1.5vh 4vh;
    margin: 2vh auto;
    display: block;
  }

  .Section1,
  .Section2 {
    flex-direction: column;
    height: auto;
    padding: 4vh 2vh;
    text-align: left;
    align-items: flex-start;
    padding-left: 3vh;
  }

  .Section1 img,
  .Section2 img {
    position: static;
    width: 90%;
    height: auto;
    margin-top: 3vh;
  }

  .Section1 .Contenido,
  .Section2 .Contenido {
    width: 100%;
    margin: 0;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    text-align: left;
  }

  .Section2 .Contenido h1{
    color: rgb(141, 54, 255);
  }

  .Section3 {
  flex-direction: column;
  padding: 4vh 2vh;
  height: auto;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.Section3 .Contenido {
  width: 100%;
  margin: 0;
  text-align: left;
  align-items: center;
}

.Section3 img {
  position: relative;
  width: 20vw;
  margin-top: 5vh;
  display: block;
}


  .Section3 h1 {
    font-size: 6vw;
  }



  .Section4 {
    flex-direction: column;
    padding: 4vh 2vh;
    align-items: flex-start;
    padding-left: 5vh;
  }

  #container {
    width: 80vw;
    height: 80vw;
    margin: 0;
  }

  .Section4 .informacion {
    width: 100%;
    text-align: left;
  }

  .Section4 .informacion .certificados {
    display: flex;
    text-align: left;
    margin: 5vh 0;
    align-items: center;

  }

  .Section4 .informacion .certificados2 {
    display: flex;
    text-align: left;
    margin: 5vh 0;
    align-items: center;

  }

  .Section4 .informacion .certificados img {
    width: 40px;
    height: auto;
  }

  .Section4 .informacion .certificados p {
    font-size: 4vw;
  }

  .Section4 .informacion h1,
  .Section4 .informacion h2 {
    font-size: 6vw;
    margin: 4vh 0 2vh 0;
    text-align: left;
  }

  .Endless{
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0vh;
  }

  .Endless .colums{
    margin-left: 5vh;
  }

  .logos-certificaciones{
    margin-top: -12vh;
    margin-bottom: -5vh;
  }
}

/* ... (tu CSS existente, sin el contact-menu) ... */

/* Modal Styles */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed; /* Permanece en su lugar incluso al desplazarse */
  z-index: 1001; /* Z-index alto para estar por encima de todo */
  left: 0;
  top: 0;
  width: 100%; /* Ancho completo */
  height: 100%; /* Altura completa */
  overflow: auto; /* Habilitar desplazamiento si el contenido es demasiado grande */
  background-color: rgba(0, 0, 0, 0.7); /* Fondo semi-transparente */
  /* Removemos 'display: flex' de aquí para que 'display: none' tenga efecto */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fefefe;
  margin: 15vh 0 10vh 0;
  padding: 0 0 10vh 0;
  border-radius: 10px;
  width: 700px; /* Ancho máximo para pantallas grandes */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  text-align: center;
  display: flex; /* Aseguramos flex aquí para el contenido interno */
  flex-direction: column;
  gap: 20px;
}

.Punto {
  width: 35px;
  position: absolute;
  top: 200px;
  left: 50%;
  transform: translate(-50%, -100%);
  z-index: 1003;
}


.close-button {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  z-index: 1002;
}

.close-button:hover,
.close-button:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal-content h2 {
  color: rgb(142, 75, 230);
  font-size: 32px;
  margin-bottom: 20px;
}

.modal-content p{
  width: auto;
  font-size: 3vh;
  padding-bottom: 1vh;
}

.map-container {
  width: 700px;
  height: 400px; /* Altura del contenedor del mapa */
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden; /* Oculta el contenido que se sale del contenedor */
  position: relative; /* Esencial para posicionar la imagen y la flecha */
  cursor: zoom-in; /* Cambiamos el cursor para indicar zoom */
}

.map-container img#customMap {
   object-fit: cover;
  width: 100%; /* Ajusta el ancho inicial de la imagen al 100% del contenedor */
  height: 100%; /* Mantiene la proporción */
  display: block;
  object-fit: cover;
  transform-origin: 0 0; /* Punto de origen para las transformaciones */
  transition: transform 0.05s ease-out; /* Suaviza las transiciones de zoom */
  position: absolute; /* Permite escalarla libremente */
  top: 0;
  left: 0;
}

.map-container img#locationArrow {
  position: absolute;
  width: 40px; /* Tamaño de la flecha */
  height: auto;
  z-index: 2; /* Para que esté por encima del mapa */
}

.modal-contact-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10vh;
}

.modal-contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 2vh;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  color: white;
  width: 220px;
}

.whatsapp-btn {
  background-color: #932be9;
}

.whatsapp-btn:hover {
  background-color: #8552af;
  transform: translateY(-2px);
}

.email-btn {
  background-color: #932be9; /* Un color para el email */
}

.email-btn:hover {
  background-color: #8552af;
  transform: translateY(-2px);
}

.modal-contact-btn img {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  filter:brightness(1000); /* Para que los iconos blancos se vean bien en el fondo de color */
}

/* Responsive para el modal */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    padding: 15px;
  }

  .modal-content h2 {
    font-size: 28px;
  }

  .map-container {
    height: 300px;
  }
  .modal-contact-btn {
    font-size: 1.8vh;
    padding: 10px 15px;
  }
}

/* ... (el resto de tu CSS para Section4, Endless, etc.) ... */


.logos-certificaciones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  padding: 30px;
  justify-items: center;
  align-items: center;
  border-radius: 12px;
  margin-left: -10vh;
  max-width: 400px;
}

.logos-certificaciones .certificado {
  background: linear-gradient(to right, #342e4d, #1d223b);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transform: scale(0.65); /* 60% más chico */
  transform-origin: center;
}

.logos-certificaciones .certificado img {
  max-width: 100%;
  height: auto;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logos-certificaciones .certificado img:hover {
  filter: none;
}


.logos-certificaciones2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 30px;
  justify-items: center;
  align-items: center;
  border-radius: 12px;
  margin-left: -90vh;
  max-width: 1000px;
  gap: 30px;
}

.logos-certificaciones2 .certificado {
  width: 200px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #232652, #0f145a);
  padding: 2px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.logos-certificaciones2 .certificado:hover {
  transform: scale(1.1);
}

.logos-certificaciones2 .certificado img {
  max-width: 100%;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.logos-certificaciones2 .certificado img:hover {
  filter: none;
}


/* Video responsive */
#videoPlayer {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: none; /* lo ocultas inicialmente */
}

/* Para que el contenedor Section3 se adapte */
.Section3 {
  position: relative;
  max-width: 100%; /* o lo que quieras, para que no se agrande mucho */
  margin: 0 auto;
  padding: 10px;
}

/* Ajustar el botón de play */
#playButton {
  cursor: pointer;
  max-width: 100px;
  width: 15vw; /* ancho relativo al viewport */
  height: auto;
  display: block;
  margin: 20px auto;
}




  

  




