body {
  background-image: url("../img/brian.jpg");
  background-size: cover;
  background-position: center 50%;
  background-attachment: fixed;
}

#welcome,
#matricula,
#info_general,
#horario,
#prueba,
#examenes,
#animate {
  background: var(--background-main);
}

#ingles {
  background-color: rgba(48, 122, 172, 0.8);
  color: white;
  padding: 120px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#ingles img {
  width: 20%;
  min-width: 300px;
  margin-bottom: 20px;
}

#ingles h2 {
  color: white;
}

#ingles p {
  max-width: 700px;
  line-height: 1.6;
  font-size: 1.2em;
}

mark {
  background-color: #8beef0;
  color: #02426b;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(2, 66, 107, 0.25);
  white-space: nowrap;
}

#welcome {
  padding: 40px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#welcome img {
  width: 60%;
  margin-bottom: 30px;
}

#welcome p {
  max-width: 900px;
  text-align: left;
  line-height: 1.7;
  color: var(--text-color);
}

hr {
  background-color: var(--horizontal-line-color);
  border: 0 none;
  color: var(--horizontal-line-color);
  height: 3px;
}

#matricula {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#matricula img {
  width: 40%;
  max-width: 900px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#matricula img:hover {
  transform: scale(1.03);
}

#info_general,
#horario {
  display: flex;
  justify-content: center;
  padding-top: 30px;
}

#horario {
  padding-bottom: 40px;
}

.fila {
  display: flex;
  gap: 60px;
  width: 90%;
}

.columna {
  flex: 1;
}

.columna p {
  text-align: left;
  line-height: 1.6;
  color: var(--text-color);
}

.columna h3 {
  color: var(--background-header);
  font-size: 1.2em;
  margin-bottom: 10px;
}

#prueba {
  padding: 40px;
}

#prueba h2 {
  text-align: center;
  margin-bottom: 40px;
}

#prueba img {
  width: 100%;
  border-radius: 8px;
}

#prueba .columna {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#examenes {
  padding: 40px;
}

#examenes h2 {
  text-align: center;
  margin-bottom: 40px;
}

#examenes h4 {
  margin-bottom: 20px;
  color: var(--background-header);
}

#examenes > p {
  text-align: left;
  margin-bottom: 30px;
}

#examenes img {
  width: auto;
  height: 50%;
  max-height: 200px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#examenes img:hover {
  transform: scale(1.03);
}

#animate {
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#animate img {
  margin: 0 auto;
  width: 20%;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

#animate img:hover {
  transform: scale(1.03);
}

#animate h2 {
  text-align: center;
}

#animate h3 {
  color: var(--background-header);
  margin-bottom: 20px;
}

#animate p {
  max-width: 70%;
  color: var(--text-color);
  text-align: center;
  line-height: 1.7;
}

.aviso {
  width: 100%;
  text-align: center;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aviso b {
  font-weight: normal;
  white-space: nowrap;
}

#welcome img,
#matricula img,
#prueba img,
#examenes img,
#animate img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

@media (max-width: 768px) {
  #welcome,
  #matricula,
  #prueba,
  #animate {
    padding: 20px;
  }

  #welcome img,
  #matricula img,
  #animate img {
    width: 100%;
  }

  #prueba img {
    width: 80%;
    margin: auto;
  }

  hr {
    display: none;
  }

  .fila {
    flex-direction: column;
    gap: 25px;
  }

  .columna {
    width: 100%;
  }

  .columna p {
    text-align: left;
  }
}
