/* ═══════════════════════════════════════
   RCAD PRO — global.css v3.2
   Tipografía + ancho de lectura optimizado AdSense
   ═══════════════════════════════════════ */

/* ── Título del artículo ───────────────── */
.default-header .title {
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* ═══════════════════════════════════════
   ANCHO DE LECTURA — estrategia AdSense
   ───────────────────────────────────────
   .entry-content NO lleva max-width para que
   los banners (.banner del padre + nuestros
   .rcad-ad-inline) ocupen el contenedor completo
   y tengan fill-width nativo de AdSense.
   El ancho de 740px se aplica SOLO a los
   elementos de texto (p, h2, h3, ul, etc.)
   mediante selectores > (hijo directo).
   ═══════════════════════════════════════ */

.entry-content {
    font-size: 16.8px;
    line-height: 1.75;
    color: #374151;
    /* Centrar el bloque de contenido en el contenedor del post */
    margin-left: auto;
    margin-right: auto;
}

/* Ancho óptimo de lectura = 740px
   (entre 700–760 recomendados para columnas con AdSense;
   740 deja margen para caracteres largos en español). */
.entry-content > p,
.entry-content > h1,
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6,
.entry-content > ul,
.entry-content > ol,
.entry-content > blockquote,
.entry-content > table,
.entry-content > dl,
.entry-content > figure:not(.wp-block-image),
.entry-content > .wp-block-separator,
.entry-content > .wp-block-quote,
.entry-content > .wp-block-table,
.entry-content > .wp-block-list,
.entry-content > .wp-block-paragraph {
    max-width: var(--content-width, 760px);
    margin-left: auto;
    margin-right: auto;
}

/* Imágenes de ancho completo siguen completas */
.entry-content > .wp-block-image.alignwide,
.entry-content > .wp-block-image.alignfull,
.entry-content > .alignwide,
.entry-content > .alignfull {
    max-width: 100%;
    width: 100%;
}

/* ── PÁRRAFOS ──────────────────────────── */
.entry-content p {
    margin-bottom: 1.25em;
}

/* ── LISTAS ────────────────────────────── */
.entry-content ul,
.entry-content ol {
    margin-bottom: 1.3em;
    padding-left: 1.4em;
    line-height: 1.7;
}

.entry-content > ul,
.entry-content > ol,
.entry-content .wp-block-list {
    margin-top: .75em;
    margin-bottom: 1.6em;
    padding: 18px 22px 18px 28px;
    border: 1px solid #e7ebf1;
    border-radius: 14px;
    background: #fff;
}

.entry-content li {
    margin: 0 0 .72em;
    padding-left: .18em;
}

.entry-content li:last-child {
    margin-bottom: 0;
}

.entry-content ul li::marker {
    color: #f6a800;
    font-size: 1.05em;
}

.entry-content ol {
    counter-reset: rcad-list;
}

.entry-content ol > li {
    padding-left: .25em;
}

.entry-content ol > li::marker {
    color: #071b46;
    font-weight: 800;
}

/* Tables */
.entry-content > table,
.entry-content .wp-block-table {
    width: min(100%, var(--content-width, 760px));
    margin-top: 1.5em;
    margin-bottom: 2em;
}

.entry-content .wp-block-table {
    overflow-x: auto;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(7, 27, 70, .05);
}

.entry-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid #e3e8f0;
    border-radius: 14px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    line-height: 1.55;
    box-shadow: 0 10px 28px rgba(7, 27, 70, .05);
}

.entry-content .wp-block-table table {
    min-width: 620px;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.entry-content table caption {
    padding: 10px 0;
    color: #667085;
    font-size: 13px;
    text-align: left;
}

.entry-content table th,
.entry-content table td {
    padding: 14px 16px;
    border: 0;
    border-right: 1px solid #e7ebf1;
    border-bottom: 1px solid #e7ebf1;
    vertical-align: top;
    text-align: left;
}

.entry-content table th:last-child,
.entry-content table td:last-child {
    border-right: 0;
}

.entry-content table tr:last-child td {
    border-bottom: 0;
}

.entry-content table thead th,
.entry-content table tbody tr:first-child th {
    background: #f8fafc;
    color: #071b46;
    font-weight: 800;
}

.entry-content table tbody tr:nth-child(even) td {
    background: #fcfdff;
}

.entry-content table tbody tr:hover td {
    background: #fff8e8;
}

.entry-content table strong {
    color: #071b46;
}

/* ── H1 ────────────────────────────────── */
.entry-content h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: .6em;
}

/* ── H2 ────────────────────────────────── */
.entry-content h2 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #111827;
    margin-top: 2em;
    margin-bottom: .55em;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* ── H3 ────────────────────────────────── */
.entry-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 1.5em;
    margin-bottom: .35em;
    line-height: 1.35;
}

/* ── H4 ────────────────────────────────── */
.entry-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    margin-top: 1.3em;
}

/* ── Énfasis ───────────────────────────── */
.entry-content strong {
    font-weight: 600;
    color: #111827;
}

/* ── Enlaces ───────────────────────────── */
.entry-content a {
    color: #2563eb;
    text-decoration: none;
    border-bottom: 1px solid rgba(37, 99, 235, .35);
    transition: all .15s ease;
}
.entry-content a:hover {
    border-bottom: 1px solid #2563eb;
}

/* Los enlaces dentro de anuncios NO deben tener borde azul */
.entry-content .rcad-ad-inline a,
.entry-content .banner a {
    border-bottom: none;
}

/* ── Separador ─────────────────────────── */
.wp-block-separator {
    border: none;
    border-top: 1px solid #e5e7eb;
    margin: 32px 0;
}

/* ── Neutralizar SVG de búsqueda Orbital ── */
.btn-search-form svg,
.search-submit svg,
.search-form svg {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    display: inline-block !important;
}

/* ── Logo centrado ─────────────────────────────────────────── */
.site-header .container.header-inner {
    justify-content: center !important;
}
.site-header .site-logo {
    margin: 0 auto !important;
}
.site-header .site-logo img {
    max-width: 450px !important;
    height: auto !important;
}
@media (max-width: 999px) {
    .site-header .site-logo {
        text-align: center !important;
    }
    .site-header .site-logo img {
        max-width: 320px !important;
        height: auto !important;
    }
}
