/**
 * Hispadrive — Blog CMS (categoría link_rewrite «blog»)
 */

.hispadrive-blog-page #page_banner_container_1,
.hispadrive-blog-page #page_banner_container_1 + .breadcrumb_spacing,
.hispadrive-blog-page #wrapper > .breadcrumb_spacing,
.hispadrive-blog-page .cms_page_heading,
.hispadrive-blog-page .page_heading {
  display: none !important;
}

body.hispadrive-blog-page,
.hispadrive-blog-page #wrapper,
.hispadrive-blog-page #columns,
.hispadrive-blog-page #columns.container,
.hispadrive-blog-page #center_column,
.hispadrive-blog-page #main,
.hispadrive-blog-page section.page-content.page-cms,
.hispadrive-blog-page .page-content.page-cms {
  background: #fff !important;
  border: 0 !important;
  box-shadow: none !important;
}

.hispadrive-blog-page section.page-content.page-cms,
.hispadrive-blog-page .page-content.page-cms {
  padding: 0 !important;
  margin: 0 !important;
}

.hispadrive-blog-page #st-container,
.hispadrive-blog-page #wrapper,
.hispadrive-blog-page #columns,
.hispadrive-blog-page #center_column,
.hispadrive-blog-page #main,
.hispadrive-blog-page .page-content.page-cms,
.hispadrive-blog-page .hd-blog,
.hispadrive-blog-page .hd-blog-article {
  overflow: visible !important;
}

.hispadrive-blog-page #main > #breadcrumb_wrapper.hd-breadcrumb {
  margin-top: 0;
  margin-bottom: 0;
}

.hd-blog {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter) 80px;
  font-family: var(--font-sans);
}

.hd-blog-hero {
  margin-top: 40px;
  max-width: 760px;
}

.hd-blog-hero__title {
  margin: 0 0 16px;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.2px;
  color: var(--color-heading, #444a9b);
}

.hd-blog-hero__lead {
  margin: 0;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text, #444558);
}

.hd-blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}

.hd-blog-filter {
  padding: 10px 20px;
  border: 1px solid #ececf3;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  color: #444558;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.hd-blog-filter:hover {
  border-color: #d5d6e8;
  color: #2b3181;
}

.hd-blog-filter.is-active {
  border-color: #2b3181;
  background: #2b3181;
  color: #fff;
}

.hd-blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

.hd-blog-card {
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hd-blog-card:hover {
  box-shadow: 0 12px 40px rgba(43, 49, 129, 0.08);
  transform: translateY(-2px);
}

.hd-blog-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.hd-blog-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f5f5f7;
}

.hd-blog-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hd-blog-card__img.is-hidden {
  display: none !important;
}

.hd-blog-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 600;
  color: #2b3181;
}

.hd-blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.hd-blog-card__date {
  font-size: 13px;
  color: #6b6d82;
  margin-bottom: 8px;
}

.hd-blog-card__title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.2px;
  color: var(--color-heading, #444a9b);
}

.hd-blog-card__summary {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: #444558;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hd-blog-card__cta {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: #2b3181;
}

.hd-blog-card.is-hidden {
  display: none !important;
}

.hd-blog-empty {
  margin: 48px 0 0;
  padding: 32px;
  border: 1px solid #ececf3;
  border-radius: 20px;
  text-align: center;
  font-size: 17px;
  color: #444558;
}

.hd-blog-linkedin {
  margin-top: 72px;
  padding: 40px 32px;
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #f9f9fb;
}

.hd-blog-linkedin__title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-heading, #444a9b);
}

.hd-blog-linkedin__text {
  margin: 0 0 20px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: #444558;
}

.hd-blog-linkedin__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  background: #2b3181;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.hd-blog-linkedin__feed {
  margin-top: 28px;
  min-height: 0;
}

/* ——— Artículo editorial ——— */
.hd-blog-article {
  box-sizing: border-box;
  width: 100%;
  padding-bottom: 80px;
  font-family: var(--font-sans);
}

.hd-blog-article__column {
  box-sizing: border-box;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px;
}

