/* ==========================================================================
   H. Cámara de Diputados — Inicio (versión de prueba)
   Sistema visual tomado de https://mail.diputados.gov.py/static/login/
   · Azul marino #07101E → #111F36 (160°) con filo dorado #C9A227
   · Georgia para titulares / Roboto para interfaz
   · Etiquetas en mayúsculas con tracking amplio
   · Tarjetas de 20 px con sombra profunda
   Efectos portados de Magic UI (magicui.design): blur-fade, magic-card, dot-pattern
   ========================================================================== */

/* ---------- Íconos (Font Awesome 4.7, ya incluido en el repositorio) ---------- */
@font-face {
  font-family: "FA";
  src: url("fontawesome-webfont.woff2@v=4.7.0") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.fa { font-family: "FA"; font-style: normal; font-weight: 400; line-height: 1; display: inline-block; -webkit-font-smoothing: antialiased; }
.fa-facebook::before { content: "\f09a"; }
.fa-instagram::before { content: "\f16d"; }
.fa-twitter::before { content: "\f099"; }
.fa-youtube::before { content: "\f167"; }
.fa-search::before { content: "\f002"; }
.fa-envelope-o::before { content: "\f003"; }
.fa-bars::before { content: "\f0c9"; }
.fa-angle-down::before { content: "\f107"; }
.fa-calendar-o::before { content: "\f133"; }
.fa-long-arrow-right::before { content: "\f178"; }
.fa-universal-access::before { content: "\f29a"; }
.fa-map-marker::before { content: "\f041"; }
.fa-phone::before { content: "\f095"; }
.fa-pause::before { content: "\f04c"; }
.fa-play::before { content: "\f04b"; }

/* ---------- Tokens ---------- */
:root {
  --navy-950: #07101e;
  --navy-900: #0c1829;
  --navy-800: #111f36;
  --slate: #1e3347;
  --ink: #0f1d32;

  --gold: #c9a227;
  --gold-text: #8a6a0a;          /* dorado oscuro: AA sobre fondo claro */

  --page: #f5f6f8;
  --card: #ffffff;
  --text: #1a2537;
  --muted: #5a6677;
  --line: #e6e9ed;
  --link: #0f1d32;
  --on-navy: #d6deea;
  --on-navy-muted: #b4c4da;

  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, .38), 0 8px 24px rgba(0, 0, 0, .22);
  --shadow-sm: 0 1px 2px rgba(15, 29, 50, .06), 0 8px 24px rgba(15, 29, 50, .06);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Roboto, "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --container: 1180px;
}

