﻿/* Aplicar solo dentro del editor de contenido */
.ms-rtestate-field,
.ms-rtestate-write,
.ms-rte-layoutszone-inner,
.ms-rte-wpbox {
  all: revert !important; /* Restablece propiedades alteradas por Tailwind */
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

/* Párrafos */
.ms-rtestate-field p,
.ms-rtestate-write p {
  margin: 0 0 1em 0 !important;
  text-indent: 2em !important;
  line-height: 1.6 !important;
}

/* Listas */
.ms-rtestate-field ul,
.ms-rtestate-write ul,
.ms-rtestate-field ol,
.ms-rtestate-write ol {
  margin: 0 0 1em 2em !important;
  padding-left: 1.2em !important;
  list-style-position: outside !important;
}

.ms-rtestate-field li,
.ms-rtestate-write li {
  margin-bottom: 0.5em !important;
}

/* Encabezados */
.ms-rtestate-field h1,
.ms-rtestate-write h1 {
  font-size: 1.8em !important;
  margin: 1em 0 0.5em 0 !important;
  font-weight: bold !important;
}

.ms-rtestate-field h2,
.ms-rtestate-write h2 {
  font-size: 1.5em !important;
  margin: 1em 0 0.5em 0 !important;
  font-weight: bold !important;
}

.ms-rtestate-field h3,
.ms-rtestate-write h3 {
  font-size: 1.2em !important;
  margin: 1em 0 0.5em 0 !important;
  font-weight: bold !important;
}

/* Tablas */
.ms-rtestate-field table,
.ms-rtestate-write table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  width: auto !important;
  margin-bottom: 1em !important;
  table-layout: auto !important;
}

.ms-rtestate-field th,
.ms-rtestate-write th,
.ms-rtestate-field td,
.ms-rtestate-write td {
  border: 1px solid #ccc !important;
  padding: 6px 10px !important;
  vertical-align: top !important;
  text-align: left !important;
}

/* Blockquote */
.ms-rtestate-field blockquote,
.ms-rtestate-write blockquote {
  margin: 1em 2em !important;
  padding: 0.5em 1em !important;
  border-left: 4px solid #ccc !important;
  color: #555 !important;
  font-style: italic !important;
  background-color: #f9f9f9 !important;
}

/* Imágenes */
.ms-rtestate-field img,
.ms-rtestate-write img {
  max-width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Enlaces */
.ms-rtestate-field a,
.ms-rtestate-write a {
  color: #0066cc !important;
  text-decoration: underline !important;
}

/* Código / Pre */
.ms-rtestate-field pre,
.ms-rtestate-write pre,
.ms-rtestate-field code,
.ms-rtestate-write code {
  font-family: monospace !important;
  background-color: #f4f4f4 !important;
  padding: 0.5em !important;
  display: block !important;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
}

/* Negrita y cursiva */
.ms-rtestate-field strong,
.ms-rtestate-write strong {
  font-weight: bold !important;
}
.ms-rtestate-field em,
.ms-rtestate-write em {
  font-style: italic !important;
}
