/* Pausa las animaciones hasta que la página cargue */
* {
  animation-play-state: paused;
  transition: none;
}

/* Define la fuente Poppins en su versión más gruesa */
.poppins-black {
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  font-style: normal;
}

/* Elimina márgenes, rellenos y bloquea el scroll */
html, body {
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
}

/* Activa las animaciones cuando se agrega la clase "cargado" */
body.cargado * {
  animation-play-state: running;
  transition: all 0.3s ease;
}

/* === FONDO === */

/* Fondo con imagen fija ocupando toda la pantalla */
.fondo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../imagenes/Foto-iglesia.jpg") no-repeat center center;
  background-size: 100% 150%;
  background-position: left;
  z-index: -1;
}

/* Capa semitransparente azul que oscurece parte del fondo */
.fondo::after {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0) -50%, rgba(18,26,144,0.99) 60%);
  pointer-events: none;
}

/* === CONTENIDO PRINCIPAL === */

.contenedor {
  margin-top: 5%;
}

/* Centra vertical y horizontalmente todo el contenido */
.contenido1 {
  position: relative;
  margin-top: 11vh;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* Línea blanca decorativa */
.back2 {
  width: 70%;
  height: 5px;
  background-color: #ffffff;
  margin: 0 auto;
}

/* Texto principal del título */
.parrafo1 {
  width: 100%;
  font-size: 5vh;
  font-family: 'Times New Roman', Times, serif;
  font-weight: bold;
  color: #ffffff;
  text-align: center;
}

/* “BIENVENIDO A” con animación de entrada */
.parrafo2 {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 11vh;
  font-weight: 700;
  color: #ffffff;
  opacity: 0;
  transform: translateY(60px);
  animation: aparecerTexto 2s ease forwards;
  animation-delay: 0.5s;
}

.contenedor-fotos{
    display: inline;
    text-align: center;
}

/* Logo con animación de aparición */
.img-1 {
  width: 40vh;
  vertical-align: middle;
  opacity: 0;
  transform: translateY(20%);
  animation: aparecerImagen 2s ease forwards;
  animation-delay: 0.5s;
}

.img-2 {
  width: 18vh;
  margin-top: -10%;
  vertical-align: middle;
  opacity: 0;
  transform: translateY(20%);
  animation: aparecerImagen 2s ease forwards;
  animation-delay: 0.5s;
}

.img-3 {
  width: 18vh;
  margin-top: -10%;
  vertical-align: middle;
  opacity: 0;
  transform: translateY(20%);
  animation: aparecerImagen 2s ease forwards;
  animation-delay: 0.5s;
}

.m_usuario{
    width: 7vh;
    margin-left: 94vw;
    margin-top: -5vh;
    padding: 0.5vh;
    animation: all 0.1s ease;
}

.m_usuario:hover {
    border: solid 2px #ffffff;
    background-color: #000152;
    border-radius: 20%;
}

/* Elimina márgenes del h1 */
h1 {
  margin: 0;
  padding: 0;
}

/* Centra el botón */
a { 
  width: 100%;
  height: 100%;
  display: inline-flex;
  justify-content: center;
  text-decoration: none; 
}

/* Botón "Continuar" con animación de entrada */
.boton1 {
  padding: 2vh 10vh;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 2px solid #ffffff;
  font-family: 'Times New Roman', Times, serif;
  font-size: 140%;
  font-weight: 900;
  color: #ffffff;
  margin-top: 10vh;
  display: inline-block;
  position: relative;
  z-index: 10;

  /* Animación de entrada */
  opacity: 0; 
  transform: translateY(60px); 
  animation: aparecerBoton 1.5s ease forwards; 
  animation-delay: 2.3s; 

  /* Efecto suave al pasar el mouse */
  transition: transform 0.2s ease, background-color 0.2s ease; 
}

/* Efecto hover del botón */
.boton1:hover {
  background-color: #131C91; 
  cursor: pointer;
  transform: translateY(0) scale(1.1);
}

/* === ANIMACIÓN SECUENCIAL DE PALABRAS === */

/* Todas las palabras inician ocultas y suben poco a poco */
.secuencia .palabra {
  opacity: 0;
  transform: translateY(20px);
  animation: aparecer 0.6s ease forwards;
}

/* Cada palabra tiene un pequeño retraso distinto */
.secuencia .palabra:nth-child(1)  { animation-delay: 0s; }
.secuencia .palabra:nth-child(2)  { animation-delay: 0.1s; }
.secuencia .palabra:nth-child(3)  { animation-delay: 0.2s; }
.secuencia .palabra:nth-child(4)  { animation-delay: 0.3s; }
.secuencia .palabra:nth-child(5)  { animation-delay: 0.4s; }
.secuencia .palabra:nth-child(6)  { animation-delay: 0.5s; }
.secuencia .palabra:nth-child(7)  { animation-delay: 0.6s; }
.secuencia .palabra:nth-child(8)  { animation-delay: 0.7s; }
.secuencia .palabra:nth-child(9)  { animation-delay: 0.8s; }
.secuencia .palabra:nth-child(10) { animation-delay: 0.9s; }
.secuencia .palabra:nth-child(11) { animation-delay: 1.0s; }
.secuencia .palabra:nth-child(12) { animation-delay: 1.1s; }
.secuencia .palabra:nth-child(13) { animation-delay: 1.2s; }
.secuencia .palabra:nth-child(14) { animation-delay: 1.3s; }
.secuencia .palabra:nth-child(15) { animation-delay: 1.4s; }
.secuencia .palabra:nth-child(16) { animation-delay: 1.5s; }
.secuencia .palabra:nth-child(17) { animation-delay: 1.6s; }
.secuencia .palabra:nth-child(18) { animation-delay: 1.7s; }
.secuencia .palabra:nth-child(19) { animation-delay: 1.8s; }
.secuencia .palabra:nth-child(20) { animation-delay: 1.9s; }
.secuencia .palabra:nth-child(21) { animation-delay: 2.0s; }
.secuencia .palabra:nth-child(22) { animation-delay: 2.1s; }
.secuencia .palabra:nth-child(23) { animation-delay: 2.2s; }
.secuencia .palabra:nth-child(24) { animation-delay: 2.3s; }

/* === ANIMACIONES === */

@keyframes aparecer {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes aparecerTexto {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes aparecerImagen {
  to { opacity: 1; transform: translateY(-14%); }
}

@keyframes aparecerBoton {
  to { opacity: 1; transform: translateY(0); }
}

/* === ADAPTACIÓN A PANTALLAS PEQUEÑAS === */
@media (max-width: 768px) {

  /* Centra el contenido verticalmente en móviles */
body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  /* Fondo adaptado al tamaño del celular */
.fondo {
    background-size: 160% 130%;
    background-position: left;
  }

  /* Ajusta el degradado del fondo en móviles */
.fondo::after {
    background: linear-gradient(to right, rgba(0,0,0,0) -40%, rgba(18,26,144,0.99) 70%);
  }

/* Texto más pequeño y centrado */
.parrafo1 {
    font-size: 150%;
    margin-top: -5%;
  }

.contenedor-fotos{
    display: inline;
    text-align: center;
}

/* Logo más grande en móviles */
.img-1 {
width: 40%;
margin-top: 5%;
}

/*Logos del sena y de la institucion educativa para moviles*/
.img-2 {
width: 20%;
margin-left: 25%;
}

.img-3 {
width: 20%;
margin-right: 25%;
}

  /* Botón ajustado al tamaño del celular */
.boton1 {
    padding: 3% 5%;
  }

.boton1:hover {
    background-color: #131C91; 
    transform: translateY(0) scale(1.1);
  }
}