/* Asegura que los elementos base tengan estilos consistentes *//* ========== ESTILOS BASE ========== */
.ck-content {
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    word-wrap: break-word;
}

/* ========== ENCABEZADOS ========== */
.ck-content h2 {
    font-size: 1.8em;
    margin: 1.5em 0 0.8em;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.3em;
}

.ck-content h3 {
    font-size: 1.5em;
    margin: 1.3em 0 0.7em;
}

/* ========== CITAS/BLOCKQUOTES ========== */
.ck-content blockquote {
    border-left: 4px solid #cccccc;
    margin: 1.5em 0;
    padding: 1em 2em;
    background-color: #f8f9fa;
    font-style: italic;
    color: #555;
}

.ck-content blockquote p:last-child {
    margin-bottom: 0;
}

/* Atribución de cita */
.ck-content .quote-author {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: bold;
    margin-top: 1em;
    color: #666;
}
/* ========== VIDEOS EMBEBIDOS ========== */
.ck-content .media {
    position: relative;
    margin: 2em 0;
}

/* Contenedor responsivo para oembed */
.ck-content .media-oembed {
    position: relative;
    padding-bottom: 56.25%; /* Relación 16:9 */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.ck-content .media-oembed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
/* ========== TABLAS ========== */
.ck-content table {
    border-collapse: collapse;
    margin: 1em 0;
    width: 100%;
}

.ck-content td, .ck-content th {
    border: 1px solid #ddd;
    padding: 8px;
}

/* ========== IMÁGENES Y FIGURAS ========== */
.ck-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2em auto;
    border-radius: 4px;
}

.ck-content figure {
    margin: 2em 0;
    text-align: center;
}

.ck-content figcaption {
    font-style: italic;
    color: #666;
    margin-top: 0.5em;
}

/* Alineaciones de imágenes */
.image-style-align-left {
    float: left;
    margin: 1em 1.5em 1em 0;
    max-width: 50%;
}

.image-style-align-center {
    margin: 1em auto;
    display: block;
}

.image-style-align-right {
    float: right;
    margin: 1em 0 1em 1.5em;
    max-width: 50%;
}

#pagination {
    clear: both;
}

/* ========== LISTAS ========== */
.ck-content ul,
.ck-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.ck-content li {
    margin-bottom: 0.5em;
}

/* ========== LÍNEAS HORIZONTALES ========== */
.ck-content hr {
    border: 0;
    height: 1px;
    background: #ddd;
    margin: 3em 0;
}

/* ========== ENLACES ========== */
.ck-content a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.3s;
}

.ck-content a:hover {
    color: #2a6db0;
    text-decoration: underline;
}

/* ========== TEXTO RESALTADO ========== */


.ck-content em {
    font-style: italic;
    color: #555;
}

/* ========== AJUSTES RESPONSIVOS ========== */
@media (max-width: 768px) {
    .ck-content {
        padding: 15px;
        font-size: 15px;
    }

    .image-style-align-left,
    .image-style-align-right {
        float: none;
        margin: 1em auto;
        max-width: 100%;
    }
}