/* Flojo de Pelpas v2 – blanco y negro, estilo fanzine. */
:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #444444;
  --soft: #222222;
  --ph-a: #e2e2e2;
  --ph-b: #d4d4d4;
  --f-display: 'Anton', Impact, sans-serif;
  --f-ui: 'Oswald', sans-serif;
  --f-read: 'Source Serif 4', Georgia, serif;
  --aside-w: 280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-read); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
button { font: inherit; }
ul { padding: 0; }

.fdp-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.fdp-skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.fdp-skip:focus { left: 8px; top: 8px; color: #fff; }

/* Piezas comunes */
.fdp-label, .fdp-meta { font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.fdp-label { font-size: 12px; letter-spacing: 0.18em; }
.fdp-tag { display: inline-block; background: var(--ink); color: #fff; font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; padding: 5px 12px; }
.fdp-btn { display: inline-block; border: 3px solid var(--ink); padding: 10px 24px; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.fdp-btn:hover { background: var(--ink); color: #fff; text-decoration: none; }
.fdp-link-under { font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; border-bottom: 2px solid currentColor; }
.fdp-link-under--block { display: inline-block; margin-top: 24px; font-size: 14px; }
.fdp-empty { font-size: 18px; color: var(--soft); }

.fdp-ph { display: block; background: repeating-linear-gradient(135deg, var(--ph-a) 0, var(--ph-a) 12px, var(--ph-b) 12px, var(--ph-b) 24px); border: 2px solid var(--ink); width: 100%; }
.fdp-ph--wide { aspect-ratio: 16 / 9; border-width: 3px; }
.fdp-ph--small { aspect-ratio: 16 / 10; }
.fdp-ph--square { aspect-ratio: 1 / 1; }
.fdp-ph--portrait { aspect-ratio: 3 / 4; }

/* Cabecera completa */
.fdp-masthead { padding-top: 28px; }
.fdp-masthead__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #333; }
.fdp-masthead__title { margin: 10px 0 0; border-top: 6px solid var(--ink); padding-top: 18px; text-align: center; font-family: var(--f-display); font-weight: 400; font-size: clamp(56px, 13vw, 168px); line-height: 0.9; letter-spacing: 0.01em; text-transform: uppercase; }
.fdp-masthead__title a { color: var(--ink); text-decoration: none; }

/* Menú */
.fdp-nav { margin-top: 22px; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 10px 0; }
.fdp-nav__toggle { display: none; width: 100%; background: none; border: 0; padding: 10px; cursor: pointer; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.fdp-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 30px; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.fdp-nav .menu > li { position: relative; }
.fdp-nav .menu a { display: inline-block; padding: 6px 2px; }
.fdp-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; z-index: 20; min-width: 220px; margin: 0; padding: 8px 0; list-style: none; background: var(--paper); border: 2px solid var(--ink); }
.fdp-nav .menu li:hover > .sub-menu, .fdp-nav .menu li:focus-within > .sub-menu { display: block; }
.fdp-nav .sub-menu a { display: block; padding: 8px 16px; font-size: 14px; }

/* Cabecera mínima (lectura) */
.fdp-slimbar { padding-top: 22px; }
.fdp-slimbar__inner { border-top: 6px solid var(--ink); border-bottom: 2px solid var(--ink); padding: 12px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.fdp-slimbar__name { font-family: var(--f-display); font-size: 30px; line-height: 1; letter-spacing: 0.03em; text-transform: uppercase; }
.fdp-slimbar__back { font-family: var(--f-ui); font-size: 14px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }

/* Estructura: principal + lateral */
.fdp-layout { display: flex; flex-wrap: wrap; gap: 0 44px; align-items: flex-start; }
.fdp-main { flex: 1 1 560px; min-width: 0; }
.fdp-aside { flex: 0 0 var(--aside-w); max-width: 100%; padding: 40px 0 56px; display: flex; flex-direction: column; gap: 32px; }

/* Destacado */
.fdp-featured { padding: 40px 0; border-bottom: 2px solid var(--ink); display: flex; flex-direction: column; gap: 16px; }
.fdp-featured__img { display: block; border: 3px solid var(--ink); }
.fdp-featured__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fdp-featured__img .fdp-ph { border: 0; }
.fdp-featured .fdp-tag { align-self: flex-start; }
.fdp-featured__title { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(54px, 8vw, 96px); line-height: 0.95; text-transform: uppercase; }
.fdp-featured__title a:hover { text-decoration: none; }
.fdp-featured__extract { margin: 0; font-size: 20px; line-height: 1.5; color: var(--soft); }
.fdp-featured__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* Últimos textos */
.fdp-latest { padding: 40px 0 56px; }
.fdp-section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 16px; border-bottom: 6px solid var(--ink); padding-bottom: 6px; }
.fdp-section-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: 40px; text-transform: uppercase; letter-spacing: 0.02em; }
.fdp-chips { display: none; flex-wrap: wrap; gap: 8px; }
.js .fdp-chips { display: flex; }
.fdp-chip { display: inline-block; cursor: pointer; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); padding: 7px 14px; min-height: 36px; font-family: var(--f-ui); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.fdp-chip:hover { text-decoration: none; background: #eee; }
.fdp-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }

.fdp-list { list-style: none; margin: 0; padding: 0; }
.fdp-item { padding: 22px 0; border-bottom: 1px solid var(--ink); display: flex; flex-wrap: wrap; gap: 16px 24px; }
.fdp-item[hidden] { display: none; }
.fdp-item__thumb { flex: 0 0 220px; max-width: 100%; display: block; }
.fdp-item__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 2px solid var(--ink); }
.fdp-item__body { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fdp-item__title { margin: 0; font-family: var(--f-ui); font-weight: 600; font-size: 26px; line-height: 1.12; text-transform: uppercase; }
.fdp-item__extract { margin: 0; font-size: 16px; line-height: 1.5; color: var(--soft); }

/* Archivos */
.fdp-archive-head { padding: 40px 0 8px; }
.fdp-archive-head h1 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 7vw, 80px); line-height: 1; text-transform: uppercase; border-bottom: 6px solid var(--ink); padding-bottom: 10px; }
.fdp-archive-head__desc { margin-top: 12px; font-size: 18px; line-height: 1.5; color: var(--soft); }
.fdp-subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.fdp-main--archive .fdp-list { margin-top: 8px; }
.navigation.pagination, .page-numbers { font-family: var(--f-ui); letter-spacing: 0.1em; text-transform: uppercase; }
.navigation.pagination { padding: 28px 0 56px; }
.navigation.pagination .nav-links, ul.page-numbers { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.page-numbers { display: inline-block; border: 2px solid var(--ink); padding: 7px 14px; }
.page-numbers.current { background: var(--ink); color: #fff; }
ul.page-numbers { border: 0; padding: 28px 0 56px; }
ul.page-numbers li .page-numbers { display: inline-block; }

/* Columna lateral */
.fdp-box--rule { border-top: 6px solid var(--ink); padding-top: 14px; }
.fdp-box--dark { background: var(--ink); color: #fff; padding: 22px 20px; }
.fdp-box--dark a { color: #fff; }
.fdp-box__title { margin: 0 0 14px; font-family: var(--f-display); font-weight: 400; font-size: 30px; line-height: 1; text-transform: uppercase; }
.fdp-box--dark .fdp-box__title { font-size: 34px; margin-bottom: 10px; }
.fdp-aside__photo { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 2px solid var(--ink); }
.fdp-aside__text { margin: 14px 0 10px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.fdp-box--dark .fdp-aside__text { color: #ddd; margin: 0 0 14px; font-size: 15px; }
.fdp-aside__list { list-style: none; margin: 0 0 16px; padding: 0; font-family: var(--f-ui); font-size: 16px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.fdp-aside__list li { padding: 9px 0; border-top: 1px solid #555; }
.fdp-aside__quote { margin: 10px 0; font-family: var(--f-display); font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.fdp-aside__ig { display: inline-block; margin-top: 6px; font-family: var(--f-ui); font-size: 20px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }

/* Lectura */
.fdp-article { max-width: 960px; margin: 0 auto; padding: 0 0 48px; }
.fdp-article__head { max-width: 680px; margin: 56px auto 0; }
.fdp-article__title { margin: 18px 0 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(60px, 10vw, 112px); line-height: 0.95; text-transform: uppercase; }
.fdp-article--page .fdp-article__title { font-size: clamp(44px, 7vw, 80px); margin-top: 0; }
.fdp-article__head .fdp-meta { margin-top: 20px; font-size: 14px; letter-spacing: 0.1em; }
.fdp-article__img { margin: 36px 0 0; border: 3px solid var(--ink); }
.fdp-article__img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.fdp-cuerpo { max-width: 680px; margin: 48px auto 0; font-size: 21px; line-height: 1.75; color: #1a1a1a; }
.fdp-cuerpo > * { margin-top: 0; margin-bottom: 1.2em; }
.fdp-cuerpo img { margin-left: auto; margin-right: auto; }
.fdp-cuerpo a { text-decoration: underline; text-underline-offset: 3px; }
.fdp-cuerpo blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--ink); font-style: italic; }
.fdp-cuerpo hr { border: 0; text-align: center; margin: 2.2em 0; }
.fdp-cuerpo hr::before { content: '· · ·'; font-size: 22px; letter-spacing: 0.6em; color: #666; }
.fdp-cuerpo sup { font-family: var(--f-ui); font-size: 0.6em; }
.fdp-cuerpo > p:first-of-type::first-letter { float: left; font-family: var(--f-display); font-size: 5.4em; line-height: 0.82; padding: 0.06em 0.1em 0 0; color: var(--ink); }
.fdp-cuerpo--page { margin-top: 32px; }
.fdp-cuerpo--page > p:first-of-type::first-letter { float: none; font-family: inherit; font-size: inherit; line-height: inherit; padding: 0; }
.fdp-article__foot { max-width: 680px; margin: 56px auto 0; }
.fdp-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.fdp-more { border-top: 6px solid var(--ink); padding-top: 18px; }
.fdp-more__link { display: block; margin-top: 8px; font-family: var(--f-ui); font-weight: 600; font-size: 30px; line-height: 1.12; text-transform: uppercase; }

/* Pie */
.fdp-footer { background: var(--ink); color: #fff; padding: 44px 0 28px; }
.fdp-footer a { color: #fff; }
.fdp-footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.fdp-footer__name { font-family: var(--f-display); font-size: 32px; letter-spacing: 0.03em; text-transform: uppercase; }
.fdp-footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; font-family: var(--f-ui); font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; }
.fdp-footer__mail { text-transform: none; letter-spacing: 0.04em; }
.fdp-footer__totop { margin: 32px 0 0; text-align: center; }
.fdp-footer__totop a { display: inline-block; border: 2px solid #fff; padding: 8px 16px; font-family: var(--f-ui); font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.fdp-footer__phrase { max-width: 820px; margin: 0 auto 36px; text-align: center; font-size: clamp(22px, 3vw, 34px); line-height: 1.35; font-style: italic; color: #fff; }
.fdp-footer__phrase + .fdp-footer__row { border-top: 1px solid #555; padding-top: 28px; }

/* Pantallas medianas y chicas */
@media (max-width: 900px) {
  .fdp-layout { display: block; }
  .fdp-aside { padding-top: 8px; }
  .fdp-aside { flex: none; width: 100%; }
}
@media (max-width: 700px) {
  .fdp-nav__toggle { display: block; }
  .js .fdp-nav__list { display: none; }
  .js .fdp-nav__list.is-open { display: block; }
  .fdp-nav .menu { flex-direction: column; align-items: stretch; text-align: center; padding-top: 6px; }
  .fdp-nav .menu > li.fdp-resaltado > a { display: block; }
  .fdp-nav .sub-menu { display: block; position: static; border: 0; padding: 0; min-width: 0; }
  .fdp-nav .sub-menu a { padding: 4px; font-size: 14px; }
  .fdp-item__thumb { flex-basis: 100%; }
  .fdp-cuerpo { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
