/* Estilos generales */
body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-image: url("../images/Background.jpg"); /* Ruta corregida */
  background-size: cover; /* Asegura que la imagen cubra todo el fondo */
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat; /* Evita que la imagen se repita */
  background-color: #f5f5f5;
  position: relative;
}

/* Capa para controlar la opacidad del fondo */
.backgroundOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.823); /* Ajusta la opacidad aquí */
  z-index: 1;
}

/* Contenedor principal */
.mainContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: 15px;
  max-width: 1200px;
  margin: 20px;
  z-index: 2;
  position: relative;
}

/* Estilos de la imagen */
#image {
  width: 430px;
  height: auto;
  transition: transform 0.3s ease-in-out;
  margin-top: -20px; /* Mueve el logo hacia arriba */
}

#image:hover {
  transform: scale(1.05);
}

/* Estilos del texto principal */
#mainText {
  margin-top: 20px;
  font-size: 1.2em;
  color: #333;
  text-align: center;
  max-width: 600px;
  line-height: 1.6;
  font-weight: lighter;
}

.boldText {
  font-weight: bold;
  font-size: 1.1em;
}

#infoText,
#infoText2 {
  font-size: 1em;
  color: #333;
  text-align: center;
  max-width: 900px;
  line-height: 1.6;
  font-weight: lighter;
}

/* Estilo para la información de contacto */
.infoContainer {
  position: relative; /* Para poder posicionar los elementos dentro del contenedor */
  width: 600px; /* Puedes ajustar este ancho según prefieras */
  height: 110px; /* Puedes ajustar la altura */
  border: 2px solid rgb(1, 50, 152); /* Borde negro */
  margin-top: 20px;
  padding: 1px;
}

/* Posiciona los elementos en las esquinas del contenedor */
#topLeft {
  position: absolute;
  top: 10px;
  left: 90px;
  font-weight: bold;
}

#topRight {
  position: absolute;
  top: 10px;
  right: 90px;
  font-weight: bold;
}

#bottomLeft {
  position: absolute;
  bottom: 20px;
  left: 90px;
  font-weight: bold;
}

#bottomRight {
  position: absolute;
  bottom: 10px;
  right: 90px;
  font-weight: bold;
}

/* Estilo general para los textos */
.infoItem {
  font-size: 1em;
  color: #333;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
  #image {
    width: 100%; /* Ajusta el tamaño de la imagen para pantallas pequeñas */
    max-width: 400px;
  }

  #mainText {
    font-size: 1em;
  }

  #infoText,
  #infoText2,
  .infoItem {
    font-size: 0.9em;
  }

  /* Ajusta el tamaño del contenedor en pantallas pequeñas */
  .infoContainer {
    width: 300px;
    height: 150px;
    padding: 0px 15px 0px 15px;
  }
  /* Ajusta las posiciones de los elementos para pantallas pequeñas */
  #topLeft {
    top: 10px;
    left: 10px;
    font-size: smaller;
  }

  #topRight {
    top: 10px;
    right: 10px;
    font-size: smaller;
  }

  #bottomLeft {
    bottom: 20px;
    left: 10px;
    font-size: smaller;
  }

  #bottomRight {
    bottom: 10px;
    right: 10px;
    font-size: smaller;
  }

  /* Ajuste del fondo para pantallas pequeñas */
  body {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; /* Evita que la imagen se repita */
  }
}
