/* ===== BLOG SECTION ===== */
.blog-section {
  padding: 72px 0 88px;
  background: #fff;
  border-top: 1px solid var(--hl-border-light);
}
.blog-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.blog-section-head {
  margin-bottom: 36px;
}
.blog-section-title {
  font-family: var(--hl-font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  color: var(--hl-charcoal);
  margin: 0;
}

/* ── POST DESTACADO ── */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  margin-bottom: 52px;
  background: #fff;
}
.blog-featured:hover {
  box-shadow: 0 20px 50px rgba(15, 58, 102, 0.12);
  transform: translateY(-4px);
}
.blog-featured-img {
  height: 340px;
  overflow: hidden;
  background: var(--hl-bg-soft);
}
.blog-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-featured:hover .blog-featured-img img { transform: scale(1.04); }
.blog-featured-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hl-blue-50) 0%, var(--hl-teal-50) 100%);
}
.blog-featured-placeholder i { width: 56px; height: 56px; color: var(--hl-blue-200); }
.blog-featured-body {
  padding: 40px 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.blog-featured-title {
  font-family: var(--hl-font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: var(--hl-charcoal);
  line-height: 1.3;
  margin: 0;
}
.blog-featured-summary {
  font-family: var(--hl-font-body);
  font-size: 15px;
  color: var(--hl-fg-on-light-2);
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-featured-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--hl-font-ui);
  font-size: 12.5px;
  color: var(--hl-fg-3);
}
.blog-featured-meta i { width: 13px; height: 13px; }
.blog-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 10px 22px;
  background: var(--hl-blue-500);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  width: fit-content;
  transition: background 0.2s ease, gap 0.2s ease;
}
.blog-read-btn:hover { background: var(--hl-blue-600); gap: 10px; }
.blog-read-btn i { width: 14px; height: 14px; }

/* ── TITULO "Publicaciones recientes" ── */
.blog-latest-title {
  font-family: var(--hl-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--hl-charcoal);
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--hl-border-light);
}

/* ── GRID DE POSTS ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(15, 58, 102, 0.09);
  border-color: var(--hl-blue-200);
}
.blog-card-img {
  height: 150px;
  overflow: hidden;
  background: var(--hl-bg-soft);
  position: relative;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.05); }
.blog-card-img--placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--hl-blue-50) 0%, var(--hl-teal-50) 100%);
}
.blog-card-img--placeholder i { width: 30px; height: 30px; color: var(--hl-blue-200); }
.blog-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.blog-card-title {
  font-family: var(--hl-font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--hl-charcoal);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-meta {
  display: flex;
  gap: 10px;
  margin-top: auto;
}
.blog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--hl-font-ui);
  font-size: 11.5px;
  color: var(--hl-fg-3);
}
.blog-card-meta i { width: 12px; height: 12px; }

/* ── BADGE DE CATEGORIA ── */
.blog-cat {
  display: inline-block;
  font-family: var(--hl-font-ui);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 999px;
  width: fit-content;
}
.blog-cat--legal {
  color: var(--hl-blue-600);
  background: var(--hl-blue-50);
  border: 1px solid var(--hl-blue-100);
}
.blog-cat--tecnico {
  color: var(--hl-teal-700);
  background: var(--hl-teal-50);
  border: 1px solid var(--hl-teal-100);
}
.blog-cat--general {
  color: var(--hl-fg-2);
  background: var(--hl-bg-mute);
  border: 1px solid var(--hl-border);
}

