/* === Seccion tarjetas blog === */

.hero {
  background-color: #f4f4f4;
  padding: 60px 0;
  text-align: center;
}

.titulo-seccion {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #222;
}

.subtitulo {
  font-size: 1.2rem;
  color: #666;
}

.categorias-blog {
  padding: 40px 20px;
}

.grid-categorias {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Limitar a 3 columnas máximo en pantallas grandes */
@media screen and (min-width: 1024px) {
  .grid-categorias {
    grid-template-columns: repeat(3, 1fr);
  }
}

.categoria-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  transition: box-shadow 0.3s ease, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.categoria-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-5px);
}

.categoria-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.categoria-card h3 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
}

.categoria-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.4;
  text-align: center;
}


/* === Página de categoría de blog === */
.articulos-categoria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.page-header-servicios p{
    color: white;
    margin-left: 30px;
    margin-right: 30px;
}
.tarjeta-articulo {
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #ddd;
  padding: 20px;
  transition: box-shadow 0.3s ease, transform 0.2s;
}

.tarjeta-articulo:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.tarjeta-articulo img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.tarjeta-articulo h2 {
  font-size: 1.4rem;
  color: #222;
  margin-bottom: 10px;
}

.tarjeta-articulo h2 a {
  text-decoration: none;
  color: #222;
}

.tarjeta-articulo p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 10px;
}

.leer-mas {
  display: inline-block;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
  margin-top: 10px;
}

.subtitulo-categoria {
  text-align: center;
  font-size: 1.2rem;
  color: #353434;
  margin-top: 10px;
}

/*bloque de paginacon*/
.paginacion-blog {
  display: none;
}

.paginacion-blog {
  text-align: center;
  margin: 40px 0;
}

.paginacion-blog a {
  display: inline-block;
  margin: 0 6px;
  padding: 10px 16px;
  background-color: #f1f1f1;
  color: #333;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.paginacion-blog a:hover {
  background-color: #0b294a;
  color: #fff;
}

.paginacion-blog a.activo {
  background-color: #007bff;
  color: white;
  font-weight: bold;
  pointer-events: none;
}

h5{
  text-align: center;
  margin-top: 20px;
}
/* Estilo para artículo del blog */

.blog-post {
  max-width: 960px;
  margin: 40px auto;
  padding: 20px;
  font-family: 'Roboto', sans-serif;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  color: #333;
}

.blog-post img.hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  border-radius: 16px;
  margin-bottom: 24px;
}


.blog-post .fecha {
  font-size: 0.95rem;
  color: #777;
  margin-bottom: 30px;
}

.blog-post h2 {
  color: #0A4D9B;
  margin-top: 30px;
  font-size: 1.7rem;
}

.blog-post p,
.blog-post li {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.blog-post ul,
.blog-post ol {
  padding-left: 20px;
}

.botones-redes {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
  text-align: center;
}

.btn-share {
  display: inline-block;
  margin: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn-share.facebook { background-color: #3b5998; }
.btn-share.twitter { background-color: #000000; }
.btn-share.whatsapp { background-color: #25D366; }
.btn-share.instagram { background-color: #e1306c; }

.btn-share:hover {
  opacity: 0.85;
}
article p{
  text-indent: 20px;
}
