@import url('https://fonts.googleapis.com/css2?family=Playwrite+IS:wght@100..400&display=swap');

:root {
  --background-color: #fff; 
  --yellow: #FFB703;
  --orange: #F16F37;
  --blue: #0E386D;
  --white: #F8F9F9;
  --black: #000000;
  --grey: #b2b5c2;
  --dark-grey: #7f818c;
  --light-grey: #e2e2e5;
  --white-icon: #f1f1f1;
  --bg-icon: #ffd7c682;
  --bg-sent: #9179df5f;
  --bg-leads: #c072dc78;
  --bg-convos: #81d0eb81;
  --pill-dark: #1B56A3;
  --pill-light: #6A8FC3;
}

*{
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
  margin: 0;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: var(--dark-grey);
  background: var(--background-color);
  overflow-x: hidden;
}

a{
  text-decoration: none;
}

p {
  position: relative;
  z-index: 1;
  margin: 20px 15%;
  font-size: 25px;
  text-align: justify;
}

/* Estilos para el contenedor */
.bg-white {
  background-color: #fff; /* Fondo blanco */
}

.bg-glass{
  background: rgba(255, 255, 255, 0.1); /* Fondo blanco semitransparente */
  backdrop-filter: blur(10px); /* Desenfoque del fondo */
  -webkit-backdrop-filter: blur(10px); /* Compatibilidad con Safari */
}

/* Definir la animación de aparición */
@keyframes appearFromBottom {
  0% {
    opacity: 0; /* Comienza invisible */
    transform: translateY(20px); /* Desplaza el texto hacia abajo */
  }
  100% {
    opacity: 1; /* Termina completamente visible */
    transform: translateY(0); /* Vuelve a la posición original */
  }
}

h1 {
  position: relative;
  z-index: 2;
  margin: 0px 10%;
  padding: 20px;
  font-family: "Playwrite IS";
  color: var(--orange);
  font-weight: 800;
  font-size: 60px;  
}

/* Estilos para el h1 en pantallas grandes */
@media (min-width: 1200px) {
  h1 {
    font-size: 60px; /* Tamaño de la fuente */
  }
}

/* Estilos para el h1 en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  h1 {
    font-size: 40px; /* Tamaño de la fuente */
  }
}

/* Estilos para el h1 en pantallas pequeñas */
@media (max-width: 767px) {
  h1 {
    font-size: 30px; /* Tamaño de la fuente */
  }
}

.section-1 {
  padding: 10px 0;
}

.section-2 {
  padding: 1px 0;
}

li {
  z-index: 1;
  color: var(--orange);
}

.image-2 {
  height: 800px;
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  background-image: url("/img/human-osteoporosis-bone.jpeg");
  transition: transform 1s ease; /* Transición suave para el zoom */
}

.image-2.zoomed {
  transform: scale(1.05); /* Aumenta el tamaño de la imagen en un 20% */
}

.img-info{
  width: 100%;
  height: auto;
}

/* Estilos para todas las secciones */
.pattern-section {
  position: relative; /* Necesario para el sello de agua */
  overflow: hidden; /* Oculta el desbordamiento del patrón */
  background-color: var(--white);
}

/* Patrón de figuras uniformes (sello de agua) */
.pattern-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    45deg, /* Ángulo del patrón */
    rgba(0, 0, 0, 0.03), /* Color del patrón */
    rgba(0, 0, 0, 0.03) 10px, /* Tamaño de las figuras */
    transparent 30px, /* Espacio entre figuras */
    transparent 20px /* Tamaño total del patrón */
  );
  z-index: 1; /* Coloca el patrón detrás del contenido */
  pointer-events: none; /* Evita que el patrón interfiera con el contenido */
}

/* Asegurar que el contenido esté por encima del patrón */
.pattern-section > * {
  position: relative;
  z-index: 2; /* Coloca el contenido por encima del patrón */
}

.pattern-section-svg {
  background-image: url("/img/topography.svg");
  background-repeat: repeat;
  background-size: 100px 100px;
}

/* Asegurar que el contenido esté por encima del patrón */
.pattern-section-svg > * {
  position: relative;
  z-index: 2;
}

.bg-section-bone {
  height: 700px;
  background-size: cover;
  background-position: center;
  background-image: url("/img/health-and-osteoporosis-bone.jpeg");
  transition: transform 1s ease; /* Transición suave para el zoom */
  filter: brightness(0.8);
}

