/* Shift In · Tema hijo. Blog, entradas y páginas con la dirección visual de la portada.
   Se apoya en landing.css (base, cabecera, pie, formularios) y experiencia.css (paleta, ex-kicker, ex-head, ex-btn). */

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Cabecera de página: banda oscura con la luz de la portada ---------- */

.sl-page-hero {
    position: relative; isolation: isolate; overflow: hidden;
    padding: calc(var(--sl-header-h) + 96px) 0 88px;
    background: var(--ex-graphite); color: rgba(243, 245, 248, .62);
}
.sl-page-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.sl-page-hero__bg::before, .sl-page-hero__bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(60px); }
.sl-page-hero__bg::before { width: 760px; height: 760px; left: -240px; top: -420px; background: radial-gradient(circle, rgba(126, 155, 216, .5), transparent 65%); animation: sl-float-a 24s ease-in-out infinite; }
.sl-page-hero__bg::after { width: 680px; height: 680px; right: -220px; bottom: -520px; background: radial-gradient(circle, rgba(233, 118, 95, .34), transparent 65%); animation: sl-float-b 28s ease-in-out infinite; }
/* landing.css anula los márgenes de los párrafos (.sl-body p): estos se declaran con más especificidad */
.ex-body .sl-page-hero .ex-kicker { margin-bottom: 22px; }
.sl-page-hero .ex-kicker a { color: inherit; text-decoration: none; }
.sl-page-hero .ex-kicker a:hover { text-decoration: underline; text-underline-offset: 4px; }
.ex-body .sl-page-hero__title {
    max-width: 15ch; color: var(--ex-stone);
    font-size: clamp(42px, 6.2vw, 88px); font-weight: 560; line-height: 1; letter-spacing: -.055em;
}
.ex-body .sl-page-hero__title em { font-weight: 200; color: inherit; opacity: .6; letter-spacing: -.06em; }
.ex-body .sl-page-hero__lead { max-width: 560px; margin-top: 24px; font-size: 19px; line-height: 1.55; }
.ex-body .sl-page-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-family: var(--sl-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 245, 248, .55); }
.sl-page-hero__meta > * + *::before { content: '·'; margin-right: 22px; opacity: .6; }
.sl-page-hero .ex-actions { margin-top: 40px; }

.sl-page-hero--compact { padding-bottom: 72px; }
.sl-page-hero--compact .sl-page-hero__title { max-width: 20ch; font-size: clamp(38px, 5vw, 68px); }
.sl-page-hero--post { padding-bottom: 168px; }
.ex-body .sl-page-hero--post .sl-page-hero__title { max-width: 22ch; font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.sl-page-hero--full { min-height: 88svh; display: flex; align-items: center; }

/* Filtros del blog */
.sl-page-hero__tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 32px; margin-top: 52px; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sl-chips a {
    padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(243, 245, 248, .82);
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: background-color .25s, color .25s;
}
.sl-chips a:hover { background: rgba(255, 255, 255, .12); color: var(--ex-stone); }
.sl-chips a[aria-current] { background: var(--ex-stone); color: var(--ex-ink); box-shadow: none; }
.sl-chips--light a { color: var(--ex-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--sl-line); }
.sl-chips--light a:hover { background: var(--ex-stone-2); color: var(--ex-ink); }

.sl-search {
    display: flex; align-items: center; gap: 6px; width: min(340px, 100%); padding: 5px 5px 5px 20px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: box-shadow .25s, background-color .25s;
}
.sl-search:focus-within { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4); }
.sl-search input[type='search'] { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: 0; background: transparent; color: var(--ex-stone); font: inherit; font-size: 15px; }
.sl-search input::placeholder { color: rgba(243, 245, 248, .5); }
.sl-search input::-webkit-search-cancel-button { display: none; }
.sl-search button { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--ex-ink); background: var(--ex-stone); transition: transform .3s var(--sl-ease); }
.sl-search button:hover { transform: scale(1.06); }
.sl-search svg { width: 18px; height: 18px; }
.sl-search--light { margin: 32px auto 0; background: #fff; box-shadow: inset 0 0 0 1px var(--sl-line); }
.sl-search--light:focus-within { background: #fff; box-shadow: inset 0 0 0 1px var(--ex-ink); }
.sl-search--light input[type='search'] { color: var(--ex-ink); }
.sl-search--light input::placeholder { color: var(--ex-muted); }
.sl-search--light button { color: var(--ex-stone); background: var(--ex-ink); }

/* ---------- Listado ---------- */

.sl-posts { padding: 96px 0 128px; background: var(--ex-stone); }
.sl-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 64px 32px; }

.sl-post-card { position: relative; display: flex; flex-direction: column; gap: 22px; }
.sl-post-card__media {
    position: relative; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 22px; background: var(--ex-stone-2);
    box-shadow: 0 1px 0 rgba(11, 12, 16, .06), 0 30px 60px -40px rgba(11, 12, 16, .5);
}
.ex-body .sl-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--sl-ease); }
.sl-post-card:hover .sl-post-card__media img { transform: scale(1.045); }
.sl-post-card__body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.sl-post-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-family: var(--sl-font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ex-muted); }
.sl-post-card__meta > :first-child { color: var(--ex-ink); font-weight: 600; }
.sl-post-card__meta > * + *::before { content: '·'; margin-right: 12px; opacity: .6; }
.ex-body .sl-post-card__title { font-size: 22px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; color: var(--ex-ink); }
.sl-post-card__title a {
    text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--sl-ease);
}
.sl-post-card__title a::after { content: ''; position: absolute; inset: 0; border-radius: 22px; }
.sl-post-card:hover .sl-post-card__title a { background-size: 100% 1px; }
.sl-post-card__excerpt { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; line-height: 1.6; color: var(--ex-muted); }
.sl-post-card__more { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 600; color: var(--ex-ink); }
.sl-post-card__more span { display: inline-block; transition: transform .35s var(--sl-ease); }
.sl-post-card:hover .sl-post-card__more span { transform: translateX(5px); }
.sl-post-card :focus-visible { outline: none; }
.sl-post-card:focus-within { outline: 3px solid var(--sl-cyan); outline-offset: 8px; border-radius: 24px; }