/* ---------- Modos de accesibilidad ---------- */
html.a11y-gray { filter: grayscale(1); }
html.a11y-contrast,
html.a11y-yellow {
  --navy-950: #000; --navy-900: #000; --navy-800: #000; --slate: #000; --ink: #fff;
  --page: #000; --card: #000; --line: #fff;
  --on-navy: #fff; --on-navy-muted: #fff;
  --shadow-sm: none; --shadow-lg: none;
}
html.a11y-contrast { --text: #fff; --muted: #fff; --link: #fff; --gold: #ffd400; --gold-text: #ffd400; }
html.a11y-yellow   { --text: #ffeb3b; --muted: #ffeb3b; --link: #ffeb3b; --gold: #ffeb3b; --gold-text: #ffeb3b; }
html.a11y-contrast a, html.a11y-yellow a { text-decoration: underline; }
html.a11y-contrast .hero, html.a11y-yellow .hero { background-image: none; background-color: #000; }
html.a11y-contrast .tile, html.a11y-yellow .tile,
html.a11y-contrast .embed-card, html.a11y-yellow .embed-card,
html.a11y-contrast .brand, html.a11y-yellow .brand { background: #fff; }
html.a11y-contrast .hero-card, html.a11y-yellow .hero-card,
html.a11y-contrast .dropdown, html.a11y-yellow .dropdown { border: 1px solid #fff; }
html.a11y-contrast .footer, html.a11y-yellow .footer { background: #000; border-top: 1px solid #fff; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, dl, dd { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
main:focus { outline: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 200;
  background: var(--gold); color: var(--navy-950); font-weight: 700;
  padding: .75rem 1.25rem; border-radius: 0 0 8px 8px; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 0; }

/* Etiqueta superior: mayúsculas, tracking amplio (como "ACCESO SEGURO") */
.eyebrow {
  font-family: var(--sans);
  font-size: .6875rem;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow--gold { color: var(--gold); }

/* ---------- Barra superior ---------- */
.topbar { background: var(--navy-950); color: var(--on-navy); font-size: .8125rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 42px; }
.a11y-tools { display: flex; align-items: center; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.a11y-tools::-webkit-scrollbar { display: none; }
.a11y-label { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-muted); margin-right: .5rem; white-space: nowrap; }
.a11y-label .fa { color: var(--gold); margin-right: .25rem; font-size: .95rem; }
.a11y-tools button {
  background: transparent; border: 1px solid transparent; color: var(--on-navy);
  padding: .3rem .6rem; border-radius: 4px; font-size: .75rem; font-weight: 500; white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s;
}
.a11y-tools button:hover { background: rgba(255, 255, 255, .08); }
.a11y-tools button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }
.social { display: flex; gap: .25rem; }
.social a {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: var(--on-navy); text-decoration: none; font-size: 1rem; transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold); color: var(--navy-950); }

/* ---------- Cabecera ---------- */
.brandbar { background: var(--card); border-bottom: 1px solid var(--line); }
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-block; padding: 2px 6px; border-radius: 6px; }
.brand img { height: 60px; width: auto; }
.brand-actions { display: flex; gap: .75rem; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: 4px;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); text-decoration: none; background: var(--card);
  transition: border-color .2s, color .2s, box-shadow .2s;
}
.btn-outline .fa { color: var(--gold-text); font-size: .95rem; }
.btn-outline:hover { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 39, .16); }

/* ---------- Menú principal ---------- */
.mainnav {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  box-shadow: 0 1px 0 rgba(201, 162, 39, .55), 0 6px 18px rgba(7, 16, 30, .18);
}
.mainnav-inner { display: flex; align-items: stretch; }
.nav-toggle {
  display: none; align-items: center; gap: .6rem; background: none; border: 0; color: #fff;
  padding: .9rem 0; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.navlist { display: flex; flex: 1; justify-content: space-between; }
.navlist > li { position: relative; display: flex; }
.nav-link {
  display: inline-flex; align-items: center; gap: .4rem; background: none; border: 0;
  height: 54px; padding: 0 .95rem; color: var(--on-navy); text-decoration: none;
  font-size: .875rem; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s, background .2s;
}
.nav-link .fa { font-size: .95rem; color: var(--gold); transition: transform .2s; }
.nav-link:hover, .has-menu.is-open > .nav-link, .nav-link[aria-current="page"] {
  color: #fff; box-shadow: inset 0 -3px 0 var(--gold); background: rgba(255, 255, 255, .04);
}
.has-menu.is-open > .nav-link .fa { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 0; z-index: 110; min-width: 320px; max-width: 420px;
  background: var(--card); color: var(--text); padding: .5rem;
  border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: 0 24px 60px rgba(7, 16, 30, .28), 0 4px 12px rgba(7, 16, 30, .12);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.navlist > li:nth-last-child(-n+2) .dropdown { left: auto; right: 0; }
.has-menu.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dropdown a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .6rem .85rem; border-radius: 8px; font-size: .875rem; line-height: 1.35;
  color: var(--text); text-decoration: none; transition: background .15s, color .15s;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--page); color: var(--ink); }
html.a11y-contrast .dropdown a:hover, html.a11y-yellow .dropdown a:hover { background: #222; }

/* marca de enlace externo (↗) */
.ext::after { content: "\2197"; font-size: .85em; opacity: .65; margin-left: .35rem; }
.dropdown .ext { margin-left: auto; }

/* ---------- Portada ---------- */
.hero {
  position: relative; isolation: isolate; padding: 56px 0 72px;
  background:
    linear-gradient(rgba(6, 10, 18, .68), rgba(6, 10, 18, .68)),
    url("../img/hero-palacio.jpg") center / cover no-repeat;
  color: #fff;
}
.hero::after { /* viñeta inferior hacia el fondo de página */
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(7, 16, 30, .35));
}
/* Magic UI · DotPattern */
.dot-pattern {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  fill: rgba(255, 255, 255, .16);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 20%, transparent 75%);
}
.hero-intro { margin-bottom: 28px; }
.hero-intro h1 {
  font-family: var(--serif); font-weight: 700; font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1.15; letter-spacing: -.005em; margin: .45rem 0 .3rem;
}
.hero-sub { font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase; color: var(--on-navy-muted); }

.hero-card {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: var(--navy-900);
}

.slider { position: relative; min-height: 400px; background: var(--navy-900); }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; transition: opacity .5s ease; }
.slide.is-active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-ui {
  position: absolute; z-index: 2; left: 20px; bottom: 18px; display: flex; align-items: center; gap: .75rem;
  padding: .4rem .65rem; border-radius: 999px; background: rgba(7, 16, 30, .72); backdrop-filter: blur(6px);
}
.slider-pause {
  width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%;
  background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff; font-size: .7rem; padding: 0;
}
.slider-pause:hover { border-color: var(--gold); color: var(--gold); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .4); transition: background .2s, transform .2s;
}
.slider-dots button[aria-current="true"] { background: var(--gold); transform: scale(1.25); }

