/* Uno es lo que muestra · Relatos */
body.uelm {
	--ink: #0B0B0D;
	--panel: #111113;
	--line: #232327;
	--line2: #2D2D2F;
	--txt: #D4D4D8;
	--muted: #A1A1AA;
	--dim: #8B8B93;
	--hi: #F4F4F5;
	--red: #E5484D;
	--red-soft: #F07175;
	--red-btn: #C8333A;
	--serif: 'Shippori Mincho', 'Hiragino Mincho ProN', 'Yu Mincho', Georgia, serif;
	--read: 'Literata', Georgia, 'Times New Roman', serif;
	--sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
	margin: 0;
	background: var(--ink);
	color: var(--txt);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
body.uelm *, body.uelm *::before, body.uelm *::after { box-sizing: border-box; }
body.uelm a { color: #EDEDEF; text-decoration: none; transition: color .15s; }
body.uelm a:hover { color: var(--red-soft); }
body.uelm a:focus-visible, body.uelm button:focus-visible, body.uelm input:focus-visible { outline: 2px solid var(--red-soft); outline-offset: 3px; }
body.uelm img { max-width: 100%; height: auto; display: block; }
.uelm-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.uelm-skip:focus { position: fixed !important; top: 12px; left: 12px; width: auto; height: auto; clip: auto; z-index: 100; background: #fff; color: #000 !important; padding: 8px 14px; }
.uelm-page { min-height: 100vh; }
body.uelm #side-nav, body.uelm .side-nav-overlay { display: none !important; }

/* Cabecera */
.uelm-top { max-width: 1200px; margin: 0 auto; padding: 22px 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid #1F1F22; }
.uelm-brand { display: flex; align-items: center; gap: 12px; }
.uelm-brand__mark { font-family: var(--serif); font-size: 26px; color: var(--red); }
.uelm-brand__name { font-family: var(--serif); font-size: 18px; color: #EDEDEF; }
.uelm-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; letter-spacing: .04em; }
.uelm-nav a[aria-current] { color: var(--red-soft); }

/* Progreso de lectura */
.uelm-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: #1C1C1F; z-index: 50; }
.uelm-progress span { display: block; height: 100%; width: 0; background: var(--red); }
body.admin-bar .uelm-progress { top: 32px; }

/* Etiquetas */
.uelm-kicker { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--red-soft); }
.uelm-kicker--gris { color: var(--muted); }
.uelm-label { margin: 0; font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.uelm-badge { border: 1px solid #3A3A3E; border-radius: 999px; padding: 1px 10px; font-size: 12px; }

/* Entrada: cabecera */
.uelm-hero { max-width: 780px; margin: 0 auto; padding: 96px 32px 56px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; }
.uelm-hero__title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 7vw, 76px); line-height: 1.06; color: var(--hi); text-wrap: balance; }
.uelm-hero__dek { margin: 0; max-width: 580px; font-family: var(--read); font-style: italic; font-size: 21px; line-height: 1.5; color: var(--muted); }
.uelm-hero__meta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 22px; font-size: 14px; color: var(--muted); }
.uelm-hero__meta strong { color: #EDEDEF; font-weight: 500; }
.uelm-cover { margin: 0 auto; max-width: 1120px; padding: 0 32px; }
body.uelm .uelm-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line); }

/* Entrada: texto */
.uelm-prosa { max-width: 680px; margin: 0 auto; padding: 88px 32px 24px; font-family: var(--read); font-size: 20px; line-height: 1.75; color: var(--txt); overflow-wrap: break-word; }
.uelm-prosa p { margin: 0 0 1.35em; }
.uelm-prosa > p:first-of-type::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: .82; padding: .08em .12em 0 0; color: #EDEDEF; }
.uelm-prosa h2, .uelm-prosa h3, .uelm-prosa h4 { font-family: var(--serif); font-weight: 500; color: var(--hi); line-height: 1.25; margin: 2.2em 0 .9em; }
.uelm-prosa h2 { font-size: 30px; } .uelm-prosa h3 { font-size: 24px; } .uelm-prosa h4 { font-size: 20px; }
.uelm-prosa .uelm-voz { margin: 2.6em 0 1.2em; font-size: 15px; letter-spacing: .32em; text-transform: uppercase; color: var(--red); text-align: center; }
.uelm-prosa > .uelm-voz:first-child { margin-top: 0; }
.uelm-prosa .uelm-voz + p::first-letter { font-family: var(--serif); float: left; font-size: 4.2em; line-height: .82; padding: .08em .12em 0 0; color: #EDEDEF; }
.uelm-prosa strong, .uelm-prosa b { color: #EDEDEF; font-weight: 500; }
.uelm-prosa em { color: #E4E4E7; }
.uelm-prosa a { color: #EDEDEF; text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; }
.uelm-prosa blockquote { margin: 2.2em -40px; padding: 0; border: 0; font-family: var(--serif); font-size: 30px; line-height: 1.4; color: var(--hi); text-align: center; text-wrap: balance; }
.uelm-prosa blockquote p { margin: 0; }
.uelm-prosa hr { border: 0; margin: 2.6em 0; text-align: center; height: auto; background: none; }
.uelm-prosa hr::after { content: '◆   ◆   ◆'; white-space: pre; color: #4A4A50; font-size: 14px; }
.uelm-prosa img, .uelm-prosa figure { margin: 2em 0; max-width: 100%; height: auto; }
.uelm-prosa figure img { margin: 0; }
.uelm-prosa figcaption { font-family: var(--sans); font-size: 13px; color: var(--dim); margin-top: 8px; text-align: center; }
.uelm-prosa ul, .uelm-prosa ol { padding-left: 1.2em; margin: 0 0 1.35em; }
.uelm-prosa iframe, .uelm-prosa video { max-width: 100%; }
.uelm-firma { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 72px; }
.uelm-firma__mark { font-family: var(--serif); font-size: 30px; color: var(--red); }
.uelm-firma__name { font-family: var(--read); font-style: italic; font-size: 19px; color: var(--muted); }

/* Autor */
.uelm-autor { max-width: 680px; margin: 72px auto 0; padding: 44px 32px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 745px) { .uelm-autor { padding-left: 0; padding-right: 0; } }
.uelm-autor__avatar { width: 72px; height: 72px; flex: none; border-radius: 999px; background: #18181B; border: 1px solid var(--line2); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; color: #EDEDEF; }
.uelm-autor__body { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.uelm-autor__body p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.65; }
.uelm-autor__body a { font-size: 14px; color: var(--red-soft); }

/* Suscripción */
.uelm-sub { max-width: 640px; margin: 72px auto 0; padding: 0 32px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.uelm-sub h2, .uelm-subbox h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 34px; line-height: 1.2; color: var(--hi); }
.uelm-sub p, .uelm-subbox p { margin: 0; font-family: var(--read); font-size: 18px; line-height: 1.6; color: var(--muted); }
.uelm-kit { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 480px; margin-top: 8px; }
.uelm-kit input { flex: 1 1 240px; min-height: 48px; background: #141415; border: 1px solid var(--line2); border-radius: 999px; padding: 0 20px; color: #EDEDEF; font: inherit; font-size: 15px; }
.uelm-kit input::placeholder, .uelm-search input::placeholder { color: var(--dim); }
.uelm-kit__msg { flex-basis: 100%; margin: 0; font-family: var(--sans) !important; font-size: 14px !important; color: var(--muted); min-height: 1em; text-align: left; }
.uelm-sub .uelm-kit__msg { text-align: center; }

/* Botones */
.uelm-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--line2); background: #141415; color: #EDEDEF !important; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.uelm-btn:hover { border-color: #4A4A50; }
.uelm-btn--rojo { background: var(--red-btn); border-color: var(--red-btn); color: #fff !important; font-weight: 600; }
.uelm-btn--rojo:hover { background: #B32A31; border-color: #B32A31; }
.uelm-btn--linea { background: transparent; }

/* Rejillas y tarjetas */
.uelm-more, .uelm-section { max-width: 1120px; margin: 104px auto 0; padding: 0 32px; }
.uelm-more .uelm-label { margin-bottom: 32px; }
.uelm-grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 32px 24px; }
.uelm-card { display: flex; flex-direction: column; gap: 14px; }
.uelm-card__img { display: block; aspect-ratio: 3 / 2; background: #141416; border: 1px solid var(--line); overflow: hidden; }
body.uelm .uelm-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.uelm-card__img { display: flex; align-items: center; justify-content: center; }
.uelm-card__mark { font-family: var(--serif); font-size: 44px; color: #3A3A3E; }
.uelm-card:hover .uelm-card__img img { transform: scale(1.03); }
.uelm-card__meta { font-size: 13px; color: var(--muted); }
.uelm-card__title { font-family: var(--serif); font-size: 26px; line-height: 1.2; color: var(--hi); }
.uelm-book { display: flex; gap: 22px; background: var(--panel); border: 1px solid #2A2A2E; border-radius: 12px; padding: 22px; align-self: start; }
.uelm-book__cover { width: 110px; flex: none; aspect-ratio: 2 / 3; background: #1C1C1F; overflow: hidden; }
body.uelm .uelm-book__cover img { width: 100%; height: 100%; object-fit: cover; }
.uelm-book__body { display: flex; flex-direction: column; gap: 10px; }
.uelm-book__title { font-family: var(--serif); font-size: 26px; color: var(--hi); }
.uelm-book__line { font-family: var(--read); font-size: 15px; line-height: 1.55; color: var(--muted); }
.uelm-book__price { font-size: 14px; color: #EDEDEF; margin-top: auto; }

/* Navegación entre entradas */
.uelm-postnav { max-width: 1120px; margin: 96px auto 0; padding: 0 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.uelm-postnav a { border-top: 1px solid var(--line2); padding-top: 24px; display: flex; flex-direction: column; gap: 8px; }
.uelm-postnav--right { text-align: right; }
.uelm-postnav__dir { font-size: 13px; color: var(--muted); }
.uelm-postnav__title { font-family: var(--serif); font-size: 22px; color: var(--hi); }

/* Archivo */
.uelm-ahero { max-width: 1120px; margin: 0 auto; padding: 96px 32px 24px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.uelm-ahero__text { display: flex; flex-direction: column; gap: 20px; max-width: 620px; }
.uelm-ahero h1 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(52px, 8vw, 92px); line-height: 1; color: var(--hi); }
.uelm-ahero p { margin: 0; font-family: var(--read); font-size: 20px; line-height: 1.6; color: var(--muted); }
.uelm-ahero__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.uelm-search { display: flex; gap: 8px; }
.uelm-search input { min-height: 48px; width: 230px; background: #141415; border: 1px solid var(--line2); border-radius: 999px; padding: 0 20px; color: #EDEDEF; font: inherit; font-size: 15px; }
.uelm-feat { max-width: 1120px; margin: 64px auto 0; padding: 0 32px; }
.uelm-feat > a { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 40px; align-items: center; }
.uelm-feat__img { display: block; aspect-ratio: 16 / 10; background: #141416; border: 1px solid var(--line); overflow: hidden; }
body.uelm .uelm-feat__img img { width: 100%; height: 100%; object-fit: cover; }
.uelm-feat__body { display: flex; flex-direction: column; gap: 18px; }
.uelm-feat__title { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); line-height: 1.1; color: var(--hi); }
.uelm-feat__excerpt { font-family: var(--read); font-size: 18px; line-height: 1.65; color: var(--muted); }
.uelm-feat__meta { font-size: 14px; color: var(--muted); }
.uelm-section__head { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 28px; }
.uelm-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); column-gap: 48px; margin-top: -28px; }
.uelm-row { display: flex; flex-direction: column; gap: 6px; padding: 24px 0; border-bottom: 1px solid #1C1C1F; }
.uelm-row__title { font-family: var(--serif); font-size: 23px; line-height: 1.25; color: var(--hi); }
.uelm-row:hover .uelm-row__title { color: var(--red-soft); }
.uelm-row__meta { font-size: 13px; color: var(--muted); }
.uelm-row__excerpt { font-family: var(--read); font-size: 16px; line-height: 1.6; color: var(--muted); }
.uelm-rows--notas { grid-template-columns: minmax(0, 760px); }
.uelm-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 40px; }
.uelm-pager .page-numbers { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line2); border-radius: 999px; padding: 0 14px; font-size: 14px; color: var(--txt); }
.uelm-pager .current { background: #EDEDEF; color: var(--ink); border-color: #EDEDEF; }
.uelm-pager .dots { border: 0; }
.uelm-years { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.uelm-years a { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--serif); font-size: 24px; }
.uelm-years small { font-family: var(--sans); font-size: 12px; color: var(--dim); }
.uelm-subbox { background: var(--panel); border: 1px solid #2A2A2E; border-radius: 12px; padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; }
.uelm-subbox > div { display: flex; flex-direction: column; gap: 10px; max-width: 520px; }
.uelm-subbox .uelm-kit { flex: 1 1 360px; max-width: 460px; margin: 0; }
.uelm-subbox h2 { font-size: 30px; }

/* Pie */
.uelm-foot { max-width: 1120px; margin: 120px auto 0; padding: 32px; border-top: 1px solid #1F1F22; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 13px; color: var(--dim); }
.uelm-foot__links { display: flex; gap: 20px; }
body.uelm .uelm-foot a { color: var(--dim); }

@media (max-width: 720px) {
	.uelm-top { padding: 16px 20px; }
	.uelm-nav { gap: 6px 18px; font-size: 13px; }
	.uelm-hero { padding: 64px 20px 40px; }
	.uelm-cover, .uelm-more, .uelm-section, .uelm-feat, .uelm-postnav, .uelm-ahero, .uelm-sub { padding-left: 20px; padding-right: 20px; }
	.uelm-prosa { padding: 56px 22px 16px; font-size: 19px; }
	.uelm-prosa blockquote { margin: 1.8em 0; font-size: 25px; }
	.uelm-autor { margin-left: 20px; margin-right: 20px; padding: 36px 0; }
	.uelm-search { flex: 1 1 100%; }
	.uelm-search input { flex: 1; width: auto; }
	.uelm-subbox { padding: 28px 22px; }
	.uelm-postnav--right { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .uelm-card__img img { transition: none; } }

/* Instagram */
.uelm-ig { display: inline-flex; align-items: center; gap: 6px; }
.uelm-ig svg { flex: none; }
.uelm-autor__links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
body.uelm .uelm-autor__links .uelm-ig { color: var(--muted); font-size: 14px; }
body.uelm .uelm-autor__links .uelm-ig:hover { color: var(--red-soft); }
