/* ═══════════════════════════════════════════════════════════════
   ademori-blog.css — piel para las publicaciones del blog
   Se enqueuea DESPUÉS de style.css. No reemplaza la piel azul:
   usa sus tokens (--dx-*) y solo agrega ritmo de lectura,
   card del listado y el componente de etapas.
   Volver atrás = quitar una línea del functions.php.
   ═══════════════════════════════════════════════════════════════ */

/* ───────────────────────── 1. Ritmo de lectura (single) ─────── */

.single .entry-content,
.single .nv-content-wrap {
    font-size: 1.06rem;
    line-height: 1.78;
    max-width: 72ch;
    color: var(--dx-txt);
}

.single .entry-content > p { margin: 0 0 1.15em; }

.single .entry-content h2 {
    font-size: clamp(1.45rem, 1.9vw, 1.85rem);
    line-height: 1.25;
    letter-spacing: -.01em;
    margin: 2.4em 0 .7em;
    padding-bottom: .35em;
    border-bottom: 1px solid var(--dx-border);
}

.single .entry-content h3 {
    font-size: 1.18rem;
    line-height: 1.35;
    margin: 1.9em 0 .5em;
    color: var(--dx-accent);
}

.single .entry-content ul,
.single .entry-content ol { padding-left: 1.35em; margin: 0 0 1.2em; }
.single .entry-content li { margin-bottom: .45em; }

.single .entry-content blockquote {
    margin: 2em 0;
    padding: 1.1em 1.3em;
    border-left: 3px solid var(--dx-accent);
    background: var(--dx-card2);
    border-radius: 0 10px 10px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    font-style: normal;
}
.single .entry-content blockquote cite {
    display: block;
    margin-top: .55em;
    font-size: .84rem;
    font-style: normal;
    letter-spacing: .02em;
    color: var(--dx-dim);
}

/* ───────────────────────── 2. Etapas del ensayo ─────────────── */

.adm-etapa {
    position: relative;
    margin: 2.6em 0;
    padding: 1.5em 1.5em 1.2em;
    background: linear-gradient(160deg, var(--dx-card2), var(--dx-card));
    border: 1px solid var(--dx-border);
    border-radius: 14px;
}

.adm-etapa-cab {
    display: block;
    margin-bottom: .7em;
}

.adm-etapa-titulo {
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dx-txt);
    margin: 0;
    padding-left: .7em;
    border-left: 3px solid var(--dx-accent);
}

.adm-etapa > p:last-child { margin-bottom: 0; }

/* ───────────────────────── 3. Tipo de afirmación ────────────── */

.adm-tipo {
    display: inline-flex;
    align-items: center;
    gap: .38em;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .2em .6em;
    border-radius: 4px;
    vertical-align: baseline;
    white-space: nowrap;
}
.adm-tipo svg { width: 13px; height: 13px; }

/* glifo de cada tipo: SVG data-URI, sin markup ni emoji */
.adm-tipo::before {
    content: "";
    width: 13px;
    height: 13px;
    background-repeat: no-repeat;
    background-size: contain;
    flex: 0 0 auto;
}
.adm-tipo--hecho::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.adm-tipo--hipotesis::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2392400e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3Cpath d='M10.3 3.9L1.8 18a2 2 0 001.7 3h17a2 2 0 001.7-3L13.7 3.9a2 2 0 00-3.4 0z'/%3E%3C/svg%3E");
}
.adm-tipo--reflexion::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 00-3.5 10.9V17h7v-3.1A6 6 0 0012 3z'/%3E%3Cpath d='M9 21h6'/%3E%3C/svg%3E");
}

