.blog-section {
  position: relative;
  margin: 60px auto;
  padding: 0 20px 40px;
  max-width: 1200px;
  background-color: #fffbe6; /* ✅ Amarillo pastel clarito */
  border-bottom: 2px solid #ccc;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
  overflow: visible;
}

.blog-card {
  flex: 0 0 23%;             /* Cuatro tarjetas por fila */
  max-width: 23%;
  border: 2px solid #ccc;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  background-color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: transform 0.3s ease;
  margin: 0;                 /* Elimina márgenes que puedan bajar la tarjeta */
}

.blog-slider {
  display: flex;             /* Alinea las tarjetas en línea */
  overflow-x: auto;          /* Scroll horizontal */
  scroll-behavior: smooth;
  gap: 24px;                 /* Espacio entre tarjetas */
  padding: 20px 0;
  scrollbar-width: none;     /* Oculta scrollbar en Firefox */
  align-items: flex-start;   /* Alinea las tarjetas arriba */
}

.blog-slider::-webkit-scrollbar {
  display: none;             /* Oculta scrollbar en Chrome */
}


.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.blog-titulo {
  font-size: 1.2rem;
  font-weight: bold;
  color: #175e8a;
  margin-bottom: 10px;
}

.blog-resumen {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 12px;
}

.blog-fecha {
  font-size: 0.85rem;
  color: #999;
  text-align: right;
  margin-top: auto;
}

/* Icono amarillo para el título del blog */
.blog-header i {
  color: #f9a825; /* amarillo pastel/dorado */
}

/* Contenedor de los botones para centrar verticalmente */
.blog-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center; /* centra verticalmente los botones */
  max-width: 1200px;
  margin: 0 auto;
}

/* Botones desplazadores (mismos estilos usados antes) */
.btn-slide {
  background-color: rgba(128, 128, 128, 0.15); /* gris con 15% transparencia */
  border: none;
  border-radius: 6px;
  width: 38px;
  height: 38px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
  color: #444;
  font-size: 18px;
}

.btn-slide:hover {
  background-color: rgba(128, 128, 128, 0.30);
}

/*-------------------------------------------------------------------------------------------*/
/* Fondo semitransparente */
.modal-blog {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(200, 200, 200, 0.6); /* gris claro y translúcido */
  overflow-y: auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Contenido modal */
/* Botón cerrar */
.close-btn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 2rem;
  font-weight: bold;
  color: #555;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: #175e8a;
}

/* Título estilo periódico */
.modal-titulo {
  font-family: 'Georgia', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  border-bottom: 3px solid #175e8a;
  padding-bottom: 10px;
  color: #175e8a;
}

/* Imagen destacada */
.modal-imagen {
  flex: 0 0 45%;  /* Imagen ocupa 45% del ancho */
  max-height: 350px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

/* Texto contenido */
.modal-texto {
  flex: 1 1 50%;  /* Texto ocupa el resto */
  font-size: 1.1rem;
  line-height: 1.6;
  color: #444;
  overflow-y: auto;
}

#blogModal {
  display: none; /* Esconde el modal al iniciar */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscurecido */
  z-index: 1000;
}

.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.5); /* Fondo oscuro */
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 20px;
  width: 80%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border-radius: 8px;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  color: #333;
  cursor: pointer;
}

