* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body,
html {
  height: 100%;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 300;
  color: #414141;
  font-size: 1.125em;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: white;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  font-weight: 400;
}
a:hover {
  color: #ffd700;
}


button {
  font-family: "Poppins", Arial, sans-serif;
  font-size: 1rem;
  color: #336bc4;
  background-color: transparent;
  border: #336bc4 1px solid;
  border-radius: 15px;
  padding: 0.4rem 0 0.4rem 1.2rem;
  margin: 0.2rem 0;
  text-align: left;
  font-weight: 400;
  display: flex;
  align-items: center;
  cursor: pointer;
}

h2,h3 {
  font-weight: 600;
  color: #336bc4;
  line-height: 2rem;
}

h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}


h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

i.fa {
  font-size: 1.3rem;
  margin-right: 0.3rem;

}
p {
  font-size: 1.1rem;
  /* margin-bottom: 1rem; */
}

nav {
  position: absolute;
  top: 0;
  justify-content: flex-end;
  /*left: 0;*/
  right: 0;
  padding: 1rem;
  /*background-color: rgba(0, 0, 0, 0.3);*/
  z-index: 1000;
  transition: background-color 0.3s ease;
  text-shadow: 0px 0px 19px rgba(0,0,0,0.98), 0px 0px 5px rgba(0,0,0,0.98);
  color: #FFFFFF;
}

  /*nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}*/

ul {
  list-style-type: none;
  display: flex;
  justify-content: center;
}

li {
  margin: 0 1rem;
}

strong{
  font-weight: 600;
}

/* Hero */

