/* 1) Encabezado principal (fuera del contenido) → SI en negro */
#content-wrapper section#main > header.page-header .page-title {
  color: #000 !important;
}

/* 2) Encabezado repetido dentro del contenido (.rte-content) → restaurar color normal del tema */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content h1.page-title {
  color: inherit !important;  /* hereda el estilo global (ej: rojo u otro definido por el tema) */
  border-left: none;          /* quitar bordes si se aplicaban */
  padding-left: 0;
  margin-top: 1rem;
  margin-bottom: 1rem;
}


/* Forzar h1 de Términos y condiciones a negro */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .page-header .page-title,
#content-wrapper section#main > section#content.page-cms.page-cms-2 h1.page-title {
  color: #000 !important;
}

/* ====== ESTILOS SOLO PARA "Términos y condiciones" ======
   Scope: #content-wrapper > #main > #content.page-cms.page-cms-2
   No tocará nada fuera de esta ruta.
========================================================== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 {
  --pm-green: #a6ff00;   /* verde fosforito de la marca */
  --pm-text: #333;
  --pm-black: #000;
  --pm-muted: #f3f3f3;
  --pm-border: #e9e9e9;

  font-family: 'Poppins','Roboto Condensed',sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--pm-text);
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Normaliza solo dentro del scope */
#content-wrapper section#main > section#content.page-cms.page-cms-2,
#content-wrapper section#main > section#content.page-cms.page-cms-2 * {
  box-sizing: border-box;
}

/* ===== Título principal de la página ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .page-header .page-title {
  font-family: 'Roboto Condensed',sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--pm-black);
  text-transform: uppercase;
  border-left: 6px solid var(--pm-green);
  padding-left: .8rem;
  margin: 0 0 2rem 0;
}

/* ===== Tipografía dentro del contenido ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content p {
  margin: 0 0 1rem 0;
  text-align: justify;
  color: var(--pm-text);
}

#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content h2,
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content h3 {
  font-family: 'Roboto Condensed',sans-serif;
  font-weight: 600;
  color: var(--pm-black);
  line-height: 1.4;
  margin: 2rem 0 .8rem 0;
}

#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content h2 {
  font-size: 1.4rem;
  border-bottom: 2px solid var(--pm-border);
  padding-bottom: .3rem;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content h3 {
  font-size: 1.2rem;
}

/* ===== Enlaces (estilo corporativo) ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content a {
  color: var(--pm-black);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--pm-green);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content a:hover {
  color: var(--pm-green);
  border-color: var(--pm-black);
}

/* ===== Listas ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ul,
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol {
  margin: 1rem 0 1.5rem 1.5rem;
  padding: 0;
}

#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content li {
  margin: 0 0 .6rem 0;
  line-height: 1.6;
}

/* Color de viñetas/números */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ul li::marker,
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol li::marker {
  color: var(--pm-green);
  font-weight: 700;
}

/* Fix importado de Word: números desalineados con H2/P */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol {
  list-style-position: inside;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol > li {
  white-space: normal !important;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol > li > h2,
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content ol > li > p[role="presentation"] {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  vertical-align: baseline;
}

/* ===== Separadores y bloques destacados ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content hr {
  border: 0;
  border-top: 2px solid var(--pm-border);
  margin: 2rem 0;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content .highlight {
  background: var(--pm-muted);
  border-left: 4px solid var(--pm-green);
  padding: 1rem;
  margin: 1.5rem 0;
}

/* ===== Tablas (si las hubiera) ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem 0;
  border: 1px solid var(--pm-border);
  font-size: .95rem;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content th,
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content td {
  padding: .6rem .75rem;
  border: 1px solid var(--pm-border);
  text-align: left;
}
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content th {
  background: var(--pm-muted);
  color: var(--pm-black);
  font-weight: 700;
}

/* ===== Ajustes de imágenes (si las hay) ===== */
#content-wrapper section#main > section#content.page-cms.page-cms-2 .rte-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 8px;
}