/* Contenedor principal del contenido de la página */
.text_container {
    max-width: 820px;
    margin: 0 auto;
    padding: 60px 24px 80px;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.7;
    word-wrap: break-word;
}

.text_container h1,
.text_container h2,
.text_container h3,
.text_container h4,
.text_container h5,
.text_container h6 {
    color: #111827;
    line-height: 1.25;
    margin: 1.8em 0 0.6em;
    font-weight: 700;
}

.text_container h1 { font-size: 2.25rem; }
.text_container h2 { font-size: 1.85rem; }
.text_container h3 { font-size: 1.5rem; }
.text_container h4 { font-size: 1.25rem; }
.text_container h5 { font-size: 1.1rem; }
.text_container h6 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }

.text_container > :first-child { margin-top: 0; }

.text_container p {
    margin: 0 0 1.1em;
}

.text_container a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.15s ease;
}
.text_container a:hover { color: #1d4ed8; }

.text_container ul,
.text_container ol {
    padding-left: 1.6rem;
    margin: 0 0 1.2em;
}
.text_container ul { list-style: disc; }
.text_container ol { list-style: decimal; }
.text_container li { margin-bottom: 0.35em; }

.text_container blockquote {
    margin: 1.5em 0;
    padding: 0.6em 1.2em;
    border-left: 4px solid #d1d5db;
    color: #4b5563;
    font-style: italic;
    background: #f9fafb;
    border-radius: 0 6px 6px 0;
}

.text_container pre,
.text_container code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9em;
}
.text_container code {
    background: #f3f4f6;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
.text_container pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 1em 1.2em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.4em 0;
}
.text_container pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

.text_container hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2.4em 0;
}

.text_container img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.text_container iframe,
.text_container .ql-video {
    display: block;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin: 1.5em auto;
    border: 0;
    border-radius: 10px;
}

.text_container table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.text_container th,
.text_container td {
    border: 1px solid #e5e7eb;
    padding: 0.6em 0.9em;
    text-align: left;
}
.text_container th {
    background: #f9fafb;
    font-weight: 600;
}

/* Quill: tamaños y alineaciones */
.text_container .ql-size-small  { font-size: 0.85em; }
.text_container .ql-size-large  { font-size: 1.4em; }
.text_container .ql-size-huge   { font-size: 2em; }

.text_container .ql-align-center  { text-align: center; }
.text_container .ql-align-right   { text-align: right; }
.text_container .ql-align-justify { text-align: justify; }

/* Quill: indentación */
.text_container .ql-indent-1 { padding-left: 2em; }
.text_container .ql-indent-2 { padding-left: 4em; }
.text_container .ql-indent-3 { padding-left: 6em; }
.text_container .ql-indent-4 { padding-left: 8em; }
.text_container .ql-indent-5 { padding-left: 10em; }
.text_container .ql-indent-6 { padding-left: 12em; }
.text_container .ql-indent-7 { padding-left: 14em; }
.text_container .ql-indent-8 { padding-left: 16em; }

/* Quill: dirección RTL */
.text_container .ql-direction-rtl { direction: rtl; text-align: right; }

/* Quill: fuentes */
.text_container .ql-font-serif      { font-family: Georgia, 'Times New Roman', serif; }
.text_container .ql-font-monospace  { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

@media (max-width: 640px) {
    .text_container {
        padding: 40px 18px 60px;
        font-size: 16px;
    }
    .text_container h1 { font-size: 1.85rem; }
    .text_container h2 { font-size: 1.5rem; }
    .text_container h3 { font-size: 1.25rem; }
}