/* ── MODAL ── */
.blog-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 55, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  z-index: 1300;
  padding: 40px 20px;
  overflow-y: auto;
  animation: reg-fade 0.25s ease;
}
.blog-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 32px 80px rgba(10, 25, 55, 0.22);
  animation: reg-rise 0.3s cubic-bezier(0.34, 1.3, 0.64, 1);
  overflow: hidden;
}
.blog-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--hl-border);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.blog-modal-close:hover { background: var(--hl-bg-mute); }
.blog-modal-close i { width: 17px; height: 17px; }
.blog-modal-img { width: 100%; height: 240px; overflow: hidden; }
.blog-modal-img img { width: 100%; height: 100%; object-fit: cover; }
.blog-modal-body { padding: 30px 36px 36px; }
.blog-modal-title {
  font-family: var(--hl-font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--hl-charcoal);
  margin: 12px 0 16px;
  line-height: 1.25;
}
.blog-modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 12px 0;
  border-top: 1px solid var(--hl-border-light);
  border-bottom: 1px solid var(--hl-border-light);
  margin-bottom: 20px;
}
.blog-modal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  color: var(--hl-fg-on-light-2);
}
.blog-modal-meta i { width: 14px; height: 14px; color: var(--hl-fg-3); }
.blog-modal-summary {
  font-family: var(--hl-font-body);
  font-size: 16px;
  color: var(--hl-fg-on-light-1);
  line-height: 1.7;
  margin: 0 0 20px;
  font-weight: 500;
}
.blog-modal-content {
  font-family: var(--hl-font-body);
  font-size: 15px;
  color: var(--hl-fg-on-light-1);
  line-height: 1.75;
  margin-bottom: 24px;
}
.blog-modal-content p { margin: 0 0 14px; }
.blog-modal-fb {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.blog-modal-fb iframe { max-width: 100%; border-radius: 8px; }

/* ── ADMIN BLOG ── */
.admin-blog-wrap {
  min-height: 100vh;
  background: var(--hl-bg);
  font-family: var(--hl-font-ui);
}
.admin-blog-header {
  background: var(--hl-blue-500);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--hl-shadow-1);
}
.admin-blog-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  height: 60px;
}
.admin-blog-logo {
  font-family: var(--hl-font-display);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 1px;
}
.admin-blog-header-inner h1 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  margin: 0;
  flex: 1;
}
.admin-blog-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
}
.admin-blog-switch:hover { color: #fff; }
.admin-blog-switch i { width: 14px; height: 14px; }
.admin-blog-body {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.admin-blog-section {
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 14px;
  padding: 28px 28px 24px;
}
.admin-blog-section h2 {
  font-family: var(--hl-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--hl-charcoal);
  margin: 0 0 22px;
}
.admin-blog-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-field--inline {
  flex-direction: row !important;
  align-items: center;
}
.admin-field--inline label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}
.admin-blog-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.admin-blog-item {
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  overflow: hidden;
}
.admin-blog-item--draft { opacity: 0.65; border-style: dashed; }
.admin-blog-item-view {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
}
.admin-blog-item-info {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.admin-blog-item-title {
  font-size: 14px;
  color: var(--hl-charcoal);
  width: 100%;
}
.admin-blog-item-meta {
  font-size: 12px;
  color: var(--hl-fg-3);
  width: 100%;
}
.admin-blog-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.admin-edit-blog {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--hl-bg-soft);
}
.admin-edit-blog input,
.admin-edit-blog select,
.admin-edit-blog textarea {
  width: 100%;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  padding: 9px 12px;
  border: 1px solid var(--hl-border);
  border-radius: 8px;
  background: #fff;
  outline: none;
  box-sizing: border-box;
}
.admin-edit-blog textarea { resize: vertical; min-height: 80px; }

/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured-img { height: 220px; }
  .blog-featured-body { padding: 24px 22px 22px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .blog-modal-body { padding: 22px 20px 26px; }
  .blog-modal-title { font-size: 20px; }
}
@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .admin-blog-item-view { flex-direction: column; align-items: flex-start; }
}