.bg-section-bone h1{
  position: relative;
  z-index: 2;
  margin: 20px 15%;
  padding: 20px;
  font-family: "Playwrite IS";
  color: var(--blue);
  font-style: bold;
  font-size: 60px;
  opacity: 1;
}

@media (max-width: 768px) {
  .bg-section-bone {
    height: 1500px; /* Ajusta la altura aún más para pantallas pequeñas */
  }
  .bg-section-bone h1 {
    font-size: 30px; /* Tamaño de la fuente */
  }
}

@media (max-width: 480px) {
  .bg-section-bone {
    height: 1800px; /* Ajusta la altura para móviles */
  }
  .bg-section-bone h1 {
    font-size: 30px; /* Tamaño de la fuente */
  }
}

.text {
  position: relative;
}

.text::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 125%;
  background: var(--white);
  translate: -50% -50%;
}

.text-2 {
  position: relative;
}

.text-2::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 103%;
  background: var(--white);
  translate: -50% -50%;
}

figure{
  margin: 0;
  position: relative;
  z-index: 2;
}

.figure-text{
  position: relative;
  z-index: 1;
  color: var(--orange);
  text-align: center;
  font-size: 100px;
}

video {
  width: 100%;
  max-width: 100%;
}

.video-text {
  position: absolute;
  top: 65%;
  left: 56%;
  width: max-content;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 40px;
  font-family: "Poppins", sans-serif;
  z-index: 10;
  text-align: center;
  opacity: 0;
  animation: appearText 3s ease-in-out 2s forwards; /* Retraso de 1 segundo */
}

@keyframes appearText {
  0% {
    opacity: 0; /* Comienza invisible */
    transform: translate(-50%, -50%) scale(0.8); /* Escala inicial más pequeña */
  }
  100% {
    opacity: 1; /* Termina completamente visible */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
  }
}

/* Estilos para el video-text en pantallas grandes */
@media (min-width: 1200px) {
  .video-text {
    font-size: 40px; /* Tamaño de la fuente */
    top: 65%; /* Posición vertical */
    left: 56%; /* Posición horizontal */
    transform: translate(-50%, -50%); /* Centrar el texto */
  }
}

/* Estilos para el video-text en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .video-text {
    font-size: 23px; /* Tamaño de la fuente */
    top: 62%; /* Posición vertical */
    left: 54%; /* Posición horizontal */
    transform: translate(-50%, -50%); /* Centrar el texto */
  }
}

/* Ajustar la animación en pantallas pequeñas */
@media (max-width: 767px) {
  .video-text {
    animation: appearText 2s ease-in-out 1s forwards; /* Duración más corta y retardo menor */
  }
}

/* Estilos para el video-text en pantallas pequeñas */
@media (max-width: 767px) {
  .video-text {
    font-size: 15px; /* Tamaño de la fuente */
    top: 70%; /* Posición vertical */
    left: 50%; /* Posición horizontal */
    transform: translate(-50%, -50%); /* Centrar el texto */
  }
}

/* Estilos para el video en pantallas grandes */
@media (min-width: 1200px) {
  video {
    width: 100%;
    height: 600px;
  }
}

/* Estilos para el video en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  video {
    width: 100%;
    height: 400px;
  }
  .video-text{
    font-size: 20px;
  }
}

/* Estilos para el video en pantallas pequeñas */
@media (max-width: 767px) {
  video {
    width: 100%;
    height: 300px;
  }
}

.video-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%; /* Ajusta el tamaño del logo */
  height: auto;
  opacity: 1; /* Inicia visible */
  filter: brightness(1); /* Aumenta el brillo al 150% */
}

.video-logo::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3); /* Fondo brillante semitransparente */
  z-index: 1;
  mix-blend-mode: overlay; /* Mezcla el fondo con la imagen */
}

.video-text {
  position: absolute;
  top: 65%;
  left: 56%;
  width: max-content;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  z-index: 10;
  text-align: center;
  opacity: 1; /* Inicia visible */
}

@keyframes appearLogo {
  0% {
    opacity: 1; /* Inicia visible */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
  }
  100% {
    opacity: 1; /* Termina visible */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
  }
}

@keyframes appearText {
  0% {
    opacity: 1; /* Inicia visible */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
  }
  100% {
    opacity: 1; /* Termina visible */
    transform: translate(-50%, -50%) scale(1); /* Escala normal */
  }
}