.hero {
  height: 90vh; /* Cambiado a 50% de la altura de la pantalla */
  background-image: url("img/hero.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  padding: 80px 20px 60px;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 1;
}

.hero-content img.logo {
  max-width: 450px;
}

.olive-divider {
  background-color: #d6e6d1;
  height: 15px;
}
.blue-divider {
  background-color: #336bc4;
  height: 15px;
}
/* Servicios */

.servicios {
  padding: 5.5rem;
  text-align: center;
  margin-bottom: 260px;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.servicio {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicio img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
}

.servicio p {
  margin: 0 auto;
  padding: 0 20px;
}

/* Instagram */

.instagram-section {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(to bottom, #92b0e0, white);
  margin-bottom: -10rem;
}
.instagram-section a {
  color:#336bc4;
}
.instagram-section-inner {
  transform: translateY(-20rem);
}
.instagram-section h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 400;
  margin-bottom: 0;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 580px;
  margin: 2rem auto;
}

.instagram-item {
  position: relative;
  aspect-ratio: 0;
  overflow: hidden;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Location */

.location-section {
  padding: 0rem 5rem 6rem;
  text-align: left;
  position: relative;
  padding-bottom: 2rem;
}

.location-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;

}

.location-info h2 {
  color: #4d4d4d;
  font-weight: 700;
  text-align: left;
  margin: 0;
  line-height: 1em;
}

.location-info h3 {
  color: #666;
  font-size: 1.8rem;
  text-align: left;
}

.location-info p {
  color: #336bc4;
  font-size: 1.5rem;
  line-height: 1.6;
}

.map-container {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  max-width: 420px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Quienes Somos */

.quienes-somos-section {
  padding: 5rem;
  background-color: white;
  position: relative;
}

.background-circle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200%;
  border-top: 10px #9fc594 solid;
  border-right: 10px #9fc594 solid;
  border-bottom: 4px #9fc594 solid;
  border-top-right-radius: 50%;
  border-bottom-right-radius: 50%;
  border-top-left-radius: 50%;
  border-bottom-left-radius: 50%;
  left: -173%;
  z-index: 0;
}

.mission, .team, .values {
  display: flex;
  flex-direction: row;
  padding-top: 2rem;
  padding-bottom: 2rem;
  align-items: center;
}

.img {
  margin-right: 1.2rem;
  z-index: 2;  
}

.mission .img {
  flex-basis: 30%;
  position: relative;
}

.mission .content {
  flex-basis: 70%;
}

.team {
  display: flex;
  flex-direction: row;
}

.team .img {
  margin-right: 0rem;
  flex-basis: 35%;
  display: flex;
  position: relative;
  justify-content: center;
}

.team .content {
  flex-basis: 60%;
}

.values {
  display: flex;
  flex-direction: row;
}

.values .img {
  position: relative;
  flex-basis: 30%;
}

.values .content {
  flex-basis: 70%;
}

/* Cerca tuyo */


.cerca-tuyo {
  background: linear-gradient(to bottom, #fff, #c2d3ed);
  padding-bottom: 4rem;
}

.cerca-tuyo-hero {
  height: 600px; 
  background-image: url("img/cerca-tuyo.png");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
  margin-bottom: 5.5rem;
}

.cerca-tuyo-text {
  color: #5a5a5a;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* .cerca-tuyo-text p{
  font-size: 2rem;
  line-height: 1.75em;
} */

.cerca-tuyo-text p strong {
  font-weight: 700;
}

/* Contacto */

.contacto-title {
  padding: 2rem 0;
  background-color: #d6e6d1;
}
.contacto-title h2 {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0;
}

.branches {
  display: flex;
  padding: 1.2rem 3rem 2rem;
  margin: auto;
  background-image: url("img/fondo-contacto.png");
  background-size:contain;
  box-sizing: content-box;
  flex-wrap: nowrap;
  justify-content: center;
}

.branch {
  display: flex;
  flex-direction: column;
  padding: .5rem;
}

.branch h3 {
  margin-bottom: .5rem;
  color: #5a5a5a;
  margin-top: .5rem;
  margin-left: 1rem;
}
.branch-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}
.branch-col-1 {
  flex-basis: 33%;
}
.branch-col-2 {
  flex-grow: 1;
  flex-basis: 66%;
  flex-wrap: nowrap;
}
.branch2, .branch3 {
  flex-basis: 50%;
}
.laboratorio button {
  margin-top: 2rem;
  background-color: #336bc4;
  color: #FFFFFF;
  font-weight: 600;
  justify-content: center;
}
/* Footer */
.footer {
  background-color: #336bc4;
  padding: 2rem 5rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer .logo {
  max-width: 250px;
}

.footer .social {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-basis: 75%;
}

.footer .insta, .footer .email .fb {
  display: flex;
  align-items: center;
  padding: 1.2rem;
}

.social div a {
  font-weight: 300;
  font-size: 1rem;
}

/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .mission{
    flex-direction: column;
  }
  .team{
    flex-direction: column;
  }
  .values{
    flex-direction: column;
  }
  h2 {
    font-size: 2rem;
  }
  p {
    font-size: 1rem;
  }

  .servicio img {
    width: 200px;
    height: 200px;
  }
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .location-container {
    grid-template-columns: 1fr;
  }
  .location-info h2 {
    font-size: 2rem;
  }
  .location-info h3 {
    font-size: 1.5rem;
  }
  .footer {
    justify-content: center;
  }
  .footer .social {
    flex-basis: 100%;
    flex-wrap: wrap;
  }
  .team, .values, .mission {
    position: relative;
    z-index: 2;
  }
  .team img, .values img, .mission img{
    margin-bottom: 1rem;
  }
  .background-circle {
    opacity: .5;
  }
  .branch-row {
    flex-wrap: wrap;
  }
}

/* Mobile (up to 767px) */
@media screen and (max-width: 767px) {
  h2 {
    margin-bottom: 1.2rem;
  }
  .hero-content img.logo {
    max-width: 90%;
    box-sizing: border-box;
    margin: auto;
  }
  nav {
    left: 0;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0;
  }
  nav ul {
    justify-content: space-between;
    align-items: center;
    padding: .75rem;
  }
  nav a {
    font-size: .8rem;
    line-height: 1rem;
  }
  #card_9{
    display:none;
  }
  .contacto-title h2 {
    font-size: 2rem;
  }

  .instagram-section{
    margin-bottom: -24rem;
  }
  .servicios, .location-section, .quienes-somos-section {
    padding: 3rem 1.5rem;
  }
  .location-container {
    display: flex;
    flex-direction: column;
  }
  .map-container {
    margin-bottom: 1rem;
    max-width: unset;
  }
  .location-info h2 {
    font-size: 1.6rem;
    margin-bottom: .75rem;
  }
  .location-info h3 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    line-height: 1.5rem;
  }
  .location-info p {
    color: #336bc4;
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 1.5rem;
  }
  .background-circle {
    left: -133%;
  }
  .cerca-tuyo-text p {
    font-size: 1.2rem;
    line-height: 1.5em;
  }
  .branches {
    padding: 1rem 2rem;
  }
  .branches, .branch {
    flex-wrap: wrap;
    flex-grow: 1;
  }
  .branch-col-1, .branch-col-2, .branch-row {
    flex-basis: 100%;
  }
}


