@font-face {
  font-family: 'Gilroy-Regular';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Gilroy-Regular'),
       url('https://anticorrupcionybg.gob.mx/assets2024/fonts/Gilroy/GilroyRegular.ttf') format('truetype');
}

@font-face {
  font-family: 'Gilroy-Bold';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Gilroy-Bold'),
       url('https://anticorrupcionybg.gob.mx/assets2024/fonts/Gilroy/Gilroy-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Gilroy-Medium';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local('Gilroy-Medium'),
       url('https://anticorrupcionybg.gob.mx/assets2024/fonts/Gilroy/gilroy-medium.ttf') format('truetype');
}

:root {
  /* Gama institucional Humanismo que Transforma — Manual de identidad 2024–2030 */
  --jade: #009887;
  --jade-dark: #007a6d;
  --pink: #c90166;
  --pink-dark: #9e0051;
  --red: #ae192d;
  --red-dark: #871221;
  --sand: #d3c2b4;
  --sand-soft: #f5f1ed;
  --black: #000000;
  --ink: #332c2f;
  --muted: #6e676a;
  --line: #e8e2de;
  --white: #ffffff;
  --soft: #faf8f6;
  --shadow-sm: 0 8px 28px rgba(38, 27, 31, .07);
  --shadow-md: 0 18px 48px rgba(38, 27, 31, .12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --container: 1240px;
  --header-h: 78px;
  --ease: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  background: var(--white);
  font-family: 'Gilroy-Regular', 'Segoe UI', Arial, sans-serif;
  line-height: 1.50;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font-family: 'Gilroy-Regular', 'Segoe UI', Arial, sans-serif; font-size: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
section[id] { scroll-margin-top: 92px; }

.skip-link {
  position: fixed; left: 16px; top: -90px; z-index: 2000;
  padding: 11px 16px; background: var(--black); color: #fff; border-radius: 0 0 8px 8px;
  text-decoration: none; font-weight: 800;
}
.skip-link:focus { top: 0; }

.scroll-progress { position: fixed; left: 0; top: 0; width: 100%; height: 3px; z-index: 3000; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--jade), var(--pink), var(--red)); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.97); box-shadow: 0 1px 0 rgba(28,18,22,.08); backdrop-filter: blur(12px); }
.header-main__inner { min-height: 78px; display: flex; align-items: center; gap: 22px; }
.official-logo { display: block; flex: 0 0 300px; }
.official-logo img { width: 300px; max-height: 62px; object-fit: contain; object-position: left center; }
.main-nav { margin-left: auto; display: flex; align-items: stretch; min-height: 78px; }
.nav-link, .nav-dropdown__toggle {
  position: relative; display: flex; align-items: center; gap: 5px; padding: 0 9px;
  border: 0; background: transparent; text-decoration: none; color: #4c4145;
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif; font-size: 11.5px; font-weight: 400; white-space: nowrap;
}
.nav-link::after, .nav-dropdown__toggle::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 15px; height: 2px;
  transform: scaleX(0); transform-origin: left; background: var(--jade); transition: transform var(--ease);
}
.nav-link:hover, .nav-link.is-active, .nav-dropdown__toggle:hover, .nav-dropdown.is-active > .nav-dropdown__toggle { color: var(--red); }
.nav-link:hover::after, .nav-link.is-active::after, .nav-dropdown.is-active > .nav-dropdown__toggle::after { transform: scaleX(1); }
.nav-dropdown { position: relative; display: flex; }
.nav-dropdown__menu {
  position: absolute; left: 0; top: calc(100% - 10px); min-width: 245px; padding: 10px;
  border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
}
.nav-dropdown__menu--right { left: auto; right: 0; min-width: 310px; }
.nav-dropdown:hover .nav-dropdown__menu, .nav-dropdown:focus-within .nav-dropdown__menu, .nav-dropdown.is-open .nav-dropdown__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown__menu a { display: block; padding: 11px 12px; border-radius: 8px; text-decoration: none; font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif; font-size: 12.5px; font-weight: 400; color: #4a4044; }
.nav-dropdown__menu a:hover, .nav-dropdown__menu a.is-active { color: var(--red); background: #fbf4f7; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 20px; height: 2px; background: var(--red); transition: transform var(--ease), opacity var(--ease); }

/* Hero */
.hero { padding: 46px 0 42px; overflow: hidden; background:
  radial-gradient(circle at 4% 10%, rgba(0,152,135,.10), transparent 28%),
  radial-gradient(circle at 96% 8%, rgba(201,1,102,.10), transparent 24%),
  linear-gradient(180deg, #fff 0%, #fbf8f8 100%); }
.hero__grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 42px; align-items: center; }
.hero__copy { padding-left: clamp(0px, 2.3vw, 34px); }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--jade-dark); font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif; font-size: 11px; font-weight: 400; text-transform: uppercase; letter-spacing: .13em; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--pink); }
.kicker--light { color: #fff; }
.kicker--light::before { background: rgba(255,255,255,.7); }
.hero h1, .section-title h2, .about-copy h2, .committee-copy h2, .obligations h2, .security-doc h2 {
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-weight: 400; letter-spacing: -.025em;
}
.hero h1 { margin: 14px 0 18px; max-width: 650px; font-size: clamp(38px, 5.1vw, 68px); line-height: .96; color: var(--red); }
.hero__copy > p { max-width: 590px; margin: 0; color: var(--muted); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 20px; border: 1px solid transparent; border-radius: 9px; text-decoration: none; font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif; font-size: 14px; font-weight: 400; transition: transform var(--ease), box-shadow var(--ease), background var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn--jade { color: #fff; background: var(--jade); box-shadow: 0 8px 20px rgba(0,152,135,.18); }
.btn--jade:hover { background: var(--jade-dark); }
.btn--outline { color: var(--red); border-color: rgba(174,25,45,.35); background: rgba(255,255,255,.8); }
.btn--outline:hover { background: #fff; box-shadow: var(--shadow-sm); }
.btn--white { background: #fff; color: var(--red); box-shadow: var(--shadow-sm); }
.palette-signature { display: flex; gap: 6px; margin-top: 26px; }
.swatch { width: 42px; height: 5px; border-radius: 99px; }
.swatch--jade { background: var(--jade); }.swatch--pink { background: var(--pink); }.swatch--red { background: var(--red); }.swatch--sand { background: var(--sand); }
.hero__media { margin: 0; position: relative; border-radius: 28px 5px 28px 5px; overflow: hidden; box-shadow: var(--shadow-md); }
.hero__media::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.35); border-radius: inherit; pointer-events: none; }
.hero__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Section headings */
.section-title { max-width: 820px; margin-bottom: 24px; }
.section-title--compact { margin-bottom: 18px; }
.section-title h2, .about-copy h2, .committee-copy h2 { margin: 8px 0 0; font-size: clamp(30px, 3.3vw, 48px); line-height: 1.04; color: var(--red); }
.section-title p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.48; }

/* Sections */
.section { padding: 56px 0; }
.section--paper { background: #fff; }
.section--soft { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.about-media { position: sticky; top: 138px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.about-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-copy p { color: #4f484a; margin: 0 0 16px; font-size: 16px; line-height: 1.55; text-align: justify; }
.institution-note { margin-top: 34px; padding: 24px 28px; border-left: 5px solid var(--jade); background: linear-gradient(90deg, rgba(0,152,135,.08), rgba(201,1,102,.025)); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: #473c40; font-size: 16px; line-height: 1.52; font-weight: 700; }
.principles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 20px; }
.principle-card { position: relative; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.principle-card > span { position: absolute; right: 22px; top: 17px; color: rgba(174,25,45,.12); font-size: 40px; font-weight: 900; }
.principle-card h3 { margin: 0 0 14px; color: var(--red); font-size: 17px; }
.principle-card p, .principle-card li { font-size: 15px; line-height: 1.48; color: #51494c; }
.principle-card ul { margin: 12px 0 0; padding-left: 20px; }
.principle-card li + li { margin-top: 7px; }

/* Legal */
.legal-toolbar { display: flex; gap: 8px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.legal-tab { min-height: 40px; padding: 0 17px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #5d5357; font-size: 13px; font-weight: 900; }
.legal-tab:hover, .legal-tab.is-active { background: var(--jade); border-color: var(--jade); color: #fff; }
.legal-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.legal-item { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 13px; min-height: 76px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease); }
.legal-item:hover { transform: translateX(3px); box-shadow: var(--shadow-sm); border-color: rgba(0,152,135,.35); }
.legal-item__type { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 8px; font-weight: 900; }
.legal-item strong { display: block; font-size: 14px; line-height: 1.30; color: #3e3438; }
.legal-item small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.legal-item i { font-style: normal; color: var(--jade); font-weight: 900; }

/* Committee */
.committee-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 46px; align-items: center; }
.committee-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.committee-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.committee-copy p { font-size: 16px; line-height: 1.54; color: #51494c; }
.member-list { list-style: none; margin: 25px 0 0; padding: 0; display: grid; gap: 9px; }
.member-list li { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.member-list span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--pink); font-size: 9px; font-weight: 900; }
.member-list p { margin: 0; font-size: 14.5px; line-height: 1.42; }

/* Resources */
.resource-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.resource-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 4px 18px rgba(38,27,31,.035); }
.resource-card__label { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(0,152,135,.09); color: var(--jade-dark); font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 12px; }
.resource-card a { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border-top: 1px solid #efe9e6; text-decoration: none; color: #41373a; font-size: 14.5px; line-height: 1.36; font-weight: 750; }
.resource-card a:first-of-type { border-top: 0; }
.resource-card a span { color: var(--jade); font-size: 16px; }
.resource-card a:hover { color: var(--red); }
.simple-links { display: grid; gap: 10px; }
.simple-links--two { grid-template-columns: repeat(2,1fr); }
.simple-links a { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; text-decoration: none; font-size: 15px; line-height: 1.36; font-weight: 800; }
.simple-links a:hover { border-color: rgba(0,152,135,.38); box-shadow: var(--shadow-sm); }
.simple-links i { color: var(--jade); font-style: normal; font-size: 18px; }

/* Obligations of Transparency */
.obligations-download-section {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(118deg, var(--red-dark) 0%, var(--red) 54%, var(--pink-dark) 100%);
}
.obligations-download-section::after {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  right: -205px;
  top: -250px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  pointer-events: none;
}
.obligations-download-section .container { position: relative; z-index: 1; }
.obligations-title { margin-bottom: 24px; }
.obligations-title h2 {
  margin: 6px 0 0;
  color: #fff;
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -.025em;
}
.obligation-links { display: grid; gap: 10px; }
.obligation-download {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 13px;
  background: rgba(255,255,255,.97);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(73,10,23,.12);
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease), background var(--ease);
}
.obligation-download:hover {
  border-color: rgba(0,152,135,.48);
  background: #fff;
  box-shadow: 0 12px 32px rgba(73,10,23,.18);
  transform: translateY(-2px);
}
.obligation-download__text {
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif;
  font-size: clamp(16px, 1.6vw, 21px);
  line-height: 1.20;
}
.obligation-download__meta {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--red);
}
.obligation-download__meta small {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(174,25,45,.08);
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-size: 9px;
  letter-spacing: .08em;
}
.obligation-download__icon {
  width: 28px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--red);
}
.obligation-download__icon svg { width: 25px; height: 30px; }

.obligations-download-section { padding-top: 54px; padding-bottom: 46px; }
.obligations-consult-section { padding-top: 42px; padding-bottom: 52px; background: var(--white); }
.obligations-consult-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.35fr) minmax(300px, .65fr);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
}
.obligations-widget-card {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid rgba(0,152,135,.34);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(38,27,31,.035);
}
#widgetConsultaPublica { width: 100%; min-width: 0; }
.obligations-pnt {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: transparent;
}
.obligations-pnt img {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
}

/* Archive */
.archive-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.archive-card { position: relative; min-height: 320px; padding: 27px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; overflow: hidden; }
.archive-card::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; right: -65px; bottom: -65px; background: rgba(0,152,135,.055); }
.archive-card__index { color: var(--pink); font-size: 12px; font-weight: 900; }
.archive-card h3 { min-height: 52px; margin: 9px 0 16px; color: var(--red); font-size: 16px; line-height: 1.20; }
.archive-card a { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #eee7e3; text-decoration: none; color: #4b4245; font-size: 14px; line-height: 1.36; font-weight: 750; }
.archive-card a:hover { color: var(--jade-dark); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.privacy-grid a { min-height: 115px; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: transform var(--ease), box-shadow var(--ease); }
.privacy-grid a:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.privacy-grid span { color: var(--red); font-size: 14.5px; font-weight: 850; line-height: 1.30; }
.privacy-grid small { color: var(--jade); font-size: 11.5px; font-weight: 900; letter-spacing: .12em; }
.security-doc { color: #fff; background: linear-gradient(120deg, var(--jade-dark), var(--jade)); }
.security-doc__inner { display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.security-doc h2 { margin: 8px 0 7px; color: #fff; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; }
.security-doc p { margin: 0; color: rgba(255,255,255,.82); font-size: 15px; line-height: 1.48; }

/* Footer */
.site-footer { background: #171315; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; padding: 62px 0 46px; }
.footer-brand img { width: 335px; max-width: 100%; filter: brightness(0) invert(1); opacity: .95; }
.footer-column h3 { margin: 0 0 13px; color: var(--sand); font-size: 12px; }
.footer-column a { display: block; padding: 4px 0; color: rgba(255,255,255,.68); text-decoration: none; font-size: 12.5px; }
.footer-column a:hover { color: #fff; }
.footer-contact p { color: rgba(255,255,255,.66); font-size: 12.5px; line-height: 1.55; margin: 0; }
.gov-links { border-top: 1px solid rgba(255,255,255,.1); background: #0f0d0e; }
.gov-links__inner { min-height: 86px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 30px; }
.gov-links strong, .gov-links span { display: block; font-size: 10.5px; color: rgba(255,255,255,.6); }
.gov-links nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 16px; }
.gov-links a { color: rgba(255,255,255,.72); text-decoration: none; font-size: 10.5px; }
.gov-links a:hover { color: #fff; }
.media-links { display: flex; align-items: center; gap: 10px; }
.media-links span { margin-right: 4px; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #fff; background: var(--pink); box-shadow: 0 10px 28px rgba(201,1,102,.28); opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity var(--ease), transform var(--ease); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1160px) {
  .official-logo { flex-basis: 255px; }
  .official-logo img { width: 255px; }
  .nav-link, .nav-dropdown__toggle { padding-inline: 7px; font-size: 9.5px; }
  .nav-link::after, .nav-dropdown__toggle::after { left: 7px; right: 7px; }
}

@media (max-width: 1120px) and (min-width: 961px) {
  .obligations-consult-grid { grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 78px; }
  html { scroll-padding-top: 90px; }
  section[id] { scroll-margin-top: 90px; }
  .header-main__inner { min-height: 76px; }
  .official-logo { flex-basis: auto; }
  .official-logo img { width: min(245px, 64vw); max-height: 56px; }
  .menu-toggle { display: flex; margin-left: auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 76px 0 0; z-index: 1200; margin: 0; padding: 18px 20px 34px;
    background: rgba(255,255,255,.99); display: block; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .22s ease, visibility .22s ease;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .nav-link, .nav-dropdown__toggle { width: 100%; min-height: 49px; justify-content: space-between; padding: 0 8px; border-bottom: 1px solid var(--line); font-size: 12px; }
  .nav-link::after, .nav-dropdown__toggle::after { display: none; }
  .nav-dropdown { display: block; }
  .nav-dropdown__menu, .nav-dropdown__menu--right { position: static; min-width: 0; padding: 0 0 8px 14px; border: 0; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
  .nav-dropdown__menu a { padding: 10px 8px; border-bottom: 1px solid #f2ece9; font-size: 11px; }
  .hero { padding-top: 42px; }
  .hero__grid, .about-grid, .committee-grid, .obligations-consult-grid { grid-template-columns: 1fr; }
  .hero__copy { padding-left: 0; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/8.8; }
  .about-media { position: relative; top: auto; max-width: 520px; }
  .principles-grid { grid-template-columns: 1fr; }
  .legal-list, .resource-grid, .simple-links--two { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gov-links__inner { grid-template-columns: 1fr; gap: 16px; padding: 23px 0; text-align: center; }
  .media-links { justify-content: center; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .section { padding: 42px 0; }
  .hero { padding: 24px 0 34px; }
  .hero__grid { gap: 28px; }
  .hero__media { border-radius: 18px 4px 18px 4px; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero__copy > p { font-size: 16px; }
  .hero__actions { display: grid; }
  .btn { width: 100%; }
  .about-grid { gap: 32px; }
  .institution-note { margin-top: 26px; padding: 21px 20px; }
  .principle-card { padding: 23px 20px; }
  .legal-toolbar { overflow-x: auto; padding-bottom: 11px; }
  .legal-tab { flex: 0 0 auto; }
  .legal-item { grid-template-columns: 38px 1fr 18px; padding: 12px; }
  .committee-grid { gap: 34px; }
  .resource-card { padding: 20px; }
  .archive-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; }
  .security-doc__inner { display: grid; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 46px; }
  .footer-brand { grid-column: auto; }
  .footer-brand img { width: 300px; }
  .to-top { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Tipografía institucional: Gilroy del portal SAyBG */
h1, h2, h3, h4, h5, h6, strong, b {
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
}
.nav-link, .nav-dropdown__toggle, .nav-dropdown__menu a, .btn, .legal-tab, .filter-chip, .doc-action, .back-to-top {
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif;
}
input::placeholder { font-family: 'Gilroy-Regular', 'Segoe UI', Arial, sans-serif; }

@media (max-width: 760px) {
  .obligations-title { margin-bottom: 24px; }
  .obligation-download { min-height: 82px; margin-bottom: 0; padding: 18px 20px; }
  .obligation-download__icon { width: 40px; height: 48px; }
  .obligation-download__icon svg { width: 36px; height: 44px; }
  .obligations-consult-grid { grid-template-columns: 1fr; gap: 22px; }
  .obligations-widget { order: 1; }
  .obligations-pnt { order: 2; }
  .obligations-pnt img { max-height: 380px; object-fit: cover; }
}

/* =========================================================
   V7 — Navegación, responsive y Padrón de Sujetos Obligados
   ========================================================= */

/* El Padrón replica el lenguaje visual de Información de Interés Público. */
.obligation-download {
  min-height: 72px;
  padding: 18px 22px;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
  color: var(--ink);
  font-family: 'Gilroy-Regular', 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.36;
}
.obligation-download:hover {
  border-color: rgba(0,152,135,.38);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: none;
}
.obligation-download i {
  flex: 0 0 auto;
  color: var(--jade);
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
}

/* Menú principal: mejor lectura y caret dibujado en CSS. */
.nav-link,
.nav-dropdown__toggle {
  gap: 9px;
  padding-inline: 10px;
  font-size: 13.5px;
}
.nav-link::after,
.nav-dropdown__toggle::after {
  left: 10px;
  right: 10px;
}
.nav-caret {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin-top: -4px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform var(--ease), margin var(--ease);
}
.nav-dropdown:hover > .nav-dropdown__toggle .nav-caret,
.nav-dropdown:focus-within > .nav-dropdown__toggle .nav-caret,
.nav-dropdown.is-open > .nav-dropdown__toggle .nav-caret {
  margin-top: 4px;
  transform: rotate(225deg);
}
.nav-dropdown__menu a { font-size: 13.5px; }

/* Pasamos a menú móvil antes de que la navegación de escritorio se comprima. */
@media (max-width: 1240px) and (min-width: 1081px) {
  .official-logo { flex-basis: 235px; }
  .official-logo img { width: 235px; }
  .nav-link, .nav-dropdown__toggle { padding-inline: 7px; font-size: 12px; gap: 7px; }
  .nav-link::after, .nav-dropdown__toggle::after { left: 7px; right: 7px; }
}

@media (max-width: 1080px) {
  :root { --header-h: 76px; }
  html { scroll-padding-top: 88px; }
  section[id] { scroll-margin-top: 88px; }

  .header-main__inner { min-height: 76px; }
  .official-logo { flex-basis: auto; min-width: 0; }
  .official-logo img { width: min(260px, 68vw); max-height: 56px; }
  .menu-toggle { display: flex; margin-left: auto; flex: 0 0 auto; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  body.menu-open .site-header::after {
    content: "";
    position: fixed;
    inset: 76px 0 0;
    z-index: 1100;
    background: rgba(23,19,21,.28);
    backdrop-filter: blur(2px);
  }

  .main-nav {
    position: fixed;
    top: 76px;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 1200;
    width: min(88vw, 390px);
    min-height: 0;
    margin: 0;
    padding: 12px 18px 28px;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: rgba(255,255,255,.995);
    box-shadow: -18px 0 44px rgba(38,27,31,.16);
    transform: translateX(104%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s ease;
  }
  .main-nav.is-open { transform: translateX(0); visibility: visible; }

  .nav-link,
  .nav-dropdown__toggle {
    width: 100%;
    min-height: 54px;
    justify-content: space-between;
    padding: 0 8px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
    color: #3f3639;
  }
  .nav-link::after,
  .nav-dropdown__toggle::after { display: none; }
  .nav-link.is-active,
  .nav-dropdown.is-active > .nav-dropdown__toggle {
    color: var(--red);
  }
  .nav-link.is-active { padding-left: 15px; }
  .nav-link.is-active::before {
    content: "";
    position: absolute;
    left: 4px;
    width: 3px;
    height: 22px;
    border-radius: 999px;
    background: var(--jade);
  }

  .nav-dropdown { display: block; }
  .nav-dropdown__menu,
  .nav-dropdown__menu--right {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 8px 12px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }
  .nav-dropdown.is-open .nav-dropdown__menu { display: block; }
  .nav-dropdown__menu a {
    padding: 11px 12px;
    border-bottom: 1px solid #f1ece9;
    border-radius: 0;
    font-size: 14px;
    line-height: 1.30;
  }
  .nav-caret { width: 8px; height: 8px; margin-right: 4px; }

  .hero { padding-top: 42px; }
  .hero__grid, .about-grid, .committee-grid, .obligations-consult-grid { grid-template-columns: 1fr; }
  .hero__copy { padding-left: 0; }
  .hero__media { order: -1; }
  .hero__media img { aspect-ratio: 16/8.8; }
  .about-media { position: relative; top: auto; max-width: 520px; }
  .principles-grid { grid-template-columns: 1fr; }
  .legal-list, .resource-grid, .simple-links--two { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
  .privacy-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .gov-links__inner { grid-template-columns: 1fr; gap: 16px; padding: 23px 0; text-align: center; }
  .media-links { justify-content: center; }
}

@media (max-width: 640px) {
  .header-main__inner { gap: 10px; }
  .official-logo img { width: min(225px, 67vw); max-height: 52px; }
  .menu-toggle { width: 42px; height: 42px; border-radius: 10px; }
  .main-nav { width: 100%; padding-inline: 18px; box-shadow: none; }
  body.menu-open .site-header::after { display: none; }
  .nav-link, .nav-dropdown__toggle { min-height: 52px; font-size: 15.5px; }
  .nav-dropdown__menu a { font-size: 14.5px; }
  .obligation-download { min-height: 72px; padding: 17px 18px; font-size: 15px; }
}

/* =========================================================
   V8 — Ajustes de footer, avisos, archivística, textos y menú móvil
   ========================================================= */

/* Párrafos de contenido: lectura editorial más ordenada. */
.hero__copy > p,
.section-title p,
.about-copy p,
.principle-card p,
.committee-copy p,
.member-list p,
.security-doc p {
  text-align: justify;
  text-justify: inter-word;
}

/* Archivística: se eliminan los consecutivos 01/02/03. */
.archive-card h3 {
  margin-top: 0;
}

/* Avisos de privacidad: sustituye la etiqueta ZIP por una flecha de salida. */
.privacy-grid a {
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.privacy-grid span {
  align-self: center;
}
.privacy-arrow {
  align-self: center;
  justify-self: end;
  color: var(--jade);
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif;
  font-size: 20px;
  font-style: normal;
  line-height: 1;
  transition: transform var(--ease), color var(--ease);
}
.privacy-grid a:hover .privacy-arrow {
  color: var(--jade-dark);
  transform: translate(2px, -2px);
}

/* Última franja del footer: una sola leyenda centrada. */
.gov-links--simple {
  background: #0f0d0e;
}
.gov-links__simple-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.gov-links__simple-inner p {
  margin: 0;
  color: rgba(255,255,255,.78);
  font-size: 14px;
  line-height: 1.32;
}
.gov-links__simple-inner p > span {
  margin-inline: 8px;
  color: rgba(255,255,255,.34);
}
.gov-links__simple-inner strong {
  color: #fff;
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
}

/* Menú móvil V8: panel de pantalla completa debajo del encabezado.
   Se desactiva backdrop-filter para que position:fixed use el viewport
   y no quede limitado por el stacking/containing block del header. */
@media (max-width: 1080px) {
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.menu-open::after {
    display: none;
  }
  body.menu-open .site-header::after {
    display: none;
  }
  .main-nav {
    position: fixed;
    inset: 76px 0 0 0;
    z-index: 2500;
    width: 100vw;
    height: calc(100dvh - 76px);
    min-height: 0;
    padding: 18px max(24px, calc((100vw - 760px) / 2)) 36px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    box-shadow: inset 0 1px 0 var(--line);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }
  .main-nav > .nav-link,
  .main-nav > .nav-dropdown {
    width: min(100%, 760px);
    margin-inline: auto;
  }
  .nav-link,
  .nav-dropdown__toggle {
    min-height: 58px;
    padding-inline: 4px;
    font-size: 16px;
    border-bottom: 1px solid #eee8e4;
  }
  .nav-link.is-active {
    padding-left: 14px;
  }
  .nav-link.is-active::before {
    left: 0;
  }
  .nav-dropdown__toggle {
    text-align: left;
  }
  .nav-caret {
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-width: 2px;
  }
  .nav-dropdown__menu,
  .nav-dropdown__menu--right {
    padding: 6px 0 10px 18px;
    background: #fcfaf9;
    border-radius: 0 0 12px 12px;
  }
  .nav-dropdown__menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 10px 14px;
    font-size: 15px;
    line-height: 1.30;
    border-bottom: 1px solid #eee8e4;
  }
  .nav-dropdown__menu a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .header-main__inner {
    min-height: 72px;
  }
  .official-logo img {
    width: min(210px, 68vw);
    max-height: 50px;
  }
  .menu-toggle {
    width: 42px;
    height: 42px;
  }
  .main-nav {
    inset: 72px 0 0 0;
    height: calc(100dvh - 72px);
    padding: 10px 18px 28px;
  }
  .nav-link,
  .nav-dropdown__toggle {
    min-height: 56px;
    font-size: 16px;
  }
  .nav-dropdown__menu {
    padding-left: 12px;
  }
  .nav-dropdown__menu a {
    font-size: 15px;
  }
  .privacy-grid a {
    min-height: 88px;
    padding: 16px 18px;
  }
  .gov-links__simple-inner {
    min-height: 70px;
    padding-block: 14px;
  }
  .gov-links__simple-inner p {
    font-size: 13.5px;
  }
}

/* =========================================================
   V9 — Footer en una línea, avisos compactos y menú móvil fluido
   ========================================================= */

/* Footer inferior: toda la leyenda se mantiene en la misma línea,
   con exactamente el mismo tamaño tipográfico. */
.gov-links__simple-inner p {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
}
.gov-links__simple-inner p > span {
  display: inline;
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
.gov-links__simple-inner strong {
  display: inline;
  font-size: inherit;
  line-height: inherit;
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-weight: 400;
}

/* Avisos de Privacidad: tarjetas un poco más compactas. */
.privacy-grid a {
  min-height: 92px;
  padding: 14px 18px;
}

/* Menú móvil: transición más suave y submenús animados. */
@media (max-width: 1080px) {
  .menu-toggle span {
    transition: transform .34s cubic-bezier(.22,1,.36,1), opacity .22s ease;
  }

  .main-nav {
    opacity: 0;
    transform: translateY(-18px);
    visibility: hidden;
    pointer-events: none;
    will-change: transform, opacity;
    transition:
      transform .38s cubic-bezier(.22,1,.36,1),
      opacity .26s ease,
      visibility 0s linear .38s;
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .nav-dropdown__menu,
  .nav-dropdown__menu--right {
    display: block;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:
      max-height .38s cubic-bezier(.22,1,.36,1),
      opacity .24s ease,
      transform .34s cubic-bezier(.22,1,.36,1),
      padding .34s cubic-bezier(.22,1,.36,1);
  }
  .nav-dropdown.is-open .nav-dropdown__menu {
    max-height: 280px;
    padding-top: 6px;
    padding-bottom: 10px;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-caret {
    transition: transform .34s cubic-bezier(.22,1,.36,1), margin .34s cubic-bezier(.22,1,.36,1);
  }
}

@media (max-width: 640px) {
  .privacy-grid a {
    min-height: 76px;
    padding: 13px 16px;
  }
  .gov-links__simple-inner {
    min-height: 58px;
    padding: 12px 10px;
  }
  .gov-links__simple-inner p {
    font-size: clamp(11px, 3.15vw, 13.5px);
    gap: 6px;
  }
}

/* =========================================================
   V12 — Justificado real y bloque PNT sin marco exterior
   ========================================================= */

/* Todos los párrafos de contenido del cuerpo quedan justificados.
   Se incluye la nota institucional porque es un div y no un <p>. */
main p,
.institution-note {
  text-align: justify;
  text-justify: inter-word;
  text-align-last: left;
}

/* Consulta de obligaciones: composición más cercana al portal original.
   El contenedor exterior del widget queda totalmente limpio, sin tarjeta,
   borde, fondo, sombra ni padding añadido por la maqueta. */
.obligations-widget-card {
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  align-items: stretch;
}

#widgetConsultaPublica {
  width: 100%;
  min-width: 0;
  height: 100%;
}

/* En escritorio se recupera una proporción cercana al 5/7 del código
   institucional original. Ambos elementos comparten la misma altura. */
@media (min-width: 1081px) {
  .obligations-consult-grid {
    grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
    align-items: stretch;
  }

  .obligations-widget-card,
  .obligations-pnt {
    height: 100%;
  }

  .obligations-pnt {
    align-items: stretch;
  }

  .obligations-pnt img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
}

/* En móvil/tablet se apilan para evitar deformar el widget. */
@media (max-width: 1080px) {
  .obligations-widget-card {
    height: auto;
  }

  .obligations-pnt img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: cover;
    border-radius: 0;
    display: block;
  }
}

/* =========================================================
   V16 — Footer móvil simplificado y botón flotante visible
   ========================================================= */
@media (max-width: 640px) {
  /* En móvil el footer muestra únicamente el logotipo institucional. */
  .site-footer .footer-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
    min-height: 0;
  }

  .site-footer .footer-column,
  .site-footer .gov-links--simple {
    display: none !important;
  }

  .site-footer .footer-brand {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
  }

  .site-footer .footer-brand img {
    width: min(285px, 82vw);
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  /* Botón de regreso al inicio: siempre por encima del contenido móvil. */
  .to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 2400;
    width: 46px;
    height: 46px;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
  }

  .to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.menu-open .to-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}


/* =========================================================
   CAPACITACIÓN — Tarjetas de descargas ZIP
   ========================================================= */
.training-section {
  background: var(--soft);
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.training-card {
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid rgba(232,226,222,.92);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(38,27,31,.055);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.training-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,152,135,.24);
  box-shadow: 0 18px 42px rgba(38,27,31,.09);
}
.training-card__icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 20px;
  color: #fff;
}
.training-card__icon svg {
  width: 31px;
  height: 31px;
}
.training-card--pink .training-card__icon {
  background: linear-gradient(145deg, var(--pink), var(--red));
}
.training-card--jade .training-card__icon {
  background: linear-gradient(145deg, var(--jade), #00ad98);
}
.training-card--red .training-card__icon {
  background: linear-gradient(145deg, var(--red), #cf2b36);
}
.training-card h3 {
  margin: 0;
  color: #292629;
  font-family: 'Gilroy-Bold', 'Segoe UI', Arial, sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.18;
}
.training-card__download {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding: 0 18px;
  border-radius: 16px;
  background: #f6f6f7;
  color: #383438;
  text-decoration: none;
  font-family: 'Gilroy-Medium', 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.2;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.training-card__download svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--jade);
  transition: transform .22s ease;
}
.training-card__download:hover {
  background: rgba(0,152,135,.09);
  color: var(--jade-dark);
}
.training-card__download:hover svg {
  transform: translateY(2px);
}

@media (max-width: 1080px) {
  .training-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .training-card {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .training-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .training-card {
    min-height: 0;
    padding: 20px;
    border-radius: 20px;
  }
  .training-card__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 20px;
    border-radius: 17px;
  }
  .training-card__icon svg {
    width: 28px;
    height: 28px;
  }
  .training-card h3 {
    font-size: 22px;
  }
  .training-card__download {
    min-height: 58px;
    margin-top: 22px;
    font-size: 15.5px;
  }
}

/* =========================================================
   V21 — Archivística en móvil a una sola columna
   ========================================================= */
@media (max-width: 820px) {
  .archive-grid {
    grid-template-columns: 1fr !important;
  }
  .archive-card {
    width: 100%;
    min-height: 0;
  }
}