/* Estilos para el video-logo en pantallas grandes */
@media (min-width: 1200px) {
  .video-logo {
    width: 80%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; /* Inicia visible */
  }
  .video-text {
    font-size: 40px; /* Tamaño de la fuente */
    top: 65%; /* Posición vertical */
    left: 56%; /* Posición horizontal */
    transform: translate(-50%, -50%); /* Centrar el texto */
    opacity: 1; /* Inicia visible */
  }
}

@media (min-width: 1000px) {
  .video-logo {
    width: 80%;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Estilos para el video-logo en pantallas medianas */
@media (max-width: 999px) and (min-width: 768px) {
  .video-logo {
    width: 500px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Estilos para el video-logo en pantallas pequeñas */
@media (max-width: 767px) {
  .figure{
    margin-top: 40px;
  }
  .video-logo {
    width: 300px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 1; /* Inicia visible */
  }
  .video-text {
    font-size: 15px; /* Tamaño de la fuente */
    top: 70%; /* Posición vertical */
    left: 50%; /* Posición horizontal */
    transform: translate(-50%, -50%); /* Centrar el texto */
    opacity: 1; /* Inicia visible */
  }
}

.stretch {
  height: 20px;
  min-height: 100%;
  min-width: 100%;
  background-size: cover;
  margin-top: 800px;
  max-height: 100vh; /* Agrega un max-height para evitar que se vuelva demasiado grande */
}

.stretch h1 {
  padding: 20px;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .stretch {
    margin-top: 800px;
  }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .stretch {
    margin-top: 600px;
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
  .stretch {
    margin-top: 10px;
  }
}

/* Estilos para el contenedor del video */
.hero-wrapper {
  position: fixed; /* Fija el video en la pantalla */
  top: 0;
  left: 0;
  width: 100vw; /* Ancho completo de la ventana */
  height: 100vh; /* Alto completo de la ventana */
  z-index: -1; /* Coloca el video detrás del contenido */
  overflow: hidden; /* Oculta el desbordamiento del video */
}

/* Estilos para el video */
video {
  width: 100%; /* Ancho completo del contenedor */
  height: 100%; /* Alto completo del contenedor */
  object-fit: cover; /* Cubre toda la pantalla sin distorsión */
}

/* Estilos para el div con clase hero-wrapper en pantallas grandes */
@media (min-width: 1200px) {
  .hero-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    height: auto;
    width: auto;
    min-height: 100%;
    min-width: 100%;
    z-index: -9999;
  }
}

/* Estilos para el div con clase hero-wrapper en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .hero-wrapper {
    position: fixed;
    bottom: 0;
    right: 0;
    height: auto;
    width: auto;
    min-height: 100%;
    min-width: 100%;
    z-index: -9999;
  }
}

/* Estilos para el div con clase hero-wrapper en pantallas pequeñas */
@media (max-width: 767px) {
  .hero-wrapper {
    position: relative;
    bottom: 0;
    right: 0;
    height: auto;
    width: 100%;
    min-height: 100%;
    min-width: 100%;
    z-index: -9999;
    margin-top: 60px;
  }
}

/*NAVBAR*/
button, a {
  border: 0;
  padding: 0;
  font-family: inherit;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 18px;
}

.navbar {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 75px;
  background: var(--blue);
  color: var(--white);
  font-family: "Poppins";
  box-sizing: border-box;
}

.nav-img{
  width:175px;
  height:auto;
}

.navbar-menu > button.active {
  color: var(--orange); /* Color del botón activo */
  font-weight: bold; /* O cualquier otro estilo que desees */
}

@media only screen and (min-width: 600px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 30px 10px;
  }
}

.navbar-overlay {
  position: fixed;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: 0.3s;
}

body.open .navbar-overlay {
  visibility: visible;
  opacity: 1;
}

@media only screen and (min-width: 600px) {
  .navbar-overlay {
    display: none;
  }
}

.navbar-burger {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  padding: 0;
  background-color: var(--blue);
  color: var(--white);
  border: none;
  cursor: pointer;
}

.navbar-burger:hover {
  transform: scale(1.1);
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .navbar-burger {
    display: none;
  }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .navbar-burger {
    display: none;
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
  .navbar-burger {
    width: 48px;
    height: 48px;
  }
}

.navbar-title {
  margin: 0;
  font-size: 24px;
}

.navbar-title-2 {
  margin: 0;
  font-size: 16px;
  color:var(--blue);
}

.navbar-menu {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 0;
  translate: -100% 0;
  width: 270px;
  height: 100%;
  padding: 20px;
  display: flex;
  gap: 16px;
  flex-direction: column;
  background: var(--black);
  visibility: hidden;
  transition: translate 0.3s;
}

body.open .navbar-menu {
  translate: 0 0;
  visibility: visible;
}

@media only screen and (min-width: 600px) {
  .navbar-menu {
    position: static;
    translate: 0 0;
    width: auto;
    background: transparent;
    flex-direction: row;
    visibility: visible;
  }
}

.navbar-menu > button {
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  padding: 0 8px;
}

.navbar-menu > button.active {
  color: inherit;
}

.navbar-menu > button:hover  {
  color: var(--orange);
}

/* VISION - MISION */
/* Estilos para el contenedor de las tarjetas */
.cards-container {
  display: flex;
  gap: 30px; /* Espacio entre las tarjetas */
  justify-content: center;
  margin: 40px 15%; /* Margen para centrar el contenedor */
}

/* Estilos para cada tarjeta */
.mission-vision-card {
  background: white; /* Fondo blanco */
  border-radius: 15px; /* Bordes redondeados */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
  padding: 30px;
  text-align: center;
  width: 45%; /* Ancho de cada tarjeta */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Necesario para posicionar el título */
}

.mission-vision-card:hover {
  transform: translateY(-10px); /* Efecto de levantar la tarjeta */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al hacer hover */
}

/* Estilos para el título de la tarjeta */
.mission-vision-card h2 {
  font-size: 40px;
  color: var(--blue); /* Color del título */
  margin-bottom: 15px;
  position: relative; /* Asegura que el título esté siempre visible */
  z-index: 2; /* Coloca el título por encima de otros elementos */
}

/* Estilos para el contenido de la tarjeta */
.card-content {
  position: relative;
  z-index: 1; /* Coloca el contenido detrás del título */
}

/* Estilos para el ícono de la tarjeta */
.card-icon {
  font-size: 100px;
  color: var(--orange); /* Color del ícono */
  margin-bottom: 20px;
}

/* Estilos para el texto de la tarjeta */
.mission-vision-card p {
  font-size: 20px;
  color: var(--dark-grey); /* Color del texto */
  line-height: 1.6;
}

.material-icons {
  font-size: 50px;
}

/* Ajustes para pantallas grandes */
@media (min-width: 1200px) {
  .material-icons {
    font-size: 50px;
  }
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .material-icons {
    font-size: 50px;
  }
  .cards-container {
    margin: 5%; /* Margen para centrar el contenedor */
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
  .material-icons {
    font-size: 50px;
  }
}

.mission-vision-icon {
  transition: transform 0.8s ease, opacity 0.8s ease; /* Transición suave */
  opacity: 0; /* Inicialmente invisible */
  transform: translateY(20px); /* Desplazamiento inicial hacia abajo */
}

.mission-vision-icon.animated {
  opacity: 1;
  transform: translateY(0) rotate(360deg) scale(1.2);
}

@media (max-width: 768px) {
  .cards-container {
    flex-direction: column; /* Cambia a una columna en tablets y móviles */
    align-items: center;
  }

  .mission-vision-card {
    width: 80%; /* Aumenta el ancho de las tarjetas en móviles */
  }
}

@media (max-width: 480px) {
  .mission-vision-card {
    width: 90%; /* Ocupa todo el ancho en móviles pequeños */
  }
}

/* BACKGROUND SECTION */
.grid-container {
  display: grid;
  grid-template-columns: 2fr 2fr 2fr;
  gap: 5px;
  padding: 5px;
}

.grid-item {
  padding: 15px;
  background: rgba(252, 251, 251, 0.1); /* Fondo blanco semitransparente */
  backdrop-filter: blur(15px); /* Desenfoque del fondo */
  -webkit-backdrop-filter: blur(15px); /* Compatibilidad con Safari */
  border-radius: 20px;
}

.grid-item p{
  color: var(--black);
  margin: 25px;
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
  opacity: 1;
}

.image-container img:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

@media (min-width: 768px) and (max-width: 1250px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-container {
    height: fit-content;
}

.bg-section-bone {
  height: fit-content;
}
}

@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .image-container {
    height: fit-content;
}
  .bg-section-bone {
  height: fit-content;
}
}

@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 1fr;
    padding: 3px;
  }

  .image-container {
    grid-column: span 1;
    max-width: 100%;
  }
}

/* CARDS */
.cards {
  display: flex;
  gap: 30px;
  justify-content: center;
  margin: 80px 0 80px;
}

article {
  position: relative;
  perspective: 1000px;
  width: 300px;
  height: 320px;
}

article .front,
article .back {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  backface-visibility: hidden;
  backdrop-filter: blur(10px);
  background: var(--white); /* Fondo de las cards */
  box-shadow: rgba(149, 157, 165, 0.09) 0px 8px 14px;
  border-radius: 20px;
  padding: 32px;
  transition: 0.6s;
  cursor: pointer;
}

/* Cambiar el fondo de las cards */
article .front {
  background: var(--white-icon); /* Nuevo color de fondo para el frente */
}

article .back {
  background: var(--white-icon); /* Nuevo color de fondo para el reverso */
}

/* Efecto hover en las cards */
article:hover .front {
  transform: rotateY(180deg); /* Gira la card al pasar el mouse */
}

article:hover .back {
  transform: rotateY(0); /* Muestra la parte trasera */
}

/* Sombra más pronunciada */
article .front,
article .back {
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 20px;
}

/* Borde redondeado */
article .front,
article .back {
  border-radius: 15px;
}

.back {
  transform: rotateY(180deg);
}

.back p {
  font-size: 22px;
  color: var(--grey);
}

article .material-symbols-outlined {
  width: 125px;
  height: 125px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 70px;
}

input {
  position: absolute;
  scale: 0;
}

input:checked ~ article .back {
  transform: rotateY(0);
}

input:checked ~ article .front {
  transform: rotateY(-180deg);
}

article var {
  font-style: normal;
  font-size: 64px;
  line-height: 1;
}

article h3 {
  margin: 0;
  font-weight: 500;
  font-size: 26px;
  color: var(--orange);
}

#sent {
  color: #643fe1;
}

#sent span {
  background: var(--bg-sent);
}

