/* ============================================================
   Portal Legislativo — Main Stylesheet
   Diseño institucional editorial, inspirado en portales
   legislativos gubernamentales. Identidad propia.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy:        #2E1B16;
  --navy-dark:   #1e0f0b;
  --navy-light:  #4a2e24;
  --red:         #610200;
  --red-dark:    #420100;
  --gold:        #9a7c40;
  --gold-light:  #bfa065;
  --dark:        #1e0f0b;
  --gray-900:    #212529;
  --gray-700:    #5a4a45;
  --gray-500:    #a09490;
  --gray-200:    #ebe7e6;
  --gray-100:    #f5f2f1;
  --white:       #ffffff;
  --border:      #d8d0cc;

  --font-sans:   'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-serif:  Georgia, 'Times New Roman', serif;

  --radius:      4px;
  --radius-lg:   8px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.12);
  --shadow:      0 2px 8px rgba(0,0,0,.15);
  --shadow-lg:   0 4px 20px rgba(0,0,0,.18);

  --header-h:    56px;
  --topbar-h:    36px;
  --transition:  .2s ease;
}

/* ── Reset & base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }
ul { list-style: none; }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 900px; }
.container--wide   { max-width: 1400px; }

/* ── Grid ──────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex--center { align-items: center; }
.flex--between { justify-content: space-between; }
.flex--gap { gap: 16px; }

/* ── TOP BAR ───────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  display: flex;
  align-items: center;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar__left { display: flex; align-items: center; gap: 16px; }
.topbar__date { opacity: .8; }
.topbar__right { display: flex; align-items: center; gap: 10px; }
.topbar__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px; height: 26px;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  transition: background var(--transition);
}
.topbar__social a:hover { background: var(--red); color: var(--white); }

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  background: var(--navy);
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-emblem {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,.3);
  overflow: hidden;
  flex-shrink: 0;
}
.brand-emblem svg { width: 26px; height: 26px; }
.brand-text { line-height: 1.2; }
.brand-text__name {
  font-size: .95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
  text-transform: uppercase;
}
.brand-text__sub {
  font-size: .7rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* ── NAVIGATION ────────────────────────────────────────────── */
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav__item { position: relative; }
.site-nav__link {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.88);
  font-size: .85rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link--active {
  background: rgba(255,255,255,.12);
  color: var(--white);
}
.site-nav__link--active { border-bottom: 2px solid var(--gold-light); }

/* Dropdown */
.site-nav__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--red);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
}
.site-nav__item:hover .site-nav__dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.site-nav__dropdown a {
  display: block;
  padding: 9px 16px;
  font-size: .84rem;
  color: var(--gray-900);
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
}
.site-nav__dropdown a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.site-header__search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.site-header__search input {
  background: transparent;
  border: none;
  padding: 6px 12px;
  color: var(--white);
  font-size: .84rem;
  width: 180px;
  outline: none;
}
.site-header__search input::placeholder { color: rgba(255,255,255,.5); }
.site-header__search button {
  background: var(--red);
  border: none;
  padding: 0 12px;
  height: 32px;
  color: var(--white);
  cursor: pointer;
  font-size: .9rem;
  transition: background var(--transition);
}
.site-header__search button:hover { background: var(--red-dark); }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition);
}

