@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-900.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue-soft: #60a5fa;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e8eef7;
  --bg: #ffffff;
  --dark: #0b1220;
  --radius: 22px;
  --header: 88px;
  --container: 1180px;
  --display: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --body: "Satoshi", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--display);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.header-inner {
  width: min(100% - 2.2rem, 1240px);
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
}

.brand__mark {
  width: 34px;
  height: 34px;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.brand__mark svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nav__link {
  color: #334155;
  font-weight: 500;
  font-size: 0.98rem;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: color 0.25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: 0.25s var(--ease);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.call-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--dark);
  color: #fff;
  border-radius: 999px;
  padding: 0.78rem 1.15rem;
  font-size: 0.92rem;
  font-weight: 500;
  transition: 0.25s var(--ease);
}

.call-btn svg {
  width: 16px;
  height: 16px;
}

.call-btn:hover {
  transform: translateY(-2px);
  background: #1e293b;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  background: var(--ink);
  margin: 4px auto;
  transition: 0.25s var(--ease);
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
  width: min(100% - 2.5rem, 1240px);
  margin: 0 auto;
  padding: 3.2rem 0 2.2rem;
}

.hero__eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 1.1rem;
}

.hero h1 {
  font-size: clamp(3.1rem, 6.4vw, 5.35rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
  max-width: 10ch;
}

.hero-card {
  background: linear-gradient(180deg, #4f8cff 0%, #3b82f6 48%, #2f74f0 100%);
  color: #fff;
  border-radius: 28px;
  padding: 2.3rem 2.1rem 2.1rem;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.28);
  transition: transform 0.35s var(--ease);
}

.hero-card h2 {
  font-size: 2rem;
  margin-bottom: 0.7rem;
}

.hero-card > p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.4rem;
}

.hero-card label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.hero-card input,
.hero-card select,
.hero-card textarea,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  outline: none;
  transition: 0.25s var(--ease);
}

.hero-card input::placeholder,
.hero-card textarea::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.hero-card select option {
  color: var(--ink);
}

.hero-card input:focus,
.hero-card select:focus,
.hero-card textarea:focus {
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  font-family: var(--display);
  transition: 0.25s var(--ease);
}

.btn--white {
  background: #fff;
  color: var(--blue-deep);
  width: 100%;
  margin-top: 0.4rem;
}

.btn--white:hover,
.btn--blue:hover,
.btn--dark:hover {
  transform: translateY(-2px);
}

.btn--blue {
  background: var(--blue);
  color: #fff;
}

.btn--dark {
  background: var(--dark);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #cbd5e1;
}

.hero-band {
  overflow: hidden;
  height: 210px;
  margin-top: 1.2rem;
}

.hero-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
  transform: scale(1.04);
}

.section {
  padding: 5.2rem 0;
}

.section--soft {
  background: #f8fbff;
}

.kicker {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}

.section h2 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  max-width: 18ch;
}

.section__head {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2.4rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split img,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
}

.media-frame {
  overflow: hidden;
  border-radius: 24px;
  min-height: 360px;
}

.topics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  transition: 0.3s var(--ease);
}

.topic-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.topic-card h3 {
  font-size: 1.15rem;
}

.topic-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.icon-blob {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}

.icon-blob svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 1.6rem;
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}

.stat span {
  color: #cbd5e1;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.value {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  background: #fff;
}

.value h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.value p {
  color: var(--muted);
}

.posts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.post-card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  transition: 0.3s var(--ease);
}

.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.post-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.post-card__body {
  padding: 1.25rem 1.3rem 1.4rem;
  display: grid;
  gap: 0.55rem;
}

.post-card__meta {
  color: var(--blue);
  font-weight: 700;
  font-size: 0.82rem;
}

.post-card h3 {
  font-size: 1.2rem;
}

.post-card p {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.9rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  transition: transform 0.5s var(--ease);
}

.gallery a:first-child {
  grid-row: 1 / span 2;
}

.gallery a:hover img {
  transform: scale(1.05);
}

.gallery a {
  overflow: hidden;
  border-radius: 18px;
}