/* Panel de presidencia: réplica del panel izquierdo del login */
.presidency {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 28px 30px;
  background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
}
.presidency::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.pres-role { margin-top: .35rem; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(214, 222, 234, .85); }
.pres-photo {
  width: 164px; height: auto; margin: 20px 0 18px; border-radius: var(--radius-sm);
  border: 1px solid rgba(201, 162, 39, .55); box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
}
.pres-name { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; line-height: 1.15; }
.pres-name a { color: #fff; text-decoration: none; }
.pres-name a:hover { color: var(--gold); }
.pres-meta { margin-top: .55rem; font-size: .75rem; letter-spacing: .06em; color: rgba(180, 196, 218, .85); }
.gold-rule { display: block; width: 56px; height: 1px; margin: 18px 0 14px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.pres-link { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); text-decoration: none; }
.pres-link .fa { margin-left: .35rem; transition: transform .2s; }
.pres-link:hover .fa { transform: translateX(4px); }

/* ---------- Secciones ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 40px 0 8px; }
.section--alt { background: var(--card); border-top: 1px solid var(--line); }

.section-head { margin-bottom: 1.5rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.section-title {
  position: relative; margin-top: .35rem; padding-bottom: .9rem;
  font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 1.875rem); line-height: 1.15; color: var(--ink);
}
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; background: var(--gold); }
html.a11y-contrast .section-title, html.a11y-yellow .section-title { color: var(--text); }

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tarjeta de imagen (envuelve banners) */
.tile {
  display: block; padding: 10px; background: var(--card); border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm); text-decoration: none; height: 100%;
}
.tile img { width: 100%; height: auto; border-radius: 6px; }
.tile--sm { padding: 8px; border-radius: 12px; }
.featured .tile, .services .tile { display: grid; align-items: center; }

/* ---------- Magic UI · MagicCard (modo gradient) ----------
   Borde con foco que sigue al cursor + resplandor interior. Parámetros del
   componente original: gradientSize 200, opacity .8; colores adaptados a la paleta. */
