@import url("https://fonts.googleapis.com/css?family=Quicksand:400,500,700");

/* General styles */
html,
body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Quicksand", sans-serif;
  font-size: 62.5%;
  font-size: 10px;
}

.nav {
  width: 100%;
  height: 65px;
  position: fixed; /* Fijo en la parte superior */
  line-height: 65px;
  text-align: center;
  background-color: #0043a5; /* Azul */
  z-index: 1000;
  top: 0; /* Sin espacio arriba */
  left: 0;
}

.nav div.logo {
  float: left;
  width: auto;
  height: auto;
  padding-left: 3rem;
}

.nav div.logo a {
  text-decoration: none;
  color: #fff;
  font-size: 2.5rem;
}

.nav div.logo a:hover {
  color: #00e676;
}

.nav div.main_list {
  height: 65px;
  float: right;
}

.nav div.main_list ul {
  width: 100%;
  height: 65px;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav div.main_list ul li {
  width: auto;
  height: 65px;
  padding: 0;
  padding-right: 3rem;
}

.nav div.main_list ul li a {
  text-decoration: none;
  color: #fff;
  line-height: 65px;
  font-size: 2.4rem;
}

.nav div.main_list ul li a:hover {
  color: #00e676;
}

/* Responsive Design for Small Screens */

@media screen and (max-width: 768px) {
  .navTrigger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    margin: auto;
    position: absolute;
    right: 30px;
    top: 0;
    bottom: 0;
  }

  .navTrigger i {
    background-color: #fff;
    border-radius: 2px;
    display: block;
    width: 100%;
    height: 4px;
  }

  .navTrigger i:nth-child(2) {
    margin: 5px 0;
  }

  .nav div.main_list {
    width: 100%;
    height: 100vh; /* Fullscreen height */
    overflow: hidden;
    background: rgba(0, 67, 165, 1); /* Semi-transparent black background */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    display: none; /* Hidden by default */
    justify-content: center; /* Center the menu items */
    align-items: center;
  }

  .nav div.main_list.show_list {
    display: flex; /* Show menu when active */
  }

  .nav div.main_list ul {
    flex-direction: column; /* Stack menu items vertically */
    text-align: center;
    width: 100%;
    padding: 0;
    margin-bottom: 20rem;
  }

  .nav div.main_list ul li a:hover {
    color: #00e676; /* Cambia el color en hover */
    background: rgba(255, 255, 255, 0.2); /* Fondo semitransparente en hover */
    border-radius: 5px; /* Bordes redondeados */
  }

  .nav div.main_list ul li {
    width: 100%;
    margin-bottom: 1rem;
  }

  .nav div.main_list ul li a {
    font-size: 3rem; /* Larger font size for better visibility */
    color: #fff; /* White text */
    padding: 20px;
    text-decoration: none;
  }

  .nav div.main_list ul li a:hover {
    color: #00e676; /* Green hover effect */
  }

  /* Botón de hamburguesa */
  .navTrigger {
    display: block;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: absolute;
    right: 20px;
    z-index: 10000; /* Encima del fondo */
  }
  .navTrigger.active i:nth-child(1) {
    transform: translateY(9px) rotate(135deg);
  }

  .navTrigger.active i:nth-child(2) {
    opacity: 0;
  }

  .navTrigger.active i:nth-child(3) {
    transform: translateY(-9px) rotate(-135deg);
  }

  .navTrigger i {
    background-color: #fff; /* Blanco para ser visible */
    border-radius: 2px;
    display: block;
    width: 100%;
    height: 4px;
    margin: 5px 0;
  }
}

/* Animation for Hamburger Menu */

.navTrigger i:nth-child(1) {
  transition: 0.4s ease-in-out;
}
.navTrigger i:nth-child(2) {
  transition: 0.4s ease-in-out;
}
.navTrigger i:nth-child(3) {
  transition: 0.4s ease-in-out;
}

.navTrigger.active i:nth-child(1) {
  transform: translateY(9px) rotate(135deg);
}

.navTrigger.active i:nth-child(2) {
  opacity: 0;
}

.navTrigger.active i:nth-child(3) {
  transform: translateY(-9px) rotate(-135deg);
}

.affix {
  padding: 0;
  background: rgb(0, 67, 165);
}

.myH2 {
  text-align: center;
  font-size: 4rem;
}
.myP {
  text-align: justify;
  padding-left: 15%;
  padding-right: 15%;
  font-size: 20px;
}

@media all and (max-width: 700px) {
  .myP {
    padding: 2%;
  }
}
#logo {
  width: 295px;
  height: 236px;
  margin-left: 17rem;
}
/* Ajuste al logo */
.logo img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.container {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 10rem;
  margin-left: 2rem;
  margin-right: 2rem;
  padding: 1.5rem;
}

