* {
  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/aplicaciones-Desktop.jpg');
  background-size: cover;
  background-position: center;
  height: 110vh;
  width: 100%;
  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);
} 

.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;
}


header .info {
  width: 35%;
  margin-left: 20vh;
}

header .info h1 {
  font-size: 55px;
  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: auto;
  display: flex;
  padding: 5vh;
  align-items: center;
  background: none;
  overflow: hidden;
  background-color: #ffffff;
  justify-content: center;
}

.Section1 .box{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  height: auto;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding-bottom: 5vh;
}

 .box .orden{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5%;
  width: 90%;
  margin-top: 10vh;
 }

 .orden .mini-box1{
  margin-top: 5vh;
  display: flex;
  width: 20%;
  height: 100%;
  background-color: #ffd00050;
  align-items: center;
  justify-content: left;
  padding-left: 3vh;
  gap: 3vh;
  border-radius: 50px;
  transition: 0.4s;
 }

 .mini-box1 img{
  width: 9vh;
 }

 .mini-box1 h4{
  font-size: 3.2vh;
  color: #ffb10a;
 }


  .orden .mini-box3{
  margin-top: 5vh;
  display: flex;
  width: 25%;
  height: 100%;
  background-color: #00ff8031;
  align-items: center;
  justify-content: left;
  padding-left: 3vh;
  gap: 1vh;
  border-radius: 50px;
  transition: 0.4s;
 }

 .mini-box3 img{
  width: 9vh;
 }

 .mini-box3 h4{
  font-size: 3vh;
  color: #27e760;
 }


   .orden .mini-box4{
  margin-top: 5vh;
  display: flex;
  width: 20%;
  height: 100%;
  background-color: #0080ff31;
  align-items: center;
  justify-content: left;
  padding-left: 3vh;
  gap: 1.5vh;
  border-radius: 50px;
  transition: 0.4s;
 }

 .mini-box4 img{
  width: 9vh;
 }

 .mini-box4 h4{
  font-size: 3.2vh;
  color: #2794e7;
 }


    .orden .mini-box5{
  margin-top: 5vh;
  display: flex;
  width: 20%;
  height: 100%;
  background-color: #a200ff31;
  align-items: center;
  justify-content: left;
  padding-left: 3vh;
  gap: 1.5vh;
  border-radius: 50px;
  transition: 0.4s;
 }

 .mini-box5 img{
  width: 9vh;
 }

 .mini-box5 h4{
  font-size: 3.2vh;
  color: #9d27e7;
 }

  .orden .mini-box2{
  margin-top: 5vh;
  display: flex;
  width: 20%;
  height: 100%;
  background-color: #ff110050;
  align-items: center;
  justify-content: left;
  padding-left: 3vh;
  gap: 3vh;
  border-radius: 50px;
  transition: 0.4s;
 }

 .mini-box2 img{
  width: 9vh;
 }

 .mini-box2 h4{
  font-size: 3.2vh;
  color: #ff120a;
 }


  .orden .mini-box1:hover{
  cursor: pointer;
  transform: scale(1.05);
 }

  .orden .mini-box2:hover{
  cursor: pointer;
  transform: scale(1.05);
 }

  .orden .mini-box3:hover{
  cursor: pointer;
  transform: scale(1.05);
 }

 .orden .mini-box4:hover{
  cursor: pointer;
  transform: scale(1.05);
 }

 .orden .mini-box5:hover{
  cursor: pointer;
  transform: scale(1.05);
 }

.Section1 h1 {
  font-size: 30px;
  color: rgb(26, 25, 25);
  margin-top: 7vh;
}

.Section1 p {
  font-size: 16px;
  color: rgb(104, 104, 104);
  margin-top: 8vh;
  margin-bottom: 7vh;
}

.box .orden {
  display: flex;
  flex-wrap: wrap; /* permite varias filas */
  justify-content: center;
  align-items: flex-start; /* alineamos al inicio, no al centro */
  gap: 3%; /* espacio entre cajas horizontal y vertical */
  width: 90%;
  margin-top: 5vh;
}

