/* TUMANREC Elections 0.7-r7 — microajuste editorial de Transparencia */
.tre-special-elecciones{
  --tre-special-red:#d71920;
  --tre-special-red-dark:#b90f15;
  --tre-special-ink:#111214;
  --tre-special-muted:#676b72;
  --tre-special-line:#e5e6e8;
  --tre-special-soft:#f6f6f7;
  --tre-special-dark:#111214;
  width:min(1120px,calc(100% - 28px));
  margin:18px auto 0;
  color:var(--tre-special-ink);
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.tre-special-elecciones *{box-sizing:border-box}
.tre-special-elecciones a{text-decoration:none}
.tre-special-elecciones img{display:block;max-width:100%}

.tre-special__hero{
  position:relative;
  overflow:hidden;
  padding:36px 38px 34px;
  border-radius:22px;
  background:linear-gradient(135deg,#0e0f10 0%,#17191c 72%,#211114 100%);
  color:#fff;
  box-shadow:0 16px 44px rgba(17,18,20,.14);
}
.tre-special__hero::after{
  content:"";
  position:absolute;
  right:-76px;
  top:-90px;
  width:280px;
  height:280px;
  border:54px solid rgba(215,25,32,.13);
  border-radius:50%;
  pointer-events:none;
}
.tre-special__eyebrow{
  position:relative;
  z-index:1;
  display:block;
  margin:0 0 10px;
  color:#ff4a50;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.tre-special__title{
  position:relative;
  z-index:1;
  max-width:760px;
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:#fff!important;
  font:900 clamp(40px,6vw,70px)/.98 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-.055em;
}
.tre-special__intro{
  position:relative;
  z-index:1;
  max-width:720px;
  margin:17px 0 0!important;
  color:#d9dadd;
  font:500 17px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.tre-special__nav{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:24px;
}
.tre-special__nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:0 14px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:999px;
  color:#fff;
  background:rgba(255,255,255,.06);
  font:700 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  transition:background .16s ease,border-color .16s ease,transform .16s ease;
}
.tre-special__nav a:hover{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);transform:translateY(-1px)}

.tre-special__pulso{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:26px;
  align-items:center;
  margin-top:18px;
  padding:24px 26px;
  border:1px solid #f0c7c9;
  border-radius:18px;
  background:linear-gradient(135deg,#fff 0%,#fff7f7 100%);
}
.tre-special__pulso-copy{min-width:0}
.tre-special__section-kicker{
  display:block;
  margin:0 0 7px;
  color:var(--tre-special-red);
  font:800 11px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.tre-special__pulso h2,
.tre-special__section-head h2{
  margin:0!important;
  padding:0!important;
  border:0!important;
  color:var(--tre-special-ink)!important;
  font:900 27px/1.08 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-.035em;
}
.tre-special__pulso p{
  max-width:720px;
  margin:9px 0 0!important;
  color:#3b3f45;
  font:600 14px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
}
.tre-special__pulso-meta{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:15px;
}
.tre-special__avatar-stack{display:flex;align-items:center;padding-left:4px}
.tre-special__avatar-stack span{
  display:grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-left:-5px;
  overflow:hidden;
  border:2px solid #fff;
  border-radius:50%;
  background:#eceef0;
  color:#555b63;
  font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.tre-special__avatar-stack span:first-child{margin-left:0}
.tre-special__avatar-stack img{width:100%;height:100%;object-fit:cover}
.tre-special__pulso-meta small{color:var(--tre-special-muted);font:600 11px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-special__pulso-cta{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:176px;
  min-height:48px;
  padding:0 20px;
  border-radius:11px;
  background:var(--tre-special-red);
  color:#fff!important;
  box-shadow:0 8px 20px rgba(215,25,32,.2);
  font:800 12px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.035em;
  text-transform:uppercase;
  transition:background .15s ease,transform .15s ease;
}
.tre-special__pulso-cta:hover{background:var(--tre-special-red-dark);transform:translateY(-1px)}
.tre-special__pulso-cta--unavailable{opacity:.55;cursor:default;box-shadow:none}

.tre-special__section{margin-top:34px}
.tre-special__section-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:16px;
  padding-bottom:12px;
  border-bottom:2px solid var(--tre-special-ink);
}
.tre-special__section-head p{margin:0!important;color:var(--tre-special-muted);font:500 12px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;text-align:right}

.tre-special__candidates{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
.tre-special-candidate{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
  padding:13px;
  border:1px solid var(--tre-special-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 14px rgba(17,18,20,.035);
}
.tre-special-candidate__avatar{
  display:grid;
  place-items:center;
  flex:0 0 58px;
  width:58px;
  height:58px;
  overflow:hidden;
  border-radius:50%;
  background:#eceef0;
  color:#555b63;
  font:800 16px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.tre-special-candidate__avatar img{width:100%;height:100%;object-fit:cover}
.tre-special-candidate__copy{min-width:0}
.tre-special-candidate__copy strong{display:block;color:var(--tre-special-ink);font:800 14px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-special-candidate__copy small{display:block;margin-top:4px;color:var(--tre-special-muted);font:500 11px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}


/* 0.6-r2 — Transparencia Electoral ultracompacta: sin foto, partido ni textos pendientes repetidos. */
.tre-transparency-head{margin-bottom:8px}
.tre-transparency-list{overflow:hidden;border-top:1px solid var(--tre-special-line);border-bottom:1px solid var(--tre-special-line);background:#fff}
.tre-transparency-row{display:grid;grid-template-columns:minmax(120px,.72fr) minmax(0,1.28fr) auto;align-items:center;gap:10px;padding:9px 2px;border-top:1px solid #eceef0}
.tre-transparency-row:first-child{border-top:0}
.tre-transparency-row__name{overflow:hidden;color:var(--tre-special-ink);font:800 12px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-overflow:ellipsis;white-space:nowrap}
.tre-transparency-row__meta{display:flex;align-items:center;gap:5px;min-width:0;color:#72777e;font:600 9px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;white-space:nowrap}
.tre-transparency-row__meta>strong{overflow:hidden;color:var(--tre-special-red);font:800 10px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-overflow:ellipsis;white-space:nowrap}
.tre-transparency-row__meta>strong+span::before{content:"·";margin-right:5px;color:#a3a7ac}
.tre-transparency-row__actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;white-space:nowrap}
.tre-transparency-row__actions a{color:#555b61!important;font:800 8px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-decoration:none!important}
.tre-transparency-row__actions a:hover{color:var(--tre-special-red)!important;text-decoration:underline!important}
.tre-transparency-row__actions .tre-transparency-row__profile{color:var(--tre-special-red)!important;font-size:9px}

.tre-special__news{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.tre-special-news{
  overflow:hidden;
  border:1px solid var(--tre-special-line);
  border-radius:15px;
  background:#fff;
  transition:box-shadow .16s ease,transform .16s ease;
}
.tre-special-news:hover{box-shadow:0 10px 28px rgba(17,18,20,.09);transform:translateY(-2px)}
.tre-special-news__image{
  display:block;
  position:relative;
  aspect-ratio:16/9;
  overflow:hidden;
  background:linear-gradient(135deg,#17191c,#2a2d31);
}
.tre-special-news__image img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.tre-special-news:hover .tre-special-news__image img{transform:scale(1.025)}
.tre-special-news__fallback{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font:900 15px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.08em}
.tre-special-news__fallback::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--tre-special-red)}
.tre-special-news__body{padding:15px 15px 17px}
.tre-special-news__meta{display:block;margin-bottom:7px;color:var(--tre-special-red);font:800 10px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.06em;text-transform:uppercase}
.tre-special-news__title{display:block;margin:0;color:var(--tre-special-ink);font:800 17px/1.25 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:-.015em}
.tre-special-news__excerpt{margin:8px 0 0!important;color:var(--tre-special-muted);font:500 12px/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.tre-special__empty{padding:22px;border:1px dashed #cfd2d6;border-radius:14px;background:var(--tre-special-soft);color:var(--tre-special-muted);font:600 13px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-special__footer-note{margin:28px 0 0!important;padding:16px 0 2px;border-top:1px solid var(--tre-special-line);color:#7c8188;font:500 11px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}

/* Limpieza de la página huésped, aislada al Especial. */
.tre-special-page .tre-special-page-title-hidden,
.tre-special-page .tre-special-page-title-wrap-hidden,
.tre-special-page .tre-special-r4-hide{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
.tre-special-page .tre-special-r4-chain{min-height:0!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;border-top-width:0!important;border-bottom-width:0!important}
.tre-special-page .tre-special-r4-chain::before,
.tre-special-page .tre-special-r4-chain::after{content:none!important;display:none!important}

@media(max-width:900px){
  .tre-special__candidates{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tre-special__news{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .tre-special-elecciones{width:calc(100% - 16px);margin:10px auto 0!important}
  .tre-special__hero{padding:24px 18px 22px;border-radius:16px}
  .tre-special__hero::after{right:-105px;top:-100px;width:250px;height:250px;border-width:44px}
  .tre-special__title{font-size:39px!important;line-height:1!important;letter-spacing:-.045em}
  .tre-special__intro{margin-top:13px!important;font-size:14px!important;line-height:1.5!important}
  .tre-special__nav{margin-top:18px;gap:7px}
  .tre-special__nav a{min-height:35px;padding:0 12px;font-size:11px}
  .tre-special__pulso{display:block;margin-top:12px;padding:19px 17px;border-radius:15px}
  .tre-special__pulso h2,.tre-special__section-head h2{font-size:23px!important}
  .tre-special__pulso p{font-size:13px!important}
  .tre-special__pulso-cta{width:100%;margin-top:17px;min-height:46px}
  .tre-special__section{margin-top:28px}
  .tre-special__section-head{display:block;margin-bottom:12px;padding-bottom:10px}
  .tre-special__section-head p{margin-top:5px!important;text-align:left}
  .tre-special__candidates{
    display:flex;
    gap:10px;
    margin-right:-8px;
    padding-right:8px;
    overflow-x:auto;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .tre-special__candidates::-webkit-scrollbar{display:none}
  .tre-special-candidate{flex:0 0 min(280px,82vw);scroll-snap-align:start}
  .tre-transparency-row{grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:8px 2px}
  .tre-transparency-row__name{grid-column:1;grid-row:1;font-size:12px}
  .tre-transparency-row__meta{grid-column:1;grid-row:2;gap:4px;overflow:hidden;font-size:8px}
  .tre-transparency-row__meta>strong{font-size:9px}
  .tre-transparency-row__actions{grid-column:2;grid-row:1 / span 2;align-self:center;gap:5px}
  .tre-transparency-row__actions a{font-size:8px}
  .tre-transparency-row__actions .tre-transparency-row__profile{font-size:9px}
  .tre-special__news{grid-template-columns:1fr;gap:12px}
  .tre-special-news__body{padding:13px 14px 15px}
  .tre-special-news__title{font-size:16px}
  .tre-special__footer-note{margin-top:22px!important}
  .tre-special-page.tre-special-r4-ready .tre-special-r4-chain{min-height:0!important;margin-top:0!important;margin-bottom:0!important;padding-top:0!important;padding-bottom:0!important;border-top:0!important;border-bottom:0!important}
}
@media(prefers-reduced-motion:reduce){
  .tre-special__nav a,.tre-special__pulso-cta,.tre-special-news,.tre-special-news__image img{transition:none}
}

/* 0.4-r1 — cierre visual móvil de la página huésped del Especial.
 * Se limita a wrappers de contenido que realmente contienen el shortcode; no
 * toca la cabecera, navegación ni footer globales del sitio. */
.tre-special-page .tre-special-r1-hide{
  display:none!important;
  visibility:hidden!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}
.tre-special-page .tre-special-r1-chain{
  min-height:0!important;
  margin-top:0!important;
  margin-bottom:0!important;
  padding-top:0!important;
  padding-bottom:0!important;
  border-top-width:0!important;
  border-bottom-width:0!important;
}
.tre-special-page .tre-special-r1-chain::before,
.tre-special-page .tre-special-r1-chain::after{
  content:none!important;
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  height:0!important;
}
/* Fallback CSS para Gutenberg/themes que dejan un HR como primer elemento del
 * contenido. :has() actúa solo cuando el Especial está dentro del wrapper. */
.tre-special-page .entry-content:has(.tre-special-elecciones) > hr,
.tre-special-page .entry-content:has(.tre-special-elecciones) > .wp-block-separator,
.tre-special-page .post-content:has(.tre-special-elecciones) > hr,
.tre-special-page .post-content:has(.tre-special-elecciones) > .wp-block-separator,
.tre-special-page .page-content:has(.tre-special-elecciones) > hr,
.tre-special-page .page-content:has(.tre-special-elecciones) > .wp-block-separator,
.tre-special-page .wp-block-post-content:has(.tre-special-elecciones) > hr,
.tre-special-page .wp-block-post-content:has(.tre-special-elecciones) > .wp-block-separator{
  display:none!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  height:0!important;
}
@media(max-width:768px){
  .tre-special-page.tre-special-r1-ready .tre-special-r1-chain{
    min-height:0!important;
    margin-top:0!important;
    margin-bottom:0!important;
    padding-top:0!important;
    padding-bottom:0!important;
    border-top:0!important;
    border-bottom:0!important;
  }
  .tre-special-page.tre-special-r1-ready .tre-special-elecciones{
    margin-top:12px!important;
    margin-bottom:0!important;
  }
}



/* 0.5 — fichas públicas de candidatos. */
.tre-special-candidate{color:inherit!important;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.tre-special-candidate:hover,.tre-special-candidate:focus-visible{border-color:#c9cdd2;box-shadow:0 8px 22px rgba(17,18,20,.08);transform:translateY(-1px)}
.tre-special-candidate:focus-visible{outline:2px solid var(--tre-special-red);outline-offset:2px}
.tre-special-candidate__office{display:block;margin-top:5px;color:#454a51;font:600 10px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-special-candidate__link{display:block;margin-top:7px;color:var(--tre-special-red);font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.04em}

.tre-profile__topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 12px;padding:0 2px;color:var(--tre-special-muted);font:700 11px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.055em}
.tre-profile__topbar a{color:var(--tre-special-ink)!important;font-weight:800}
.tre-profile__topbar a:hover{color:var(--tre-special-red)!important}
.tre-profile__hero{display:grid;grid-template-columns:210px minmax(0,1fr);gap:34px;align-items:center;padding:32px;border-radius:22px;background:linear-gradient(135deg,#0e0f10 0%,#181a1d 72%,#251113 100%);color:#fff;box-shadow:0 16px 44px rgba(17,18,20,.14)}
.tre-profile__portrait{display:grid;place-items:center;width:210px;aspect-ratio:1/1;overflow:hidden;border:4px solid rgba(255,255,255,.16);border-radius:50%;background:#2a2d31;color:#fff;font:900 46px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 10px 28px rgba(0,0,0,.22)}
.tre-profile__portrait img{width:100%;height:100%;object-fit:cover}
.tre-profile__hero-copy h1{margin:0!important;padding:0!important;border:0!important;color:#fff!important;font:900 clamp(34px,5vw,56px)/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.045em}
.tre-profile__party{margin:9px 0 0!important;color:#d8dadd;font:700 15px/1.35 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.tre-profile__badges{display:flex;flex-wrap:wrap;gap:7px;margin-top:15px}
.tre-profile__badges span{display:inline-flex;align-items:center;min-height:30px;padding:0 10px;border:1px solid rgba(255,255,255,.17);border-radius:999px;background:rgba(255,255,255,.07);color:#fff;font:700 11px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-profile__badges .tre-profile__status{border-color:rgba(255,74,80,.4);background:rgba(215,25,32,.16);color:#ffb4b7}
.tre-profile__summary{max-width:760px;margin:18px 0 0!important;color:#f0f1f2;font:500 15px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.tre-profile__summary--muted{color:#b8bbc0!important}
.tre-profile__facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.tre-profile__facts>div{padding:17px 18px;border:1px solid var(--tre-special-line);border-radius:14px;background:#fff}
.tre-profile__facts span{display:block;color:var(--tre-special-muted);font:700 10px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.055em}
.tre-profile__facts strong{display:block;margin-top:6px;color:var(--tre-special-ink);font:800 14px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-profile__columns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:28px}
.tre-profile__section{padding:21px;border:1px solid var(--tre-special-line);border-radius:16px;background:#fff}
.tre-profile__section h2,.tre-profile__source h2{margin:0!important;padding:0!important;border:0!important;color:var(--tre-special-ink)!important;font:900 22px/1.08 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;letter-spacing:-.03em}
.tre-profile__section ul,.tre-profile__section ol{margin:15px 0 0!important;padding-left:20px!important;color:#373b41;font:500 13px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.tre-profile__section li+li{margin-top:8px}
.tre-profile__proposals{margin-top:14px;background:linear-gradient(135deg,#fff 0%,#fff8f8 100%);border-color:#f0c7c9}
.tre-profile__proposals ol{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 28px;margin-top:17px!important}
.tre-profile__proposals li::marker{color:var(--tre-special-red);font-weight:900}
.tre-profile__source{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;margin-top:14px;padding:22px;border:1px solid #d8dade;border-radius:16px;background:var(--tre-special-soft)}
.tre-profile__source p{max-width:760px;margin:9px 0 0!important;color:#555a62;font:500 12px/1.55 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important}
.tre-profile__source small{display:block;margin-top:8px;color:#767b82;font:600 10px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-profile__source-links{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;max-width:410px}
.tre-profile__source-links a{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:0 13px;border-radius:9px;background:var(--tre-special-ink);color:#fff!important;font:800 10px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;text-transform:uppercase;letter-spacing:.035em}
.tre-profile__source-links a:hover{background:var(--tre-special-red)}
.tre-profile__source-pending{color:#767b82;font:600 11px/1.4 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tre-profile__news{margin-top:30px}

@media(max-width:900px){
  .tre-profile__hero{grid-template-columns:160px minmax(0,1fr);gap:24px}
  .tre-profile__portrait{width:160px}
  .tre-profile__columns{grid-template-columns:1fr 1fr}
  .tre-profile__source{grid-template-columns:1fr}
  .tre-profile__source-links{justify-content:flex-start;max-width:none}
}
@media(max-width:640px){
  .tre-profile__topbar{font-size:9px;margin-bottom:9px}
  .tre-profile__topbar span{display:none}
  .tre-profile__hero{display:block;padding:22px 18px;border-radius:16px;text-align:left}
  .tre-profile__portrait{width:118px;margin:0 0 18px;border-width:3px;font-size:30px}
  .tre-profile__hero-copy h1{font-size:34px!important;line-height:1.02!important}
  .tre-profile__party{font-size:13px!important}
  .tre-profile__badges{margin-top:12px}
  .tre-profile__summary{margin-top:15px!important;font-size:13px!important;line-height:1.55!important}
  .tre-profile__facts{grid-template-columns:1fr;gap:8px;margin-top:10px}
  .tre-profile__facts>div{padding:14px 15px}
  .tre-profile__columns{grid-template-columns:1fr;gap:10px;margin-top:22px}
  .tre-profile__section{padding:17px;border-radius:14px}
  .tre-profile__section h2,.tre-profile__source h2{font-size:20px!important}
  .tre-profile__section ul,.tre-profile__section ol{font-size:12px!important}
  .tre-profile__proposals{margin-top:10px}
  .tre-profile__proposals ol{grid-template-columns:1fr;gap:8px}
  .tre-profile__source{display:block;margin-top:10px;padding:17px}
  .tre-profile__source-links{display:grid;grid-template-columns:1fr;margin-top:15px}
  .tre-profile__source-links a{width:100%;min-height:43px}
  .tre-profile__news{margin-top:24px}
}

/* 0.7-r1 — difusión social ligera y optimización visual. */
.tre-social-share{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top:14px;
  padding:12px 14px;
  border:1px solid var(--tre-special-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 5px 18px rgba(17,18,20,.045);
}
.tre-social-share__copy{min-width:0}
.tre-social-share__copy span{
  display:block;
  margin-bottom:3px;
  color:var(--tre-special-red);
  font:800 9px/1.2 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.tre-social-share__copy strong{
  display:block;
  color:var(--tre-special-ink);
  font:800 13px/1.3 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.tre-social-share__actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.tre-social-share__actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 11px;
  border:1px solid #d9dbde;
  border-radius:999px;
  color:#33383e!important;
  background:#fff;
  font:800 9px/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  white-space:nowrap;
  transition:border-color .15s ease,background .15s ease,color .15s ease,transform .15s ease;
}
.tre-social-share__actions a:hover{border-color:#b8bcc1;background:#f7f7f8;transform:translateY(-1px)}
.tre-social-share__actions .tre-social-share__facebook{border-color:#d71920;color:#d71920!important}
.tre-social-share__actions .tre-social-share__facebook:hover{background:#d71920;color:#fff!important}
.tre-candidate-profile-page>.tre-social-share{margin-top:14px}

@media(max-width:640px){
  .tre-social-share{align-items:flex-start;gap:10px;margin-top:10px;padding:11px 12px;border-radius:12px}
  .tre-social-share__copy strong{font-size:11px}
  .tre-social-share__actions{gap:5px}
  .tre-social-share__actions a{min-height:32px;padding:0 9px;font-size:8px}
}


/* 0.7-r5 — aislamiento tipográfico reforzado del Especial y fichas.
 * El theme de TUMANREC puede imponer una fuente display con glifos defectuosos
 * para caracteres españoles en títulos y negritas. Esta regla usa una pila de
 * fuentes del sistema y alta especificidad. special.js la refuerza además con
 * font-family inline !important en cada elemento del componente. */
html body.tre-special-page main.tre-special-elecciones.tre-special-elecciones,
html body.tre-special-page main.tre-special-elecciones.tre-special-elecciones *,
html body.tre-special-page .tre-special-elecciones.tre-special-elecciones,
html body.tre-special-page .tre-special-elecciones.tre-special-elecciones *{
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-synthesis:weight style!important;
  font-variant:normal!important;
  font-feature-settings:normal!important;
  font-variation-settings:normal!important;
}

/* 0.9 — logo / símbolo político opcional: discreto en tarjetas y ficha, nunca en Transparencia. */
.tre-special-candidate__party{display:flex!important;align-items:center;gap:6px}.tre-special-candidate__party-logo{width:22px!important;height:22px!important;flex:0 0 22px;object-fit:contain!important;border-radius:4px;background:#fff}.tre-profile__party{display:flex!important;align-items:center;gap:9px;flex-wrap:wrap}.tre-profile__party-logo{width:30px!important;height:30px!important;object-fit:contain!important;border-radius:5px;background:rgba(255,255,255,.96);padding:2px}.tre-transparency-row img[class*="party-logo"]{display:none!important}
@media(max-width:640px){.tre-special-candidate__party-logo{width:20px!important;height:20px!important;flex-basis:20px}.tre-profile__party-logo{width:26px!important;height:26px!important}}