#leads {
  color: #b02ce1;
}

#leads span {
  background: var(--bg-leads);
}

#convos {
  color: #3ac2f0;
}

#convos span {
  background: var(--bg-convos);
}

.cards > h2,
h3,
h4 {
  margin: 0;
  font-weight: 500;
}

/* Estilos para las tarjetas en pantallas grandes */
@media (min-width: 1200px) {
  .cards-container {
    display: flex;
    gap: 30px; /* Espacio entre las tarjetas */
    justify-content: center;
    margin: 40px 15%; /* Margen para centrar el contenedor */
  }

  .mission-vision-card {
    width: 45%; /* Ancho de cada tarjeta */
  }
}

/* Estilos para la sección id="tech" en pantallas grandes */
@media (min-width: 1200px) {
  #tech {
    padding: 80px 0; /* Espaciado interno */
  }

  .cards {
    display: flex;
    gap: 30px; /* Espacio entre las tarjetas */
    justify-content: center;
    margin: 80px 0; /* Margen para centrar el contenedor */
  }

  article {
    width: 300px; /* Ancho de cada tarjeta */
  }
}

/* Estilos para la sección id="tech" en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  #tech {
    padding: 60px 0; /* Espaciado interno */
  }

  .cards {
    display: flex;
    gap: 20px; /* Espacio entre las tarjetas */
    justify-content: center;
    margin: 60px 0; /* Margen para centrar el contenedor */
  }

  article {
    width: 250px; /* Ancho de cada tarjeta */
  }
}