/* ── HERO SLIDER ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  height: 560px;
}
.hero__slides { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.hero__slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero__slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .75;
}
.hero__slide-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.7) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}
.hero__content { max-width: 680px; }
.hero__category {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 12px;
}
.hero__title {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 12px;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.hero__excerpt {
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  margin-bottom: 20px;
  line-height: 1.5;
}
.hero__btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--red);
  color: var(--white);
  font-size: .85rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid var(--red);
  transition: background var(--transition), color var(--transition);
}
.hero__btn:hover { background: transparent; color: var(--white); }

.hero__controls {
  position: absolute;
  bottom: 20px;
  right: 32px;
  display: flex;
  gap: 8px;
}
.hero__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: none;
}
.hero__dot--active { background: var(--white); transform: scale(1.2); }
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.35);
  color: var(--white);
  border: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 5;
}
.hero__arrow:hover { background: var(--red); }
.hero__arrow--prev { left: 16px; }
.hero__arrow--next { right: 16px; }

/* ── QUICK ACCESS BAR ──────────────────────────────────────── */
.quick-access {
  background: var(--navy-light);
  padding: 0;
}
.quick-access .container {
  display: flex;
  overflow-x: auto;
}
.quick-access__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: rgba(255,255,255,.85);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  border-right: 1px solid rgba(255,255,255,.15);
  transition: background var(--transition), color var(--transition);
}
.quick-access__item:hover { background: rgba(255,255,255,.12); color: var(--white); }
.quick-access__icon { font-size: 1.1rem; }

/* ── SECTIONS ──────────────────────────────────────────────── */
.section { padding: 56px 0; }
.section--gray { background: var(--gray-100); }
.section--dark { background: var(--navy-dark); color: var(--white); }
.section--sm   { padding: 32px 0; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy-dark);
  position: relative;
  padding-left: 16px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--red);
  border-radius: 2px;
}
.section--dark .section-title { color: var(--white); }
.section-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.section-link:hover { color: var(--navy); }

/* ── NEWS CARDS ────────────────────────────────────────────── */
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.news-card__img-wrap {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--gray-200);
  flex-shrink: 0;
}
.news-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.news-card:hover .news-card__img-wrap img { transform: scale(1.04); }
.news-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.news-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .75rem;
}
.news-card__category {
  background: var(--navy);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 2px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .7rem;
}
.news-card__category--comunicado { background: var(--gold); }
.news-card__category--actividad  { background: var(--navy-light); }
.news-card__date { color: var(--gray-500); }
.news-card__title {
  font-size: .96rem;
  font-weight: 700;
  color: var(--gray-900);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
  transition: color var(--transition);
}
.news-card__title a:hover { color: var(--navy); }
.news-card__excerpt {
  font-size: .84rem;
  color: var(--gray-700);
  line-height: 1.5;
  margin-bottom: 14px;
}
.news-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
  font-size: .78rem;
}
.news-card__senator {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
}
.news-card__senator img {
  width: 24px; height: 24px;
  aspect-ratio: 1 / 1;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.news-card__read { color: var(--red); font-weight: 600; }
.news-card__read:hover { color: var(--navy); }

/* ── NEWS CARD HORIZONTAL ──────────────────────────────────── */
.news-card--h {
  flex-direction: row;
  gap: 0;
  align-items: stretch;
}
.news-card--h .news-card__img-wrap {
  width: 160px;
  aspect-ratio: auto;
  flex-shrink: 0;
}
.news-card--h .news-card__title { font-size: .9rem; }

/* ── NEWS CARD FEATURED ────────────────────────────────────── */
.news-card--featured {
  position: relative;
  border: none;
}
.news-card--featured .news-card__img-wrap {
  aspect-ratio: 4/3;
  height: 100%;
}
.news-card--featured .news-card__body {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.3) 60%, transparent 100%);
  color: var(--white);
  justify-content: flex-end;
}
.news-card--featured .news-card__title { color: var(--white); font-size: 1.1rem; }
.news-card--featured .news-card__date  { color: rgba(255,255,255,.7); }

