html {
  font-size: 14px;
}

    body {
      font-family: 'Arial', sans-serif;
    }
 
.animate-on-scroll,
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}
.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1200px) {
  html {
    font-size: 16px; /* Aumentamos el tamaño de la fuente para pantallas grandes */
  }
}

.section {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-top: 5%;
}

.welcome {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.welcome img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4);
  display: block;
}

.overlay-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  z-index: 1;
  text-align: center;
  font-weight: bold;
  width: 90%; /* Hace que el texto se ajuste mejor en pantallas pequeñas */
}

.overlay-text h1 {
  margin: 0;
  font-size: 2rem; /* Reducido para pantallas más pequeñas */
}

@media (min-width: 768px) {
  .overlay-text h1 {
    font-size: 3rem;
    font-weight: bold;
  }
}

@media (max-width: 768px) {
  .overlay-text h1 {
    font-size: 3rem;
    font-weight: bold;
  }
}

@media (min-width: 1200px) {
  .overlay-text h1 {
    font-size: 3.5rem;
    font-weight: bold;
  }
}

.containers {
  display: flex;
  flex-direction: column; /* Colocamos los contenedores en columna en pantallas pequeñas */
  gap: 5%;
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

@media (min-width: 768px) {
  .containers {
    flex-direction: row; /* En pantallas más grandes, se colocan en fila */
  }
}

.information-container {
  width: 100%;
  margin-top: 20px;
  padding: 0 15px;
}

@media (min-width: 768px) {
  .information-container {
    width: 50%; /* En pantallas medianas y grandes se reduce a la mitad */
    margin-top: 50px;
  }
}

.information-container h2 {
  color: #C70C00;
  font-weight: bold;
}

.information-container p {
  color: #808080;
  font-weight: bold;
}

.list {
  color: #808080;
  font-weight: bold;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 10%;
  margin-top: 100px;
  flex-direction: column; /* Botones en columna por defecto */
}

@media (min-width: 768px) {
  .buttons {
    flex-direction: row; /* Botones en fila en pantallas más grandes */
  }
}

.btnCards {
  margin-left: 0;
}

@media (min-width: 768px) {
  .btnCards {
    margin-left: 30%; /* Botón más centrado en pantallas grandes */
  }
}

.btnCTA, .btnCertificado {
  bottom: 0;
}

/* Botón CTA */

.txtCTA {
    text-decoration: none;
}

.bkCTA {
    padding: 12px 24px;
    background: #C70C00;
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bkCTA:hover {
    background: #9f0b01;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.bkCTA:active {
    transform: translateY(0);
}

.bkCertificado {
    padding: 12px 24px;
    background: #fdfdfd;
    color: #808080;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.bkCertificado:hover {
    background: #9f0b01;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: #FDFDFD;
}

.plus {
  align-items: end;
  overflow: hidden;
  margin-top: 50px;
  width: 100%;
  padding: 1rem;
  margin-top: 2rem;
}

.plus p {
  color: #808080;
  font-weight: bold;
}

.plus h2 {
  font-weight: bold;
}

.plus img {
  width: 100%;
  height: 50%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 768px) {
  .plus img {
    height: 30%; /* Ajustamos la altura de las imágenes en pantallas grandes */
  }
}

@media (max-width: 768px) {
  .plus img {
    height: 20%; /* Ajustamos la altura de las imágenes en pantallas grandes */
  }
}
