/**
 * Publicidad y contenido editorial.
 */

.sm-ad-slot {
  width: 100%;
  max-width: 970px;
  margin: 30px auto;
  overflow: hidden;
}

.sm-ad-slot__code {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.sm-ad-slot__code > *,
.sm-ad-slot__code iframe,
.sm-ad-slot__code img {
  max-width: 100% !important;
}

.sm-ad-slot__demo {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed color-mix(in srgb, var(--sm-success, #22c55e) 58%, #fff);
  border-radius: 12px;
  background: var(--sm-surface, #fff);
  color: var(--sm-text-muted, #64748b);
  text-align: center;
}

.sm-ad-slot__demo strong {
  color: var(--sm-success, #22c55e);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.sm-ad-slot__demo span {
  font-size: .82rem;
}

.sm-ad-slot--home_before_latest {
  margin-top: 8px;
}

.sm-ad-slot--home_after_latest {
  margin-bottom: 8px;
}

.sm-ad-slot--single_before_downloads,
.sm-ad-slot--single_before_related {
  margin-block: 36px;
}

/* Blog archive */
.sm-blog-main {
  padding-block: 42px 64px;
}

.sm-blog-header {
  margin-bottom: 28px;
  text-align: center;
}

.sm-blog-title {
  margin: 0;
  color: var(--sm-text-main, #0f172a);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.sm-blog-subtitle {
  margin: 8px auto 0;
  color: var(--sm-text-muted, #64748b);
  font-size: 1rem;
}

.sm-blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.sm-blog-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--sm-border, #e2e8f0);
  border-radius: 14px;
  background: var(--sm-surface, #fff);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.sm-blog-card:hover {
  border-color: color-mix(in srgb, var(--sm-primary, #1a6ef5) 36%, var(--sm-border, #e2e8f0));
  box-shadow: 0 14px 30px rgba(15, 23, 42, .1);
  transform: translateY(-3px);
}

.sm-blog-card__image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1d2b3f;
}

.sm-blog-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.sm-blog-card:hover .sm-blog-card__image {
  transform: scale(1.035);
}

.sm-blog-card__placeholder {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #fff;
}

.sm-blog-card__placeholder-mark {
  color: #fff;
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: -.02em;
}

.sm-blog-card__placeholder-mark b,
.sm-blog-card__placeholder-mark em {
  font-style: normal;
}

.sm-blog-card__placeholder-mark em {
  color: #66a3ff;
}

.sm-blog-card__placeholder-label {
  color: #b8c5d7;
  font-size: .72rem;
  letter-spacing: .04em;
}

.sm-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.sm-blog-card__category {
  margin-bottom: 7px;
  color: var(--sm-primary, #1a6ef5);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.sm-blog-card__title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--sm-text-main, #0f172a);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sm-blog-card__title a {
  color: inherit;
}

.sm-blog-card__excerpt {
  display: -webkit-box;
  margin: 10px 0 16px;
  overflow: hidden;
  color: var(--sm-text-muted, #64748b);
  font-size: .9rem;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.sm-blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--sm-primary, #1a6ef5);
  font-size: .86rem;
  font-weight: 750;
}

.sm-blog-card__read svg {
  width: 16px;
  height: 16px;
  transition: transform 180ms ease;
}

.sm-blog-card__read:hover svg {
  transform: translateX(3px);
}

.sm-blog-pagination {
  margin-top: 32px;
}

/* Normal WordPress post */
.sm-post-main {
  padding-block: 46px 72px;
}

.sm-post-article {
  width: min(100%, 960px);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid color-mix(in srgb, var(--sm-border, #e2e8f0) 86%, #fff);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 55px rgba(15, 23, 42, .09);
}

.sm-post-header {
  width: min(100%, 800px);
  margin-inline: auto;
  text-align: center;
}

.sm-post-category {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--sm-primary, #1a6ef5);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .065em;
  text-transform: uppercase;
}

.sm-post-category:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sm-post-title {
  margin: 0 auto;
  color: var(--sm-text-main, #0f172a);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
  font-weight: 850;
  letter-spacing: -.035em;
  line-height: 1.1;
  text-align: center;
  text-wrap: balance;
}

.sm-post-excerpt {
  max-width: 700px;
  margin: 20px auto 0;
  color: var(--sm-text-muted, #64748b);
  font-size: 1.08rem;
  line-height: 1.65;
  text-wrap: balance;
}

.sm-post-featured {
  margin: 34px 0 40px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #dfe6ef;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .1);
}

.sm-post-featured img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-post-content {
  width: min(100%, 800px);
  margin-inline: auto;
  color: var(--sm-text-main, #0f172a);
  font-size: 1.065rem;
  line-height: 1.82;
}

.sm-post-content > *:first-child {
  margin-top: 0;
}

.sm-post-content p,
.sm-post-content ul,
.sm-post-content ol,
.sm-post-content blockquote,
.sm-post-content figure {
  margin-block: 0 25px;
}

.sm-post-content p {
  color: #26364d;
}

.sm-post-content a:not(.wp-element-button) {
  color: var(--sm-primary, #1a6ef5);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.sm-post-content h2 {
  margin: 40px 0 20px;
  padding: 15px 20px;
  border-left: 4px solid var(--sm-primary, #1a6ef5);
  border-radius: 0 10px 10px 0;
  background: #eaf3ff;
  color: #132c55;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.28;
}

.sm-post-content h3 {
  margin: 32px 0 15px;
  color: var(--sm-text-main, #0f172a);
  font-size: 1.32rem;
  line-height: 1.35;
}

.sm-post-content ul,
.sm-post-content ol {
  padding-left: 1.5em;
}

.sm-post-content li + li {
  margin-top: 8px;
}

.sm-post-content blockquote {
  padding: 18px 22px;
  border-left: 4px solid #75a9f8;
  border-radius: 0 10px 10px 0;
  background: #f5f8fc;
  color: #334155;
  font-style: italic;
}

.sm-post-content blockquote > :last-child {
  margin-bottom: 0;
}

.sm-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.sm-post-content figcaption {
  margin-top: 8px;
  color: var(--sm-text-muted, #64748b);
  font-size: .82rem;
  line-height: 1.5;
  text-align: center;
}

.sm-post-content pre,
.sm-post-content .wp-block-code,
.sm-post-content .wp-block-table {
  max-width: 100%;
  overflow-x: auto;
}

.sm-post-content table {
  width: 100%;
  border-collapse: collapse;
}

.sm-post-content th,
.sm-post-content td {
  padding: 11px 13px;
  border: 1px solid var(--sm-border, #e2e8f0);
  text-align: left;
}

.sm-post-content .wp-block-gallery {
  gap: 12px;
}

.sm-post-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--sm-border, #e2e8f0);
  font-weight: 750;
}

.sm-post-share {
  width: min(100%, 960px);
  margin: 28px auto 0;
  padding: 30px;
  border: 1px solid color-mix(in srgb, var(--sm-border, #e2e8f0) 88%, #fff);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(15, 23, 42, .075);
}

.sm-post-share__title {
  margin: 0 0 22px;
  color: var(--sm-text-main, #0f172a);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.sm-post-share__buttons {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.sm-post-share__button {
  display: flex;
  min-width: 0;
  min-height: 116px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 18px 10px;
  border: 1px solid var(--sm-border, #e2e8f0);
  border-radius: 13px;
  background: #fff;
  color: #243247;
  font: inherit;
  font-size: .8rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .035);
  transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease, transform 180ms ease;
}

.sm-post-share__button:hover {
  border-color: currentColor;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .08);
  transform: translateY(-2px);
}

.sm-post-share__button svg {
  width: 32px;
  height: 32px;
}

.sm-post-share__button svg:not([fill="none"]) {
  fill: currentColor;
}

.sm-post-share__button--whatsapp {
  color: #0b9f4d;
}

.sm-post-share__button--facebook {
  color: #1877f2;
}

.sm-post-share__button--x {
  color: #0f172a;
}

.sm-post-share__button--telegram {
  color: #229ed9;
}

.sm-post-share__button--copy {
  color: #475569;
}

.sm-post-share__button.is-copied {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #15803d;
}

.sm-post-related {
  margin-top: 48px;
}

.sm-post-related__heading {
  margin-bottom: 22px;
  text-align: center;
}

.sm-post-related__heading h2 {
  margin: 0;
  color: var(--sm-text-main, #0f172a);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -.025em;
}

.sm-post-related__grid {
  align-items: stretch;
}

.sm-post-footer-nav {
  margin-top: 30px;
  text-align: center;
}

.sm-post-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--sm-primary, #1a6ef5);
  font-weight: 750;
}

.sm-post-back svg {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}

@media (max-width: 1023px) {
  .sm-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-post-share__buttons {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .sm-ad-slot {
    max-width: 360px;
    margin-block: 22px;
  }

  .sm-ad-slot__demo {
    min-height: 100px;
  }

  .sm-blog-main,
  .sm-post-main {
    padding-block: 28px 48px;
  }

  .sm-blog-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sm-blog-card__body {
    padding: 16px;
  }

  .sm-post-title {
    font-size: 2rem;
  }

  .sm-post-article {
    padding: 26px 20px 30px;
    border-radius: 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, .08);
  }

  .sm-post-category {
    margin-bottom: 11px;
  }

  .sm-post-excerpt {
    margin-top: 16px;
    font-size: 1rem;
  }

  .sm-post-featured {
    margin: 26px 0 30px;
    border-radius: 12px;
  }

  .sm-post-content {
    font-size: 1rem;
    line-height: 1.72;
  }

  .sm-post-content h2 {
    padding: 12px 14px;
  }

  .sm-post-share__buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm-post-share {
    padding: 24px 18px;
    border-radius: 16px;
  }

  .sm-post-share__title {
    margin-bottom: 18px;
    font-size: 1.2rem;
  }

  .sm-post-share__button {
    min-height: 104px;
  }

  .sm-post-related {
    margin-top: 40px;
  }
}

@media (max-width: 340px) {
  .sm-post-share__buttons {
    grid-template-columns: 1fr;
  }

  .sm-post-share__button {
    min-height: 92px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sm-blog-card,
  .sm-blog-card__image,
  .sm-blog-card__read svg,
  .sm-post-share__button {
    transition: none;
  }
}
