:root {
  --blog-ink: #101820;
  --blog-paper: #f5f4ef;
  --blog-white: #fff;
  --blog-muted: #667079;
  --blog-line: rgba(16, 24, 32, .14);
  --blog-accent: #13a89e;
  --blog-accent-dark: #087c75;
  --blog-police: #183c68;
  --blog-guard: #236343;
}

.blog-page {
  background: var(--blog-paper);
  color: var(--blog-ink);
}

.blog-page img { max-width: 100%; }
.blog-page a { text-underline-offset: .18em; }

.blog-editorial-kicker {
  display: inline-block;
  color: var(--blog-accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  line-height: 1.3;
}

.blog-editorial-hero {
  position: relative;
  overflow: hidden;
  background: var(--blog-ink);
  color: var(--blog-white);
  padding: clamp(7.5rem, 12vw, 11rem) 0 clamp(4.25rem, 8vw, 7.5rem);
}

.blog-editorial-hero::after {
  position: absolute;
  right: -9rem;
  bottom: -12rem;
  width: 32rem;
  height: 32rem;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, .025), 0 0 0 10rem rgba(255, 255, 255, .018);
  content: "";
}

.blog-editorial-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
}

.blog-editorial-hero__copy { max-width: 820px; }

.blog-editorial-hero h1 {
  max-width: 780px;
  margin: 1rem 0 1.25rem;
  color: inherit;
  font-size: clamp(2.55rem, 6vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .97;
}

.blog-editorial-hero p {
  max-width: 670px;
  margin: 0;
  color: rgba(255, 255, 255, .74);
  font-size: clamp(1rem, 1.6vw, 1.24rem);
  line-height: 1.65;
}

.blog-editorial-hero__mark,
.blog-editorial-hero__crest {
  color: rgba(255, 255, 255, .95);
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 900;
  letter-spacing: -.06em;
  line-height: .72;
  text-align: right;
}

.blog-editorial-hero__mark span { color: var(--blog-accent); }

.blog-editorial-hero__crest {
  display: grid;
  width: clamp(8rem, 15vw, 12rem);
  aspect-ratio: 1;
  place-content: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  line-height: 1;
  text-align: center;
}

.blog-editorial-hero__crest small {
  margin-top: .8rem;
  font-size: .6rem;
  letter-spacing: .16em;
}

.blog-section--policia-nacional .blog-editorial-hero { background: var(--blog-police); }
.blog-section--guardia-civil .blog-editorial-hero { background: var(--blog-guard); }

.blog-section-switch {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 2rem;
}

.blog-section-switch a {
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .62rem 1rem;
  text-decoration: none;
}

.blog-section-switch a:hover,
.blog-section-switch a.is-active { background: #fff; color: var(--blog-ink); }

.blog-channel-section { padding: clamp(3.5rem, 8vw, 7rem) 0; }

.blog-channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--blog-line);
}

.blog-channel {
  position: relative;
  min-height: 30rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4.5rem);
  background: #fff;
}

.blog-channel + .blog-channel { border-left: 1px solid var(--blog-line); }

.blog-channel::after {
  position: absolute;
  right: -2.8rem;
  bottom: -4.7rem;
  color: rgba(16, 24, 32, .035);
  content: attr(data-channel);
  font-size: 15rem;
  font-weight: 900;
  line-height: 1;
}

.blog-channel__number {
  margin-bottom: 4rem;
  color: #a0a5aa;
  font-size: .8rem;
  font-weight: 700;
}

.blog-channel h2 {
  max-width: 500px;
  margin: 1rem 0;
  color: var(--blog-ink);
  font-size: clamp(1.85rem, 3vw, 3rem);
  letter-spacing: -.04em;
  line-height: 1.05;
}

.blog-channel p { max-width: 500px; color: var(--blog-muted); line-height: 1.7; }