/* Estilos para la sección id="tech" en pantallas pequeñas */
@media (max-width: 767px) {
  #tech {
    padding: 40px 0; /* Espaciado interno */
  }

  .cards {
    display: flex;
    flex-direction: column; /* Cambia a una columna en móviles */
    gap: 20px; /* Espacio entre las tarjetas */
    justify-content: center;
    margin: 40px 0; /* Margen para centrar el contenedor */
  }
  .cards-container {
    margin: 20px 5%; /* Margen para centrar el contenedor */
  }

  article {
    width: 100%; /* Ancho de cada tarjeta */
  }
}

/* Estilos Technology */
.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.columna-1, .columna-2 {
  flex-basis: 45%;
  padding: 10px;
}

.container p {
  position: relative;
  z-index: 1;
  margin: 20px 5%;
  font-size: 25px;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .container {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .columna-1, .columna-2 {
    flex-basis: 100%;
  }
}

/* Estilos de Advantages */
.advantages {
  position: relative;
  width: 100%;
  height: 750px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 100px;
}

.bubbles-container {
  position: relative;
  width: 800px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.bubble {
  position: absolute;
  width: 250px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  left: 50%;
  top: 50%;
  margin-left: -50px;
  margin-top: -50px;
}

.bubble-pill {
  background-color: var(--pill-dark);
  width: 250px;
  height: 80px;
  border-radius: 40px;
}

.bubble:hover {
  background-color: var(--yellow);
  transform: scale(1.02);
  transition: transform 0.3s ease-in-out;
  opacity: 0.7;
}

.bubble-other {
  background-color: var(--orange);
  opacity: 0.7;
}

.bubble-dark {
  background-color: var(--pill-dark);
}

.bubble-light {
  background-color: var(--pill-light);
}

.bubble p {
  font-size: 18px;
  color: var(--white);
  text-align: center;
  font-weight: 500;
}

.bubble:nth-child(1) {
  top: 46%;
  left: 10%;
  margin-left: -135px;
  margin-top: -85px;
}

.bubble:nth-child(2) {
  top: 82%;
  left: 71%;
  margin-left: -125px;
  margin-top: -96px;
}

.bubble:nth-child(3) {
  top: 47%;
  left: 92%;
  margin-left: -130px;
  margin-top: -85px;
}

.bubble:nth-child(4) {
  top: 82%;
  left: 27%;
  margin-left: -95px;
  margin-top: -96px;
}

.bubble:nth-child(5) {
  top: 18%;
  left: 50%;
  margin-left: -125px;
  margin-top: -120px;
}

.explanation-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--yellow);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: box-shadow 0.3s ease-in-out;
  border: 0px solid #2196f3;
  border-radius: 50%;
  width: 325px;
  height: 325px;
  padding: 10px;
  opacity : 0.6;
}