/* ── SENATOR CARDS ─────────────────────────────────────────── */
.senator-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.senator-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.senator-card__photo-wrap {
  width: 108px; height: 144px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 auto 14px;
  background: var(--white);
  border: 3px solid var(--gray-200);
  transition: border-color var(--transition);
}
.senator-card:hover .senator-card__photo-wrap { border-color: var(--navy); }
.senator-card__photo-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.senator-card__name {
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.senator-card__cargo {
  font-size: .76rem;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.senator-card__estado {
  font-size: .76rem;
  color: var(--gray-500);
  margin-bottom: 10px;
}
.senator-card__party {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 2px;
  background: var(--gray-100);
  color: var(--gray-700);
  letter-spacing: .04em;
}
.party-badge__logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  background: rgba(255,255,255,.25);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── SENATOR CARD PLACEHOLDER ──────────────────────────────── */
.senator-card--placeholder {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.senator-card--placeholder:hover {
  transform: none;
  box-shadow: none;
}
.senator-card__photo-wrap--placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--border);
}
.senator-card__name--placeholder {
  width: 70%;
  height: 14px;
  background: var(--gray-200);
  border-radius: 4px;
}
.senator-card__cargo--placeholder {
  width: 50%;
  height: 10px;
  background: var(--gray-100);
  border-radius: 4px;
}
.senator-card__placeholder-cta {
  font-size: .78rem;
  color: var(--red);
  font-weight: 600;
  margin-top: 4px;
}
.senator-card__placeholder-cta:hover { color: var(--navy); }

/* ── SENATOR PROFILE ───────────────────────────────────────── */
.senator-profile { padding: 48px 0; }
.senator-profile__grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}
.senator-profile__aside {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.senator-profile__photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--white);
  position: relative;
}
.senator-profile__featured-pin {
  position: absolute;
  top: 10px; left: 10px;
  width: 32px; height: 32px;
  background: #f5a623;
  color: #fff;
  border-radius: 50%;
  font-size: 1rem;
  line-height: 32px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.3);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
.senator-profile__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.senator-profile__credential-label {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--gray-500);
  padding-top: 8px;
}
.senator-profile__credential-date {
  font-size: .75rem;
  color: var(--gray-700);
  font-weight: 600;
}
.senator-profile__credential-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 20px -24px 0;
  padding: 16px 16px 0;
  width: calc(100% + 48px);
  border: none;
  border-radius: 0;
  background: transparent;
  border-top: 1px solid var(--border);
}
.senator-profile__credential-panel img {
  width: 100%;
  max-width: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
  display: block;
}
.credential-watermark-wrap {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.credential-watermark-wrap img {
  display: block;
  width: 100%;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.credential-watermark-text {
  position: absolute;
  inset: -100% -60%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  transform: rotate(-35deg);
  transform-origin: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(100, 20, 20, .2);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  word-break: break-all;
  overflow: hidden;
  line-height: 1.4;
  background: none;
  padding: 0;
  white-space: normal;
  width: auto;
}
.senator-profile__info { padding: 24px; }
.senator-profile__name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 6px;
}
.senator-profile__cargo {
  font-size: .9rem;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 16px;
}
.senator-profile__cargo--secondary {
  color: var(--gray-600);
  font-weight: 500;
  margin-top: -10px;
}
.senator-profile__meta { font-size: .85rem; }
.senator-profile__meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--gray-100);
  color: var(--gray-700);
}
.senator-profile__meta-label { color: var(--gray-500); min-width: 80px; }
.senator-profile__party-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.senator-profile__main {}
.senator-profile__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.tab-btn {
  padding: 10px 18px;
  background: none;
  border: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color var(--transition), border-color var(--transition);
}
.tab-btn--active, .tab-btn:hover { color: var(--navy); border-bottom-color: var(--red); }
.tab-pane { display: none; }
.tab-pane--active { display: block; }

/* ── COMISIONES ────────────────────────────────────────────── */
.comision-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .82rem;
  color: var(--navy-dark);
  margin: 4px;
}

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  background: var(--gray-100);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8rem;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--navy); }
.breadcrumb__sep { color: var(--gray-500); }
.breadcrumb__current { color: var(--gray-700); font-weight: 500; }

/* ── PAGE HEADER ───────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 40px 0;
  color: var(--white);
}
.page-header__title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header__subtitle { opacity: .8; font-size: .95rem; }

/* ── FILTERS ───────────────────────────────────────────────── */
.filters {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 160px; }
.filter-group label { font-size: .78rem; font-weight: 600; color: var(--gray-700); text-transform: uppercase; letter-spacing: .04em; }
.filter-group select,
.filter-group input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .88rem;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
  transition: border-color var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--navy); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--radius);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); color: var(--white); }