.sl-post-card--featured {
    grid-column: 1 / -1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center;
    padding-bottom: 64px; border-bottom: 1px solid var(--sl-line);
}
.sl-post-card--featured .sl-post-card__media { border-radius: 28px; box-shadow: 0 1px 0 rgba(11, 12, 16, .06), 0 60px 100px -50px rgba(11, 12, 16, .6); }
.sl-post-card--featured .sl-post-card__body { gap: 22px; }
.ex-body .sl-post-card--featured .sl-post-card__title { font-size: clamp(30px, 3.2vw, 46px); font-weight: 560; line-height: 1.04; letter-spacing: -.05em; }
.sl-post-card--featured .sl-post-card__excerpt { -webkit-line-clamp: 4; font-size: 18px; }
.sl-post-card--featured .sl-post-card__title a::after { border-radius: 28px; }

.sl-pagination { margin-top: 80px; }
.sl-pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.sl-pagination .page-numbers {
    display: inline-grid; place-items: center; min-width: 46px; height: 46px; padding: 0 18px; border-radius: 999px;
    text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ex-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--sl-line);
    transition: background-color .25s, color .25s;
}
.sl-pagination a.page-numbers:hover { background: var(--ex-stone-2); }
.sl-pagination .page-numbers.current { color: var(--ex-stone); background: var(--ex-ink); box-shadow: none; }
.sl-pagination .dots { background: none; box-shadow: none; }

.sl-empty { max-width: 560px; margin: 0 auto; padding: 24px 0; text-align: center; }
.ex-body .sl-empty h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 560; letter-spacing: -.05em; }
.ex-body .sl-empty h2 em { font-weight: 200; color: inherit; opacity: .6; }
.ex-body .sl-empty p { margin-top: 16px; color: var(--ex-muted); }

/* ---------- Entrada ---------- */

.sl-progress {
    position: fixed; z-index: 60; inset: 0 0 auto; height: 3px; transform-origin: 0 50%; transform: scaleX(0);
    background: linear-gradient(90deg, var(--ex-dawn), var(--ex-dusk));
    animation: sl-progress linear both; animation-timeline: scroll(root);
}
.admin-bar .sl-progress { top: 32px; }
@supports not (animation-timeline: scroll()) { .sl-progress { display: none; } }
@keyframes sl-progress { to { transform: scaleX(1); } }

.sl-article__main { padding-bottom: 128px; background: var(--ex-stone); }
.sl-article__media { position: relative; z-index: 1; width: min(1080px, 100% - 40px); margin: -112px auto 0; }
.ex-body .sl-article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: 0 1px 0 rgba(11, 12, 16, .08), 0 70px 120px -50px rgba(11, 12, 16, .7); }