/* ── EDITOR ENRIQUECIDO ── */
.rich-editor {
  border: 1.5px solid var(--hl-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.rich-editor:focus-within {
  border-color: var(--hl-blue-500);
  box-shadow: 0 0 0 4px rgba(20,98,174,0.1);
}
.rich-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 10px;
  background: var(--hl-bg-mute);
  border-bottom: 1px solid var(--hl-border-light);
  flex-wrap: wrap;
}
.rich-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: var(--hl-fg-2);
  transition: background 0.15s, color 0.15s;
}
.rich-btn:hover { background: var(--hl-bg-soft); color: var(--hl-fg-1); }
.rich-btn--active { background: var(--hl-blue-50); color: var(--hl-blue-600); }
.rich-btn i { width: 15px; height: 15px; pointer-events: none; }
.rich-sep {
  width: 1px;
  height: 20px;
  background: var(--hl-border);
  margin: 0 4px;
}
.rich-content {
  min-height: 180px;
  padding: 14px 16px;
  font-family: var(--hl-font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--hl-fg-1);
  outline: none;
  background: #fff;
}
.rich-content:empty::before {
  content: attr(data-placeholder);
  color: var(--hl-fg-3);
  pointer-events: none;
}
.rich-content a { color: var(--hl-blue-500); }
.rich-content ul, .rich-content ol { padding-left: 20px; }
.rich-content p { margin: 0 0 8px; }

/* ── GRID 2 COLUMNAS EN FORMULARIO ── */
.admin-blog-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) {
  .admin-blog-form-row { grid-template-columns: 1fr; }
}

/* ── IMAGE UPLOADER ── */
.img-uploader {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.img-upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--hl-blue-50);
  color: var(--hl-blue-600);
  border: 1.5px dashed var(--hl-blue-300);
  border-radius: 8px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.img-upload-btn:hover:not(:disabled) {
  background: var(--hl-blue-100);
  border-color: var(--hl-blue-500);
}
.img-upload-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.img-upload-btn i { width: 16px; height: 16px; }
.img-upload-spinner {
  width: 14px; height: 14px;
  border: 2px solid var(--hl-blue-200);
  border-top-color: var(--hl-blue-500);
  border-radius: 50%;
  animation: blog-spin 0.7s linear infinite;
  display: inline-block;
}
.img-upload-error {
  font-family: var(--hl-font-ui);
  font-size: 12px;
  color: var(--hl-danger);
}

/* Preview de imagen */
.img-preview {
  position: relative;
  margin-top: 10px;
  width: 100%;
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--hl-border);
}
.img-preview img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.img-preview-remove {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  width: 26px; height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s;
}
.img-preview-remove:hover { background: rgba(0,0,0,0.8); }
.img-preview-remove i { width: 14px; height: 14px; }

/* ══════════════════════════════════════════════════════════
   PREVIEW EN INDEX — nota principal (horizontal) + trio (vertical)
   ══════════════════════════════════════════════════════════ */
.blog-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.blog-section-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 100% 0%, rgba(20,98,174,0.06), transparent 60%),
    radial-gradient(ellipse 50% 45% at 0% 100%, rgba(13,170,170,0.06), transparent 60%);
  pointer-events: none;
}
/* Franja diagonal sutil de fondo — motivo del hero del sitio */
.blog-section::before {
  content: "";
  position: absolute;
  top: 0; right: -8%;
  width: 42%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(135deg, rgba(20,98,174,0.035), rgba(13,170,170,0.02));
  transform: skewX(-9deg);
  transform-origin: top right;
  pointer-events: none;
}
/* Linea arcoiris superior — igual que el borde del header */
.blog-section-rainbow {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    var(--hl-teal-500)  0%,
    var(--hl-teal-300)  14%,
    var(--hl-green-500) 28%,
    var(--hl-green-300) 42%,
    var(--hl-blue-300)  57%,
    var(--hl-blue-500)  85%,
    var(--hl-teal-500)  100%);
  opacity: 0.9;
}

.blog-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.blog-section-eyebrow i { width: 13px; height: 13px; }
.blog-section-title em {
  font-style: normal;
  color: var(--hl-blue-500);
}

