/* ═══════════════════════════════════════
   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: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* 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;
    line-height: 1.7;
}

.entry-content ul {
    list-style: none;
    padding-left: 0;
}

.entry-content ol {
    padding-left: 1.4em;
}

.entry-content > ul,
.entry-content > ol,
.entry-content .wp-block-list {
    margin-top: .75em;
    margin-bottom: 1.6em;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.entry-content > ul,
.entry-content ul.wp-block-list {
    padding: 0 0 0 .35em;
}

.entry-content > ol,
.entry-content ol.wp-block-list {
    padding-left: 1.55em;
}

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

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

.entry-content ul > li {
    position: relative;
    padding-left: 1.35em;
}

.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: .12em;
    top: .72em;
    width: .42em;
    height: .42em;
    border-radius: 999px;
    background: #f6a800;
    box-shadow: 0 0 0 3px rgba(246, 168, 0, .14);
}

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

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

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

body.single .entry-content > ul,
body.single .entry-content > ol,
body.single .entry-content .wp-block-list,
.entry-content > ul.wp-block-list,
.entry-content > ol.wp-block-list {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

body.single .entry-content > ul,
.entry-content > ul.wp-block-list,
.entry-content ul.wp-block-list {
    width: calc(100% - 1rem);
    padding: 0 0 0 .65rem !important;
}

body.single .entry-content > ol,
.entry-content > ol.wp-block-list,
.entry-content ol.wp-block-list {
    width: calc(100% - 1rem);
    padding-left: 1.65rem !important;
}

body.single .entry-content ul > li {
    padding-left: 1.45em !important;
}

body.single .entry-content ul > li::before {
    left: .18em;
}

/* 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: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
}

.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: none;
}

.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;
    }
}

/* Contact form shortcode */
.rcad-contact-form-wrap {
    max-width: 1040px;
    margin: 28px auto;
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(320px, 1.15fr);
    gap: 22px;
    align-items: stretch;
}

.rcad-contact-form-info,
.rcad-contact-form {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.rcad-contact-form-info {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rcad-contact-form-kicker {
    color: #f59e0b;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.rcad-contact-form-info h2 {
    margin: 0 0 12px;
    color: #071b46;
    font-size: 1.7rem;
    line-height: 1.25;
}

.rcad-contact-form-info p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.rcad-contact-form-points {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.rcad-contact-form-points span {
    padding: 10px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #0f172a;
    font-weight: 700;
    font-size: .92rem;
}

.rcad-contact-form {
    padding: 24px;
}

.rcad-contact-form label {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    color: #0f172a;
    font-weight: 800;
    font-size: .92rem;
}

.rcad-contact-form input,
.rcad-contact-form select,
.rcad-contact-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 500;
    padding: 12px 14px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.rcad-contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.rcad-contact-form input:focus,
.rcad-contact-form select:focus,
.rcad-contact-form textarea:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .18);
}

.rcad-contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.rcad-contact-form-privacy {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: flex-start;
    gap: 10px !important;
    color: #475569 !important;
    font-weight: 600 !important;
    line-height: 1.45;
}

.rcad-contact-form-privacy input {
    width: 18px;
    min-width: 18px;
    height: 18px;
    margin-top: 2px;
    padding: 0;
}

.rcad-contact-form-submit {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: #f59e0b;
    color: #071b46;
    cursor: pointer;
    font-weight: 900;
    font-size: 1rem;
    transition: transform .15s ease, background .15s ease;
}

.rcad-contact-form-submit:hover {
    background: #f8b22c;
    transform: translateY(-1px);
}

.rcad-contact-form-notice {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.rcad-contact-form-notice.is-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.rcad-contact-form-notice.is-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.rcad-contact-form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .rcad-contact-form-wrap {
        grid-template-columns: 1fr;
        margin: 20px 0;
        gap: 14px;
    }

    .rcad-contact-form-info,
    .rcad-contact-form {
        padding: 18px;
    }

    .rcad-contact-form-info h2 {
        font-size: 1.35rem;
    }

    .rcad-contact-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
