/* ========================================
   HEADER BLOG
======================================== */

.header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 140px 20px 60px;
  transition: min-height 0.4s ease, padding 0.4s ease;
  z-index: 1;
}

.header-img img {
  width: 50%;
  max-width: 500px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.text-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 700px;
  color: white;
  text-align: center;
  padding: 0 20px;
}

/* Título del header */
.header-title {
  font-size: 3.2rem !important;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

/* Línea decorativa */
.line {
  width: 120px;
  height: 4px;
  background: #31b8c2;
  margin: 1.5rem auto 0;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(49, 184, 194, 0.5);
}

/* Animación de entrada */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-title.animado {
  animation: fadeUp 1s ease-out forwards;
}

/* Texto descriptivo */
.text-container p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    min-height: 70vh;
    padding: 80px 20px 40px;
  }

  .header-title {
    font-size: 2.2rem !important;
  }

  .text-container {
    max-width: 90%;
  }

  .text-container p {
    font-size: 1.1rem;
  }

  .line {
    width: 100px;
    height: 3px;
  }

  .header-img img {
    width: 70%;
    max-width: 400px;
  }
}

@media (max-width: 576px) {
  .header {
    min-height: 60vh;
    padding: 80px 15px 30px;
  }

  .header-title {
    font-size: 1.8rem !important;
    margin-bottom: 1rem;
  }

  .text-container {
    max-width: 95%;
    padding: 0 15px;
  }

  .text-container p {
    font-size: 1rem;
  }

  .line {
    width: 80px;
    height: 3px;
    margin: 1rem auto 0;
  }

  .header-img img {
    width: 80%;
    max-width: 300px;
  }
}







/* Sección principal de artículos */
.articulos {
  width: 100%;
  background-color: #f8f9fa;
  padding: 50px 0;
}

/* Contenedor general */
.container-a {
  max-width: 100%;
}

/* Título principal */
.text-center {
  font-size: 50px;
  color: #00323a;
}

/* Tarjeta vertical refinada */
.card {
  width: 100%;
  padding: 30px;
  border-radius: 10px;
  background-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: aparecer 0.8s ease-in-out forwards;
  transform: translateY(30px);
  opacity: 0;
}

/* Espaciado entre tarjetas */
.card + .card {
  margin-top: 40px;
}

/* Contenido interno de la tarjeta */
.card-body {
  display: block;
  width: 100%;
  text-align: left;
}

/* Título del artículo */
.card-title {
  font-size: 32px;
  font-weight: bold;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 10px;
  display: block;
}

/* Descripción del artículo */
.card-text {
  font-size: 18px;
  color: #095f5f;
  text-align: justify;
  margin-bottom: 20px;
}

/* Imagen del artículo debajo del texto */
.card img {
  display: block;
  margin: 0 auto;
  max-width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
  margin-top: 20px;
}

/* Botón de acción */
.btn-primary,
.btn-success {
  background-color: #008b8b;
  font-size: 18px;
  margin-top: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: bold;
  transition: all 0.3s ease-in-out;
  color: #fff;
}

/* Hover del botón */
.btn-primary:hover,
.btn-success:hover {
  background-color: #095f5f;
  transform: scale(1.05);
}


/* Mensaje alternativo sin imagen */
.no-image {
  height: 220px;
  background-color: #e0f7f7;
  border-radius: 10px;
  font-size: 16px;
  color: #888;
  padding: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mensaje vacío */
.mensaje-vacio {
  font-size: 20px;
  color: #095f5f;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}


/* Título con animación suave */
.titulo-animado {
  font-size: 1.6rem;
  color: #00323a;
  text-align: center;
  margin-bottom: 10px;
  animation: fadeInTitulo 0.6s ease-out forwards;
  opacity: 0;
}

/* Título Artículos Destacados con degradado */
.titulo-blog-grad {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

/* Línea decorativa bajo título blog */
.titulo-linea-blog {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  border-radius: 2px;
  display: block;
  margin: 0 auto 1rem auto;
}

.linea-decorativa {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #0d6271, #00a1b9);
  margin: 8px auto 20px;
  border-radius: 2px;
}


/* Animaciones */
@keyframes fadeInTitulo {
  to {
    opacity: 1;
  }
}








@keyframes movimiento{
    from{
        background-position: bottom left;
    }to{
        background-position: top right;
    }
}


/* Animación de entrada de tarjetas */
@keyframes aparecer {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {
  .header {
    min-height: 30vh;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .horizontal-card {
    flex-direction: column !important;
  }

  .card-img {
    border-radius: 10px 10px 0 0;
    height: auto;
  }

  .card-body {
    padding-top: 15px;
  }
}

/* ------------------------------------------- */
/* BOTÓN VER MÁS - ARTÍCULOS                   */
/* ------------------------------------------- */
.btn-blog {
  background: linear-gradient(135deg, #0d7377 0%, #0a9396 100%);
  border: none;
  color: white;
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(13, 115, 119, 0.3);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-blog:hover {
  background: linear-gradient(135deg, #095f5f 0%, #0d7377 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(13, 115, 119, 0.5);
  color: white;
}

.btn-blog:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(13, 115, 119, 0.4);
  color: white;
}