/* ── NOTA PRINCIPAL — foto izquierda + texto derecha ── */
.blog-hero-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 40px;
  transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.blog-hero-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 64px rgba(15, 58, 102, 0.16);
  border-color: var(--hl-blue-200);
}
.blog-hero-card-media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: var(--hl-bg-soft);
}
.blog-hero-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2,0.8,0.2,1);
}
.blog-hero-card:hover .blog-hero-card-media img { transform: scale(1.06); }
.blog-hero-card-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  background: var(--hl-teal-500);
  color: #fff;
  border-radius: 999px;
  font-family: var(--hl-font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(13,170,170,0.4);
}
.blog-hero-card-badge i { width: 12px; height: 12px; }
.blog-hero-card-body {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}
.blog-hero-card-title {
  font-family: var(--hl-font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--hl-charcoal);
  line-height: 1.25;
  margin: 0;
}
.blog-hero-card-summary {
  font-family: var(--hl-font-body);
  font-size: 15.5px;
  color: var(--hl-fg-on-light-2);
  line-height: 1.72;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding-top: 6px;
}
.blog-hero-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  color: var(--hl-fg-3);
}
.blog-hero-card-meta i { width: 14px; height: 14px; }
.blog-hero-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hl-blue-500);
  transition: gap 0.22s ease;
}
.blog-hero-card:hover .blog-hero-card-cta { gap: 12px; }
.blog-hero-card-cta i { width: 15px; height: 15px; }

/* ── TRIO — foto arriba + texto abajo ── */
.blog-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.blog-trio-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.blog-trio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(15, 58, 102, 0.13);
  border-color: var(--hl-blue-200);
}
.blog-trio-media {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: var(--hl-bg-soft);
}
.blog-trio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.blog-trio-card:hover .blog-trio-media img { transform: scale(1.07); }
.blog-cat--onimg {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.14);
}
.blog-trio-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-trio-title {
  font-family: var(--hl-font-display);
  font-size: 16.5px;
  font-weight: 700;
  color: var(--hl-charcoal);
  line-height: 1.32;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-trio-summary {
  font-family: var(--hl-font-body);
  font-size: 13.5px;
  color: var(--hl-fg-on-light-2);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-trio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--hl-border-light);
}
.blog-trio-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--hl-font-ui);
  font-size: 11.5px;
  color: var(--hl-fg-3);
}
.blog-trio-date i { width: 12px; height: 12px; }
.blog-trio-arrow {
  width: 15px; height: 15px;
  color: var(--hl-border-strong);
  transition: transform 0.24s ease, color 0.24s ease;
}
.blog-trio-card:hover .blog-trio-arrow {
  transform: translateX(4px);
  color: var(--hl-blue-500);
}

/* Tarjeta-invitacion (rellena si hay menos de 3) */
.blog-trio-more {
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1.5px dashed var(--hl-blue-200);
  background: linear-gradient(145deg, var(--hl-blue-50), var(--hl-teal-50));
  transition: all 0.24s ease;
}
.blog-trio-more:hover {
  border-color: var(--hl-blue-400);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(20,98,174,0.14);
}
.blog-trio-more-inner {
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}
.blog-trio-more-inner > i:first-child { width: 26px; height: 26px; color: var(--hl-blue-500); }
.blog-trio-more-inner span {
  font-family: var(--hl-font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--hl-blue-700);
  line-height: 1.45;
}
.blog-trio-more-arrow { width: 15px; height: 15px; color: var(--hl-blue-500); }

/* ── CTA "Ver blog completo" ── */
.blog-section-cta {
  display: flex;
  justify-content: center;
  margin-top: 48px;
}
.blog-viewall-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 38px;
  background: var(--hl-charcoal);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--hl-font-ui);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px rgba(11,30,64,0.18);
  transition: background 0.22s ease, gap 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}