.blog-channel > a,
.blog-featured__content > a,
.blog-newsletter-cta a,
.article-aside a {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  margin-top: 1rem;
  color: var(--blog-ink);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.blog-channel--policia { border-top: 4px solid var(--blog-police); }
.blog-channel--guardia { border-top: 4px solid var(--blog-guard); }

.blog-latest-section,
.related-articles { padding: clamp(4rem, 8vw, 7.5rem) 0; background: #fff; }
.related-articles { border-top: 1px solid var(--blog-line); }

.blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.blog-section-heading h2 {
  margin: .55rem 0 0;
  color: var(--blog-ink);
  font-size: clamp(2rem, 4vw, 3.8rem);
  letter-spacing: -.045em;
  line-height: 1;
}

.blog-section-heading > p,
.blog-section-heading > a { margin: 0; color: var(--blog-muted); font-size: .9rem; }

.blog-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.blog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-bottom: 1px solid var(--blog-line);
  padding-bottom: 1.6rem;
}

.blog-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin-bottom: 1.35rem;
  background: #e7e7e3;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.blog-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(16, 24, 32, .16);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.blog-card__featured {
  position: absolute;
  top: .8rem;
  left: .8rem;
  border-radius: 999px;
  background: var(--blog-accent);
  color: var(--blog-ink);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: .38rem .65rem;
  text-transform: uppercase;
}

.blog-card:hover .blog-card__image img { transform: scale(1.025); }

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: .9rem;
  color: var(--blog-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.blog-card__section { color: var(--blog-accent-dark); }

.blog-card h3 {
  margin: 0 0 .75rem;
  color: var(--blog-ink);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: -.025em;
  line-height: 1.2;
}

.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card h3 a:hover { color: var(--blog-accent-dark); }
.blog-card p { margin: 0; color: var(--blog-muted); line-height: 1.65; }
.blog-card__link { display: inline-flex; gap: .5rem; margin-top: auto; padding-top: 1rem; color: var(--blog-ink); font-size: .8rem; font-weight: 800; text-decoration: none; }

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  margin-top: 3.5rem;
}

.blog-pagination a,
.blog-pagination span,
.blog-pagination strong {
  display: grid;
  min-width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid var(--blog-line);
  color: var(--blog-ink);
  font-size: .8rem;
  font-weight: 700;
  text-decoration: none;
}

.blog-pagination > div { display: flex; gap: .35rem; }

