/* Texto*/
.homepage-text {
  text-align: center;
  font-family: "Teko", sans-serif;
  font-optical-sizing: auto;
  color: rgb(255, 255, 255);
  font-weight: 500;
  /* gris claro semitransparente */
  padding: 30px 30px;
  border-radius: 20px;
  text-shadow: 0 0 5px rgba(236, 13, 13, 0.3);
}

.section-homepage {
  display: flex;
  flex-direction: column;
  padding-bottom: 10vh;
}

/* Contenido interno de los section-homepage */
.space-evenly-content {
  display: flex;
  flex-direction: column;
  gap: 5vh;
  overflow-x: hidden;
}

#invitational-msg {
  background: linear-gradient(135deg, #C82E2E, #a42727);
  color: white;
  padding: 32px 48px;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
}

#invitational-msg h2 {
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

#invitational-msg p {
  opacity: 0.95;
  margin: 0;
}

#logo-container {
  margin-bottom: 3vh
}

#logo-container img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

#quote-container p {
  font-family: 'Oleo Script';
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: rgb(200, 46, 46);
  /* gris claro semitransparente */
  padding: 30px 30px;
  border-radius: 20px;
  text-shadow: 0 0 5px rgba(236, 13, 13, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.45);
}

/*Fondo para botones homepage*/
#homepage-btns div {
  background-color: rgba(38, 33, 33, 0.95);
  /* gris/blanco semi-transparente */
  padding: 15px;
  border-radius: 10px;
  backdrop-filter: blur(5px);
  /* opcional, da un efecto más elegante sobre el fondo */
}

/*Botones homepage*/
.btn-border-reveal {
  background-color: rgb(223, 20, 20);
  color: #ffffff;
  border: 2px solid #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
  /* evita que el pseudo-elemento se salga del botón */
  z-index: 0;
  /* establece contexto para ::after */
  display: flex;
  align-items: center;
  /* opcional: centra vertical */
  justify-content: center;
  /* opcional: centra horizontal */
  font-size: clamp(1rem, 2vw, 1.8rem);

}

.logo {
  background-color: rgb(200, 46, 46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.45);
  border-radius: 20px ;
  max-height: 350px;
}


.logo-background {
  background-color: rgb(200, 46, 46);
  border: 1px solid rgba(255, 255, 255, 0.18);
  outline: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(0, 0, 0, 0.45);
  border-radius: 20px;
 
}

.section-homepage:nth-of-child(2) {
  flex: 1
}




@keyframes fadeIn2 {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tamano PC */
@media (min-width: 992px) {


  /* Ajuste para que ocupe la altura vertical disponible*/
  .section-homepage .container-fluid {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;

  }

  /* Ajuste para que ocupe la altura vertical disponible con justify content*/
  .space-evenly-content {
    flex: 1;
    justify-content: space-evenly;
  }

  /*Ajuste para que ocupe la altura vertical disponible */
  .section-homepage .container {
    flex: 1
  }

  /*Limite de altura para el mensaje de invitacion */
  #invitational-msg {
    max-height: 300px
  }

  /*Limite de altura para los botones del homepage */
  #homepage-btns {
    max-height: 150px
  }

  div.section-homepage:nth-of-type(2) .row {

    align-items: center;
    flex: 1
  }



  .btn-border-reveal::after {
    content: "";
    position: absolute;
    width: 0;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgb(54, 45, 45);
    /* color del reveal */
    transition: width 0.3s ease;
    z-index: -1;
    /* debajo del texto pero dentro del botón */
  }

  .btn-border-reveal:hover::after {
    width: 100%;
  }

  .btn-border-reveal:hover {
    color: rgb(255, 255, 255);
    border: 2px solid #ffffff;
  }


}

/* Tamano Telefono */
@media (max-width: 576px) {

  .navbar-brand img {
    width: 120px
  }

  #main-title {

    font-size: clamp(1.7rem, 5vw, 3rem);

  }

  .homepage-text {

    padding: 30px 0px
  }

  #logo-container {
    margin-bottom: 2vh
  }

  /* Columbna del quote, Logo y Countdown */
  .section-homepage:nth-last-of-type(2) .row>div {
    width: 100%
  }

  #inscriptionBtn {
    align-items: center;

  }


  /* Logo Container */
  .order-mobile-1 {
    order: 1;
  }

  /* Quote Luis Alers */
  .order-mobile-2 {
    order: 2
  }

  /* Countdown*/
  .order-mobile-3 {
    order: 3
  }

  .section-homepage:nth-of-type(3)>.container-fluid>.d-flex.flex-column {
    justify-content: space-between;

  }

  .section-homepage:nth-of-type(3) .homepage-text {}

}