.blog-viewall-btn:hover {
  background: var(--hl-blue-600);
  gap: 14px;
  transform: translateY(-3px);
  box-shadow: 0 16px 38px rgba(20,98,174,0.28);
}
.blog-viewall-btn i { width: 16px; height: 16px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .blog-hero-card { grid-template-columns: 1fr; }
  .blog-hero-card-media { min-height: 240px; height: 240px; }
  .blog-hero-card-body { padding: 28px 26px; }
  .blog-trio { grid-template-columns: 1fr 1fr; }
  .blog-trio-more { grid-column: 1 / -1; }
  .blog-trio-more-inner { min-height: 120px; flex-direction: row; }
}
@media (max-width: 620px) {
  .blog-section { padding: 56px 0 64px; }
  .blog-trio { grid-template-columns: 1fr; }
  .blog-hero-card-title { font-size: 20px; }
  .blog-hero-card-body { padding: 24px 20px; }
  .blog-section::before { display: none; }
}
/* ══════════════════════════════════════════════════════════
   PAGINA BLOG.HTML — hero, filtros, grid, paginacion
   ══════════════════════════════════════════════════════════ */
.blog-hero {
  position: relative;
  padding: 96px 24px 72px;
  background: linear-gradient(160deg, var(--hl-charcoal) 0%, #12294a 55%, var(--hl-blue-700) 100%);
  overflow: hidden;
  text-align: center;
}
.blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(13,170,170,0.18), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(70,130,220,0.16), transparent 50%);
  pointer-events: none;
}
.blog-hero-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.blog-hero .blog-section-eyebrow { color: var(--hl-teal-300); }
.blog-hero-title {
  font-family: var(--hl-font-display);
  font-size: clamp(38px, 6vw, 56px);
  font-weight: 700;
  color: #fff;
  margin: 10px 0 16px;
  letter-spacing: -0.5px;
}
.blog-hero-sub {
  font-family: var(--hl-font-body);
  font-size: 17px;
  color: rgba(255,255,255,0.78);
  line-height: 1.7;
  margin: 0;
}

.blog-page-section {
  padding: 40px 0 88px;
  background: #fff;
}

/* Filtros + busqueda */
.blog-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--hl-border-light);
}
.blog-filters-cats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.blog-filter-chip {
  padding: 8px 18px;
  background: var(--hl-bg-mute);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.blog-filter-chip:hover { border-color: var(--hl-blue-300); color: var(--hl-blue-600); }
.blog-filter-chip.active {
  background: var(--hl-blue-500);
  border-color: var(--hl-blue-500);
  color: #fff;
}
.blog-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--hl-bg-mute);
  border: 1px solid var(--hl-border);
  border-radius: 999px;
  min-width: 220px;
}
.blog-search i { width: 16px; height: 16px; color: var(--hl-fg-3); flex-shrink: 0; }
.blog-search input {
  border: none;
  background: none;
  outline: none;
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  color: var(--hl-fg-1);
  width: 100%;
}
.blog-search input::placeholder { color: var(--hl-fg-3); }

/* Grid pagina completa: mas columnas */
.blog-grid--page {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.blog-grid--page .blog-card-body { padding: 18px 20px 20px; }
.blog-grid--page .blog-card-img { height: 170px; }

/* Estado vacio */
.blog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 80px 20px;
  text-align: center;
}
.blog-empty i { width: 44px; height: 44px; color: var(--hl-border-strong); }
.blog-empty p {
  font-family: var(--hl-font-ui);
  font-size: 14.5px;
  color: var(--hl-fg-3);
  margin: 0;
}

/* Paginacion */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
}
.blog-page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--hl-border);
  border-radius: 10px;
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hl-fg-2);
  cursor: pointer;
  transition: all 0.18s ease;
}
.blog-page-btn:hover:not(:disabled):not(.active) {
  border-color: var(--hl-blue-300);
  color: var(--hl-blue-600);
}
.blog-page-btn.active {
  background: var(--hl-blue-500);
  border-color: var(--hl-blue-500);
  color: #fff;
}
.blog-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.blog-page-btn i { width: 15px; height: 15px; }

