/* HERO */
.hero {
  padding-inline: 30px;
}

.hero .presentation-text {
  margin-block: 30px;
  margin-left: 50px;

}

.hero h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero .presentation-txt-p1 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.hero img {
  max-width: 63%;
  height: 63%;
  border-radius: 8px;
}

.hero .hero-services {
  margin-top: 6px;
  font-size: 16px;
  font-weight: bold;
}

.hero .presentation {
  padding-inline: 20px;
}


.h3-hero{
  font-size: 1.25rem; 
  font-weight: normal; 
}

.card-link-tt{
  text-decoration: none;
}

.blog-card {
    background-color: #042D62; 
    border: none;
    border-radius: 25px;
    transition: transform 0.2s ease;
}

.blog-card:hover {
    transform: scale(1.02);
}

.blog-card:active {
  background-color: #054560; 
}

.card-img-container {
    position: relative;
    text-align: center;
    padding-top: 9px;
}

.card-img-top {
    width: 95%;
    height: auto;
    border-radius: 20px;
}

.category-label {
    position: absolute;
    top: 22px;
    left: 22px;
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    padding: 5px 10px;
    border-radius: 25px;
    font-size: 0.9rem;
}

.card-body {
    padding: 15px;
}

.card-author {
    font-size: 0.9rem;
}

.card-title {
    margin-bottom: 5px;
    font-size: 1.35rem;
    font-weight: bold;
}

.card-text {
    font-size: 0.9rem;
}


.insignia {
  position: absolute;
  top: 20px;
  right: 20px; 
  background-color: gold; 
  color: #000; 
  padding: 5px 10px; 
  border-radius: 15px; 
  font-weight: bold; 
  text-align: center; 
  font-size: 0.9rem;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); 
}


.carousel-item img {
  max-height: 100vh; 
  width: auto; 
  margin: 0 auto;
}

.newsletter-card{
  margin: 0px 0px !important;
}


/* Asegúrate de que los botones de paginación sean flexibles y se ajusten bien en móviles */
.pagination {
  flex-wrap: wrap; /* Permite que los elementos se envuelvan en dispositivos más pequeños */
}

.pagination .page-item {
  margin: 0 5px; 
}

.pagination .page-link {
  padding: 10px 15px; 
}


/* Botones de categorías */
.category-btn {
  background-color: #fff;
  color: #042D62;
  font-size: 1.05rem;
  font-weight: 600;
  border: none;
  border-radius: 18px;
  padding: 10px 15px;
  margin: 5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.category-btn:hover {
  background-color: #003853;
  transform: scale(1.05);
  color: #fff;
}

.category-btn.active {
  background-color: #003853;
  color: #fff;
  font-weight: 700;
}



/* Animación del botón "Desafíos" con colores complementarios */
@keyframes borderAnimation {
  0% {
    border-color: #ffea00; 
    box-shadow: 0 0 0 0 rgba(255, 251, 0, 0.638); 
  }
  25% {
    border-color: #ffd700;
    box-shadow: 0 0 6px 1px rgba(255, 215, 0, 0.5); 
  }
  50% {
    border-color: #ffcc00; 
    box-shadow: 0 0 8px 2px rgba(255, 204, 0, 0.4);
  }
  75% {
    border-color: #ffe135; 
    box-shadow: 0 0 10px 3px rgba(255, 225, 53, 0.3); 
  }
  100% {
    border-color: #ffea00; 
    box-shadow: 0 0 0 0 rgba(255, 251, 0, 0.638); 
  }
}

/* Animación del bordel del botón "Desafíos" */
@keyframes borderAnimation2 {
  0% {
    border-color: #ffea00; 
    box-shadow: 0 0 0 0 rgba(255, 251, 0, 0.638); 
  }
  25% {
    border-color: #ffd700;
    box-shadow: 0 0 6px 1px rgba(255, 215, 0, 0.5); 
  }
  50% {
    border-color: #ffcc00; 
    box-shadow: 0 0 8px 2px rgba(255, 204, 0, 0.4);
  }
  75% {
    border-color: #ffe135; 
    box-shadow: 0 0 10px 3px rgba(255, 225, 53, 0.3); 
  }
  100% {
    border-color: #ffea00; 
    box-shadow: 0 0 0 0 rgba(255, 251, 0, 0.638); 
  }
}


/* Animación de latido del corazón */
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

@keyframes heartbeat2 {
  0%, 100% {
    transform: scale(1.04);
  }
  50% {
    transform: scale(1.08);
  }
}

/* Desafio Boton*/
.challenge-btn {
  background-color: #f3f3f3c7;
  display: inline-block;
  margin: 5px;
  margin-left: 40px;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: 600;
  /*dorado: #FFD700, azul: 0D3B66, azul2: 042D62, negro: 000000;*/
  color: #1d1d1de7  ;
  border: 2px solid #FFD700; 
  border-radius: 25px;
  transition: all 0.4s ease-in-out;
  position: relative;
  animation: borderAnimation 5s infinite ease-in-out, heartbeat 5s infinite ease-in-out; 
}

.challenge-btn:hover {
  background-color: #FFD700;
  color: #fff;
  animation: borderAnimation2 5s infinite ease-in-out, heartbeat2 5s infinite ease-in-out; 
}

.challenge-btn.active {
  background-color: #042D62;
  color: #fff;
}


/* Hide desktop image on mobile */
@media (max-width: 767.98px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
    text-align: center;
  }

  .hero h1{
    text-align: center;
  }

  .hero .hero-services{
    margin-bottom: 10px;
    font-size: 14px;
  }

  .hero img{
    max-width: 90%;
  }
  .about-me img{
    max-width: 90%;
  }


  .hero .presentation-text {
    margin-block: 10px;
    margin-left: 0px;
  }
}

/* Hide mobile image on desktop */
@media (min-width: 768px) {
  .mobile-only {
    display: none;
  }


}

@media (max-width: 768px) {
  .hero .presentation{
    padding-inline: 0px;
    .hero img{
      max-width: 90%;
    }
  }
}

@media (max-width: 1005px) {
  .hero img{
    max-width: 90%;
  }

}


@media (max-width: 990px) {
  .hero .presentation{
    padding-inline: 0px;
    margin-bottom: 5px;
  }
}

@media (max-width: 767px) {
  
  .hero .presentation-txt-p1 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    text-align: center;
  }
}


/* Hacer que los botones sean responsivos */
@media (max-width: 767.98px) {
  .category-btn {
      font-size: 0.9rem;
      padding: 8px 16px;
      display: block;
      width: 100%;
      margin: 10px 0;
  }

/* Botones de categorías */
.challenge-btn {
width: 100%;
  margin-left: 0px;
}
}

@media (min-width: 768px) {
  .category-btn {
      width: auto;
  }
}


/* Ajusta los estilos en pantallas pequeñas */
@media (max-width: 576px) {
  .pagination {
      font-size: 0.85rem; 
  }
}