.hd-blog-article__intro {
  margin-top: 8px;
  text-align: center;
}

.hd-blog-article__intro .hd-breadcrumb {
  margin: 0 0 20px;
  text-align: left;
}

.hd-blog-article__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.5;
  color: #6b6d82;
}

.hd-blog-article__meta-sep {
  margin: 0 10px;
  color: #c4c5d4;
}

.hd-blog-article__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef0fa;
  font-weight: 600;
  color: #2b3181;
}

.hd-blog-article__title {
  margin: 0 0 16px;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--color-heading, #444a9b);
}

.hd-blog-article__lead {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55;
  color: #6b6d82;
}

.hd-blog-article__cover-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 28px 0 36px;
  padding: 0;
  background: none;
}

.hd-blog-article__cover {
  position: relative;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 640px;
  height: auto;
  border-radius: 20px;
}

.hd-blog-article__cover.is-hidden {
  display: none !important;
}

.hd-blog-media__placeholder {
  display: none;
  align-items: center;
  justify-content: center;
  background: #f5f5f7;
}

.hd-blog-media__placeholder.is-visible {
  display: flex;
}

.hd-blog-card__media .hd-blog-media__placeholder.is-visible,
.hd-blog-article__cover-wrap .hd-blog-media__placeholder.is-visible {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hd-blog-article__cover-wrap--empty {
  background: #f5f5f7;
  border-radius: 20px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.hd-blog-article__cover-wrap--empty .hd-blog-media__placeholder.is-visible {
  position: relative;
  width: 100%;
  min-height: 200px;
  aspect-ratio: 16 / 10;
}

.hd-blog-media__placeholder-logo {
  width: min(140px, 42%);
  height: auto;
  max-height: 56px;
  object-fit: contain;
  opacity: 0.32;
  filter: grayscale(1);
}

.hd-blog-article__body-wrap {
  width: 100%;
}

.hd-blog-article__prose {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: #444558;
  text-align: left !important;
  font-family: var(--font-sans);
}

.hd-blog-article__prose,
.hd-blog-article__prose * {
  font-family: var(--font-sans) !important;
}

.hd-blog-article__prose h2 {
  scroll-margin-top: 120px;
  margin: 40px 0 12px;
  font-size: 20px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.2px;
  color: var(--color-heading, #444a9b) !important;
}

.hd-blog-article__prose h3 {
  margin: 28px 0 10px;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: var(--color-heading, #444a9b) !important;
}

.hd-blog-article__prose p {
  margin: 0 0 1.1em;
}

.hd-blog-article__prose ul,
.hd-blog-article__prose ol {
  margin: 0 0 1.25em;
  padding-left: 1.35em;
}

.hd-blog-article__prose li {
  margin-bottom: 0.35em;
}

.hd-blog-article__prose a {
  color: #2b3181;
  text-decoration: underline;
}

.hd-blog-article__prose a.hd-carrusel-pdf {
  text-decoration: none;
}

/* ——— Carrusel de diapositivas (contenido CMS) ——— */
.hd-carrusel {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 28px 0 8px;
}

.hd-carrusel:focus {
  outline: none;
}

.hd-carrusel:focus-visible {
  box-shadow: 0 0 0 3px rgba(43, 49, 129, 0.28);
  border-radius: 20px;
}

.hd-carrusel__viewport {
  position: relative;
  width: 100%;
  aspect-ratio: var(--hd-carrusel-ratio, 16 / 10);
  overflow: hidden;
  border-radius: 20px;
  background: transparent;
  touch-action: pan-y;
}

.hd-carrusel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hd-carrusel__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease;
}

.hd-carrusel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hd-carrusel__slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.hd-carrusel__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 18px rgba(43, 49, 129, 0.12);
  color: #2b3181;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.hd-carrusel__nav:hover {
  background: #fff;
  box-shadow: 0 6px 22px rgba(43, 49, 129, 0.16);
}

.hd-carrusel__nav--prev {
  left: 10px;
}

.hd-carrusel__nav--next {
  right: 10px;
}

.hd-carrusel__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: 14px;
}

.hd-carrusel__dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hd-carrusel__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #c8cad8;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.hd-carrusel__dot.is-active {
  background: #2b3181;
  transform: scale(1.15);
}