.bubble:hover ~ .explanation-container {
  box-shadow: 0 0 10px 5px rgba(240, 78, 78, 0.2);
}

.bubble:hover ~ .explanation-container .explanation {
  font-size: 20px;
  font-weight: 200;
}

.explanation {
  font-size: 40px;
  text-align: center;
  transition: opacity 0.3s ease;
}

.explanation-container p {
  margin: 10px;
  color: var(--blue);
  font-weight: 700;
}

/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .advantages {
    position: relative;
    height: 750px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    flex-wrap: nowrap;
}
.bubbles-container {
  width: 700px;
}
.bubble {
  position: absolute;
  width: 200px; 
   height: 100px;
}

.explanation-container {
  top: 40%;
  left: 46%;
}
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
  
  .bubbles-container {
    width: 400px; /* Ancho fijo para el contenedor de burbujas */
    margin: 0 auto; /* Centra el contenedor de burbujas */
  }
  
  .bubble {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .bubble p {
    font-size: 12px;
    color: var(--white);
    text-align: center;
  }

  .bubble:hover ~ .explanation-container .explanation {
    font-size: 15px;
    font-weight: 200;
  }

  .explanation-container {
    position: absolute;
    top: 33%;
    left: 30%;
    transform: translate(-50%, -50%);
    background-color: var(--yellow);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow 0.3s ease-in-out;
    border: 0px solid #2196f3;
    border-radius: 50%;
    width: 185px;
    height: 185px;
    padding: 5px;
    opacity: 0.6;
  }
  
  .explanation {
    font-size: 15px;
    text-align: center;
    transition: opacity 0.3s ease;
  }
  
  .bubble:nth-child(1) {
    top: 18%;
    left: 85%;
  }
  
  .bubble:nth-child(2) {
    top: 38%;
    left: 96%;
  }
  
  .bubble:nth-child(3) {
    top: 55%;
    left: 85%;
  }
  
  .bubble:nth-child(4) {
    top: 61%;
    left: 32%;
  }
  
  .bubble:nth-child(5) {
    top: 18%;
    left: 42%;
  }
}

/* TEAM */



/* Estilos para el contenedor de blobs */
.blob-container {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 110%;
  z-index: 1; /* Coloca los blobs detrás de las tarjetas */
  overflow: hidden; /* Evita que los blobs se salgan del contenedor */
}