/* Contenedor principal que agrupa las 3 tarjetas */
.cards-container {
  display: flex; /* Activa el modo flex */
  flex-wrap: wrap; /* Permite saltar a otra línea si no cabe en la misma */
  justify-content: center; /* Centra las tarjetas horizontalmente */
  align-items: stretch; /* Todas las tarjetas de una misma fila tienen la misma altura */
  gap: 2rem; /* Espacio entre tarjetas */
  max-width: 1200px; /* Ancho máximo opcional */
  margin: 2rem auto; /* Centra horizontalmente en la página */
  padding: 1rem;
}

/* Cada tarjeta */
.card {
  flex: 1 1 30%; /* Cada tarjeta ocupa ~30% del ancho en escritorio */
  box-sizing: border-box; /* Para que padding/borde se sumen correctamente */
  margin: 0; /* Evita márgenes laterales extra */
  border-radius: 1rem;
  color: #fff;
  display: flex; /* Para centrar internamente si lo deseas */
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
  /* Ejemplo de sombra y hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Ajustes de textos internos */
.card h2 {
  margin-bottom: 1rem;
  font-size: 2.4rem;
  text-align: center;
}
.card p {
  font-size: 1.6rem;
  line-height: 1.5;
  text-align: justify;
}

/* Responsividad: en pantallas menores a 768px, apila las tarjetas */
@media (max-width: 768px) {
  .cards-container {
    flex-direction: column; /* Apiladas una debajo de otra */
    align-items: center; /* Centra en el eje horizontal */
  }
  .card {
    flex: 1 1 100%; /* Toma todo el ancho disponible */
    margin-bottom: 2rem; /* Espacio entre tarjetas */
  }
}

/* Tarjetas base */
.card {
  flex: 1 1 30%;
  box-sizing: border-box;
  border-radius: 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  background-size: cover; /* Ajusta la imagen al contenedor */
  background-position: center; /* Centra la imagen */
  background-repeat: no-repeat; /* Evita repeticiones */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
}

.mission {
  background-image: linear-gradient(
      rgba(255, 87, 34, 0.8),
      rgba(255, 87, 34, 0.8)
    ),
    url("../images/i4.jpg");
}

.culture {
  background-image: linear-gradient(
      rgba(76, 175, 80, 0.8),
      rgba(76, 175, 80, 0.8)
    ),
    url("../images/i5.jpg");
}

.vision {
  background-image: linear-gradient(
      rgba(33, 150, 243, 0.8),
      rgba(33, 150, 243, 0.8)
    ),
    url("../images/i6.jpg");
}

.values-title {
  text-align: center;
  font-size: 3rem;
  margin-top: 4rem;
  margin-bottom: 2rem;
  font-weight: 700; /* Negrita para destacar */
}

.objectives-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: stretch; /* Estira tarjetas en la misma fila */
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.objective-card {
  position: relative;
  flex: 1 1 220px; /* Cada tarjeta ocupa un mínimo de 220px */
  max-width: 320px; /* O limite máximo si quieres */
  background-color: #fff;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.objective-card h2 {
  margin-bottom: 0.8rem;
  font-size: 2rem;
  color: #333;
  font-weight: 600;
}

.objective-card p {
  font-size: 1.4rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Mantenemos esquinas, colores y media queries similares */

/* Esquinas decorativas */
.corner {
  position: absolute;
  width: 50px;
  height: 50px;
  top: 0;
  left: 0;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Colores de esquina */
.corner-orange {
  background-color: #ff9f43;
}
.corner-green {
  background-color: #1dd1a1;
}
.corner-blue {
  background-color: #54a0ff;
}

/* Ajustes responsivos (ejemplo para pantallas <= 768px) */
@media (max-width: 768px) {
  .objective-card {
    width: 90%; /* Más ancha en móvil */
    min-height: auto; /* Quita altura fija si quieres que se ajusten */
    margin: 0 auto;
  }
  .objective-card h2 {
    font-size: 1.8rem;
  }
  .objective-card p {
    font-size: 1.4rem;
  }
}

.footer {
  background-color: #0043a5;
  color: white;
  padding: 30px 0;
}

.container-footer {
  width: 90%;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1 1 20%;
  margin: 10px;
  text-align: center;
}

.footer-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}
.btn-container {
  margin-top: 10px;
}

.btn-agendar-cita {
  background-color: white;
  color: #0043a5;
  border: none;
  padding: 10px 20px;
  font-size: 18px;
  border-radius: 5px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.btn-agendar-cita:hover {
  background-color: #0043a5;
  color: white;
}

.footer-links h6 {
  margin: 10px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #007bff;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.social-link {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link img {
  width: 30px;
  height: 30px;
}

.social-link:hover {
  transform: scale(1.1);
}