.magic-card {
  --mc-size: 220px; --mc-from: #c9a227; --mc-to: #1e3347; --mc-glow: rgba(201, 162, 39, .12); --mc-opacity: .8;
  --mx: -220px; --my: -220px;
  position: relative; isolation: isolate; overflow: hidden; border: 1px solid transparent;
  background:
    linear-gradient(var(--card) 0 0) padding-box,
    radial-gradient(var(--mc-size) circle at var(--mx) var(--my), var(--mc-from), var(--mc-to), var(--line) 100%) border-box;
  transition: transform .25s ease, box-shadow .25s ease;
}
.magic-card::before {
  content: ""; position: absolute; inset: 1px; z-index: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(var(--mc-size) circle at var(--mx) var(--my), var(--mc-glow), transparent 100%);
  opacity: 0; transition: opacity .3s;
}
.magic-card:hover::before, .magic-card:focus-visible::before { opacity: var(--mc-opacity); }
.magic-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15, 29, 50, .06), 0 14px 32px rgba(15, 29, 50, .12); }
.magic-card > * { position: relative; z-index: 1; }

/* ---------- Magic UI · BlurFade ----------
   Valores por defecto del componente: duration .4s, delay .04s, blur 6px, easeOut. */
.js [data-blur-fade] {
  opacity: 0;
  filter: blur(var(--bf-blur, 6px));
  transform: translate3d(var(--bf-x, 0), var(--bf-y, -6px), 0);
  transition:
    opacity var(--bf-dur, .4s) ease-out var(--bf-delay, .04s),
    filter var(--bf-dur, .4s) ease-out var(--bf-delay, .04s),
    transform var(--bf-dur, .4s) ease-out var(--bf-delay, .04s);
  will-change: opacity, filter, transform;
}
.js [data-blur-fade].is-visible { opacity: 1; filter: blur(0); transform: none; }
.js [data-blur-fade].is-done { filter: none; will-change: auto; }

/* ---------- Noticias ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }

.news-item {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.news-item:first-child { padding-top: 6px; }
.news-pic { display: block; border-radius: var(--radius-sm); overflow: hidden; align-self: start; box-shadow: var(--shadow-sm); }
.news-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.news-item:hover .news-pic img { transform: scale(1.035); }
.news-title { font-family: var(--serif); font-weight: 700; font-size: 1.3125rem; line-height: 1.3; }
.news-title a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 2px no-repeat; transition: background-size .3s ease; }
.news-title a:hover { background-size: 100% 2px; }
html.a11y-contrast .news-title a, html.a11y-yellow .news-title a { color: var(--text); }
.news-date { margin: .55rem 0 .8rem; font-size: .75rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.news-date .fa { color: var(--gold-text); margin-right: .35rem; }
.news-summary { font-size: .9688rem; line-height: 1.7; color: var(--muted); }

.news-pic--empty { display: block; width: 100%; aspect-ratio: 3 / 2; background: linear-gradient(160deg, var(--navy-950), var(--navy-800)); }
.news-empty { padding: 2rem 0; color: var(--muted); font-size: .9688rem; }

.news-more { margin-top: 28px; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .7rem; padding: .85rem 1.75rem;
  background: var(--slate); color: #fff; border-radius: 4px; text-decoration: none;
  font-size: .8125rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, box-shadow .2s;
}
.btn-primary:hover { background: var(--navy-950); box-shadow: inset 0 -3px 0 var(--gold); }
.btn-primary .fa { transition: transform .2s; }
.btn-primary:hover .fa { transform: translateX(4px); }
html.a11y-contrast .btn-primary, html.a11y-yellow .btn-primary { border: 1px solid #fff; }

/* ---------- Barra lateral ---------- */
.side { display: grid; gap: 36px; }
.side .eyebrow { display: block; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.side-tiles { display: grid; gap: 12px; }
.embed-card { margin-bottom: 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); overflow: hidden; }
.embed-card iframe { display: block; width: 100%; max-width: 100%; }
.embed-card .twitter-timeline { font-size: .875rem; }