.orden .mini-box1,
.orden .mini-box2,
.orden .mini-box3,
.orden .mini-box4,
.orden .mini-box5 {
  width: 24%; /* tres cajas por fila, cuarta cae debajo */
  background-color: #ffd00050; /* luego puedes ajustar individualmente */
  display: flex;
  align-items: center;
  justify-content: left;
  padding: 2vh;
  gap: 2vh;
  border-radius: 50px;
  transition: 0.4s;
  height: auto; /* altura automática según contenido */
  margin-top: 5vh; /* quitamos el margen grande */
}

/* colores individuales */
.orden .mini-box2 { background-color: #ff110050; }
.orden .mini-box3 { background-color: #00ff8031; }
.orden .mini-box4 { background-color: #0080ff31; }
.orden .mini-box5 { background-color: #a200ff31; }


.Aplicaciones{
  display: flex;
  flex-direction: column;
}


.Section2 {
  background-color: #ffffff;
  height: auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 15vh;
}

.Section2 img{
  width: 90vh;
}

.Section2 .Dolor{
  display: flex;
  flex-direction: column;
  max-width: 40%;
  margin-left: 10vh;
}

.Section2 .Dolor .CheckGrid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4vh;
}

.Section2 .Dolor .CheckGrid .check{
  display: flex;
  align-items: center ;
  justify-content: left;
  gap: 2vh;
}

.Section2 .Dolor .CheckGrid .check img{
  width: 4vh;
}

.Section2 h1{
  color: #000000;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 10vh;
}

.Section2 h2{
  color: #1a1a1a;
  font-size: 20px;
  font-weight: 200;
  margin-bottom: 10vh;
}

.Section2 p{
  color: #2c2c2c;
  font-size: 15px;
  font-weight: 200;
}

.Aplicaciones .cardInfo{
  margin-left: 10vh;
  margin-top: 30vh;
}

.Aplicaciones .cardInfo p{
  color: #9b20ff;
  font-size: 20px;
}

.Aplicaciones .cardInfo h1{
  color: #000000;
  font-size: 30px;
}


.Section3 {
  position: relative;
  background-color: #f0edff;
  background-position: center;
  background-size: cover;
  height: 105vh;
  display: flex;
  flex-direction: column;
  padding: 5vh;
  align-items: center;
  justify-content: left;
}

.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: center;
  align-items: center;
  margin-top: 5vh;
}


.Section3 .Contenido .efectos img{
  width: 15vh;
}

.Section3 h1 {
  font-size: 45px;
  margin-top: 10vh;
  margin-bottom: 7vh;
}


.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 {
  margin-left: 0;
  margin-right: 0;
}

  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: flex-end;
    height: 100%;
  }

  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;
  }

  .Endless{
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 0vh;
  }

  .Endless .colums{
    margin-left: 5vh;
  }
}




.carrusel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px;
  margin-bottom: 25vh;
  margin-top: 15vh;
}

.carrusel.grabbing {
  cursor: grabbing;
}


.card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  width: 350px;
  height: 200px;
  background: #ffffff;
  border-radius: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  gap: 3vh;
  padding: 3vh;
}

.card img{
  width: 12vh;
}

.card p{
  font-size: 16px;
  font-weight: 200;
  color: #4b4b4b;
}

.carrusel::-webkit-scrollbar {
  display: none;
}

.carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #932be9;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.carrusel-btn:hover {
  background: #6c1dbe;
}

.carrusel-btn.prev {
  left: 0;
}

.carrusel-btn.next {
  right: 0;
}



/* Responsive */
@media (max-width: 600px) {
  .card {
    width: 150px;
    height: auto;
    font-size: 1.2em;
  }
}


/* ===== RESPONSIVE GENERAL ===== */