/* Tags en el modal de detalle */
.blog-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}
.blog-modal-tags span {
  font-family: var(--hl-font-ui);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--hl-blue-600);
  background: var(--hl-blue-50);
  border: 1px solid var(--hl-blue-100);
  padding: 3px 11px;
  border-radius: 999px;
}

@media (max-width: 720px) {
  .blog-hero { padding: 72px 20px 56px; }
  .blog-filters { flex-direction: column; align-items: stretch; }
  .blog-search { min-width: 0; }
}

/* ══════════════════════════════════════════════════════════
   BREADCRUMB — ruta de navegacion
   ══════════════════════════════════════════════════════════ */
.blog-post-breadcrumb-wrap {
  background: var(--hl-bg-mute);
  border-bottom: 1px solid var(--hl-border-light);
  padding: 16px 0;
}
.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--hl-font-ui);
  font-size: 13px;
}
.blog-breadcrumb a {
  color: var(--hl-fg-3);
  text-decoration: none;
  transition: color 0.18s ease;
}
.blog-breadcrumb a:hover { color: var(--hl-blue-500); }
.blog-breadcrumb i {
  width: 13px;
  height: 13px;
  color: var(--hl-border-strong);
  flex-shrink: 0;
}
.blog-breadcrumb-current {
  color: var(--hl-fg-1);
  font-weight: 600;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   PAGINA INDIVIDUAL DE POST (blog-post.html)
   ══════════════════════════════════════════════════════════ */
.blog-post-page {
  padding: 48px 0 24px;
  background: #fff;
}
.blog-post-narrow {
  max-width: 760px;
}
.blog-post-title {
  font-family: var(--hl-font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--hl-charcoal);
  line-height: 1.25;
  margin: 16px 0 22px;
}
.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 18px 0;
  border-top: 1px solid var(--hl-border-light);
  border-bottom: 1px solid var(--hl-border-light);
  margin-bottom: 32px;
}
.blog-post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  color: var(--hl-fg-on-light-2);
}
.blog-post-meta i { width: 15px; height: 15px; color: var(--hl-fg-3); }

.blog-post-hero-img {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: 0 20px 50px rgba(15, 58, 102, 0.12);
}
.blog-post-hero-img img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

.blog-post-summary {
  font-family: var(--hl-font-body);
  font-size: 18px;
  font-weight: 500;
  color: var(--hl-fg-on-light-1);
  line-height: 1.7;
  margin: 0 0 28px;
  padding-left: 18px;
  border-left: 3px solid var(--hl-blue-300);
}
.blog-post-content {
  font-family: var(--hl-font-body);
  font-size: 16.5px;
  color: var(--hl-fg-on-light-1);
  line-height: 1.85;
}
.blog-post-content p { margin: 0 0 18px; }
.blog-post-content a { color: var(--hl-blue-500); }
.blog-post-content ul, .blog-post-content ol { padding-left: 22px; margin: 0 0 18px; }
.blog-post-content li { margin-bottom: 6px; }

/* Compartir */
.blog-post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--hl-border-light);
}
.blog-post-share span {
  font-family: var(--hl-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--hl-fg-3);
}
.blog-share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hl-bg-mute);
  color: var(--hl-fg-2);
  transition: all 0.2s ease;
}
.blog-share-btn:hover {
  background: var(--hl-blue-500);
  color: #fff;
  transform: translateY(-2px);
}
.blog-share-btn i { width: 17px; height: 17px; }

/* Volver al blog */
.blog-post-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  font-family: var(--hl-font-ui);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--hl-blue-500);
  text-decoration: none;
  transition: gap 0.2s ease;
}
.blog-post-back:hover { gap: 12px; }
.blog-post-back i { width: 15px; height: 15px; }

@media (max-width: 720px) {
  .blog-post-page { padding: 32px 0 16px; }
  .blog-post-hero-img img { max-height: 260px; }
  .blog-post-summary { font-size: 16px; }
  .blog-post-content { font-size: 15.5px; }
}
