/*--------------PAGE BLOG----------------*/
/* Hero */
.blog-hero {
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.blog-hero h1 {
  font-size: 3.9rem;
  font-weight: bold;
  margin-bottom: 10px;
 font-family: 'Dancing Script', cursive;
 text-shadow: 0em .1em .1em rgb(0 0 0 / 65%);
}
.blog-hero p {
  font-size: 1.6rem;
  color: #222;
  font-family: "Lato";
}

/* ===========================
   FILTROS Y BUSCADOR
=========================== */
.blog-filtros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fde4ec;
  padding: 20px;
  border-radius: 10px;
  margin: 40px auto;
  width: 90%;
}

.blog-filtros .label {
  font-weight: bold;
  color: #a65d79;
}

.blog-filtros .filtro {
  padding: 8px 16px;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  background: #fff;
  border: 1px solid #f3c5d4;
  transition: 0.3s;
  font-size: 0.9rem;
}

.blog-filtros .filtro:hover,
.blog-filtros .filtro.activo {
  background: #f3c5d4;
  color: #fff;
}

.search-form {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 25px;
  overflow: hidden;
  border: 1px solid #f3c5d4;
}

.search-field {
  border: none;
  padding: 8px 12px;
  outline: none;
}

.search-submit {
  background: #f3c5d4;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 1rem;
}

/* ===========================
  TENDENCIAS - TARJETAS DE BLOG
=========================== */
.blog-tendencias {
  text-align: center;
  padding: 60px 0;
}

.blog-tendencias h2 {
  font-family: "Dancing Script", cursive;
  font-size: 2.5rem;
  color: #a65d79;
  margin-bottom: 40px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔹 Mantiene siempre 3 columnas */
  gap: 30px;
  justify-items: center;
  align-items: stretch;
  max-width: 1200px;
  margin: 0 auto;
}
/* CARD */
.blog-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  max-width: 350px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* IMAGEN */
.blog-img img {
  width: 100%;
  height: 220px; /* 🔹 altura unificada */
  object-fit: cover;
  display: block;
}

/* TÍTULO */
.blog-title {
  background: #fde4ec;
  color: #3d3d3d;
  padding: 15px;
  font-family: "Lato";
  font-size: 1.1rem;
  font-weight: bold;
  border-top: 2px solid #f3c5d4;
  border-bottom: 2px solid #f3c5d4;
  min-height: 75px; /* 🔹 equilibrio visual */
}

/* DESCRIPCIÓN */
.blog-excerpt {
   font-family: "Lato";
  font-size: 1rem !important;
  color: #333;
  padding: 15px 20px;
  line-height: 1.5;
  text-align: justify;

  /* 🔹 Mostrar un poco más de texto */
  display: -webkit-box;
  -webkit-line-clamp: ; /* antes 3, ahora 5 líneas */
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 120px;
}

/* BOTÓN */
.btn-leer {
  background: linear-gradient(90deg, #f48fb1, #e38bae);
  color: #fff;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 25px;
  display: inline-block;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 15px 0 25px;
  transition: background 0.3s ease;
}

.btn-leer:hover {
  background: #a65d79;
}

/* --- Botón "Cargar más" estilo unificado --- */
.blog-load-more,
button.blog-load-more,
#load-more,
.load-more-btn {
  display: inline-block;
  background: linear-gradient(45deg, #e91e63, #f48fb1);
  color: #fff !important;
  padding: 10px 25px;
  border-radius: 25px;
  font-weight: bold;
  text-decoration: none;
  border: none;
  transition: background 0.3s, transform 0.2s;
  font-family: "Lato", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
}

/* Hover */
.blog-load-more:hover,
button.blog-load-more:hover,
#load-more:hover,
.load-more-btn:hover {
  background: linear-gradient(45deg, #d81b60, #ec407a);
  transform: scale(1.05);
}

/* Centrado en su contenedor */
.load-more-wrapper {
  text-align: center;
}


/* === RESPONSIVE === */

/* === Tablets grandes (hasta 992px) === */
@media (max-width: 992px) {
  .blog-hero {
    height: 260px;
  }

  .blog-hero h1 {
    font-size: 3rem;
  }

  .blog-hero p {
    font-size: 1.3rem;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .blog-card {
    max-width: 85%;
  }

  .blog-tendencias h2 {
    font-size: 2.2rem;
  }

  .blog-excerpt {
    -webkit-line-clamp: 4;
  }
}

/* === Tablets y móviles medianos (hasta 768px) === */
@media (max-width: 768px) {
  .blog-hero {
    height: 220px;
    padding: 30px 15px;
  }

  .blog-hero h1 {
    font-size: 2.4rem;
  }

  .blog-hero p {
    font-size: 1.1rem;
  }

  .blog-filtros {
    flex-direction: column;
    gap: 10px;
    width: 95%;
  }

  .search-form {
    width: 100%;
    max-width: 300px;
  }

  .blog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .blog-tendencias h2 {
    font-size: 2rem;
  }
}

/* === Móviles pequeños (hasta 480px) === */
@media (max-width: 480px) {
  .blog-hero {
    height: 180px;
    padding: 20px 10px;
  }

  .blog-hero h1 {
    font-size: 2.2rem;
    margin-top: 67px;
  }

  .blog-hero p {
    font-size: 1.1rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .blog-filtros {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 15px;
  }

  .blog-filtros .filtro {
    width: 87%;
    text-align: center;
  }

  .search-form {
    max-width: 100%;
    width: 97%;
    border-radius: 25px;
  }

  .search-field {
    font-size: 0.95rem;
    padding: 8px 12px;
  }

  .search-submit {
    padding: 8px 14px;
    font-size: 1rem;
    margin-left: 81px;
  }

  .blog-tendencias h2 {
    font-size: 1.8rem;
    margin-top: -50px;
  }

  .btn-leer {
    font-size: 0.85rem;
    padding: 8px 20px;
  }
}

/*---------------Single post--------------*/
/* ======= Blog Single ======= */
.blog-single {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

.spa-post-featured {
  text-align: center;
  margin: 20px auto 40px;
}

.spa-post-featured .spa-post-img {
  width: 70%;
  max-width: 700px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.spa-post-featured .spa-post-img:hover {
  transform: scale(1.02);
}

/* Cabecera */
.spa-post-header {
  text-align: center;
  margin-bottom: 30px;
}

.spa-post-title {
  font-size: 2.2rem;
  font-family: "Lato";
  color: #333;
  margin-bottom: 10px;
}

.spa-post-meta {
  font-size: 0.9rem;
  color: #777;
}

.spa-post-meta i {
  color: #e38bae;
  margin-right: 5px;
}

/* Contenido */
.spa-post-content {
  font-family: "Lato";
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
}

.spa-post-content h2, .spa-post-content h3 {
  font-family: "Lato";
  color: #a65d79;
  margin: 25px 0 15px;
}

.spa-post-content p {
  margin-bottom: 20px;
  text-align: justify;
}

.spa-post-content ul {
  margin: 15px 0 20px 30px;
}

.spa-post-content li {
  margin-bottom: 8px;
}

/* Footer del post */
.spa-post-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #f3c5d4;
  font-size: 0.95rem;
  color: #555;
}

.spa-post-cats, .spa-post-tags {
  margin-bottom: 10px;
}

/* Navegación entre posts */
.spa-post-navigation {
  display: flex;
  justify-content: space-between;
  margin: 40px 0;
  font-size: 0.95rem;
}

.spa-post-navigation a {
  color: #a65d79;
  text-decoration: none;
}

.spa-post-navigation a:hover {
  text-decoration: underline;
}
