/* politiqueandomx.com: identidad del original (Astra + Spectra): rosa claro, negro y rojo; DM Sans + Inter. */
:root { --pm-red: #d6301f; --pm-red-dark: #b5200f; --pm-pink: #fef4f4; --pm-pink-2: #feebea; --pm-black: #000; --pm-text: #111; --pm-muted: #4a4a4a; --pm-line: #f0dedc; --measure: 44rem; }
body.pm { font-size: 1rem; color: var(--pm-text); overflow-x: clip; }
.pm h1, .pm h2, .pm h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.01em; }
:where(.pm) a { color: var(--c-link); }

/* botones y enlaces */
.pm-btn { display: inline-flex; align-items: center; justify-content: center; padding: .7em 1.3em; border-radius: 6px; background: var(--pm-red); color: #fff !important; font: 600 .95rem/1.2 var(--f-head); text-decoration: none; border: 0; white-space: nowrap; }
.pm-btn:hover { background: var(--pm-red-dark); }
.pm-link { color: var(--c-link); font-weight: 500; text-decoration: none; }
.pm-link:hover { text-decoration: underline; }
.pm-eyebrow { margin: 0 0 .6rem; font: 600 .8rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--pm-red); }

/* cabecera */
.pm-header { background: var(--pm-pink); }
.kind-post .pm-header, .kind-archive .pm-header, .kind-search .pm-header, .kind-404 .pm-header { border-bottom: 1px solid var(--pm-line); }
.pm-header__inner { display: flex; align-items: center; gap: 2rem; min-height: 5.5rem; }
.pm-brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--pm-text) !important; flex-shrink: 0; }
.pm-logo { width: 116px; height: auto; display: block; }
.pm-brand__name { font: 600 1.25rem/1.1 var(--f-head); letter-spacing: -.01em; }
.pm-nav { flex: 1; display: flex; justify-content: center; }
.pm-nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; }
.pm-nav a { color: var(--pm-text); text-decoration: none; font-size: .95rem; font-weight: 500; padding: .4rem 0; }
.pm-nav a:hover, .pm-nav a[aria-current] { color: var(--pm-red); }
.pm-header__tools { display: flex; align-items: center; gap: 1rem; }
.pm-search { display: inline-flex; color: var(--pm-text) !important; padding: .4rem; }
.pm-search:hover { color: var(--pm-red) !important; }
@media (max-width: 60em) {
  .pm-header__inner { flex-wrap: wrap; gap: .5rem 1rem; padding-block: .75rem; min-height: 0; }
  .pm-logo { width: 92px; }
  .pm-brand__name { font-size: 1.1rem; }
  .pm-header__tools { margin-left: auto; }
  .pm-nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .pm-nav ul { gap: 1.4rem; padding-bottom: .2rem; }
  .pm-nav a { white-space: nowrap; }
}
@media (max-width: 26em) { .pm-brand__name { display: none; } }

/* pie */
.pm-footer { background: #fff; border-top: 1px solid var(--pm-line); margin-top: 0; }
.pm-footer__top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.5rem 3rem; padding-block: 3rem 2rem; align-items: start; }
.pm-footer__brand .pm-logo { width: 140px; margin-bottom: 1rem; }
.pm-footer__brand p { color: var(--pm-muted); max-width: 30rem; margin: 0; font-size: .95rem; }
.pm-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: flex-end; }
.pm-footer__nav a, .pm-footer__mail a { color: var(--pm-text); text-decoration: none; font-size: .95rem; }
.pm-footer__nav a:hover, .pm-footer__nav a[aria-current], .pm-footer__mail a:hover { color: var(--pm-red); }
.pm-footer__mail { grid-column: 2; text-align: right; margin: 0; color: var(--pm-muted); font-size: .95rem; }
.pm-footer__bottom { border-top: 1px solid var(--pm-line); padding-block: 1.2rem; font-size: .875rem; color: var(--pm-muted); }
.pm-footer__bottom p { margin: 0; }
@media (max-width: 44em) { .pm-footer__top { grid-template-columns: 1fr; } .pm-footer__nav ul { justify-content: flex-start; } .pm-footer__mail { grid-column: 1; text-align: left; } }

/* portada: hero */
.pm-hero { background: linear-gradient(var(--pm-pink) 0 72%, #fff 72%); padding-top: clamp(2rem, 6vw, 4.5rem); }
.pm-hero__inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pm-hero__text { padding-top: clamp(0rem, 3vw, 1.5rem); }
.pm-hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.1; margin: 0 0 1rem; }
.pm-hero__text p { font-size: 1.1rem; line-height: 1.65; margin: 0 0 1.6rem; max-width: 33rem; }
.pm-hero__media { margin: 0; }
.pm-hero__media img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 30% center; border-radius: 10px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); }
@media (max-width: 52em) { .pm-hero { background: linear-gradient(var(--pm-pink) 0 60%, #fff 60%); } .pm-hero__inner { grid-template-columns: 1fr; } .pm-hero__media img { aspect-ratio: 4 / 3; } }

/* encabezados de sección */
.pm-head { margin-bottom: 2rem; }
.pm-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); line-height: 1.15; margin: 0 0 .6rem; }
.pm-head p { color: var(--pm-muted); margin: 0; max-width: 38rem; }
.pm-head--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 3rem; align-items: start; padding-bottom: 2rem; border-bottom: 1px solid var(--pm-line); }
@media (max-width: 52em) { .pm-head--split { grid-template-columns: 1fr; } }