.slider {
  overflow: hidden;
}

.slider__track {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.comments {
  display: grid;
  gap: 0.9rem;
  max-width: 820px;
}

.comment {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.15rem 1.3rem 1.2rem;
}

.comment__meta {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
  margin-bottom: 0.45rem;
}

.comment p:last-child {
  color: var(--ink);
  font-size: 1.02rem;
}

.quote__stars {
  color: #f59e0b;
  letter-spacing: 0.12em;
  margin-bottom: 0.7rem;
}

.quote h3 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.quote footer {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.quote img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.slider-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.slider-nav button,
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #cbd5e1;
  cursor: pointer;
}

.dot.is-active {
  background: var(--blue);
  width: 28px;
  border-radius: 99px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
}

.faq-item button span:last-child {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #eff6ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  color: var(--muted);
  transition: 0.35s var(--ease);
}

.faq-item.is-open .faq-body {
  max-height: 180px;
  padding-bottom: 1.1rem;
}

.page-hero {
  padding: 4.2rem 0 2.2rem;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.page-hero p {
  max-width: 46ch;
  color: var(--muted);
  margin-top: 0.9rem;
  font-size: 1.08rem;
}

.cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.cat-nav a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 700;
  font-family: var(--display);
  font-size: 0.92rem;
  transition: 0.25s var(--ease);
}

.cat-nav a:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.cat-lead {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  margin-top: 0.35rem;
}

.posts + .cat-more,
.cat-more {
  margin-top: 1.6rem;
}

#casa-agua,
#verde-casa,
#vida-municipio,
#claves-credenciales {
  scroll-margin-top: 110px;
}

.article-meta a {
  color: var(--blue-deep);
}

.back-top {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 70;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.28s var(--ease);
}

.back-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.article {
  padding: 2rem 0 4.5rem;
}

.article-shell {
  width: min(100% - 2.2rem, 1120px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 200px minmax(0, 820px);
  gap: 2.6rem;
  align-items: start;
}

.article__wrap {
  width: min(100% - 2.5rem, 820px);
  margin-inline: auto;
  min-width: 0;
}

.article-shell .article__wrap {
  width: 100%;
  margin: 0;
}

.article-toc {
  position: sticky;
  top: calc(var(--header) + 18px);
  padding-top: 0.4rem;
}

.article-toc p {
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.7rem;
}

.article-toc a {
  display: block;
  font-size: 0.88rem;
  color: #64748b;
  padding: 0.32rem 0;
  line-height: 1.35;
}

.article-toc a.is-active {
  color: var(--blue-deep);
  font-weight: 600;
}

.toc-mobile {
  display: none;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  margin-bottom: 0.6rem;
}

.toc-mobile a {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.article-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1.1rem;
}

.article-chip {
  border: 1px solid var(--line);
  background: #f8fbff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  color: #334155;
}

.article-chip button,
.copy-link {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
}

.article h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  margin: 0.4rem 0 1rem;
}

.article .lead {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 1.2rem;
}

.article h2 {
  font-size: 1.7rem;
  margin: 2.3rem 0 0.8rem;
  scroll-margin-top: 108px;
}

.article h3 {
  font-size: 1.2rem;
  margin: 1.4rem 0 0.55rem;
}

.article p,
.article li {
  color: #334155;
}

.article p + p {
  margin-top: 0.95rem;
}

.article ul,
.article ol {
  padding-left: 1.15rem;
  margin: 0.85rem 0 1.1rem;
}

.article li + li {
  margin-top: 0.35rem;
}

.article figure {
  margin: 1.5rem 0;
}

.article img,
.article figure img {
  width: 100%;
  border-radius: 20px;
  margin: 0;
}

.fig-cap {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 0.55rem;
}

.article-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.callout {
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  margin: 1.35rem 0;
}

.callout p + p {
  margin-top: 0.45rem;
}

.callout strong {
  display: block;
  font-family: var(--display);
  margin-bottom: 0.25rem;
}

.callout--note {
  background: #eff6ff;
}

.callout--warn {
  background: #fff7ed;
}

