/* =========================================================
   POLÍTICA DE PRIVACIDAD Y TÉRMINOS
   Lenguaje de póster del sitio (Poster.css): barras de
   etiquetas, títulos Bebas, líneas finas y acento naranja.
   Índice lateral fijo en escritorio.
========================================================= */

.pv {
  position: relative;
  z-index: 2;
  background-color: var(--color-bg);
  color: var(--color-text);
  padding: clamp(32px, 4vw, 64px) 0 clamp(56px, 6vw, 96px);
}

.pv-head .ozz-head__title {
  font-size: clamp(3.6rem, min(16vw, var(--fit)), 16rem);
}

.pv-updated {
  margin: 0;
  color: var(--ozz-muted);
}

/* ---------- Distribución ---------- */

.pv-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--ozz-gutter);
  padding: var(--ozz-section-gap) var(--ozz-pad) 0;
}

/* ---------- Índice ---------- */

.pv-toc {
  grid-column: 1 / span 4;
  align-self: start;
  position: sticky;
  top: 110px;
  max-height: calc(100vh - 130px);
  overflow-y: auto;
  padding-top: 14px;
  border-top: 1px solid var(--ozz-line);
  scrollbar-width: thin;
  scrollbar-color: rgba(127, 127, 127, 0.35) transparent;
}

.pv-toc::-webkit-scrollbar {
  width: 4px;
}

.pv-toc::-webkit-scrollbar-thumb {
  background: rgba(127, 127, 127, 0.35);
  border-radius: 4px;
}

.pv-toc__title {
  margin: 0 0 18px;
  color: var(--color-orange);
}

.pv-toc__part {
  margin: 18px 0 8px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.pv-toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pv-toc__list a {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 6px 0;
  font-family: var(--font-paragraph-light);
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--ozz-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.pv-toc__num {
  font-variant-numeric: tabular-nums;
}

.pv-toc__list a:hover,
.pv-toc__list a:focus-visible {
  color: var(--color-orange);
}

/* ---------- Contenido ---------- */

.pv-body {
  grid-column: 6 / -1;
}

.pv-part + .pv-part {
  margin-top: var(--ozz-section-gap);
}

.pv-part__title {
  margin: 0 0 clamp(20px, 2.5vw, 36px);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5.6vw, 6rem);
  font-weight: 400;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.pv-section {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  column-gap: var(--ozz-gutter);
  padding: clamp(20px, 2.4vw, 32px) 0;
  border-top: 1px solid var(--ozz-line);
  scroll-margin-top: 100px;
}

.pv-section__num {
  padding-top: 0.35rem;
  color: var(--color-orange);
}

.pv-section__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.3rem + 1vw, 2.5rem);
  font-weight: 400;
  line-height: 0.95;
  text-transform: uppercase;
}

.pv-section__content p,
.pv-list li {
  max-width: 68ch;
  font-family: var(--font-paragraph-light);
  font-size: clamp(0.98rem, 0.9rem + 0.25vw, 1.1rem);
  line-height: 1.6;
}

.pv-section__content p {
  margin: 0 0 12px;
}

.pv-section__content strong {
  font-family: var(--font-paragraph, inherit);
  font-weight: 600;
}

.pv-section__content a {
  color: var(--color-orange);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pv-list {
  list-style: none;
  margin: 4px 0 12px;
  padding: 0;
}

.pv-list li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 10px;
}

.pv-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--color-orange);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .pv-toc {
    grid-column: 1 / -1;
    position: static;
    max-height: none;
    margin-bottom: var(--ozz-section-gap);
  }

  .pv-toc__list {
    columns: 2;
    column-gap: var(--ozz-gutter);
  }

  .pv-toc__list li {
    break-inside: avoid;
  }

  .pv-body {
    grid-column: 1 / -1;
  }
}

@media (max-width: 599px) {
  .pv-toc__list {
    columns: 1;
  }

  .pv-section {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 6px;
  }
}
