/* ===== seguros.css (component) ===== */
.seguros-hero {
    position: relative;
    height: 80vh;
    min-height: 480px;
    /* asegura visibilidad en pantallas pequeñas */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background-color: #2f2f2f;
    /* fallback si la imagen no carga */
}

/*.seguros-hero {
  position: relative;
  height: 100vh;
}
.seguros-hero .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); 
}*/

.seguros-hero .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.seguros-hero .content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 22px;
}

.seguros-hero h1 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.seguros-hero p {
    font-size: 1.15rem;
    margin-bottom: 18px;
}

/* Botones */
.seguros-hero .btn {
    border-radius: 10px;
    padding: 10px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .seguros-hero {
        height: 60vh;
        min-height: 380px;
    }

    .seguros-hero h1 {
        font-size: 2rem;
    }

    .seguros-hero p {
        font-size: 1rem;
    }
}

/* ===== Botones Header ===== */
.custom-breadcrumb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #fff;
  border-radius: 6px;
  padding: 10px 24px;
  background: transparent;
}

.custom-breadcrumb-btn a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.3s ease;
}

.custom-breadcrumb-btn a:hover {
  color: #ddd;
}

.custom-breadcrumb-btn .arrow {
  color: #fff;
  font-size: 18px;
  pointer-events: none; /* la flecha no es clickeable */
}

.custom-breadcrumb-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}


/* === BLOG CARDS COMPONENT === */
.blog-card {
  background: var(--color-blanco);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-grey);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 440px;
}

/* Hover: Efecto color púrpura suave */
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  background: var(--color-purple);
  color: var(--color-blanco);
}

/* Imagen: sin espacios arriba ni bordes */
.card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border-radius: 0;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Meta (fecha / comentarios) */
.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px 0;
  font-size: 16px;
  color: var(--color-dark);
  transition: color 0.25s ease;
}
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-grey2);
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}
.meta-item i {
  font-size: 14px;
  color: var(--color-green);
}

/* Contenido */
.card-body {
  padding: 14px 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-size: 20px;
  color: var(--color-dark);
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.25s ease;
}
.card-excerpt {
  color: var(--color-dark);
  font-size: 18px;
  line-height: 1.5;
  flex: 1;
  transition: color 0.25s ease;
  font-family: 'Jost', sans-serif;
}

/* Enlace leer más */
.card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--color-green);
  text-decoration: none;
  margin-top: 4px;
  transition: color 0.25s ease;
}
.card-readmore:hover {
  color: var(--color-green-light);
}

/* ===== HOVER MORADO ===== */
.blog-card:hover .meta-item {
  background: var(--color-purple-light);
}
.blog-card:hover .meta-item i {
  color: var(--color-blanco);
}
.blog-card:hover .meta-text,
.blog-card:hover .card-title,
.blog-card:hover .card-excerpt,
.blog-card:hover .card-readmore {
  color: var(--color-blanco);
}

/* Responsive */
@media (max-width: 767px) {
  .card-media {
    height: 180px;
  }
  .card-title {
    font-size: 18px;
  }
}


/* =============== Blog View Layout (versión sin contenedores blancos) =============== */
#blog-view {
  background-color: var(--color-blanco);
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Separación mayor entre columnas (contenido y sidebar) */
#blog-view .row {
  --bs-gutter-x: 80px;
}