.blog-pagination a:hover,
.blog-pagination strong { border-color: var(--blog-ink); background: var(--blog-ink); color: #fff; }

.blog-newsletter-cta { padding: clamp(3.75rem, 8vw, 6.5rem) 0; background: var(--blog-accent); }
.blog-newsletter-cta .container { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.blog-newsletter-cta .blog-editorial-kicker { color: rgba(0, 0, 0, .6); }
.blog-newsletter-cta h2 { margin: .55rem 0 .6rem; color: var(--blog-ink); font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.05em; }
.blog-newsletter-cta p { margin: 0; color: rgba(16, 24, 32, .72); }
.blog-newsletter-cta a { flex: 0 0 auto; border-bottom: 2px solid var(--blog-ink); padding-bottom: .3rem; }

.blog-featured { padding: clamp(3rem, 7vw, 6rem) 0 0; background: #fff; }
.blog-featured + .blog-latest-section { padding-top: clamp(3rem, 6vw, 5rem); }
.blog-featured__card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(18rem, .75fr); background: var(--blog-ink); color: #fff; }
.blog-featured__image { min-height: 28rem; background: #30373d; }
.blog-featured__image img { width: 100%; height: 100%; object-fit: cover; }
.blog-featured__content { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 5vw, 4rem); }
.blog-featured__content time { margin: 1.1rem 0 0; color: rgba(255, 255, 255, .58); font-size: .76rem; }
.blog-featured__content h2 { margin: .85rem 0 1rem; color: #fff; font-size: clamp(1.9rem, 3.3vw, 3.25rem); letter-spacing: -.04em; line-height: 1.05; }
.blog-featured__content p { color: rgba(255, 255, 255, .7); line-height: 1.7; }
.blog-featured__content > a { color: #fff; }

.blog-preview-banner {
  position: sticky;
  z-index: 999;
  top: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: .7rem 1rem;
  background: #ffd95a;
  color: #201a00;
  font-size: .82rem;
}

.article-hero {
  position: relative;
  display: flex;
  min-height: min(760px, 88vh);
  align-items: end;
  overflow: hidden;
  background: var(--blog-ink);
  color: #fff;
  padding: 9rem 0 4.5rem;
}

.article-hero__image,
.article-hero__overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.article-hero__image { object-fit: cover; }
.article-hero__overlay { background: linear-gradient(180deg, rgba(5, 11, 16, .25) 12%, rgba(5, 11, 16, .88) 88%); }
.article-hero__inner { position: relative; z-index: 1; }

.article-breadcrumb {
  display: flex;
  max-width: 900px;
  gap: .55rem;
  overflow: hidden;
  margin-bottom: 2.2rem;
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  white-space: nowrap;
}
.article-breadcrumb a { color: inherit; text-decoration: none; }
.article-breadcrumb span:last-child { overflow: hidden; text-overflow: ellipsis; }
.article-hero__sections { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.article-hero__sections a { border: 1px solid rgba(255, 255, 255, .42); border-radius: 999px; color: #fff; font-size: .68rem; font-weight: 800; letter-spacing: .08em; padding: .43rem .75rem; text-decoration: none; text-transform: uppercase; }
.article-hero h1 { max-width: 980px; margin: 0; color: #fff; font-size: clamp(2.4rem, 6vw, 5.4rem); letter-spacing: -.055em; line-height: .98; }
.article-hero h1 + p { max-width: 780px; margin: 1.35rem 0 0; color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 1.8vw, 1.25rem); line-height: 1.6; }
.article-hero__meta { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2rem; color: rgba(255, 255, 255, .68); font-size: .75rem; }

.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 320px); justify-content: space-between; gap: clamp(3rem, 8vw, 7rem); padding-top: clamp(3.5rem, 8vw, 7rem); padding-bottom: clamp(4rem, 9vw, 8rem); }
.article-content { min-width: 0; color: #27313a; font-size: clamp(1rem, 1.25vw, 1.1rem); line-height: 1.82; }
.article-content__lead { margin: 0 0 2.5rem; color: var(--blog-ink); font-size: clamp(1.22rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.55; }
.article-content h2 { margin: 3.2rem 0 1rem; color: var(--blog-ink); font-size: clamp(1.75rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
.article-content h3 { margin: 2.5rem 0 .8rem; color: var(--blog-ink); font-size: clamp(1.35rem, 2.2vw, 1.85rem); letter-spacing: -.02em; line-height: 1.2; }
.article-content h4 { margin: 2rem 0 .75rem; color: var(--blog-ink); font-size: 1.2rem; }
.article-content p { margin: 0 0 1.4rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.7rem; padding-left: 1.4rem; }
.article-content li { margin-bottom: .55rem; padding-left: .25rem; }
.article-content a { color: var(--blog-accent-dark); font-weight: 650; }
.article-content blockquote { margin: 2.5rem 0; border-left: 4px solid var(--blog-accent); padding: .35rem 0 .35rem 1.5rem; color: var(--blog-ink); font-size: 1.22rem; font-weight: 600; }
.article-content figure { margin: 2.5rem 0; }
.article-content figure img,
.article-content > img { display: block; width: auto; height: auto; margin: 2.5rem auto; }
.article-content figcaption { margin-top: .7rem; color: var(--blog-muted); font-size: .78rem; text-align: center; }
.article-content hr { margin: 3rem 0; border: 0; border-top: 1px solid var(--blog-line); }
.article-content .blog-video,
.article-content .video-responsive,
.article-content .embed-responsive { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin: 2.5rem 0; }
.article-content iframe { width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border: 0; }
.article-content .blog-video iframe,
.article-content .video-responsive iframe,
.article-content .embed-responsive iframe { position: absolute; inset: 0; height: 100%; }
.article-content .blog-detail__table-wrap,
.article-content .blog-content__table-wrap,
.article-content .table-responsive { max-width: 100%; overflow-x: auto; margin: 2rem 0; -webkit-overflow-scrolling: touch; }
.article-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .9rem; line-height: 1.5; }
.article-content th,
.article-content td { border: 1px solid var(--blog-line); padding: .85rem 1rem; text-align: left; vertical-align: top; }
.article-content th { background: var(--blog-ink); color: #fff; }
.article-content tbody tr:nth-child(even) { background: rgba(16, 24, 32, .035); }
.article-content .blog-detail__notice,
.article-content .blog-detail__highlight,
.article-content .alert { margin: 2rem 0; border-left: 4px solid var(--blog-accent); background: rgba(19, 168, 158, .1); padding: 1.2rem 1.35rem; }

.article-aside { align-self: start; }
.article-aside > div { position: sticky; top: 7rem; border-top: 4px solid var(--blog-accent); background: #fff; padding: 2rem; box-shadow: 0 18px 48px rgba(16, 24, 32, .08); }
.article-aside h2 { margin: 1rem 0; color: var(--blog-ink); font-size: 1.7rem; letter-spacing: -.035em; line-height: 1.12; }
.article-aside p { color: var(--blog-muted); line-height: 1.65; }

@media (max-width: 1024px) {
  .blog-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-featured__card { grid-template-columns: 1.05fr .95fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; }
}

@media (max-width: 768px) {
  .blog-editorial-hero__inner { grid-template-columns: 1fr; }
  .blog-editorial-hero__mark,
  .blog-editorial-hero__crest { display: none; }
  .blog-channel-grid { grid-template-columns: 1fr; }
  .blog-channel { min-height: 0; }
  .blog-channel + .blog-channel { border-left: 0; border-top: 1px solid var(--blog-line); }
  .blog-channel--policia,
  .blog-channel--guardia { border-top-width: 4px; }
  .blog-channel__number { margin-bottom: 2rem; }
  .blog-featured__card { grid-template-columns: 1fr; }
  .blog-featured__image { min-height: 20rem; }
  .article-layout { grid-template-columns: 1fr; }
  .article-aside > div { position: static; }
  .blog-newsletter-cta .container { align-items: start; flex-direction: column; }
}

@media (max-width: 575px) {
  .blog-editorial-hero { padding-top: 7rem; }
  .blog-editorial-hero h1 { font-size: 2.65rem; }
  .blog-section-heading { align-items: start; flex-direction: column; gap: .8rem; }
  .blog-cards-grid { grid-template-columns: 1fr; }
  .blog-card__image { aspect-ratio: 16 / 9; }
  .blog-featured__image { min-height: 14rem; }
  .blog-preview-banner { align-items: center; flex-direction: column; gap: .1rem; text-align: center; }
  .article-hero { min-height: 680px; padding-bottom: 3rem; }
  .article-breadcrumb { margin-bottom: 1.5rem; }
  .article-hero h1 { font-size: 2.5rem; }
  .article-layout { padding-right: 1.15rem; padding-left: 1.15rem; }
  .article-content { font-size: 1rem; line-height: 1.72; }
  .article-content blockquote { margin-right: 0; margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card__image img { transition: none; }
}

.article-downloads {
  margin-top: 3.5rem;
  padding: 1.65rem;
  border: 1px solid #d9e7e9;
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #f4fbfa 0%, #fff 72%);
}

.article-downloads__heading span {
  color: #008f88;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.article-downloads__heading h2 {
  margin: .25rem 0 1.25rem;
  color: #102a40;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.article-downloads__list {
  display: grid;
  gap: .75rem;
}

.article-download {
  display: grid;
  grid-template-columns: 3.15rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .9rem;
  padding: 1rem;
  border: 1px solid #dce8eb;
  border-radius: .9rem;
  background: #fff;
  color: #18384b;
  box-shadow: 0 8px 24px rgba(16, 42, 64, .05);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

a.article-download:hover,
a.article-download:focus-visible {
  border-color: #00a79f;
  color: #102a40;
  box-shadow: 0 12px 28px rgba(16, 42, 64, .1);
  text-decoration: none;
  transform: translateY(-1px);
}

.article-download__icon {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  place-items: center;
  border-radius: .78rem;
  background: #e2f7f5;
  color: #008f88;
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .05em;
}

.article-download__copy,
.article-download__copy strong,
.article-download__copy small,
.article-download__copy em {
  display: block;
}

.article-download__copy strong {
  overflow-wrap: anywhere;
  color: #102a40;
  font-size: 1rem;
}

.article-download__copy small {
  margin-top: .18rem;
  color: #536f7e;
  font-size: .87rem;
  line-height: 1.45;
}

.article-download__copy em {
  margin-top: .35rem;
  color: #008f88;
  font-size: .72rem;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.article-download__arrow {
  color: #00a79f;
  font-size: 1.5rem;
  font-weight: 800;
}

.article-download--preview {
  cursor: not-allowed;
  opacity: .72;
}

@media (max-width: 575px) {
  .article-downloads { margin-top: 2.5rem; padding: 1.1rem; }
  .article-download { grid-template-columns: 2.7rem minmax(0, 1fr) auto; gap: .7rem; padding: .85rem; }
  .article-download__icon { width: 2.7rem; height: 2.7rem; }
}
