* {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif !important;
}

body {
  font-family: 'Poppins', sans-serif;
}

header {
  background-image: url('https://centers.biobarica.com/next/images/webp/fondo_oxigeno_hiperbarico.webp');
  background-size: cover;
  background-position: center;
  height: auto;
  width: 100%;
  z-index: 1;
  padding-bottom: 5vh;
}

header::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;
}

nav {
  display: flex;
  background: linear-gradient(to bottom, white, transparent);
  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(71, 71, 71);
  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: 2vh 5vh;
  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: 35%;
  margin-left: 20vh;
}

header .info h1 {
  font-size: 45px;
  color: #9b20ff;
  line-height: 1.3;
  margin-bottom: 7vh;
}

header .info h6 {
  font-size: 15px;
  color: #9b20ff;
  line-height: 1.3;
  margin-top: 10vh;
  font-weight: 200;
}

header .info .btn {
  margin-left: 0;
  padding-left: 7vh;
  padding-right: 7vh;
  padding-top: 2vh;
  padding-bottom: 2vh;
  font-size: 3.2vh;
}

header .Medicina{
  display: flex;
  gap: 30vh;
  justify-content: first baseline;
   align-items: center;
}

header .Medicina img{
  width: 70vh;
  transform: scaleX(-1);
}

.Section1 {
  height: 65vh;
  display: flex;
  padding: 5vh;
  align-items: center;
  background: none;
  overflow: hidden;
  background-color: #f6f3ff;
  justify-content: center;
}

.Section1 .box{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: 85%;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

 .box .orden{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10%;
  width: 90%;
 }

 .orden .mini-box{
  margin-top: 5vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  width: 25%;
 }

 .mini-box img{
  margin-bottom: -5vh;
 }


.Section1 h1 {
  font-size: 45px;
  color: rgb(26, 25, 25);
  margin-top: 5vh;
}

.Section1 p {
  font-size: 16px;
  color: rgb(104, 104, 104);
  margin-top: 8vh;
  margin-bottom: 7vh;
}

.Section2 {
  position: relative;
  background: linear-gradient(to right, rgb(244, 241, 255), rgb(226, 215, 255));
  background-position: center;
  background-size: cover;
  height: 85vh;
  display: flex;
  padding: 5vh;
  align-items: center;
  justify-content: center;
  gap: 30vh;
  padding-right: 20vh;
}

.Section2 img{
  height: 120vh;
  transform: scaleX(-1);
  margin-left: -20vh;
}

.Section2 .Contenido img{
  height: 10vh;
  margin-top: 10vh;
  margin-left: 0;
}

.Section2 h6 {
  font-size: 20px;
  color: #9b20ff;
  line-height: 1.3;
  margin-top: 1vh;
  font-weight: 200;
}

.Section2 h1 {
  font-size: 45px;
  color: #9b20ff;
  margin-top: 1vh;

}

.Section2 p {
  font-size: 16px;
  color: rgb(104, 104, 104);
  margin-top: 8vh;
  margin-bottom: 7vh;
}

.Section3 {
  position: relative;
  background-color: #f0edff;
  background-position: center;
  background-size: cover;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 5vh;
  align-items: center;
  justify-content: left;
  padding-bottom: 20vh;
}

.Section3 .Contenido {
  color: #000000;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  place-items: center; /* centra en ambas direcciones */
}

.Section3 .Contenido .efectos {
  display: flex;
  flex-direction: column;
  width: 100%; /* que ocupe la celda entera si es necesario */
  max-width: 300px; /* límite opcional */
  text-align: center;
  justify-content: first baseline;
  align-items: center;
  margin-top: 5vh;
  height: auto;
}


.Section3 .Contenido .efectos img{
  width: 15vh;
}

.Section3 h1 {
  font-size: 45px;
  margin-top: 10vh;
  margin-bottom: 7vh;
}

.efectos h4{
  color: rgb(0, 0, 0);
  font-size: 18px;
}


.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;
}