/* Contenido principal */
.single-blog-post {
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.single-blog-post .post-image {
  width: 100%;
  overflow: hidden;
  margin-bottom: 25px;
  border-radius: 20px;
}

.single-blog-post .post-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.single-blog-post .post-meta {
  font-size: 15px;
  color: var(--color-grey3);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.single-blog-post .post-meta i {
  color: var(--color-green);
  font-size: 16px;
}

.single-blog-post .post-title {
  font-size: 34px;
  color: var(--color-dark);
  margin-bottom: 25px;
}

.single-blog-post .post-content {
  color: var(--color-dark);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 35px;
}

/* ====== Tags + Share en una misma fila ====== */
.post-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.post-tags a {
  color: var(--color-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.post-tags a:hover {
  color: var(--color-green-secondary);
}

.post-share {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 20px;
}

.post-share a {
  color: var(--color-green);
  background-color: var(--color-blanco);
  border: 1px solid var(--color-green);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
}

.post-share a:hover {
  background-color: var(--color-green);
  color: var(--color-blanco);
  transform: translateY(-3px);
}

/* ====== Sidebar ====== */
.blog-sidebar .sidebar-widget {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.blog-sidebar h5 {
  color: var(--color-dark);
  padding-bottom: 8px;
  margin-bottom: 20px;
  font-weight: 600;
}

.recent-post-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.recent-thumb img {
  width: 90px;
  height: 90px;
  border-radius: 10px;
  object-fit: cover;
  margin-right: 15px;
}

.recent-info .recent-date {
  font-size: 18px;
  color: var(--color-dark);
  display: block;
}

.recent-info .recent-title a {
  color: var(--color-dark);
  font-weight: 500;
  text-decoration: none;
}

.recent-info .recent-title a:hover {
  color: var(--color-green);
}

/* ====== Categorías y etiquetas ====== */
.sidebar-list {
  padding-left: 0;
  list-style: none;
}

.sidebar-list li {
  margin-bottom: 10px;
}

.sidebar-list a {
  color: var(--color-dark);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 18px;
}

.sidebar-list a:hover {
  color: var(--color-green);
}

/* Etiquetas en filas de 2 */
.tag-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 8px;
}

.tag-list a {
  display: inline-block;
  background: var(--color-grey2);
  color: var(--color-dark);
  border-radius: 12px;
  padding: 5px 12px;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s ease;
  text-align: center;
}

.tag-list a:hover {
  background: var(--color-green);
  color: var(--color-blanco);
}

/* ====== Comentarios ====== */
.post-comments hr {
  display: none;
}

.post-comments .comment-item {
  border-bottom: 1.5px solid rgba(0, 0, 0, 0.2);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.post-comments .comment-item:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 991px) {
  .single-blog-post .post-image img {
    height: 300px;
  }

  .single-blog-post .post-title {
    font-size: 26px;
  }

  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ==========================================================
   BLOG HEADER HERO (aislado, mismo estilo que seguros-hero)
   ========================================================== */

.blog-header-hero {
  position: relative;
  height: 80vh;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  background-color: #2f2f2f; /* fallback si la imagen no carga */
}

.blog-header-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

.blog-header-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 22px;
}

.blog-header-content h1 {
  font-size: 3rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.blog-header-content p {
  font-size: 1.15rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* ================= Responsive ================= */
@media (max-width: 768px) {
  .blog-header-hero {
    height: 60vh;
    min-height: 380px;
  }

  .blog-header-content h1 {
    font-size: 2rem;
  }

  .blog-header-content p {
    font-size: 1rem;
  }
}

/* === VIEW BLOG SECTION === */
#view-blog-section {
  background: var(--color-grey-bg);
}

/* Contenedor de tarjetas */
#view-blog-section .view-blog-card {
  background: var(--color-blanco);
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  transition: all 0.3s ease;
  color: var(--color-dark);
}

/* Hover */
#view-blog-section .view-blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  background-color: var(--color-purple);
  border-color: var(--color-purple);
  color: var(--color-blanco);
}

/* Autor y avatar */
#view-blog-section .view-blog-author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

#view-blog-section .view-blog-author-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

#view-blog-section .view-blog-author-info {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--color-dark);
}

#view-blog-section .view-blog-author-name {
  color: var(--color-dark);
  font-weight: 600;
}

#view-blog-section .view-blog-author-date {
  color: var(--color-dark);
  font-weight: 500;
}

/* Hover: cambia color del texto interno */
#view-blog-section .view-blog-card:hover .view-blog-author-name,
#view-blog-section .view-blog-card:hover .view-blog-author-date {
  color: #fff;
}

/* Títulos y texto */
#view-blog-section .view-blog-title {
  color: var(--color-dark);
  margin-bottom: 0.7rem;
}

#view-blog-section .view-blog-text {
  color: var(--color-dark);
  line-height: 1.6;
}

#view-blog-section .view-blog-card:hover .view-blog-title,
#view-blog-section .view-blog-card:hover .view-blog-text {
  color: var(--color-blanco);
}

/* Responsive */
@media (max-width: 992px) {
  #view-blog-section .col-md-3 {
    max-width: 100%;
    margin-bottom: 15px; 
  }

  #view-blog-section .col-md-3:last-child {
    margin-bottom: 0;
  }
}


/* =========== Paginacion =========== */
  #blogCards {
    transition: opacity 0.3s ease;
  }

  /* Contenedor de la paginación */
  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  /* Cada número */
  .pagination-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--color-dark);
    font-weight: 500;
    color: var(--color-dark);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
  }

  /* Hover: cambia color de texto y borde */
  .pagination-item:hover {
    border-color: var(--color-green);
    color: var(--color-green);
  }

  /* Activo: fondo sólido y texto blanco */
  .pagination-item.active {
    background-color: var(--color-green);
    color: var(--color-blanco) !important;
    border-color: var(--color-green);
    font-weight: 600;
  }

  /* =========================================
   ESPACIADO ENTRE ETIQUETAS Y COMPARTIR
   ========================================= */

/* Contenedor general */
.post-meta-row {
  margin-top: 45px;          /* separación del contenido */
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
  gap: 30px;                 /* espacio entre tags y share */
}

/* Bloque etiquetas */
.post-tags {
  margin-bottom: 15px;
}

/* Texto "Etiquetas:" */
.post-tags span {
  font-size: 20px;
  font-weight: 600;
  margin-right: 12px;
}

/* Links de etiquetas */
.post-tags a {
  font-size: 17px;
  margin-right: 10px;
}

/* Bloque compartir */
.post-share {
  display: flex;
  align-items: center;
  gap: 20px;                 /* espacio entre iconos */
}

/* Texto "Compartir:" */
.post-share span {
  font-size: 20px;
  font-weight: 600;
  margin-right: 12px;
}

/* Responsive */
@media (max-width: 991px) {
  .post-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
  }
}

/* Botón rectangular con esquinas redondeadas */
.btn-quote {
  display: inline-block;
  background: var(--color-green);
  color: var(--color-blanco);
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 36px;
  border-radius: 8px; 
  text-decoration: none;
}

.btn-quote:hover {
  background: var(--color-green-secondary); 
  color: var(--color-blanco);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
