/* Citas */
.editor-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  color: #555;
  margin: 1em 0;
  font-style: italic;
}

/* Enlaces */
.editor-content a, .editor-content a * {
  color: var(--day-footer-bg) !important;
  text-decoration: underline;
}
.editor-content a:hover, .editor-content a *:hover {
  color: var(--day-primary) !important;
}

/* Imágenes */
.editor-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1em auto;
}

/* Tablas */
.editor-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
}
.editor-content th,
.editor-content td {
  border: 1px solid #ddd;
  padding: 0.5em;
  text-align: left;
}
.editor-content th {
  background-color: #f7f7f7;
  font-weight: bold;
}

/* Separadores */
.editor-content hr {
  border: none;
  border-top: 1px solid #ccc;
  margin: 2em 0;
}

/* Párrafos */
.editor-content p {
  margin: 0.5em 0;
}
/* === LISTAS TinyMCE (con soporte para niveles anidados) === */
.editor-content ul,
.editor-content ol {
  margin: 1em 0 1em 2em !important;
  padding-left: 2em !important;
  list-style: none !important; /* Eliminamos el estilo nativo */
}

/* --- Nivel 1: principal --- */
.editor-content ul > li::before {
  content: "•";
  color: currentColor;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1.5em;
}

.editor-content ol {
  counter-reset: list-counter;
}

.editor-content ol > li {
  counter-increment: list-counter;
}

.editor-content ol > li::before {
  content: counter(list-counter) ".";
  color: currentColor;
  font-weight: bold;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
}

/* --- Nivel 2: anidado --- */
.editor-content ul ul > li::before {
  content: "◦"; /* círculo vacío */
  color: #666;
  font-weight: normal;
  width: 1em;
  margin-left: -1.5em;
  display: inline-block;
}

.editor-content ol ol {
  counter-reset: sub-counter;
}

.editor-content ol ol > li {
  counter-increment: sub-counter;
}

.editor-content ol ol > li::before {
  content: counter(sub-counter, lower-alpha) ")";
  color: #666;
  font-weight: normal;
  display: inline-block;
  width: 1.5em;
  margin-left: -1.5em;
}

/* --- Nivel 3: opcional, guiones --- */
.editor-content ul ul ul > li::before {
  content: "–";
  color: #999;
  width: 1em;
  margin-left: -1.5em;
  display: inline-block;
}

/* Evita duplicaciones si ::marker aún existe */
.editor-content li::marker {
  display: none !important;
}

/* Asegura que todos los <li> sean list-item */
.editor-content li {
  display: list-item !important;
  margin-bottom: 0.3em;
}