.callout--ok {
  background: #ecfdf5;
}

.pullquote {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.35;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 0.2rem 0;
  margin: 1.6rem 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin: 1.4rem 0;
}

.stat-card {
  background: #f8fbff;
  border-radius: 18px;
  padding: 1rem 0.9rem;
}

.stat-card b {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.article-table-wrap {
  overflow-x: auto;
  margin: 1.3rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.article-table th,
.article-table td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.article-table th {
  background: #f8fbff;
  font-family: var(--display);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.chart {
  display: grid;
  gap: 0.7rem;
  margin: 1.3rem 0 1.5rem;
  padding: 1.1rem 1.15rem;
  background: #f8fbff;
  border-radius: 18px;
}

.chart__title {
  font-family: var(--display);
  font-size: 0.95rem;
}

.chart__row {
  display: grid;
  grid-template-columns: minmax(5.5rem, 28%) 1fr 2.6rem;
  gap: 0.65rem;
  align-items: center;
  font-size: 0.86rem;
}

.chart__track {
  height: 9px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.chart__fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
  font-style: normal;
}

.chart__fill.is-2 { background: #0ea5e9; }
.chart__fill.is-3 { background: #6366f1; }
.chart__fill.is-4 { background: #14b8a6; }

.steps {
  display: grid;
  gap: 0.9rem;
  margin: 1.2rem 0 1.5rem;
  counter-reset: step;
  list-style: none;
  padding-left: 0;
}

.step {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.8rem;
  align-items: start;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 700;
}

.timeline {
  margin: 1.3rem 0 1.6rem;
  display: grid;
  gap: 1.1rem;
}

.timeline b {
  display: block;
  font-family: var(--display);
}

.def-grid,
.take-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin: 1.2rem 0 1.5rem;
}

.def-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
}

.def-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.tool-card {
  background: #0b1220;
  color: #fff;
  border-radius: 24px;
  padding: 1.4rem 1.35rem 1.3rem;
  margin: 1.5rem 0 1.7rem;
}

.tool-card h3 {
  margin: 0 0 0.4rem;
  color: #fff;
}

.tool-card p,
.tool-card label {
  color: rgba(255, 255, 255, 0.82);
}

.tool-card input,
.tool-card select {
  width: 100%;
  margin: 0.7rem 0;
  border: 0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.tool-card input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.tool-out {
  min-height: 1.3em;
  font-weight: 600;
  color: #bfdbfe;
}

.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.6rem 0 0.8rem;
}

.seg button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

.seg button.is-on {
  background: #fff;
  color: var(--ink);
}

.curp-map {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 3px;
  margin: 0.7rem 0;
}

.curp-map span {
  display: grid;
  place-items: center;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-family: var(--display);
}

.check-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.8rem 0 0;
}

.check-list label {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.55rem;
  align-items: start;
  color: inherit;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.4rem;
  margin: 1.2rem 0;
}

.week-grid span {
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.55rem 0.3rem;
  text-align: center;
  font-size: 0.78rem;
}

.week-grid span.is-on {
  background: var(--blue);
  color: #fff;
}

.article-related-block h2 {
  margin: 2.2rem 0 1rem;
  font-size: 1.35rem;
}

.article-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}

.article-related-block .article-related {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-related a {
  display: block;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.05rem;
}

.article .faq-body {
  max-height: 0;
}

.article .faq-item.is-open .faq-body {
  max-height: 220px;
}

.article .check-list label {
  color: #334155;
}

.tool-card .check-list label {
  color: rgba(255, 255, 255, 0.82);
}

.article-related small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
}

.legal-page {
  padding: 3.5rem 0 4.5rem;
}

.legal-page .article__wrap h1 {
  margin-bottom: 1rem;
}

.legal-page h2 {
  font-size: 1.35rem;
  margin: 1.7rem 0 0.55rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  gap: 2.4rem;
  align-items: start;
}

.contact-form {
  padding: 2.6rem 2.4rem 2.3rem;
}

.contact-form h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.35rem);
}

.contact-form textarea {
  min-height: 168px;
  resize: vertical;
}