/* Ajustes para pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .blob-container {
    width: 900px;
    height: 600px;
  }
}

/* Ajustes para pantallas pequeñas */
@media (max-width: 767px) {
  .blob-container {
    width: 600px;
    height: 400px;
  }
}

/* Estilos para cada blob */
.blob {
  position: absolute;
  /*animation: float 10s ease-in-out infinite;  Animación de flotación */
}

/* Estilos para los blobs grandes */
.blob-1, .blob-2, .blob-3 {
  width: 900px; /* Aumenta el tamaño */
  height: 900px; /* Aumenta el tamaño */
}

/* Estilos para los blobs pequeños */
.blob-4, .blob-5 {
  width: 200px; /* Ajusta el tamaño */
  height: 200px; /* Ajusta el tamaño */
}

/* Estilos para los blobs pequeños */
.blob-6, .blob-7 {
  width: 450px; /* Ajusta el tamaño */
  height: 450px; /* Ajusta el tamaño */
}

/* Animación de flotación */
@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(10deg); /* Aumenta el movimiento */
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* Posiciones y animaciones específicas para cada blob */
.blob-1 {
  top: 10%;
  left: 5%; /* Mueve más a la izquierda */
  animation-duration: 8s;
}

.blob-2 {
  top: 30%; /* Mueve más hacia abajo */
  left: 40%; /* Mueve más a la derecha */
  animation-duration: 12s;
}

.blob-3 {
  top: 50%; /* Mueve más hacia abajo */
  left: 5%; /* Mueve más a la izquierda */
  animation-duration: 10s;
}

.blob-4 {
  top: 55%; /* Mueve más hacia arriba */
  left: 20%; /* Mueve más a la derecha */
  animation-duration: 6s;
}

.blob-5 {
  top: 35%; /* Mueve más hacia abajo */
  left: 80%; /* Mueve más a la derecha */
  animation-duration: 9s;
}

.blob-6 {
  top: 40%; /* Mueve más hacia arriba */
  left: 10%; /* Mueve más a la derecha */
  animation-duration: 6s;
}

.blob-7 {
  top: 70%; /* Mueve más hacia abajo */
  left: 60%; /* Mueve más a la derecha */
  animation-duration: 9s;
}
/* Asegurar que las tarjetas estén por encima del blob */
.team-grid {
  position: relative;
  z-index: 2; /* Coloca las tarjetas por encima del blob */
}

#team {
  background: rgba(255, 255, 255, 0.95); /* Fondo semi-transparente */
  position: relative;
  overflow: hidden; /* Evita que los blobs se salgan de la sección */
}

/* Estilos para la sección de equipo */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  gap: 30px; /* Espacio entre las tarjetas */
  margin: 40px 15%; /* Margen para centrar el grid */
}

.team-grid-p {
  position: relative;
  z-index: 2; /* Coloca las tarjetas por encima del blob */
}
.team-grid-p {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas */
  gap: 30px; /* Espacio entre las tarjetas */
  margin: 40px 15%; /* Margen para centrar el grid */
}
/* Estilos para la tarjeta de equipo */
.team-card {
  background: var(--white); /* Fondo blanco */
  border-radius: 15px; /* Bordes redondeados */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Sombra suave */
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative; /* Asegura que el contenido esté bien posicionado */
}

/* Efecto hover en la tarjeta */
.team-card:hover {
  transform: translateY(-10px); /* Efecto de levantar la tarjeta */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2); /* Sombra más pronunciada al hacer hover */
}

/* Estilos para la foto del equipo */
.team-photo {
  width: 200px; /* Aumenta el tamaño de la foto */
  height: 200px; /* Aumenta el tamaño de la foto */
  border-radius: 50%; /* Foto circular */
  object-fit: cover; /* Ajusta la imagen al contenedor */
  margin-bottom: 15px;
}

/* Estilos para el nombre del equipo */
.team-name {
  font-size: 24px;
  color: var(--blue); /* Color del nombre */
  margin-bottom: 10px;
  position: relative; /* Asegura que el nombre esté siempre visible */
  z-index: 2; /* Coloca el nombre por encima de otros elementos */
}

/* Estilos para el puesto del equipo */
.team-role {
  font-size: 18px;
  color: var(--orange); /* Color del puesto */
  margin-bottom: 10px;
}

