/* Single article — estructura tipo klusto.ai, estética Telling */

body.single-article {
  background: #fff;
  color: var(--text);
}

body.single-article .site-header {
  background: #fff;
}

body.single-article .site-footer {
  margin-top: 0;
}

/* ── Hero ─────────────────────────────────────────────────── */
.article-hero {
  padding-block: clamp(2rem, 4vw, 3rem) 0;
}

.article-hero__inner {
  max-width: 48rem;
}

.article-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.article-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}

.article-breadcrumb a:hover {
  color: var(--text);
}

.article-hero__cat {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-hero__cat a {
  color: var(--text);
}

.article-hero__cat a:hover {
  opacity: 0.75;
}

.article-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.4375rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.article-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.article-hero__author {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  font-weight: 600;
}

.article-hero__author-dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}

.article-hero__read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.article-hero__meta-sep {
  color: #ccc;
}

.article-hero__media-wrap {
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
}

.article-hero__media {
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
  overflow: hidden;
  background: #f3f3f3;
}

.article-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Layout 2 columnas ────────────────────────────────────── */
.article-layout {
  padding-bottom: clamp(3rem, 6vw, 5rem);
}

.article-layout__grid {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 1024px) {
  .article-layout__grid {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(2rem, 4vw, 3rem);
  }

  .article-content-wrap {
    flex: 1 1 0;
    min-width: 0;
  }

  .article-aside {
    flex: 0 0 20rem;
    width: 20rem;
    align-self: stretch;
  }
}

.article-aside {
  position: relative;
}

.article-aside > .article-aside-card {
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .article-aside__sticky {
    position: sticky;
    top: 100px;
    z-index: 2;
  }
}

@media (max-width: 1023px) {
  .article-aside__sticky {
    position: static;
  }
}

/* ── Tabla de contenidos ──────────────────────────────────── */
.article-toc {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  border-radius: 0.5rem;
}

.article-toc__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.article-toc__list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.65;
}

.article-toc__item {
  margin: 0.25rem 0;
}

.article-toc__item--h3 {
  padding-left: 0.85rem;
}

.article-toc__list a {
  color: var(--text);
  text-decoration: none;
}

.article-toc__list a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Contenido (prose) ────────────────────────────────────── */
.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  font-weight: 500;
}

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

.article-content > *:last-child {
  margin-bottom: 0;
}

.article-content h2,
.article-content h3,
.article-content h4 {
  scroll-margin-top: 6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.article-content h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}

.article-content h3 {
  margin: 2rem 0 0.85rem;
  font-size: clamp(1.2rem, 1.05rem + 0.5vw, 1.45rem);
}

.article-content p {
  margin: 0 0 1.15rem;
  color: rgb(0 0 0 / 78%);
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
}

.article-content li {
  margin: 0.35rem 0;
  color: rgb(0 0 0 / 78%);
}

.article-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
}

.article-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--yellow);
  background: #fafafa;
  border-radius: 0 0.5rem 0.5rem 0;
}

.article-content blockquote p {
  margin: 0;
}

/* ── Opinión del equipo ───────────────────────────────────── */
.article-opinion {
  margin-top: 2.5rem;
  padding: 1.35rem 1.5rem;
  background: #f7f9fb;
  border: 1px solid #e4e8ec;
  border-radius: 0.75rem;
}

.article-opinion__title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.article-opinion p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgb(0 0 0 / 68%);
}

/* ── Autor ────────────────────────────────────────────────── */
.article-share-block {
  margin-top: 2.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
}

.article-share-block__label {
  margin: 0 0 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-author {
  display: flex;
  gap: 1.15rem;
  margin-top: 1.25rem;
  padding: 1.5rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
}

.article-author__avatar {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f5f5f5;
}

.article-author__avatar .logo-dot {
  width: 1rem;
  height: 1rem;
}

.article-author__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-author__name {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
}

.article-author__bio {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted);
}

.article-author__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── Nav prev/next ────────────────────────────────────────── */
.article-post-nav {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

@media (min-width: 640px) {
  .article-post-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.article-post-nav__item {
  display: block;
  padding: 1.15rem 1.25rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.article-post-nav__item:hover {
  border-color: #ccc;
  background: #fafafa;
}

.article-post-nav__item--next {
  text-align: right;
}

.article-post-nav__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-post-nav__item--next .article-post-nav__label {
  flex-direction: row-reverse;
}

.article-post-nav__title {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

/* ── Sidebar ──────────────────────────────────────────────── */
.article-aside-card {
  padding: 1.35rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.75rem;
  background: #fff;
}

.article-aside-card--cta {
  background: linear-gradient(145deg, rgb(255 214 0 / 12%), rgb(255 214 0 / 4%));
  border-color: rgb(255 214 0 / 35%);
}

.article-aside-card__eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.article-aside-card__eyebrow--muted {
  color: var(--muted);
}

.article-aside-card__title {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
}

.article-aside-card__text {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.article-aside-card__btn {
  width: 100%;
  justify-content: center;
}

.article-share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex: 1;
  min-width: calc(50% - 0.25rem);
  padding: 0.55rem 0.75rem;
  border: 1px solid #e8e8e8;
  border-radius: 0.5rem;
  background: #fafafa;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.article-share__btn:hover {
  background: #f0f0f0;
  border-color: #ccc;
}

.article-recent {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.article-recent__link {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.article-recent__thumb {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f0f0f0;
}

.article-recent__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-recent__copy {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.article-recent__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

.article-recent__link time {
  font-size: 0.75rem;
  color: var(--muted);
}

.article-recent__link:hover .article-recent__title {
  opacity: 0.75;
}

/* ── Relacionados + CTA final ─────────────────────────────── */
.article-related {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--bg);
  border-top: 1px solid #eee;
}

.article-related__head {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  text-align: center;
}

.article-related__eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.article-related__head h2 {
  margin: 0;
  font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.article-cta {
  margin-top: 0;
}
