/* ================================================================== */
/*  Artículos Financieros — Estilos Front-end                         */
/*  Se carga solo en single posts. Diseñado para no conflictar con    */
/*  ningún theme (selectores prefijados con .af- o .af-tabla).        */
/* ================================================================== */

/* ------------------------------------------------------------------ */
/*  CAJA DE PUNTOS CLAVE / LO MÁS DESTACADO                           */
/* ------------------------------------------------------------------ */

.af-puntos-clave {
    background: linear-gradient(135deg, #f0f9ff 0%, #e8f4fd 100%);
    border: 1px solid #b8dff8;
    border-left: 5px solid #2271b1;
    border-radius: 8px;
    padding: 20px 24px;
    margin: 24px 0 28px 0;
    font-size: 15px;
    line-height: 1.7;
}

.af-puntos-clave h3 {
    margin: 0 0 12px 0;
    padding: 0;
    font-size: 17px;
    color: #1a4570;
    font-weight: 700;
    border: none;
}

.af-puntos-clave ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.af-puntos-clave li {
    position: relative;
    padding: 4px 0 4px 20px;
    color: #1e3a5f;
}

.af-puntos-clave li::before {
    content: "▸";
    position: absolute;
    left: 0;
    color: #2271b1;
    font-weight: bold;
}

.af-puntos-clave strong {
    color: #0d47a1;
}

/* ------------------------------------------------------------------ */
/*  ÍNDICE DE CONTENIDOS (TOC)                                          */
/* ------------------------------------------------------------------ */

.af-toc {
    background: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 18px 22px;
    margin: 0 0 28px 0;
    font-size: 14px;
}

.af-toc h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 15px;
    color: #333;
    font-weight: 600;
    border: none;
}

.af-toc ul {
    margin: 0;
    padding-left: 18px;
    list-style: decimal;
}

.af-toc li {
    padding: 3px 0;
    line-height: 1.5;
}

.af-toc a {
    color: #2271b1;
    text-decoration: none;
    transition: color 0.15s;
}

.af-toc a:hover {
    color: #135e96;
    text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/*  TABLAS COMPARATIVAS                                                 */
/* ------------------------------------------------------------------ */

.af-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: auto;
    display: block;
}

@media (min-width: 768px) {
    .af-tabla {
        display: table;
    }
}

.af-tabla thead {
    background: #1a4570;
    color: #fff;
}

.af-tabla th {
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.af-tabla td {
    padding: 10px 14px;
    border-bottom: 1px solid #e8e8e8;
    vertical-align: top;
}

.af-tabla tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.af-tabla tbody tr:hover {
    background: #eef5fb;
}

.af-tabla strong {
    color: #0d47a1;
}

/* ------------------------------------------------------------------ */
/*  FECHA DE ACTUALIZACIÓN                                              */
/* ------------------------------------------------------------------ */

.af-actualizado {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 13px;
    color: #555;
    margin-top: 32px;
    border-left: 3px solid #2271b1;
}

.af-actualizado strong {
    color: #333;
}

/* ------------------------------------------------------------------ */
/*  IMAGEN DE CABECERA                                                  */
/* ------------------------------------------------------------------ */

.af-imagen-cabecera {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 24px;
    border-radius: 8px;
}

/* ------------------------------------------------------------------ */
/*  ZONA USUARIO (editor)                                               */
/* ------------------------------------------------------------------ */

.af-zona-usuario {
    margin-top: 24px;
}

/* ------------------------------------------------------------------ */
/*  FAQ SECTION                                                         */
/* ------------------------------------------------------------------ */

h2#preguntas-frecuentes + * {
    font-size: 15px;
}

/* ------------------------------------------------------------------ */
/*  SECCIÓN EXPERTOS                                                    */
/* ------------------------------------------------------------------ */

.af-expertos {
    margin: 36px 0;
}

.af-cita-experto {
    position: relative;
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    border-radius: 0 6px 6px 0;
    padding: 20px 24px 16px 28px;
    margin: 20px 0;
    font-style: normal;
}

.af-cita-experto::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 56px;
    color: #2271b1;
    opacity: 0.25;
    line-height: 1;
    font-family: Georgia, serif;
}

.af-cita-experto p {
    font-size: 16px;
    line-height: 1.7;
    color: #1d2327;
    margin: 0 0 12px;
    font-style: italic;
}

.af-cita-experto cite {
    display: block;
    font-size: 13px;
    color: #50575e;
    font-style: normal;
    font-weight: 600;
}

.af-cita-experto cite::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #2271b1;
    vertical-align: middle;
    margin-right: 8px;
}

/* Enlazado interno automático */
.af-relacionados {
    margin: 32px 0 0;
    padding: 18px 22px;
    background: #f7f8fa;
    border-left: 4px solid #6c5ce7;
    border-radius: 8px;
}
.af-relacionados h3 {
    margin: 0 0 10px;
    font-size: 1.1em;
}
.af-relacionados ul {
    margin: 0;
    padding-left: 20px;
}
.af-relacionados li {
    margin-bottom: 6px;
}
