/* Importar fuentes desde Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@400;700&display=swap");

/* Estilos básicos para el cuerpo del documento */
body {
  font-family: "Montserrat", sans-serif;
  padding: 20px;
  background-color: #f0f8ff;
  line-height: 1.6;
}

/* Estilos para el navegador */
.navbar {
  background-color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.navbar-brand img {
  width: 60px;
  height: 60px;
  margin-left: 10px;
}

.nav-link {
  color: #fff !important;
  font-size: 20px;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #007bff;
}

.dropdown-menu {
  background-color: #ffffff;
}

.dropdown-item:hover {
  background-color: #e9ecef;
}

/* Estilos para el carrusel */
.carousel {
  width: 100%;
  margin: 0 auto;
  position: relative;
}

/* Estilos para texto en secciones */
.textos {
  padding: 20px;
  font-size: 18px;
  color: #555;
}

/* Estilos para encabezados */
h1, h2, h3 {
  color: #30475e;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

hr {
  border: 1px solid #0056b3;
  margin: 30px 0;
}

/* Estilos para el mapa */
#map {
  height: 400px;
  width: 100%;
  margin: 20px 0;
  border: 2px solid #dba979;
  border-radius: 8px;
}

/* Estilos para el pie de página */
footer {
  background-color: #343a40;
  color: #fff;
  padding: 20px 0;
}

footer a {
  color: #fff;
  transition: color 0.3s;
}

footer a:hover {
  color: #007bff;
}

/* Diseño responsivo para pantallas medianas */
@media (max-width: 1200px) {
  .navbar-nav {
    text-align: center;
  }

  .nav-link {
    font-size: 18px;
  }

  .textos {
    font-size: 16px;
  }
}

/* Diseño responsivo para pantallas pequeñas */
@media (max-width: 992px) {
  .carousel-item {
    height: 400px;
  }

  h1 {
    font-size: 26px;
  }

  h2 {
    font-size: 22px;
  }
}

/* Diseño responsivo para pantallas muy pequeñas */
@media (max-width: 768px) {
  .textos {
    font-size: 14px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  #map {
    height: 300px;
  }

  .navbar {
    border-radius: 0;
  }
}

/* Diseño responsivo para pantallas extra pequeñas */
@media (max-width: 576px) {
  h1 {
    font-size: 22px;
  }

  h2 {
    font-size: 18px;
  }

  .nav-link {
    font-size: 16px;
  }

  .textos {
    font-size: 12px;
  }

  footer {
    padding: 10px 0;
  }
}

/* CSS para asegurar que las imágenes ocupen todo el ancho */
.img-fluid {
  width: 100%;
  height: auto;
}

/* CSS para alinear el contenido y las imágenes en secciones */
#vision,
#mision {
  text-align: left;
  padding-left: 20px;
}

/* Estilo para texto vertical */
.vertical-text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
  margin: 0;
  font-size: 2rem;
}

/* Alineación y espaciado del texto en las secciones */
#vision .row,
#mision .row {
  margin: 10px 0;
}

#vision h2,
#mision h2 {
  margin-bottom: 1rem;
}

#vision p,
#mision p {
  margin-top: 10px;
  margin-bottom: 1rem;
}

.text-justify {
  text-align: justify;
}

/* Estilos para la sección de Misión */
.section-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin: 20px 0;
}

.section-image {
  max-width: 100%;
  height: 350px;
  width: 450px;
  border-radius: 10px;
}

.mission-text,
.vision-text {
  max-width: 600px;
  padding: 100px;
  text-align: center;
  font-size: 100px;
  font-weight: bold;
  color: white;
}

.mission-container {
  background-color: #F6C036;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.vision-container {
  flex-direction: row-reverse;
  background-color: #1F4C73;
  font-size: 2rem;
  font-weight: bold;
  border-radius: 100px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Animación de giro */
.section-image {
  transition: transform 0.3s ease-in-out;
  display: flex;
  margin-top: 300px;
  width: 550px;
  height: 450px;
}

.section-image:hover {
  transform: scale(1.1);
}

.hero-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-content {
  display: flex;
  align-items: center;
  max-width: 1200px;
}

.hero-image {
  border-radius: 50%;
  width: 300px;
  height: auto;
  margin-right: 40px;
  opacity: 0.8;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: black;
}

/* Diseño responsivo para la sección de misión y visión */
@media (max-width: 992px) {
  .section-container {
    flex-direction: column;
  }

  .section-image {
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .mission-text,
  .vision-text {
    padding: 50px;
    font-size: 1.5rem;
  }
}

/* Diseño responsivo para la sección hero */
@media (max-width: 768px) {
  .hero-content {
    flex-direction: column;
  }

  .hero-image {
    width: 200px;
    margin-right: 0;
    margin-bottom: 20px;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }
}