/* Estilos para la descripción del equipo */
.team-description {
  font-size: 16px;
  color: var(--grey); /* Color de la descripción */
  line-height: 1.5;
}

@media (min-width: 768px) and (max-width: 1199px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 19px;
    margin: 5%;
  }
  .team-grid-p {
    grid-template-columns: repeat(2, 1fr);
    gap: 19px;
    margin: 5%;
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
  .team-grid-p {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  
  }
  .team-grid-p {
    grid-template-columns: 1fr; /* 1 columna en móviles */
  
  }
}

/* PARTNERS */

#contact {
  background: #fff; /* Fondo blanco */
  padding: 40px 0; /* Espaciado interno */
}

/* Estilos para el carrusel de logos */
.logos-carousel {
  margin: 40px 15%; /* Margen para centrar el carrusel */
  height: 100%; /* Altura fija para el contenedor del carrusel */
  display: flex;
  align-items: center; /* Centra verticalmente los logos */
}

/* Estilos para cada slide del carrusel */
.logos-carousel .slick-slide {
  display: flex; /* Usa flexbox para centrar */
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
  height: 100%; /* Ocupa toda la altura del contenedor */
}

/* Estilos para los logos */
.carousel-logo {
  width: 150px; /* Tamaño de los logos */
  height: auto;
  margin:auto; /* Centrar los logos horizontalmente */
}

/* Estilos para los puntos de navegación */
.slick-dots {
  bottom: -30px; /* Posición de los puntos */
}

.slick-dots li button:before {
  color: var(--orange); /* Color de los puntos */
}

.slick-dots li.slick-active button:before {
  color: var(--blue); /* Color del punto activo */
}

/* Estilos para el carrusel en pantallas grandes */
@media (min-width: 1200px) {
  .logos-carousel {
    margin: 40px 15%;
  }
  
}

/* Estilos para el carrusel en pantallas medianas */
@media (max-width: 1199px) and (min-width: 768px) {
  .logos-carousel {
    margin: 30px 10%;
  }
  .carousel-logo {
    width: 150px;
  }
}

/* Estilos para el carrusel en pantallas pequeñas */
@media (max-width: 767px) {
  .logos-carousel {
    margin: 20px 5%;
  }
  .carousel-logo {
    width: 100px;
  }
}

/* FOOTER */

.section-foot {
  padding: 40px 0;
  background-color: #0e386d;
  
}

.footer {
  position: fixed;
  left: 0;
  bottom: 12px;
  width: 100%;
  background-color: #fff;
  padding-top: 60px;

}

footer.top > img {
  height: 50px;
  margin: 0 auto 50px;
}

footer {
  position: relative;
  margin: 0 30px;
  color: rgb(255 255 255 / 50%);
  
}

footer.top {
  display: grid;
  border-bottom: 2px solid rgb(255 255 255 / 20%);
  padding-bottom: 60px;
}

footer.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: column-reverse;
  gap: 8px;
  padding: 20px 0;
  text-align: center;
}

footer.top .links {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  
}

.links-column {
  display: grid;
  gap: 10px;
  text-align: center;
}

footer h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgb(255 255 255 / 96%);
}

footer p {
  margin: 0;
}

.legal > a {
  margin: 0 0 0 4px;
}

.legal,
.copyright {
  font-size: 12px;
}

.legal > span {
  margin-right: 10px;
}

footer.top .socials {
  position: absolute;
  left: 50%;
  bottom: 10px;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 18px;
  height: 56px;
}

footer.top .socials > a {
  font-size: 25px;
}

footer.p {
	font-size:20px;
}
.socials-column :is(h2, p) {
  display: none;
}

@media (width > 400px) {
  .links-column {
    text-align: left;
  }

  footer.top .links {
    grid-template-columns: repeat(2, 1fr);
    margin-right: 50px;
  }

  footer.bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 20px;
    text-align: left;
  }

  footer.top .socials {
    left: 0;
    translate: 0;
  }

  footer.top > img {
    margin: 0 0 50px;
  }
}

@media (width >= 640px) {
  footer {
    margin: 0 auto;
    max-width: 580px;
    padding: 0;
  }

  footer.top .links {
    grid-template-columns: repeat(3, 1fr);
  }

  footer.top .socials {
    position: static;
  }

  footer.bottom {
    justify-content: flex-start;
  }

  .socials-column :is(h2, p) {
    display: block;
  }
}