/* Laptops y pantallas medianas */
@media (max-width: 1024px) {
  header .Medicina {
    flex-direction: column;
    gap: 5vh;
    align-items: center;
  }

  header .Medicina img {
    width: 10vh;
  }

  .Section2 {
    flex-direction: column;
    gap: 5vh;
    text-align: left;
  }

  .Section2 img {
    width: 35vh;
    margin: auto;
  }

  .Section2 .Dolor {
    max-width: 90%;
    margin-left: 0;
  }

  .Section2 .Dolor .CheckGrid {
    grid-template-columns: 1fr;
  }

  .Section3 .Contenido {
    grid-template-columns: 1fr 1fr;
    gap: 4vh;
  }
}

/* Tablets */
@media (max-width: 768px) {
  header {
    height: auto;
    padding-bottom: 10vh;
  }

  header .info h1 {
    font-size: clamp(24px, 8vw, 48px);
  }

  .Section1{
    height: auto;
  }

  .Section1 .box{
    padding: 0 5vh 7vh 5vh;
    align-items: center;
    justify-content: center;
  }

  .Section1 .orden {
    flex-direction: column;
    align-items: center;
    gap: 4vh;
  }

  .orden .mini-box1,
  .orden .mini-box2,
  .orden .mini-box3,
  .orden .mini-box4,
  .orden .mini-box5 {
    width: 100%;
    height: auto;
    gap: 10px;
    padding: 2vh 2vh 2vh 2vh;
    align-items: center;
  }

  .orden .mini-box1 h4,
  .orden .mini-box2 h4,
  .orden .mini-box3 h4,
  .orden .mini-box4 h4,
  .orden .mini-box5 h4{
    font-size: 1.3rem;
  }

  .Section3 .Contenido {
    grid-template-columns: 1fr;
  }
}

/* Celulares pequeños */
@media (max-width: 480px) {

  .header .info {
    font-size: 2vh;
  }

  .Section2 h1 {
    font-size: 6vw;
  }

  .Section2 .CheckGrid {
    gap: 2vh;
  }

  .Section2 .Dolor .CheckGrid{
  display: grid;
  grid-template-columns: repeat(1, 1fr);
}

.Section2 .Dolor .CheckGrid .check{
  display: flex;
  align-items: center ;
  justify-content: flex-start !important;
  text-align: left;
  gap: 2vh;
}

.Section2 .Dolor .CheckGrid .check img{
  display: none;
}


  .Section3 h1 {
    font-size: 7vw;
  }

  .Section3 .efectos {
    max-width: 80vw;
  }

  .Section3 .efectos img {
    width: 10vh;
  }

  .carrusel {
    display: flex;
    flex-direction: column;
    width: 89%;
    align-items: center;
    justify-content: center;
  }

  .cardInfo{
    padding: 0;
    margin: 0;
  }
  .cardInfo h1{
    margin-left:-5vh;
    margin-right: 5vh;
    text-align: left;
  }

  .cardInfo p{
    margin-left:-5vh;
    margin-right: 5vh;
    text-align: left;
  }
}

  .content {
  padding: 40px;
  max-width: 80%;
  margin: auto;
  line-height: 1.6;
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.15);
  margin: 10vh;
  border-radius: 20px;
}

.content section{
  margin-bottom: 60px;
  font-size: 16px;
}

.content h1, 
.content h2, 
.content h3 {
  margin-top: 20px;
  color: #9b20ff;
  font-size: 22px;
  
}

.content section h1{
  margin-bottom: 20px;
  font-size: 26px;
}

.content ul {
  margin: 10px 0 20px 20px;
  list-style: disc;
}

.content section p{
  margin-top: 15px;
  font-weight: lighter;
  color: rgb(69, 69, 69);
}