.btn--red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn--sm { padding: 6px 14px; font-size: .8rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── SEARCH BOX ────────────────────────────────────────────── */
.search-box {
  display: flex;
  border: 2px solid var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 560px;
  background: var(--white);
}
.search-box input {
  flex: 1;
  padding: 12px 18px;
  border: none;
  font-size: .95rem;
  outline: none;
  color: var(--gray-900);
  background: transparent;
}
.search-box input::placeholder { color: var(--gray-500); }
.search-box button {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0 24px;
  font-size: .9rem;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background var(--transition);
  white-space: nowrap;
}
.search-box button:hover { background: var(--red); }

/* ── PAGINATION ─────────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; margin-top: 40px; }
.pagination__list { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: center; }
.pagination__link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .85rem;
  color: var(--navy);
  background: var(--white);
  transition: all var(--transition);
}
.pagination__link:hover,
.pagination__link--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.pagination__dots { color: var(--gray-500); padding: 0 4px; }

/* ── ARTICLE CONTENT ────────────────────────────────────────── */
.article-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--gray-900);
}
.article-body h2 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--navy-dark); }
.article-body h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--navy); }
.article-body p  { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 12px 0 16px 24px; }
.article-body li { margin-bottom: 6px; }
.article-body blockquote {
  border-left: 4px solid var(--red);
  padding: 12px 20px;
  background: var(--gray-100);
  margin: 20px 0;
  font-style: italic;
  color: var(--gray-700);
}
.article-body img { border-radius: var(--radius-lg); margin: 20px 0; box-shadow: var(--shadow); }

/* ── SIDEBAR ────────────────────────────────────────────────── */
.sidebar {}
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.sidebar-widget__header {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.sidebar-widget__body { padding: 16px; }
.sidebar-list-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  align-items: flex-start;
}
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-item__img {
  width: 56px; height: 40px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
}
.sidebar-list-item__title {
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-900);
}
.sidebar-list-item__title:hover { color: var(--navy); }
.sidebar-list-item__date { font-size: .72rem; color: var(--gray-500); margin-top: 3px; }

