/* ==========================================================================
   Single post — Figma 774:3315 (column ~1064px, gap 60px, radios imagen TL/TR/BL 160 / BR 32)
   ========================================================================== */

.post-single {
  background-color: var(--section-bg-light, #fcfbeb);
  color: var(--color-brand-dark, #005146);
}

.post-single__article {
  padding-top: clamp(3rem, 6vw, 5rem);
  /* figma pt ~80px */
  padding-bottom: clamp(5rem, 10vw, 7.5rem);
  /* figma pb ~120px */
  box-sizing: border-box;
}

/* Columna central y ritmo vertical 60px entre bloques principales */
.post-single__column {
  width: 100%;
  max-width: 1064px;
  margin-inline: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 60px;
  padding-inline: 24px;
}

/* ── Hero: H1 centrado como Figma (72px SemiBold / leading-none) ── */
.post-single__hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.post-single__title {
  margin: 0;
  width: 100%;
  font-family: "Avantt", "Poppins", sans-serif;
  font-weight: 500;
  font-size: 60px;
  line-height: 1;
  color: var(--color-brand-dark, #005146);
}

.post-single__meta {
  margin: 25px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.375;
  color: var(--color-text-muted, #555);
}

.post-single__meta-sep {
  margin: 0 0.35em;
  opacity: 0.65;
}

/* ── Imagen destacada — altura diseño ~528px, radios asimétricos ── */
.post-single__media {
  margin: 0;
  align-self: center;
  width: 100%;
  max-width: 1064px;
  height: clamp(260px, 55vw, 528px);
  overflow: hidden;
  border-radius: 160px 160px 32px 160px;
  background-color: var(--section-bg-dark, #005146);
}

.post-single__media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* ── Contenido: Poppins 18px / lh 22; alineado a la izquierda como diseño ── */
.post-single__slice--body {
  width: 100%;
}

.post-single__body {
  width: 100%;
  max-width: 1064px;
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  /* 18px */
  font-weight: 300;
  line-height: 22px;
  /* 22px Figma */
  color: var(--color-brand-dark, #005146);
  text-align: left;
}

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

.post-single__body p {
  margin: 0 0 25px;
}

.post-single__body p:last-of-type,
.post-single__body p:last-child {
  margin-bottom: 0;
}

.post-single__body h2,
.post-single__body h3,
.post-single__body h4 {
  font-family: "Avantt", "Poppins", sans-serif;
  font-weight: 500;
  color: var(--color-brand-dark, #005146);
}

.post-single__body h2 {
  font-size: 2.25rem;
  /* 36px — Figma */
  line-height: 1;
  margin: 60px 0 25px;
}

.post-single__body h2:first-child {
  margin-top: 0;
}

.post-single__body h3 {
  margin: 48px 0 25px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.post-single__body h3:first-child {
  margin-top: 0;
}

.post-single__body h4 {
  margin: 40px 0 25px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.post-single__body h4:first-child {
  margin-top: 0;
}

.post-single__body ul,
.post-single__body ol {
  margin: 0 0 25px;
  padding-left: 24px;
}

.post-single__body li {
  margin-bottom: 0;
  line-height: calc(22 / 18);
}

.post-single__body li+li {
  margin-top: 0.35em;
}

.post-single__body ul {
  list-style-type: disc;
}

.post-single__body ol {
  list-style-type: decimal;
}

.post-single__body a {
  color: var(--section-bg-green, #00cd65);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.post-single__body a:hover,
.post-single__body a:focus-visible {
  color: var(--color-brand-dark, #005146);
}

.post-single__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-block: 16px;
}

.post-single__body blockquote {
  margin: 25px 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--section-bg-green, #00cd65);
  font-style: italic;
}

/* Footnotes — Figma: título 18px SemiBold Avantt; lista 16px / lh ~20px. gap interno ~12px */
.post-single__slice--footnotes {
  width: 100%;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.post-single__footnotes-title {
  margin: 0;
  font-family: "Avantt", "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  /* 18px */
  line-height: 1;
  color: var(--color-brand-dark, #005146);
  text-align: left;
}

.post-single__footnotes-list {
  margin: 0;
  padding-left: 1.5em;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  /* 16px */
  line-height: calc(20 / 16);
  font-weight: 300;
  list-style: decimal;
}

.post-single__footnotes-list li {
  margin-bottom: 0;
}

.post-single__footnotes-list li+li {
  margin-top: 10px;
}

/* Share — Figma 813:697: título + pills lime con gap 24px (inset lateral = .post-single__column) */
.post-single__slice--share {
  width: 100%;
}

.post-single__share {
  margin: 60px 0 120px;
  display: flex;
  justify-content: center;
}

.post-single__share-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 1064px;
}

.post-single__share-heading {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  /* 20px — Figma */
  line-height: calc(26 / 20);
  color: var(--color-brand-dark, #005146);
  text-align: center;
}

.post-single__share-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.post-single__share-pill {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 30px;
  min-height: 44px;
  border-radius: var(--radius-full, 9999px);
  border: none;
  background-color: var(--section-bg-green, #00cd65);
  color: var(--color-brand-dark, #005146);
  text-decoration: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  /* 16px */
  line-height: normal;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.post-single__share-pill:hover,
.post-single__share-pill:focus-visible {
  color: var(--section-bg-light, #fcfbeb);
}

.post-single__share-pill:focus-visible {
  outline: 2px solid var(--color-brand-dark, #005146);
  outline-offset: 3px;
}

.post-single__share-pill-icon {
  flex-shrink: 0;
  display: block;
  height: 16px;
  width: auto;
}

.post-single__share-pill-text {
  flex-shrink: 0;
}

/* Paginador — Figma 814:785: bandas ±40px + líneas 1062-ish, texto 16 Regular, gap ícono 4px */

.post-single .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
  white-space: nowrap;
}

.post-single__pager {
  padding-inline: 24px;
}

.post-single__pager-inner {
  max-width: 1064px;
  margin-inline: auto;
}

.post-single__pager-rules {
  display: flex;
  width: 100%;
  justify-content: center;
  pointer-events: none;
}

.post-single__pager-rules--top,
.post-single__pager-rules--bottom {}

.post-single__pager-rules--top {
  border-bottom-width: 2px;
  margin-bottom: 0;
}

.post-single__pager-rules--bottom {
  border-top-width: 2px;
  margin-top: 0;
}

.post-single__pager-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 10px;
  min-height: 30px;
  padding: 40px 0;
  border-top: 2px solid var(--color-brand-dark, #005146);
  border-bottom: 2px solid var(--color-brand-dark, #005146);
}

.post-single__pager-side {
  display: flex;
  align-items: center;
  min-height: 30px;
  min-width: 0;
}

.post-single__pager-side--prev {
  justify-content: flex-start;
  justify-self: start;
}

.post-single__pager-side--next {
  justify-content: flex-end;
  justify-self: end;
}

.post-single__pager-link {
  position: relative;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-brand-dark, #005146);
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  /* 16px */
  font-weight: 300;
  line-height: normal;
  outline-offset: 2px;
  transition: color 0.2s ease;
}

.post-single__pager-link:hover,
.post-single__pager-link:focus-visible {
  color: var(--section-bg-green, #00cd65);
}

.post-single__pager-label {
  white-space: nowrap;
}

.post-single__pager-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  box-sizing: border-box;
  transition: background-color 0.2s ease;
}

/* Tamaño fijo del SVG Lucide: evita que el trazo/cambio de color redibuje distinto y “salte” el hover */
.post-single__pager-arrow svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.post-single__pager-link:hover .post-single__pager-arrow,
.post-single__pager-link:focus-visible .post-single__pager-arrow {
  background-color: var(--section-bg-green, #00cd65);
}

/* Círculo del icono Lucide = lima (sin anillo oscuro); chevron = verde oscuro. Sin border en el contenedor. */
.post-single__pager-link:hover .post-single__pager-arrow svg circle,
.post-single__pager-link:focus-visible .post-single__pager-arrow svg circle {
  stroke: var(--section-bg-green, #00cd65);
}

.post-single__pager-link:hover .post-single__pager-arrow svg :is(path, polyline),
.post-single__pager-link:focus-visible .post-single__pager-arrow svg :is(path, polyline) {
  stroke: var(--color-brand-dark, #005146);
}

.post-single__pager-arrow--mirror {
  transform: rotate(180deg);
}

.post-single__pager-arrow-img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Single post spotlight CTA — Figma 805:1680 (panel verde, título crema, pills lime + crema) */

.post-single__spotlight-wrap {
  width: 100%;
  padding-top: 120px;
  box-sizing: border-box;
}

.post-single-spotlight {
  max-width: 844px;
  margin-inline: auto;
}

.post-single-spotlight__surface {
  background-color: var(--section-bg-dark, #005146);
  border-radius: 50px 50px 13px 50px;
  /* TL / TR / BR / BL */
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
  box-sizing: border-box;
}

.post-single-spotlight__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  text-align: center;
}

.post-single-spotlight__title {
  margin: 0;
  max-width: 100%;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1.25rem;
  /* 20px */
  line-height: calc(26 / 20);
  color: var(--section-bg-light, #fcfbeb);
}

.post-single-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px;
}

.post-single-spotlight__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 30px;
  min-height: 44px;
  box-sizing: border-box;
  border-radius: var(--radius-full, 9999px);
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: normal;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  color: var(--color-brand-dark, #005146);
  transition: color 0.2s ease;
}

.post-single-spotlight__btn--primary {
  background-color: var(--section-bg-green, #00cd65);
}

.post-single-spotlight__btn--secondary {
  background-color: var(--section-bg-light, #fcfbeb);
}

.post-single-spotlight__btn:hover,
.post-single-spotlight__btn:focus-visible {
  color: var(--section-bg-cream, #fcfbeb);
}

.post-single-spotlight__btn.post-single-spotlight__btn--secondary:hover,
.post-single-spotlight__btn.post-single-spotlight__btn--secondary:focus-visible {
  color: var(--section-bg-green, #00cd65);
}

@media (max-width: 1024px) {
  .post-single__hero {
    padding-top: 0;
  }

  .post-single__article {
    padding-top: 88px;
    padding-bottom: 32px;
  }

  .post-single__title {
    font-size: 28px;
  }

  .post-single__column {
    gap: 24px;
    padding-inline: 16px;
  }

  .post-single__media {
    height: 177px;
    border-radius: 60px 60px 10px 60px;
  }

  .post-single__body p {
    margin: 0 0 16px;
    font-size: 16px;
    line-height: 20px;
  }

  .post-single__body h2 {
    font-size: 22px;
    line-height: 28px;
    margin: 24px 0 16px;
  }

  .post-single__body ul,
  .post-single__body ol {
    margin: 0 0 16px;
    padding-left: 16px;
  }

  .post-single__body li {
    font-size: 14px;
    line-height: 18px;
  }

  .post-single__footnotes-list {
    padding-left: 16px;
    font-size: 12px;
    line-height: 16px;
  }

  .post-single__pager-side,
  .post-single__pager-side--prev,
  .post-single__pager-side--next {
    justify-self: stretch;
    justify-content: flex-start;
  }

  .post-single__pager-side--next {
    justify-content: flex-end;
  }

  .post-single-spotlight__actions {
    flex-direction: column;
    width: 100%;
  }

  .post-single-spotlight__btn {
    width: 100%;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 30px;
  }

  .post-single-spotlight__surface {
    border-radius: 54px 54px 12px 54px;
    padding: 32px 38px;
  }

  .post-single__spotlight-wrap {
    padding-top: 42px;
    padding-inline: 16px;
  }

  .post-single__share {
    margin: 18px 0 42px;
  }

  .post-single__share-pill {
    width: 300px;
    font-size: 14px;
    line-height: 18px;
    padding: 10px 30px;
  }

  .post-single__share-inner {
    gap: 20px;
  }

  .post-single__share-buttons {
    gap: 20px;
  }

  .post-single__pager-row {
    padding: 10px 0;
  }

  .post-single-spotlight__actions,
  .post-single-spotlight__copy {
    gap: 16px;
  }

  .post-single-spotlight__title {
    font-size: 17px;
    line-height: 23px;
  }

  .post-single__body {
    font-size: 14px;
    line-height: 18px;
    padding-inline: 16px;
  }

  .post-single__footnotes-title {
    font-size: 14px;
    line-height: 18px;
  }

  .post-single__share-heading {
    font-size: 17px;
    line-height: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .post-single__share-pill,
  .post-single__pager-link,
  .post-single-spotlight__btn {
    transition: none;
  }
}