.contact-form .form-status.is-ok {
  color: #d1fae5;
}

.contact-form .form-status.is-error {
  color: #fecaca;
}

.contact-aside .info-card {
  height: auto;
}

.info-card {
  background: #f8fbff;
  border-radius: 22px;
  padding: 1.5rem;
}

.info-card + .info-card {
  margin-top: 1rem;
}

.info-card h3 {
  margin-bottom: 0.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.field input,
.field select,
.field textarea {
  background: #f8fbff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-status {
  min-height: 1.2em;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.form-status.is-ok {
  color: #047857;
}

.form-status.is-error {
  color: #be123c;
}

.site-footer {
  margin-top: 2rem;
}

.footer-cta {
  background: var(--dark);
  color: #fff;
  padding: 4.5rem 0;
}

.footer-cta__grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3rem;
  align-items: start;
}

.footer-cta__form {
  background: #121a2b;
  border-radius: 24px;
  padding: 1.8rem;
}

.footer-cta__form h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
}

.footer-cta__form label {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.footer-cta__form input,
.footer-cta__form select,
.footer-cta__form textarea {
  background: #1b2538;
  color: #fff;
  border: 1px solid #2a364d;
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.footer-cta__lead {
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.footer-cta__note {
  margin-top: 1rem;
  color: #94a3b8;
}

.footer-main {
  padding: 3rem 0 1.4rem;
  background: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 2rem;
}

.footer-grid h3 {
  font-size: 1rem;
  margin-bottom: 0.8rem;
}

.footer-grid a,
.footer-grid p {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.socials {
  display: flex;
  gap: 0.45rem;
}

.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
}

.footer-copy {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-note {
  width: 100%;
  margin-bottom: 1.1rem;
  display: grid;
  gap: 0.7rem;
  line-height: 1.55;
  font-size: 0.82rem;
}

.cookie-banner {
  position: fixed;
  inset: auto 1rem 1rem 1rem;
  z-index: 120;
  opacity: 0;
  transform: translateY(18px);
  transition: 0.35s var(--ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: none;
}

.cookie-banner__inner {
  width: min(100%, 920px);
  margin-inline: auto;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
  padding: 1.1rem 1.2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner a {
  color: var(--blue-deep);
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Hidden only after JS marks the document ready; avoids blank page if scripts fail */
.is-ready [data-reveal]:not(.is-revealed) {
  opacity: 0;
  transform: translateY(22px);
}

[data-reveal] {
  transition: 0.7s var(--ease);
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1024px) {
  .hero,
  .split,
  .topics,
  .stats,
  .posts,
  .contact-grid,
  .footer-cta__grid,
  .footer-grid,
  .slide {
    grid-template-columns: 1fr 1fr;
  }
  .topics,
  .stats,
  .posts {
    grid-template-columns: 1fr 1fr;
  }
  .hero h1 {
    max-width: none;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px;
  }
  .gallery a:first-child {
    grid-row: auto;
  }
  .article-shell {
    grid-template-columns: minmax(0, 820px);
    justify-content: center;
  }
  .article-toc {
    display: none;
  }
  .toc-mobile {
    display: flex;
  }
  .stat-row,
  .def-grid,
  .take-grid,
  .article-related {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }
  .call-btn span {
    display: none;
  }
  .nav {
    position: absolute;
    top: calc(var(--header) + 8px);
    left: 1.1rem;
    right: 1.1rem;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.8rem;
    gap: 0.2rem;
  }
  body.nav-open .nav {
    display: flex;
  }
  .hero,
  .split,
  .topics,
  .stats,
  .posts,
  .values,
  .contact-grid,
  .footer-cta__grid,
  .footer-grid,
  .slide,
  .gallery {
    grid-template-columns: 1fr;
  }
  .hero {
    padding-top: 1.5rem;
  }
  .hero-band {
    height: 150px;
  }
  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
  }
  .section {
    padding: 3.4rem 0;
  }
  .stat-row,
  .def-grid,
  .take-grid,
  .article-related {
    grid-template-columns: 1fr;
  }
  .week-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .curp-map {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