.hd-carrusel__counter {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: #6b6d82;
}

.hd-carrusel-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 1.5em;
  padding: 10px 20px 10px 18px;
  border: 1.5px solid #2b3181;
  border-radius: 999px;
  background: transparent;
  color: #2b3181 !important;
  font-size: 0;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.hd-carrusel-pdf::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
}

.hd-carrusel-pdf::after {
  content: "PDF";
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.hd-carrusel-pdf:hover {
  background: #2b3181;
  color: #fff !important;
}

@media (max-width: 480px) {
  .hd-carrusel__nav {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .hd-carrusel__nav--prev {
    left: 6px;
  }

  .hd-carrusel__nav--next {
    right: 6px;
  }
}

.hd-blog-article__after {
  width: 100%;
  margin: 48px 0 0;
  text-align: left;
}

@media (min-width: 832px) {
  .hd-blog-article__column {
    padding-left: 0;
    padding-right: 0;
  }
}

.hd-blog-article__share-label {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.2px;
  text-transform: none;
  color: var(--color-heading, #444a9b);
}

.hd-blog-share {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.hd-blog-share__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid #ececf3;
  border-radius: 999px;
  background: #fff;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #2b3181;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hd-blog-share__icon {
  flex-shrink: 0;
  display: block;
}

.hd-blog-share__btn:hover {
  border-color: #2b3181;
  background: #f4f5fc;
}

.hd-blog-share__btn.is-copied {
  border-color: #2b3181;
  background: #2b3181;
  color: #fff;
}

.hd-blog-cta {
  margin-top: 40px;
  padding: 28px 28px;
  border: 1px solid #ececf3;
  border-radius: 20px;
  background: #f9f9fb;
}

.hd-blog-cta__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--color-heading, #444a9b);
}

.hd-blog-cta__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #444558;
}

.hd-blog-cta__text a {
  color: #2b3181;
  font-weight: 600;
}

.hd-blog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hd-blog-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 100%;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.hd-blog-cta__btn--primary {
  background: #2b3181;
  color: #fff !important;
  border-color: #2b3181;
}

.hd-blog-cta__btn--outline {
  background: #fff;
  color: #2b3181 !important;
  border-color: #2b3181;
}

.hd-blog-cta__btn--outline:hover {
  background: #f4f5fc;
}

.hd-blog-related {
  box-sizing: border-box;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 1120px;
  margin: 64px auto 0;
  padding: 0 16px;
}

.hd-blog-related__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 500;
  color: var(--color-heading, #444a9b);
}

.hd-blog-related__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .hd-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hd-blog-card--featured {
    grid-column: span 2;
  }

  .hd-blog-card--featured .hd-blog-card__link {
    flex-direction: row;
  }

  .hd-blog-card--featured .hd-blog-card__media {
    flex: 0 0 50%;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .hd-blog-card--featured .hd-blog-card__body {
    justify-content: center;
    padding: 28px 32px;
  }

  .hd-blog-card--featured .hd-blog-card__title {
    font-size: 26px;
  }

  .hd-blog-related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .hd-blog-article__title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .hd-blog-article__title {
    font-size: 30px;
    letter-spacing: -0.6px;
  }

  .hd-blog-article__lead {
    font-size: 17px;
  }

  .hd-blog-article__meta {
    font-size: 13px;
  }
}

@media (min-width: 832px) {
  .hd-blog-related {
    padding-left: var(--gutter, 24px);
    padding-right: var(--gutter, 24px);
  }
}

@media (max-width: 389px) {
  .hd-blog-hero__title {
    font-size: 36px;
  }

  .hd-blog-filters {
    gap: 8px;
  }

  .hd-blog-filter {
    padding: 9px 16px;
    font-size: 13px;
  }
}

@media (min-width: 1440px) {
  .hd-blog {
    padding-bottom: 96px;
  }

  .hd-blog-hero__title {
    font-size: 52px;
  }
}