.content section ol{
  margin-left: 3vh;
}


    .container2 {
      display: flex;
      justify-content: center;
      align-items: flex-start;
      gap: 10px;
      padding: 20px;
      background-color: #ffffff;
    }
    .container2 .card {
      flex: 1;
      background: #ffffff;
      color: rgb(0, 0, 0) !important;
      padding: 30px;
      box-shadow: 0px 4px 8px rgba(0,0,0,0.0);
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      align-items: center;
      text-align: left;

    }

    .card2{
      display: flex;
      max-width: 95%;
      max-height: 75%;
      border-radius: 20px !important;
      box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
      border-radius: 60px;
      height: 110vh;
    }
    .container2 .card:nth-child(2) { background: #ffffff; }
    .container2 .card:nth-child(3) { background: #ffffff; }
    .container2 .card:nth-child(4) { background: #ffffff; }
    .container2 h2 {
      text-align: center;
      margin-bottom: 20px;
    }
    .container2 h3 {
      margin-top: 20px;
      margin-bottom: 10px;
      font-size: 14px;
      text-transform: uppercase;
    }
    .container2 ul {
      list-style: none;
      padding-left: 0;
    }
    .container2 li {
      margin: 8px 0;
    }
    .container2 a {
      color: rgb(0, 0, 0);
      text-decoration: none;
    }
    .container2 a:hover {
      text-decoration: underline;
    }


    /* Media query para pantallas menores a 768px */

    /* Contenedor principal */
.container2 {
  display: flex;
  flex-wrap: wrap; /* permite que los elementos bajen de fila si no caben */
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #ffffff;
}

/* Tarjetas internas */
.container2 .card {
  flex: 1 1 250px; /* crece, se encoge y mínimo 250px */
  max-width: 300px; /* opcional, para no expandirse demasiado */
  background: #ffffff;
  color: rgb(0, 0, 0) !important;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 20px;
  height: auto;
}

/* Títulos */
.container2 h2 {
  text-align: center;
  margin-bottom: 15px;
  font-size: 20px;
}
.container2 h3 {
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
}

/* Listas */
.container2 ul {
  list-style: none;
  padding-left: 0;
}
.container2 li {
  margin: 6px 0;
}
.container2 a {
  color: rgb(0, 0, 0);
  text-decoration: none;
}
.container2 a:hover {
  text-decoration: underline;
}

/* Tarjeta externa */
.card2{
  display: flex;
  flex-wrap: wrap; /* que los contenedores internos bajen si hace falta */
  justify-content: center;
  max-width: 95%;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.2);
  background-color: #fff;
  height: auto;
}

/* Media Queries: Ajustes para móviles */
@media (max-width: 768px) {
  .container2 {
    flex-direction: column;
    align-items: center;
  }

  .container2 .card {
    max-width: 90%;
    margin-bottom: 20px;
  }

  .container2 h1 {
    font-size: 24px;
  }
}


.recuadro {
  border: 2px solid #333;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  margin: 10px 0;
  overflow-x: auto; /* permite scroll horizontal en pantallas pequeñas */
}

.recuadro table {
  width: 100%;
  max-width: 100%; /* evita que la tabla se salga */
  border-collapse: collapse;
  table-layout: auto; /* o fixed si querés que las columnas tengan ancho fijo */
}

.recuadro th, .recuadro td {
  border: 1px solid #999;
  padding: 8px;
  text-align: left;
  word-break: break-word; /* quiebra palabras largas para no salir del contenedor */
}

.recuadro th {
  background-color: #ddd;
}

/* Opcional: mejorar el scroll visual en móviles */
@media (max-width: 768px) {
  .recuadro {
    display: none;
    padding: 10px;
  }
  .recuadro th, .recuadro td {
    padding: 6px;
    font-size: 14px;
  }
}

.desplegable {
    display: none; /* inicialmente oculto */
    margin-top: 10px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: auto;
    background-color: #942be94a;
  }

  .desplegable.show {
    display: block;
    max-height: 5000px; /* suficiente para todo el contenido */
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    border-radius: 10px;
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
  }

  .desplegable .card{
    padding: 20px !important;
    background-color: #942be900;
box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.0);
    border-radius: 0;
    height: auto;
  }
  .desplegable .card ul {
    list-style: disc;
    padding-left: 20px;
  }

  .desplegable .card li {
    color: #942be9;
  }

  .desplegable .card a {
    color: #ffffff;
    text-decoration: none;
  }

  .desplegable .card a:hover {
    text-decoration: underline;
  }
