html {
  height: auto;
  overflow-y: auto;
  scroll-snap-type: none;
}

.privacy-page {
  min-height: 100vh;
  overflow: visible;
  background: var(--beige, #f3f7f5);
  color: var(--text, #17343d);
}

.privacy-page .snap-sec--footer {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  min-height: 0;
}

/* ── MAIN LAYOUT ────────────────────────────────────────────────────────── */
.privacy-main {
  position: relative;
  min-height: calc(100vh - 84px);
  box-sizing: border-box;
  padding: 124px clamp(20px, 4vw, 64px) 52px;
}

/* ── HERO DE LA PÁGINA ──────────────────────────────────────────────────── */
.privacy-hero {
  max-width: 860px;
  margin: 0 auto 24px;
  text-align: center;
}

.privacy-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--amber, #eb7a01);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.privacy-hero .page-hero-title {
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  color: var(--teal-dark, #024f52) !important;
  margin: 4px 0 10px !important;
}

.privacy-hero .page-hero-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--amber, #eb7a01);
  margin: 8px auto 0;
  border-radius: 2px;
}

.privacy-intro {
  max-width: 780px;
  margin: 0 auto;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.privacy-intro b,
.privacy-intro strong {
  color: var(--teal-dark, #024f52);
  font-weight: 750;
}

.privacy-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px auto 0;
  padding: 4px 14px;
  border: 1px solid rgba(235, 122, 1, 0.3);
  border-radius: 999px;
  background: #fff8ef;
  color: #9b5208;
  font-size: 12px;
  font-weight: 700;
}

/* ── GRID PRINCIPAL ─────────────────────────────────────────────────────── */
.privacy-layout {
  display: grid;
  grid-template-columns: minmax(260px, 290px) minmax(0, 850px);
  align-items: start;
  justify-content: center;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
}

/* ── ÍNDICE STICKY LATERAL ──────────────────────────────────────────────── */
.privacy-index {
  position: sticky;
  top: 96px;
  border: 1px solid rgba(2, 79, 82, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(2, 79, 82, 0.05);
  overflow: hidden;
  position: sticky;
  z-index: 10;
}

/* Acento superior de marketing (sin border-top continuo) */
.privacy-index::before {
  content: '';
  position: absolute;
  top: 0;
  left: 18px;
  width: 55px;
  height: 3.5px;
  background: var(--amber, #eb7a01);
  border-radius: 0 0 3px 3px;
  z-index: 2;
}

.privacy-index-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(2, 79, 82, 0.08);
  color: var(--teal-dark, #024f52);
  font-size: 12.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.privacy-index nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  max-height: calc(100vh - 175px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(2, 79, 82, 0.2) transparent;
}

.privacy-index a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.privacy-index a span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-light, #e0edea);
  color: var(--teal-dark, #024f52);
  font-weight: 800;
  font-size: 12px;
  transition: all 0.18s ease;
}

.privacy-index a:hover {
  background: #f0f7f5;
  color: var(--teal-dark, #024f52);
  transform: translateX(2px);
}

.privacy-index a.is-active {
  background: var(--teal-light, #e0edea);
  color: var(--teal-dark, #024f52);
  font-weight: 750;
  box-shadow: inset 3px 0 0 var(--teal, #036469);
}

.privacy-index a.is-active span {
  background: var(--teal, #036469);
  color: #ffffff;
}

/* ── DOCUMENTO LEGAL Y TARJETAS ─────────────────────────────────────────── */
.privacy-document {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.privacy-section {
  position: relative;
  scroll-margin-top: 96px;
  padding: 24px 28px;
  border: 1px solid rgba(2, 79, 82, 0.11);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(2, 79, 82, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

/* Acento superior de marketing en cada card (sin border-top continuo) */
.privacy-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  width: 55px;
  height: 3.5px;
  background: var(--amber, #eb7a01);
  border-radius: 0 0 3px 3px;
  z-index: 2;
}

.privacy-section header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(2, 79, 82, 0.08);
}

.privacy-section header span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--teal-light, #e0edea);
  color: var(--teal-dark, #024f52);
  font-size: 14px;
  font-weight: 800;
}

.privacy-section h2 {
  margin: 0;
  color: var(--teal-dark, #024f52) !important;
  font-family: var(--font-display, var(--font-body));
  font-size: 24px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em;
}

/* Botón de reproducción de audio */
.privacy-listen {
  position: relative;
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(2, 79, 82, 0.16);
  border-radius: 50%;
  background: #f4f9f7;
  color: var(--teal, #036469);
  font: inherit;
  cursor: pointer;
  transition: all 0.18s ease;
}

.privacy-listen i {
  font-size: 1.1rem;
}

.privacy-listen b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.privacy-listen:hover {
  border-color: var(--teal, #036469);
  background: var(--teal, #036469);
  color: #ffffff;
  transform: scale(1.06);
}

.privacy-listen.is-speaking {
  border-color: var(--teal, #036469);
  background: var(--teal, #036469);
  color: #ffffff;
  box-shadow: 0 0 0 3px var(--teal-light, #e0edea);
}

.privacy-listen.is-paused {
  border-color: var(--amber, #eb7a01);
  background: #fff5e8;
  color: var(--amber-dark, #b55d00);
}

/* ── CONTENIDO DEL APARTADO (EVITAR QUE SE VEA PEREZOSO) ─────────────────── */
.privacy-section-content {
  color: #374151;
  font-size: 14px;
  line-height: 1.68;
}

.privacy-section-content p {
  margin: 0 0 10px;
}

.privacy-section-content p:first-child {
  margin-top: 0;
}

.privacy-section-content p:last-child {
  margin-bottom: 0;
}

.privacy-section-content b,
.privacy-section-content strong {
  color: var(--teal-dark, #024f52);
  font-weight: 750;
}

.privacy-section-content .rt-teal,
.privacy-section-content span.rt-teal {
  color: var(--teal-dark, #024f52);
  font-weight: 750;
}

/* Viñetas personalizadas institucionales en lugar de puntos negros */
.privacy-section-content ul,
.privacy-section-content ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 10px 0 14px !important;
  display: grid !important;
  gap: 7px !important;
}

.privacy-section-content li {
  position: relative !important;
  padding-left: 22px !important;
  line-height: 1.55 !important;
  font-size: 13.5px !important;
  color: #374151 !important;
}

.privacy-section-content li::before {
  content: '' !important;
  position: absolute !important;
  left: 4px !important;
  top: 7px !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: var(--teal, #036469) !important;
  box-shadow: 0 0 0 3px var(--teal-light, #e0edea) !important;
}

.privacy-section-content li strong,
.privacy-section-content li b {
  color: var(--teal-dark, #024f52);
}

/* Bloques destacados para textos de apoyo o advertencias */
.privacy-section-content blockquote {
  background: #f0f7f5;
  border-left: 3px solid var(--teal, #036469);
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  margin: 14px 0;
  color: #2d3748;
  font-size: 13.5px;
}

/* ── ESTADOS VACÍOS ─────────────────────────────────────────────────────── */
.privacy-empty {
  max-width: 760px;
  margin: auto;
  padding: 55px 30px;
  border: 1px dashed rgba(2, 79, 82, 0.2);
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  width: 100%;
  min-height: 330px;
  display: grid;
  align-content: center;
  justify-items: center;
}

.privacy-layout:has(.privacy-empty) {
  grid-template-columns: minmax(0, 760px);
}

.privacy-empty i {
  color: var(--teal, #036469);
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.privacy-page .footer-trust {
  border-top: 1px solid rgba(2, 79, 82, 0.1);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .privacy-main {
    padding-top: 96px;
    padding-bottom: 40px;
  }
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .privacy-index {
    position: static;
    min-height: 0;
  }
  .privacy-index nav {
    display: grid;
    min-height: 0;
    max-height: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .privacy-main {
    padding-inline: 14px;
    padding-bottom: 28px;
  }
  .privacy-index nav {
    grid-template-columns: 1fr;
  }
  .privacy-section {
    border-radius: 14px;
    padding: 18px 20px;
  }
  .privacy-section header {
    grid-template-columns: 32px minmax(0, 1fr);
  }
  .privacy-section header span {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }
  .privacy-section h2 {
    font-size: 20px !important;
  }
  .privacy-listen {
    grid-column: 1 / -1;
    justify-self: start;
    margin-left: 44px;
  }
  .privacy-empty {
    min-height: 270px;
  }
}