.sl-prose { width: min(720px, 100% - 40px); margin: 0 auto; padding-top: 80px; font-size: 19px; line-height: 1.75; color: var(--sl-text); }
.ex-body .sl-prose p { margin: 0 0 1.4em; }
.ex-body .sl-prose h2 { margin: 2em 0 .6em; font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.12; letter-spacing: -.04em; }
.ex-body .sl-prose h3 { margin: 1.8em 0 .5em; font-size: 24px; font-weight: 600; letter-spacing: -.03em; }
.ex-body .sl-prose h4 { margin: 1.6em 0 .4em; color: var(--ex-ink); font-size: 19px; font-weight: 600; }
.ex-body .sl-prose > :first-child { margin-top: 0; }
.sl-prose strong { color: var(--ex-ink); font-weight: 600; }
.ex-body .sl-prose a { color: var(--ex-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--ex-dawn); transition: text-decoration-color .2s; }
.ex-body .sl-prose a:hover { text-decoration-color: currentColor; }
.sl-prose ul { margin: 0 0 1.6em; padding: 0; list-style: none; }
.sl-prose ul li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.sl-prose ul li::before { content: ''; position: absolute; left: 6px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--ex-ink); }
/* Contenido pegado del editor clásico: elementos envoltorio sin viñeta y listas anidadas */
.sl-prose li[style*='list-style-type: none'] { padding-left: 0; margin-bottom: 0; }
.sl-prose li[style*='list-style-type: none']::before { display: none; }
.sl-prose li:empty, .sl-prose ul:empty { display: none; }
.sl-prose li > ul, .sl-prose li > ol { margin: .55em 0 0; }
/* En páginas, un elemento que solo envuelve otra lista con viñetas no muestra la suya */
.sl-prose--page li:has(> ul:first-child li:not([style*='list-style-type: none'])) { padding-left: 0; margin-bottom: 0; }
.sl-prose--page li:has(> ul:first-child li:not([style*='list-style-type: none']))::before { display: none; }
.sl-prose ol { margin: 0 0 1.6em; padding-left: 1.4em; }
.sl-prose ol li { margin-bottom: .55em; padding-left: 6px; }
.sl-prose ol li::marker { font-family: var(--sl-font-mono); font-size: .85em; color: var(--ex-muted); }
.sl-prose blockquote {
    position: relative; margin: 2.2em 0; padding: 40px 44px 40px 92px; border-radius: 24px;
    color: var(--ex-stone); background: var(--ex-graphite); font-size: 21px; line-height: 1.55; letter-spacing: -.015em;
    box-shadow: 0 50px 90px -50px rgba(11, 12, 16, .8);
}
.sl-prose blockquote::before { content: '“'; position: absolute; left: 32px; top: 18px; font-size: 88px; line-height: 1; font-weight: 600; color: var(--ex-dawn); }
.ex-body .sl-prose blockquote p { margin: 0; color: inherit; }
.sl-prose blockquote strong { color: inherit; }
.sl-prose blockquote cite { display: block; margin-top: 16px; font-family: var(--sl-font-mono); font-size: 12px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; opacity: .6; }
.sl-prose figure { margin: 2.4em 0; }
.ex-body .sl-prose img { height: auto; border-radius: 20px; }
.ex-body .sl-prose .aligncenter, .ex-body .sl-prose .aligncenter img { margin-inline: auto; }
.sl-prose figcaption { margin-top: 12px; font-size: 14px; color: var(--ex-muted); text-align: center; }
.sl-prose .alignwide, .sl-prose .alignfull { width: min(1080px, 100vw - 40px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.sl-prose hr { height: 1px; margin: 3em 0; border: 0; background: var(--sl-line); }
.sl-prose table { width: 100%; margin: 2em 0; border-collapse: collapse; font-size: 16px; }
.sl-prose th, .sl-prose td { padding: 12px 14px; border-bottom: 1px solid var(--sl-line); text-align: left; }
.sl-prose th { color: var(--ex-ink); font-weight: 600; }
.sl-prose code { font-family: var(--sl-font-mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--ex-stone-2); }

.sl-article__footer {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    width: min(720px, 100% - 40px); margin: 64px auto 0; padding-top: 32px; border-top: 1px solid var(--sl-line);
}
.sl-share { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.sl-share span { margin-right: 6px; font-family: var(--sl-font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ex-muted); }
.sl-share a { padding: 9px 16px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ex-ink); background: #fff; box-shadow: inset 0 0 0 1px var(--sl-line); transition: background-color .25s, color .25s; }
.sl-share a:hover { color: var(--ex-stone); background: var(--ex-ink); }

.sl-related { padding: 128px 0; background: var(--ex-stone-2); }
.sl-related .ex-head { margin-bottom: 64px; }

/* Comentarios: la tarjeta y los campos son los del alta (.sl-form) */
.sl-comments { width: min(720px, 100% - 40px); margin: 80px auto 0; }
.ex-body .sl-comments__title { margin-bottom: 28px; font-size: 28px; font-weight: 600; letter-spacing: -.035em; }
.sl-comments__list, .sl-comments__list .children { margin: 0; padding: 0; list-style: none; }
.sl-comments__list .children { margin-left: 32px; }
.sl-comments__list .comment-body { margin-bottom: 16px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: 0 1px 0 var(--sl-line); font-size: 16px; }
.sl-comments__list .comment-author { display: flex; align-items: center; gap: 12px; color: var(--ex-ink); font-weight: 600; }
.ex-body .sl-comments__list .avatar { border-radius: 50%; }
.sl-comments__list .says { display: none; }
.sl-comments__list .comment-metadata { margin: 4px 0 12px 52px; font-family: var(--sl-font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.sl-comments__list .comment-metadata a { color: var(--ex-muted); text-decoration: none; }
.sl-comments__list .reply a { font-size: 14px; font-weight: 600; color: var(--ex-ink); }
.sl-comments .sl-form { padding: 40px; }
.ex-body .sl-comments .sl-form h3 { margin-bottom: 8px; }
.ex-body .sl-comments .sl-form .comment-notes, .ex-body .sl-comments .sl-form .logged-in-as { margin-bottom: 20px; font-size: 14px; color: var(--ex-muted); }
.sl-comments .sl-form .logged-in-as a { color: var(--ex-ink); }
.sl-comments .sl-form textarea.form-control { resize: vertical; min-height: 140px; }
.sl-comments .sl-form .form-submit { margin-top: 8px; }
.sl-comments .sl-form #cancel-comment-reply-link { margin-left: 12px; font-size: 14px; font-weight: 500; color: var(--ex-muted); }

/* ---------- Llamada a la acción final ---------- */

.sl-cta-band { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0; background: var(--ex-graphite); border-top: 1px solid var(--ex-line); color: var(--ex-stone); }
.sl-cta-band .ex-head { margin-bottom: 0; }
.sl-cta-band .ex-actions { margin-top: 40px; }

/* Páginas de contenido con WPBakery: sus filas usan márgenes negativos de la rejilla */
.sl-prose .vc_row { margin-left: 0; margin-right: 0; }
.sl-prose .wpb_content_element { margin-bottom: 1.4em; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .sl-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 28px; }
    .sl-post-card--featured { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 782px) {
    .admin-bar .sl-progress { top: 46px; }
}
@media (max-width: 760px) {
    .sl-page-hero { padding: calc(var(--sl-header-h) + 56px) 0 64px; }
    .sl-page-hero--post { padding-bottom: 120px; }
    .ex-body .sl-page-hero__lead { font-size: 17px; }
    .sl-page-hero__meta > * + *::before { margin-right: 14px; }
    .ex-body .sl-page-hero__meta { gap: 6px 14px; }
    .sl-page-hero__tools { margin-top: 36px; }
    .sl-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding: 2px 20px; scrollbar-width: none; }
    .sl-chips a { flex: none; }
    .sl-search { width: 100%; }
    .sl-posts { padding: 64px 0 96px; }
    .sl-posts__grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .sl-post-card--featured { padding-bottom: 48px; }
    .sl-article__media { margin-top: -80px; }
    .ex-body .sl-article__media img { border-radius: 20px; }
    .sl-prose { padding-top: 56px; font-size: 17.5px; }
    .sl-prose blockquote { padding: 64px 24px 28px; font-size: 18px; }
    .sl-prose blockquote::before { left: 22px; top: 10px; font-size: 72px; }
    .sl-share { margin-left: 0; }
    .sl-related, .sl-cta-band { padding: 96px 0; }
    .sl-comments .sl-form { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .sl-page-hero__bg::before, .sl-page-hero__bg::after, .sl-progress { animation: none; }
    .sl-progress { display: none; }
}