/* dato verificado */
.adm-tipo--hecho { color: #0f766e; background: rgba(13,148,136,.14); border: 1px solid rgba(13,148,136,.38); }
/* hipótesis */
.adm-tipo--hipotesis { color: #92400e; background: rgba(180,83,9,.14); border: 1px solid rgba(180,83,9,.38); }
/* reflexión personal */
.adm-tipo--reflexion { color: #4338ca; background: rgba(99,102,241,.16); border: 1px solid rgba(99,102,241,.4); }

[data-theme="light"] .adm-tipo--hecho     { color: #0b6b60; }
[data-theme="light"] .adm-tipo--hipotesis { color: #8a4a06; }
[data-theme="light"] .adm-tipo--reflexion { color: #3b31b8; }

/* ───────────────────────── 4. Caja de tesis ─────────────────── */

.adm-tesis {
    margin: 0 0 1.8em;
    padding: 1.15em 1.35em;
    background: var(--dx-card2);
    border: 1px solid var(--dx-border);
    border-left: 3px solid var(--dx-warn);
    border-radius: 0 12px 12px 0;
    font-size: .98rem;
    line-height: 1.7;
}
.adm-tesis strong { color: var(--dx-txt); }
.adm-tesis ol { margin: .5em 0 0; padding-left: 1.25em; }
.adm-tesis li { margin-bottom: .3em; }

/* ───────────────────────── 5. Índice ────────────────────────── */

.adm-indice {
    margin: 0 0 2.4em;
    padding: 1.1em 1.3em;
    border: 1px solid var(--dx-border);
    border-radius: 12px;
    columns: 2;
    column-gap: 2em;
}
.adm-indice p {
    column-span: all;
    margin: 0 0 .5em;
    font-size: .86rem;
    font-weight: 700;
    color: var(--dx-dim);
}
.adm-indice a {
    display: flex;
    gap: .55em;
    align-items: baseline;
    break-inside: avoid;
    padding: .22em 0;
    font-size: .95rem;
    text-decoration: none;
}
.adm-indice-n {
    flex: 0 0 1.35em;
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    color: var(--dx-dim);
    text-align: right;
}
.adm-indice a:hover .adm-indice-n { color: var(--dx-accent); }
.adm-indice-n::after { content: "."; }
.adm-indice a:hover { text-decoration: underline; }

/* ───────────────────────── 6. Figuras y tablas ──────────────── */

.adm-fig {
    margin: 2.2em 0;
    overflow-x: auto;
}
.adm-fig svg { display: block; width: 100%; height: auto; }
.adm-fig figcaption {
    margin-top: .7em;
    font-size: .82rem;
    line-height: 1.5;
    color: var(--dx-dim);
}
.adm-fig--ancho {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 max(1rem, calc(50vw - 640px));
}

.adm-tabla-envoltura { margin: 2em 0; overflow-x: auto; }
.adm-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: .95rem;
}
.adm-tabla thead th {
    text-align: left;
    font-size: .74rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--dx-dim);
    padding: .7em .8em;
    border-bottom: 1px solid var(--dx-border);
}
.adm-tabla td {
    padding: .75em .8em;
    border-bottom: 1px solid var(--dx-border);
    vertical-align: top;
}
.adm-tabla tbody tr:hover td { background: var(--dx-card2); }

/* escalera de niveles: el número se ve antes que el nombre */
.adm-nivel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.5em;
    height: 1.5em;
    margin-right: .5em;
    border-radius: 50%;
    background: var(--dx-accent);
    color: var(--dx-bg);
    font-size: .78rem;
    font-weight: 800;
    vertical-align: middle;
}

/* datos que siguen siendo texto: se rompen, no ensanchan */
.single .entry-content ol.fuentes,
.single .entry-content ol.fuentes li,
.single .entry-content a[href^="http"] {
    overflow-wrap: anywhere;
}

/* ───────────────────────── 7. Card del listado ──────────────── */
/* El tema usa layout-covers: imagen de fondo + texto encima.
   Se respeta ese layout; solo se le da marco, elevación y un velo
   más parejo para que el texto se lea sobre cualquier portada. */

.blog .posts-wrapper article,
.archive .posts-wrapper article {
    border: 1px solid var(--dx-border);
    border-radius: 16px;
    overflow: hidden;
    background: var(--dx-card);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.blog .posts-wrapper article:hover,
.archive .posts-wrapper article:hover {
    border-color: var(--dx-accent);
    box-shadow: 0 12px 32px var(--dx-glow);
    transform: translateY(-2px);
}
.blog .posts-wrapper .cover-post .cover-overlay,
.archive .posts-wrapper .cover-post .cover-overlay {
    background: linear-gradient(180deg,
        rgba(11,15,25,.20) 0%,
        rgba(11,15,25,.72) 55%,
        rgba(11,15,25,.94) 100%);
}
.blog .posts-wrapper .entry-summary p,
.archive .posts-wrapper .entry-summary p {
    font-size: .95rem;
    line-height: 1.6;
    color: var(--dx-dim);
}
.blog .posts-wrapper .entry-title,
.archive .posts-wrapper .entry-title {
    font-size: 1.18rem;
    line-height: 1.3;
    letter-spacing: -.01em;
}

/* ───────────────────────── 8. Móvil ─────────────────────────── */

@media (max-width: 700px) {
    .single .entry-content { font-size: 1.02rem; line-height: 1.74; }
    .adm-etapa { padding: 1.15em 1em 1em; margin: 2em 0; border-radius: 12px; }
    .adm-etapa-cab { flex-wrap: wrap; gap: .45em; }
    .adm-indice { columns: 1; }
    .adm-tabla { font-size: .88rem; }
    .adm-tabla th, .adm-tabla td { padding: .55em .5em; }
    .adm-tipo { font-size: .66rem; }
}