.hamburger {
  display: none;
  font-size: 4vh;
  background: none;
  border: none;
  color: #2054ff;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    gap: 2vh;
    padding-top: 3vh;
    align-items: flex-start;
  }

  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: rgb(237, 242, 255);
    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 .info {
    width: 90%;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
  }

  header .info h1 {
    font-size: 9.5vw;
  }

  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;
  }

  header .Medicina{
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 5vh;
    padding: 0 !important;
    margin: 0 !important;
  }

  header .Medicina img{
    width: 40vh;
    margin-top: 0;
  }

  .Section1{
    display: flex;
    width: 100%;
    height: auto;
    padding: 0 !important;
    margin: 0 !important;
  }

  .Section1 .box{
    display: flex;
    flex-direction: column;
    width: 80%;
    align-items: center;
    justify-content: center;
    margin: 10vh 0 12vh 0;
  }

  .Section1 .box h1{
    font-size: 30px;
    margin: 0;
    text-align: center;
    margin-top: 5vh;
    margin-bottom: 7vh;
    margin-left: 2vh;
    margin-right: 2vh;
  }

  .Section1 .orden{
    display: flex;
    flex-direction: column;
  }

  .Section1 .orden .mini-box{
    width: 90%;
  }

  .Section2{
    display: flex;
    height: auto;
  }

  .Section2 img{
    display: none;
  }

  .Section3{
    display: flex;
    height: auto;
    padding: 0;
  }

  .Section3 h1{
    font-size: 30px;
  }

  .Section3 .Contenido {
    color: #000000;
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    width: 80%;
    place-items: center; /* centra en ambas direcciones */
  }


  .Section3 .Contenido .efectos {
  display: flex;
  flex-direction: column;
  width: 100%; /* que ocupe la celda entera si es necesario */
  text-align: center;
  justify-content: first baseline;
  align-items: center;
  margin-top: 5vh;
  height: auto;
  min-height: 200px;
  margin: 0;
  padding: 2vh;
  font-size: 15px;
}


.Section3 .Contenido .efectos img{
  width: 10vh;
}

  .Endless{
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0vh;
  }

  .Endless .colums{
    margin-left: 5vh;
  }
}

.efectos {
  position: relative;
  padding: 15px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.efectos:hover {
  background-color: #a977ff;
  color: #fff;
}

.efectos p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
  margin-top: 8px;
}

.efectos:hover p {
  opacity: 1;
  max-height: 2000px; /* suficiente para contener varias líneas */
}



.contact-menu {
  display: none;
  flex-direction: column;
  background-color: #f6f1ffad;
  border: #932be9 3px solid;
  padding: 2vh;
  border-radius: 1vh;
  margin-top: 1vh;
  position: absolute;
  z-index: 1000;
  color: white;
  width: max-content;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  font-size: 2.6vh;
  right: 4%;
  gap: 5px;
  max-width: 50vh;
}

.contact-menu img{
  width: 25px;
  height: 25px;
  margin-right: 10px;
}

.contact-menu a{
  font-size: 2.8vh;
  color: #932be9;
  text-decoration: none;
  padding: 0.8vh 1vh;
  display: flex;
}

.contact-menu p {
  color: #000000;
  text-decoration: none;
  padding: 0.8vh 1vh;
}

.contact-menu a:hover {
  text-decoration: underline;
}

.columnasMedicos{
  display: flex;
  width: 100vh;
  height: auto;
  padding: 50px;
  gap: 25px;
}

.columna1{
  min-width: 250px;
  height: 400px;
  background-color: #e25eeb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: first baseline;
  padding: 5vh;
  gap: 4vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.linksorder{
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: left;
  gap: 2.5vh;
}

.linksorder a{
  text-decoration: none;
  color: #fff;
  font-size: 14px;
}

.linksorder a:hover{
  color: #932be9;
}


.columna2{
  min-width: 250px;
  height: 400px;
  background-color: #cf5eeb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: first baseline;
  padding: 5vh;
  gap: 4vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.columna3{
  min-width: 250px;
  height: 400px;
  background-color: #ba5eeb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: first baseline;
  padding: 5vh;
  gap: 4vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}

.columna4{
  min-width: 250px;
  height: 400px;
  background-color: #9e5eeb;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: first baseline;
  padding: 5vh;
  gap: 4vh;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
}