/* ── CATEGORY PILLS ─────────────────────────────────────────── */
.category-list { display: flex; flex-wrap: wrap; gap: 8px; }
.category-pill {
  display: inline-block;
  padding: 5px 14px;
  background: var(--gray-100);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--gray-700);
  transition: all var(--transition);
}
.category-pill:hover,
.category-pill--active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── ALERTS ─────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: .9rem;
}
.alert--success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert--error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert--warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert--info    { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ── ORGANIGRAMAS ────────────────────────────────────────────── */
.org-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 24px 0 40px;
}
.org-level {
  width: 100%;
}
.org-level--1 {
  display: flex;
  justify-content: center;
}
.org-level--2,
.org-level--3 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.org-level__label {
  text-align: center;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 12px;
}
.org-level__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  max-width: 100%;
}
.org-level__row--col {
  flex-direction: column;
  align-items: center;
}
.org-connector {
  width: 2px;
  height: 36px;
  background: var(--border);
  margin: 0 auto;
}
.org-connector--sm {
  height: 20px;
}
.org-branch {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Tarjeta base */
.org-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  width: 160px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.org-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.org-card img:not(.party-badge__logo) {
  width: 72px; height: 72px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  margin-bottom: 10px;
}
.org-card__body { width: 100%; }
.org-card__badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 6px;
}
.org-card__badge--senator    { background: var(--navy);  color: #fff; }
.org-card__badge--asesor     { background: var(--red);   color: #fff; }
.org-card__badge--colaborador{ background: var(--gold);  color: #fff; }
.org-card__name { font-size: .8rem; font-weight: 600; line-height: 1.3; }
.org-card__name a { color: var(--gray-900); text-decoration: none; }
.org-card__name a:hover { color: var(--navy); }
.org-card__detail { font-size: .72rem; color: var(--gray-500); margin-top: 3px; }
.org-card__detail--secondary { color: var(--gray-700); }
.org-star { color: #f5a623 !important; font-size: 1em; vertical-align: middle; line-height: 1; text-shadow: 0 0 3px rgba(245,166,35,.4); }
/* Estrella destacado en tarjetas de personas */
.senator-card__photo-wrap { position: relative; }
.senator-card__featured-pin {
  position: absolute;
  top: 6px; left: 6px;
  width: 22px; height: 22px;
  background: #f5a623;
  color: #fff;
  border-radius: 50%;
  font-size: .75rem;
  line-height: 22px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  z-index: 2;
  pointer-events: none;
  user-select: none;
}
/* Tamaños por nivel */
.org-card--senator  { width: 180px; border-top: 3px solid var(--navy); }
.org-card--senator img:not(.party-badge__logo) { width: 88px; height: 88px; }
.org-card--asesor   { border-top: 3px solid var(--red); }
.org-card--sub      { width: 148px; }
.org-card--sub img:not(.party-badge__logo)  { width: 60px; height: 60px; }
.org-card--colaborador { width: 148px; border-top: 3px solid var(--gold); }
.org-card--colaborador img:not(.party-badge__logo) { width: 60px; height: 60px; }
.org-level--4 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
/* Tarjeta index organigramas */
.org-index-card__stats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--gray-600);
  margin-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   VERIFICACIÓN DE ACREDITACIONES
═══════════════════════════════════════════════════════════════════════════ */
.verif-section {
  margin-bottom: 48px;
}
.verif-section__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gray-500);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ── FORMULARIO DE CONTACTO ─────────────────────────────────── */
.contact-form {
  margin-top: 40px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}
.contact-form__group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-form__group label span[aria-hidden] { color: var(--red); }
.contact-form__group label small { font-weight: 400; color: var(--gray-500); }
.contact-form__group input,
.contact-form__group textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: .9rem;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  background: var(--white);
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
}
.contact-form__group input:focus,
.contact-form__group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(28,42,87,.1);
}
.contact-form__group textarea { resize: vertical; min-height: 130px; }
.contact-form__hint { font-size: .75rem; color: var(--gray-500); }
.contact-form__footer { text-align: right; }
.contact-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-top: 24px;
  font-size: .9rem;
  font-weight: 500;
}
.contact-alert--ok  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.contact-alert--err { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
@media (max-width: 640px) {
  .contact-form { padding: 20px; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}
.verif-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.verif-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}
.verif-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.verif-card--senator    { }
.verif-card--asesor     { }
.verif-card--colaborador{ }
.verif-card--placeholder {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.verif-card--placeholder:hover { transform: none; box-shadow: none; }

/* Zona de imágenes: foto circular + credencial */
.verif-card__images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  background: var(--gray-100);
  padding: 16px 16px 12px;
}
.verif-card__photo {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--border);
  flex-shrink: 0;
}
/* Credencial como documento vertical */
.verif-card__credencial-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.verif-card__credencial {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
/* Marca de agua diagonal */
.verif-card__credencial-wm {
  position: absolute;
  inset: -100% -60%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  transform: rotate(-35deg);
  transform-origin: center;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(100, 20, 20, .2);
  text-transform: uppercase;
  pointer-events: none;
  user-select: none;
  word-break: break-all;
  overflow: hidden;
  line-height: 1.4;
}
.verif-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.verif-card__badge {
  display: inline-block;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 99px;
  width: auto;
  align-self: flex-start;
}
.verif-card__badge--senator     { background: var(--navy); color: #fff; }
.verif-card__badge--asesor      { background: var(--red);  color: #fff; }
.verif-card__badge--colaborador { background: var(--gold); color: #fff; }
.verif-card__name {
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
}
.verif-card__cargo {
  font-size: .78rem;
  color: var(--gray-600);
}
.verif-card__meta {
  font-size: .74rem;
  color: var(--gray-500);
}
.verif-card__vigencia {
  font-size: .74rem;
  color: var(--gray-500);
}
.verif-card__link {
  margin-top: auto;
  padding-top: 10px;
  font-size: .78rem;
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.verif-card__link:hover { text-decoration: underline; }

.verif-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  width: fit-content;
  margin-top: 4px;
}
.verif-status--ok      { background: #d1fae5; color: #065f46; }
.verif-status--expired { background: #fee2e2; color: #991b1b; }
.verif-status__icon    { font-style: normal; }
@media (max-width: 768px) {
  .org-level__row { gap: 12px; }
  .org-level--2 > .org-level__row {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .org-branch {
    width: 100%;
    max-width: 220px;
  }
  .org-card { width: 100%; max-width: 220px; padding: 12px 10px 10px; }
  .org-card img:not(.party-badge__logo) { width: 56px; height: 56px; }
  .org-card--senator { width: 150px; max-width: 150px; }
  .org-card--senator img:not(.party-badge__logo) { width: 70px; height: 70px; }
  .org-card .senator-profile__party-badge { font-size: .6rem; padding: 2px 6px; }
  .org-card .senator-profile__party-badge .party-badge__logo { width: 11px; height: 11px; }
  .org-card--colaborador { width: 100%; max-width: 170px; }
  .org-level__label { margin-bottom: 16px; }
  .org-connector { height: 28px; }
  .org-connector--sm { height: 18px; }
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.8);
  padding: 56px 0 0;
  margin-top: 64px;
}
.site-footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-brand__emblem {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-brand__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.footer-brand__sub { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-brand__desc { font-size: .84rem; line-height: 1.7; margin-bottom: 20px; }
.footer-brand__social { display: flex; gap: 8px; }
.footer-brand__social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  transition: background var(--transition);
}
.footer-brand__social a:hover { background: var(--red); color: var(--white); }

.footer-col__title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-col__links li { margin-bottom: 8px; }
.footer-col__links a {
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-col__links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 40px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  grid-template-columns: unset;
  gap: 0;
}
.footer-bottom a { color: rgba(255,255,255,.6); }
.footer-bottom a:hover { color: var(--white); }

/* ── NEWS LAYOUT (listado con sidebar) ──────────────────────── */
.news-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

/* ── DETAIL PAGE ────────────────────────────────────────────── */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  padding: 40px 0;
}
.article-header { margin-bottom: 28px; }
.article-header__category { margin-bottom: 10px; }
.article-header__title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.25;
  margin-bottom: 16px;
}
.article-header__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: var(--gray-500);
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-header__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/7;
  background: var(--gray-200);
  margin-bottom: 28px;
}
.article-header__img img { width: 100%; height: 100%; object-fit: cover; }

/* ── STATISTICS STRIP ───────────────────────────────────────── */
.stats-strip {
  background: var(--navy);
  padding: 24px 0;
}
.stats-strip .container {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 0 auto;
}
.stat-item {
  flex: 1;
  text-align: center;
  color: var(--white);
  border-right: 1px solid rgba(255,255,255,.15);
  padding: 12px 8px;
}
.stat-item:last-child { border-right: none; }
.stat-item__number { font-size: 2rem; font-weight: 700; color: var(--gold-light); }
.stat-item__label { font-size: .78rem; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; }

/* ── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}
.empty-state__icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state__text { font-size: .95rem; }

/* ── TAG ──────────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 8px;
  border-radius: 2px;
}
.tag--noticia     { background: var(--navy);  color: var(--white); }
.tag--comunicado  { background: var(--gold);  color: var(--white); }
.tag--actividad   { background: #2e7d32;      color: var(--white); }

/* ── UTILITY ────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--gray-500); }
.text-small  { font-size: .82rem; }
.mt-4  { margin-top: 16px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.py-4  { padding: 16px 0; }
.gap-3 { gap: 12px; }
.d-flex { display: flex; }
.align-center { align-items: center; }

/* ── FAB (Floating Action Buttons) ──────────────────────────── */
.fab-group {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}
.fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.30);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease, background .2s ease;
}
.fab:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,.35);
}
.fab--menu {
  background: var(--red);
  color: var(--white);
  display: none; /* solo visible en móvil */
}
.fab--menu:hover { background: var(--red-dark); }
.fab--menu.fab--menu-open {
  background: var(--red-dark);
}
.fab--top {
  background: var(--red);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
.fab--top.fab--visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.fab--top:hover { background: var(--red-dark); }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .senator-profile__grid { grid-template-columns: 240px 1fr; gap: 28px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .news-layout { grid-template-columns: 1fr 260px; gap: 28px; }
}

@media (max-width: 768px) {
  .hero { height: 340px; }
  .hero__title { font-size: 1.4rem; }
  .hero__overlay { padding: 24px; }
  .hero__arrow { display: none; }

  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--navy-dark); padding: 12px;
    box-shadow: var(--shadow-lg); z-index: 999; }
  .site-nav--open { display: flex; }
  .site-nav__item { width: 100%; }
  .site-nav__link { width: 100%; }
  .site-nav__dropdown { position: static; opacity: 1; pointer-events: all;
    transform: none; box-shadow: none; border: none; border-radius: 12px;
    background: rgba(0,0,0,.18); margin-top: 8px; overflow: hidden; }
  .site-nav__dropdown a { color: rgba(255,255,255,.82); padding: 12px 18px 12px 20px;
    font-size: .92rem; border-bottom: 1px solid rgba(255,255,255,.14); }
  .site-nav__dropdown a:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .site-nav__dropdown a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .site-header__search { display: none; }
  .site-header .container { position: relative; }
  .fab--menu { display: flex; }

  .topbar { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
  .verif-grid { grid-template-columns: repeat(2, 1fr); }
  .senator-profile__grid { grid-template-columns: 1fr; }
  .senator-profile__aside { width: 100%; }
  .senator-profile__photo img { object-position: center; }
  .site-footer .container { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom .container { flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 40px 0; }
  .quick-access { display: none; }
  .news-card--h { flex-direction: column; }
  .news-card--h .news-card__img-wrap { width: 100%; aspect-ratio: 16/9; }
  .section-header { flex-wrap: wrap; gap: 8px; }

  /* News layout: sidebar debajo en móvil */
  .news-layout { grid-template-columns: 1fr; }
  .news-layout .sidebar { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

  /* Tabs del perfil: scroll horizontal */
  .senator-profile__tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .senator-profile__tabs::-webkit-scrollbar { display: none; }

  /* Stats strip: 2x2 en móvil */
  .stats-strip .container { flex-wrap: wrap; }
  .stat-item { flex: 1 1 50%; border-right: none; border-bottom: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.15); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }

  /* Breadcrumb: evitar desbordamiento */
  .breadcrumb .container { flex-wrap: nowrap; overflow: hidden; }
  .breadcrumb__current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}

@media (max-width: 480px) {
  .news-layout .sidebar { grid-template-columns: 1fr; }
  .hero { height: 260px; }
  .hero__excerpt { display: none; }
  .hero__title { font-size: 1.2rem; }
  .page-header__title { font-size: 1.3rem; }
  .brand-text__sub { display: none; }
  .stat-item { padding: 10px 4px; }
  .stat-item__number { font-size: 1.4rem; }
  .stat-item__label { font-size: .68rem; letter-spacing: 0; }
  .senator-card { padding: 16px 10px; }
  .senator-card__photo-wrap { width: 84px; height: 112px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--3 { grid-template-columns: 1fr; }
  .verif-grid { grid-template-columns: 1fr; }
  .section { padding: 28px 0; }
  .filters { padding: 14px; gap: 10px; }
  .filter-group { min-width: 100%; }
  .search-box { flex-direction: column; border-radius: var(--radius-lg); }
  .search-box input { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .search-box button { padding: 10px 20px; height: auto; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
}