/* ---------- Pie ---------- */
.footer { position: relative; color: var(--on-navy); background: linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%); }
.footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.footer-grid { display: grid; grid-template-columns: 1fr 1.05fr 320px; gap: 56px; padding-top: 64px; padding-bottom: 56px; }
.footer .eyebrow { display: block; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer a { color: var(--on-navy); text-decoration: none; }
.footer a:hover { color: var(--gold); }
.footer-links li + li { margin-top: .1rem; }
.footer-links a { display: block; padding: .55rem 0; font-size: .9rem; border-bottom: 1px solid rgba(255, 255, 255, .06); transition: padding-left .2s, color .2s; }
.footer-links a:hover { padding-left: .4rem; }

.footer-info { text-align: left; }
.footer-logo { width: 150px; height: auto; margin-bottom: 26px; filter: brightness(0) invert(1); } /* logo en blanco, igual que la referencia */
.info-list { display: grid; gap: 14px; }
.info-list dt { font-size: .6875rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--on-navy-muted); }
.info-list dt .fa { color: var(--gold); margin-right: .45rem; font-size: .95rem; width: 1em; text-align: center; }
.info-list dd { margin-top: .15rem; font-size: .9375rem; color: #fff; }
.footer-map iframe { display: block; width: 100%; height: 300px; border-radius: var(--radius-md); border: 1px solid rgba(255, 255, 255, .14); filter: grayscale(.35) contrast(1.02); }

.footer-base { background: #fff; border-top: 3px solid var(--gold); color: var(--muted); }
.footer-base-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 20px; padding-bottom: 20px; text-align: center; font-size: .8125rem; }
.footer-base a { color: var(--ink); }
.footer-base a:hover { color: var(--gold-text); }
.footer-base img { height: 34px; width: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; }
  .hero-card { grid-template-columns: minmax(0, 1fr) 320px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
  .footer-map iframe { height: 260px; }
}

@media (max-width: 991.98px) {
  .nav-toggle { display: inline-flex; }
  .navlist {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0;
    max-height: calc(100vh - 56px); overflow-y: auto; padding: .5rem 24px 1rem;
    background: var(--navy-900); border-top: 1px solid rgba(201, 162, 39, .55); box-shadow: 0 24px 40px rgba(7, 16, 30, .35);
  }
  .navlist.is-open { display: flex; }
  .navlist > li { display: block; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-link { width: 100%; height: 50px; justify-content: space-between; padding: 0; box-shadow: none !important; background: none !important; }
  .dropdown, .navlist > li:nth-last-child(-n+2) .dropdown {
    position: static; display: none; min-width: 0; max-width: none; opacity: 1; visibility: visible; transform: none;
    margin: 0 0 .75rem; box-shadow: none; border-top: 0; border-left: 3px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  }
  .has-menu.is-open > .dropdown { display: block; }

  .brandbar-inner { flex-direction: column; align-items: flex-start; }
  .hero-card { grid-template-columns: 1fr; }
  .slider { min-height: 0; aspect-ratio: 730 / 363; }
  .presidency::before { left: 0; right: 0; bottom: auto; width: auto; height: 4px; }
  .layout { grid-template-columns: 1fr; }
  .side { grid-template-columns: 1fr 1fr; align-items: start; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .topbar-inner { flex-direction: column; align-items: stretch; padding-top: 6px; padding-bottom: 6px; gap: .25rem; }
  .a11y-label { display: none; }
  .social { justify-content: center; }
  .brandbar-inner { align-items: center; }
  .brand img { height: 52px; }
  .brand-actions { width: 100%; }
  .brand-actions .btn-outline { flex: 1; justify-content: center; }
  .hero { padding: 36px 0 48px; }
  .section { padding: 40px 0; }
  .news-item { grid-template-columns: 1fr; gap: 16px; }
  .side { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .slider-ui { left: 12px; bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js [data-blur-fade] { opacity: 1; filter: none; transform: none; }
  .magic-card:hover { transform: none; }
}