/* portada: noticias */
.pm-news { padding-block: clamp(3rem, 7vw, 5rem) 3rem; }
.pm-lead { display: grid; grid-template-columns: 1.35fr 1fr; gap: 2rem 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.pm-lead__media img, .pm-card__media img, .pm-featured__media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 8px; display: block; }
.pm-lead__title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.2; margin: .3rem 0 .8rem; }
.pm-lead__title a, .pm-card__title a, .pm-featured__title a { color: inherit; text-decoration: none; }
.pm-lead__title a:hover, .pm-card__title a:hover { color: var(--pm-red); }
.pm-lead__body > p { color: var(--pm-muted); margin: 0 0 .8rem; }
.pm .kicker { color: var(--pm-red); font: 600 .78rem/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; }
.pm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1.5rem; }
.pm-card__body { padding-top: .9rem; }
.pm-card__title { font-size: 1.1rem; line-height: 1.3; margin: .35rem 0 .4rem; }
.pm .meta { color: var(--pm-muted); font-size: .85rem; margin: 0; }
.pm-more { margin: 2.5rem 0 0; text-align: right; }
@media (max-width: 64em) { .pm-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 52em) { .pm-lead { grid-template-columns: 1fr; } }
@media (max-width: 34em) { .pm-grid { grid-template-columns: 1fr; } }

/* bandas negras */
.pm-band { background: var(--pm-black); color: #fff; padding-block: clamp(3.5rem, 8vw, 6rem); }
.pm-band h2, .pm-band a:not(.pm-btn) { color: #fff; }
.pm-band .meta { color: #c9c9c9; }
.pm-featured__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2.5rem 3.5rem; align-items: center; }
.pm-featured__media img { border-radius: 10px; aspect-ratio: 16 / 10; }
.pm-featured__title { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.2; margin: 0 0 1rem; }
.pm-featured__title a:hover { text-decoration: underline; }
.pm-featured__text > p { color: #e6e6e6; margin: 0 0 1rem; }
.pm-featured__text .pm-btn { margin-top: .8rem; }
.pm-featured .pm-eyebrow { color: #ff7a6e; }
.pm-about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; align-items: center; }
.pm-collage { position: relative; min-height: 26rem; }
.pm-collage img { position: absolute; border-radius: 10px; object-fit: cover; }
.pm-collage__a { top: 0; left: 0; width: 62%; height: 74%; }
.pm-collage__b { bottom: 0; right: 4%; width: 52%; height: 78%; box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); }
.pm-about__text h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); margin: 0 0 1rem; }
.pm-about__text p { color: #e6e6e6; margin: 0 0 1.5rem; }
@media (max-width: 52em) { .pm-featured__inner, .pm-about__inner { grid-template-columns: 1fr; } .pm-collage { min-height: 20rem; } }

/* contenidos (tres columnas, sin numeración de plantilla) */
.pm-contents { padding-block: clamp(3.5rem, 8vw, 5.5rem) 2.5rem; }
.pm-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; padding-top: 2.5rem; }
.pm-item { border-top: 3px solid var(--pm-red); padding-top: 1.2rem; }
.pm-item h3 { font-size: 1.3rem; margin: 0 0 .6rem; }
.pm-item p { margin: 0 0 1rem; color: var(--pm-text); }
@media (max-width: 52em) { .pm-three { grid-template-columns: 1fr; } }

/* barra de llamada */
.pm-ctabar { padding-block: 0 3.5rem; }
.pm-ctabar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; border-top: 1px solid var(--pm-line); padding-top: 2rem; }
.pm-ctabar h2 { font-size: 1.3rem; margin: 0; }
.pm-ctabar--dark { background: #000; color: #fff; padding-block: 2.6rem; }
.pm-ctabar--dark .pm-ctabar__inner { border: 0; padding: 0; }
.pm-ctabar--dark h2 { color: #fff; }

/* por qué elegirnos */
.pm-why { padding-block: clamp(3.5rem, 8vw, 6rem); }
.pm-why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; align-items: center; }
.pm-why__media { margin: 0; }
.pm-why__media img { width: 100%; aspect-ratio: 4 / 5; max-height: 36rem; object-fit: cover; border-radius: 10px; }
.pm-why h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); margin: 0 0 1rem; }
.pm-why__lead { padding-bottom: 1.5rem; border-bottom: 1px solid var(--pm-line); margin: 0 0 1.5rem; }
.pm-why h3 { font-size: 1.2rem; margin: 1.4rem 0 .4rem; }
.pm-why p { margin-top: 0; }
@media (max-width: 52em) { .pm-why__inner { grid-template-columns: 1fr; } .pm-why__media img { aspect-ratio: 4 / 3; } }

/* únete a la comunidad */
.pm-community { display: grid; grid-template-columns: 1fr 1fr; background: #000; color: #fff; }
.pm-community__text { display: flex; align-items: center; padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 6vw, 5rem); }
.pm-community h2 { color: #fff; font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.15; margin: 0 0 1rem; }
.pm-community p { color: #e6e6e6; margin: 0 0 1.6rem; max-width: 30rem; }
.pm-community__media img { width: 100%; height: 100%; max-height: 26rem; object-fit: cover; object-position: center 25%; display: block; }
@media (max-width: 52em) { .pm-community { grid-template-columns: 1fr; } .pm-community__media img { max-height: 18rem; } }

/* páginas fijas */
.pm-crumbs { background: var(--pm-pink); padding-top: 1rem; }
.pm-crumbs .crumbs ol { margin: 0; }
.pm-pagehero { background: var(--pm-pink); padding-block: 2rem clamp(3rem, 7vw, 4.5rem); }
.pm-pagehero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0; }
.pm-section { padding-block: clamp(3rem, 7vw, 5rem); }
.pm-section--tint { background: var(--pm-pink); }
.pm-statement { font: 500 clamp(1.35rem, 2.6vw, 2rem)/1.3 var(--f-head); letter-spacing: -.01em; margin: 0 0 3rem; max-width: 60rem; }
.pm-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 3.5rem; align-items: center; }
.pm-photo { margin: 0; }
.pm-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; }
.pm-values { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; }
.pm-values__head h2 { font-size: clamp(1.9rem, 3.5vw, 2.5rem); margin: 0 0 .8rem; }
.pm-value { padding-bottom: 1.4rem; margin-bottom: 1.4rem; border-bottom: 1px solid var(--pm-line); }
.pm-value:last-child { border: 0; margin: 0; }
.pm-value h3 { font-size: 1.25rem; margin: 0 0 .4rem; }
.pm-value p { margin: 0; }
.pm-offers { display: grid; gap: 0; border-top: 1px solid var(--pm-line); }
.pm-offer { display: grid; grid-template-columns: 15rem 1fr 1fr; gap: 1.5rem 2.5rem; padding-block: 2.5rem; border-bottom: 1px solid var(--pm-line); align-items: start; }
.pm-offer figure { margin: 0; }
.pm-offer img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; }
.pm-offer h2 { font-size: 1.35rem; margin: 0 0 .9rem; padding-bottom: .9rem; position: relative; }
.pm-offer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.2rem; height: 2px; background: var(--pm-red); }
.pm-offer__more p { color: var(--pm-muted); margin: 0 0 .7rem; }
.narrow-text { max-width: 48rem; }
.narrow-text h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 1.2rem; }
.pm-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem 4rem; align-items: start; }
.pm-contact__intro h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 0 0 1rem; }
.pm-contact__card { background: var(--pm-pink); border-radius: 10px; padding: 2rem; }
.pm-contact__card h2 { font-size: 1.2rem; margin: 0 0 .6rem; }
.pm-contact__card p:first-of-type a { font: 600 1.15rem/1.3 var(--f-head); color: var(--pm-red); word-break: break-all; }
@media (max-width: 52em) { .pm-twocol, .pm-values, .pm-contact { grid-template-columns: 1fr; } .pm-offer { grid-template-columns: 1fr; } .pm-offer img { aspect-ratio: 3 / 2; } }

/* notas: tarjeta blanca sobre rosa, como en el original */
.kind-post { background: var(--pm-pink); }
.pm-post > .wrap { padding-block: 2.5rem; }
.pm-post .entry { background: #fff; border-radius: 10px; padding: clamp(1.25rem, 4vw, 2.75rem); }
.pm-post .entry__title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); line-height: 1.2; }
.pm-post .prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; }
.pm-post .prose a { color: var(--c-link); }
.pm-post .related { background: transparent; }
.pm-post .person-box { background: var(--pm-pink); border-left: 3px solid var(--pm-red); }

/* listados y páginas auxiliares */
.pm-archive .archive__header { background: var(--pm-pink); margin-inline: calc(50% - 50vw); padding: 1rem calc(50vw - 50%) 2.2rem; margin-bottom: 2rem; }
.pm-archive > .wrap { padding-bottom: 3rem; }
.pm-archive .archive__title { font-size: clamp(2rem, 4.5vw, 3rem); }
.pm-archive .archive__label { color: var(--pm-red); }
.pm-archive .card__media img { border-radius: 8px; }
.pm-plain { padding-block: 1rem 3rem; }
.pm .btn { background: var(--pm-red); border-color: var(--pm-red); color: #fff; }
.pm .btn--ghost { background: transparent; color: var(--pm-red); }
.pm-archive .archive { padding-top: 0; }
.pm-archive .archive__header { border-bottom: 0; }
