/* =============================================================
 * MiColonia · Landing 2.0 · Tierra Cálida
 * Mobile-first, vanilla CSS. Tokens alineados con la app.
 * ============================================================= */

:root {
  /* Brand */
  --c-primary: #2e8b57;
  --c-primary-dark: #1f6e42;
  --c-primary-deep: #1f3d2c;
  --c-mustard: #b7791f;
  --c-mustard-dark: #975a16;
  --c-danger: #b91c1c;

  /* Surfaces */
  --c-cream: #faf6ef;
  --c-sand: #f2eadd;
  --c-surface: #ffffff;
  --c-surface-tint-green: #e6f2ea;
  --c-surface-tint-mustard: #fcf3de;
  --c-surface-tint-danger: #fbe9e5;
  --c-surface-tint-olive: #eef2e7;

  /* Text */
  --c-text: #1f2937;
  --c-text-muted: #6b5a48;
  --c-text-subtle: #64748b;
  --c-text-onDark: #faf6ef;
  --c-text-onDark-muted: #a89685;

  /* Lines */
  --c-border: #e5d9c5;
  --c-border-dark: #1f4b33;

  /* Olive accent */
  --c-olive: #5f7a5c;

  /* Layout */
  --container-max: 1280px;
  --container-pad: clamp(20px, 4vw, 80px);

  /* Radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 18px;
  --r-2xl: 24px;
  --r-pill: 999px;

  /* Shadows */
  --sh-card: 0 1px 2px rgba(15, 23, 42, 0.06);
  --sh-card-hover: 0 8px 20px rgba(15, 23, 42, 0.1);
  --sh-photo: 0 24px 48px rgba(31, 41, 55, 0.18);
  --sh-float: 0 8px 20px rgba(31, 41, 55, 0.14);

  /* Type */
  --ff: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto,
    sans-serif;

  /* Header */
  --header-h: 72px;
}

@media (min-width: 1024px) {
  :root {
    --header-h: 96px;
  }
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
body {
  margin: 0;
  font-family: var(--ff);
  color: var(--c-text);
  background: var(--c-cream);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 0;
}
button {
  font: inherit;
  cursor: pointer;
}

/* Focus */
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: 3px solid #2b6cb0;
  outline-offset: 2px;
  border-radius: 6px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  background: var(--c-text);
  color: var(--c-cream);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  z-index: 100;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: var(--container-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
  cursor: pointer;
}
.btn:active {
  transform: translateY(1px);
}
.btn--lg {
  padding: 14px 24px;
  font-size: 15px;
}
.btn--sm {
  padding: 8px 14px;
  font-size: 12px;
}
.btn--primary {
  background: var(--c-primary);
  color: var(--c-text-onDark);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
}
.btn--secondary {
  background: var(--c-surface);
  border-color: var(--c-border);
  color: var(--c-text);
}
.btn--secondary:hover {
  background: var(--c-sand);
}
.btn--ghost {
  background: transparent;
  color: var(--c-text);
}
.btn--ghost:hover {
  background: var(--c-sand);
}
.btn--dark {
  background: var(--c-primary-deep);
  color: var(--c-text-onDark);
}
.btn--dark:hover {
  background: #163025;
}
.btn--light {
  background: var(--c-surface);
  color: var(--c-text);
}
.btn--light:hover {
  background: var(--c-sand);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(31, 41, 55, 0.08), 0 6px 20px rgba(31, 41, 55, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 38px;
  width: auto;
  aspect-ratio: 1375 / 260;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .brand-logo {
    height: 46px;
  }
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 36px;
  padding: 8px 6px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
}
.nav-toggle__bar {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
}
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.primary-nav {
  display: none;
}
.primary-nav.is-open {
  display: block;
  position: absolute;
  inset: var(--header-h) 0 auto 0;
  background: var(--c-surface);
  padding: 24px var(--container-pad) 32px;
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
}
.primary-nav.is-open .primary-nav__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.primary-nav.is-open .primary-nav__list a {
  display: block;
  padding: 8px 0;
  font-weight: 500;
  color: var(--c-text);
}
.primary-nav.is-open .primary-nav__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.primary-nav.is-open .primary-nav__cta .btn {
  justify-content: center;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
    justify-content: flex-end;
  }
  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-right: auto;
    padding-left: 32px;
  }
  .primary-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 500;
    color: var(--c-text);
    transition: color 0.15s ease;
  }
  .primary-nav__list a:hover {
    color: var(--c-primary);
  }
  .primary-nav__cta {
    display: flex;
    align-items: center;
    gap: 12px;
  }
}

/* ---------- Generic typography ---------- */
.display {
  font-size: clamp(34px, 5.4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.5px;
  font-weight: 700;
  color: var(--c-text);
  margin: 0 0 0 0;
}
.lede {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0;
}
.section-title {
  font-size: clamp(28px, 3.6vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.5px;
  font-weight: 700;
  margin: 0;
  color: var(--c-text);
}
.section-title--md {
  font-size: clamp(24px, 2.6vw, 30px);
}
.section-title--inverse {
  color: var(--c-text-onDark);
}
.section-lede {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--c-text-muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  padding: 6px 10px;
  background: var(--c-sand);
  color: var(--c-primary-dark);
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.eyebrow--mustard {
  background: var(--c-surface-tint-mustard);
  color: var(--c-mustard);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--c-sand);
  color: var(--c-primary-dark);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
}
.chip__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-primary);
}
.chip--danger {
  background: var(--c-surface-tint-danger);
  color: var(--c-danger);
}
.chip--danger .icon {
  width: 14px;
  height: 14px;
}

/* Section heads */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.section-head--center {
  align-items: center;
  text-align: center;
}
.section-head--center .section-lede {
  max-width: 680px;
}
@media (min-width: 1024px) {
  .section-head {
    margin-bottom: 48px;
  }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--c-cream);
  padding: 40px 0 56px;
}
@media (min-width: 1024px) {
  .hero {
    padding: 80px 0;
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}
.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.trust {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  margin: 0;
}
.trust .icon {
  color: var(--c-olive);
}

/* ---------- Stats ---------- */
.stats {
  background: var(--c-sand);
  padding: 32px 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__value {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  color: var(--c-primary-dark);
  line-height: 1.1;
}
.stat__label {
  font-size: 13px;
  color: var(--c-text-muted);
  font-weight: 500;
}

/* ---------- Card grid ---------- */
.card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid--3,
  .card-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

.card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--sh-card);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.card:hover {
  box-shadow: var(--sh-card-hover);
}
.card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-text);
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted);
}

/* ---------- Legal pages ---------- */
.legal-page {
  background: var(--c-cream);
}
.legal-hero {
  padding: 48px 0 32px;
}
@media (min-width: 1024px) {
  .legal-hero {
    padding: 72px 0 40px;
  }
}
.legal-hero .container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.legal-hero .lede {
  max-width: 780px;
}
.legal-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 64px;
}
@media (min-width: 1024px) {
  .legal-content {
    padding-bottom: 88px;
  }
}
.legal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.legal-section {
  gap: 14px;
}
.legal-section h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--c-text);
}
.legal-section h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
  color: var(--c-text);
}
.legal-section ul,
.legal-section ol {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--c-text-muted);
}
.legal-section ul {
  list-style: disc;
}
.legal-section ol {
  list-style: decimal;
}
.legal-section li {
  font-size: 14px;
  line-height: 1.55;
}
.legal-section a {
  color: var(--c-primary-dark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Pillars ---------- */
.pillars {
  padding: 64px 0;
  background: var(--c-cream);
}
@media (min-width: 1024px) {
  .pillars {
    padding: 88px 0;
  }
}
/* ---------- How it works ---------- */
.how {
  background: var(--c-sand);
  padding: 64px 0;
}
@media (min-width: 1024px) {
  .how {
    padding: 88px 0;
  }
}
.how__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) {
  .how__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }
  .how__head > div {
    flex: 1;
  }
  .how__lede {
    max-width: 380px;
  }
}
.step {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.step__media {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--c-sand);
}
.step__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step__body h3 {
  font-size: 20px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  width: max-content;
}
.badge--primary {
  background: var(--c-surface-tint-green);
  color: var(--c-primary-dark);
}
.badge--olive {
  background: var(--c-surface-tint-olive);
  color: var(--c-olive);
}
.badge--mustard {
  background: var(--c-surface-tint-mustard);
  color: var(--c-mustard);
}
.badge--invert {
  background: var(--c-primary);
  color: var(--c-text-onDark);
  letter-spacing: 1.2px;
  font-size: 10px;
  border-radius: var(--r-pill);
  padding: 4px 10px;
}

/* ---------- Emergency ---------- */
.emergency {
  padding: 64px 0;
  background: var(--c-cream);
}
@media (min-width: 1024px) {
  .emergency {
    padding: 88px 0;
  }
}
.emergency__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .emergency__grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}
.emergency__copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--c-text);
}
.check-list .icon {
  flex-shrink: 0;
}

.emergency__panel {
  background: var(--c-primary-deep);
  border-radius: var(--r-2xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alert-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.alert-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.alert-card__head > div {
  display: flex;
  flex-direction: column;
}
.alert-card__head strong {
  font-size: 14px;
  color: var(--c-text);
}
.alert-card__head small {
  font-size: 11px;
  color: var(--c-text-muted);
}
.alert-card__badge {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--c-surface-tint-danger);
  color: var(--c-danger);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.alert-card__badge svg {
  width: 18px;
  height: 18px;
}
.alert-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--c-text);
}
.alert-card__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.alert-card__foot span {
  font-size: 11px;
  color: var(--c-text-muted);
}

.emergency__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 0;
}
.emergency__stats > div dt {
  font-size: 24px;
  font-weight: 700;
  color: var(--c-text-onDark);
  line-height: 1.1;
  margin-bottom: 4px;
}
.emergency__stats > div dd {
  margin: 0;
  font-size: 11px;
  color: var(--c-text-onDark-muted);
}

/* ---------- Business / Plans ---------- */
.business {
  padding: 64px 0;
  background: var(--c-sand);
}
@media (min-width: 1024px) {
  .business {
    padding: 88px 0;
  }
}
.business__head {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}
.business__head > div {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 1024px) {
  .business__head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }
  .business__head > div {
    flex: 1;
  }
}

.plan-grid {
  align-items: stretch;
}
.plan {
  height: 100%;
  gap: 16px;
}
.plan__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan__name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--c-text-muted);
}
.plan--featured .plan__name {
  color: var(--c-text-onDark);
}
.plan__desc {
  margin: 0;
}
.plan--featured {
  background: var(--c-primary-deep);
  border: 2px solid var(--c-primary);
  color: var(--c-text-onDark);
}
.plan--featured .plan__desc,
.plan--featured .plan__feat {
  color: var(--c-text-onDark);
}
.plan--featured hr {
  border-top-color: rgba(250, 246, 239, 0.18);
}
.plan__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plan__feat {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text);
}
.plan__feat::before {
  position: absolute;
  left: 0;
  top: 2px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.plan__feat--ok::before {
  content: '✓';
  color: var(--c-primary);
}
.plan--featured .plan__feat--ok::before {
  color: var(--c-primary);
}
.plan__feat--off {
  color: var(--c-text-subtle);
}
.plan__feat--off::before {
  content: '×';
  color: #94a3b8;
}
.plan__feat--mustard::before {
  content: '✓';
  color: var(--c-mustard);
}

/* ---------- Merchant preview ---------- */
.merchant {
  padding: 64px 0;
  background: var(--c-cream);
}
@media (min-width: 1024px) {
  .merchant {
    padding: 88px 0;
  }
}
.merchant__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .merchant__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }
}
.merchant__media {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--c-border);
  box-shadow: var(--sh-photo);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--c-sand);
}
.merchant__copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.merchant__copy p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.55;
}
.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--c-text);
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.icon--primary {
  color: var(--c-primary);
}
.icon--success {
  color: var(--c-primary);
}
.icon--danger {
  color: var(--c-danger);
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--c-sand);
  padding: 64px 0;
}
@media (min-width: 1024px) {
  .faq {
    padding: 88px 0;
  }
}
.faq__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: 380px 1fr;
    gap: 48px;
  }
}
.faq__head {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq__head p {
  margin: 0;
  color: var(--c-text-muted);
  font-size: 14px;
}
.faq__head a {
  color: var(--c-primary-dark);
  font-weight: 600;
  text-decoration: underline;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 0 24px;
  transition: box-shadow 0.15s ease;
}
.faq-item[open] {
  box-shadow: var(--sh-card);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--c-text);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item__toggle {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.faq-item__toggle::before,
.faq-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--c-primary-dark);
  border-radius: 2px;
}
.faq-item__toggle::before {
  inset: 8px 0 8px 0;
  height: 2px;
}
.faq-item__toggle::after {
  inset: 0 8px 0 8px;
  width: 2px;
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__toggle::after {
  transform: scaleY(0);
}
.faq-item p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--c-text-muted);
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 40px 0;
  background: var(--c-cream);
}
@media (min-width: 1024px) {
  .final-cta {
    padding: 56px 0;
  }
}
.cta-banner {
  background: var(--c-primary-deep);
  color: var(--c-text-onDark);
  border-radius: var(--r-2xl);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (min-width: 1024px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px;
    gap: 48px;
  }
}
.cta-banner > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cta-banner p {
  margin: 0;
  color: var(--c-text-onDark-muted);
  font-size: 16px;
  line-height: 1.55;
}
.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-banner p.cta-banner__aside {
  margin-top: 4px;
  font-size: 14px;
  color: var(--c-text-onDark-muted);
}
.cta-banner__aside a {
  color: var(--c-text-onDark);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: text-decoration-thickness 0.15s ease;
}
.cta-banner__aside a:hover {
  text-decoration-thickness: 2px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f2a1b;
  color: var(--c-text-onDark);
  padding: 40px 0;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.site-footer__logo {
  height: 44px;
  width: auto;
  aspect-ratio: 1375 / 260;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .site-footer__logo {
    height: 52px;
  }
}
.site-footer__brand p {
  margin: 0;
  font-size: 13px;
  color: #d8c8b4;
  max-width: 320px;
  line-height: 1.55;
}
.site-footer__columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.site-footer__nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer__nav h2 {
  margin: 0 0 2px;
  color: var(--c-text-onDark);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}
.site-footer__nav a {
  width: fit-content;
  color: #d8c8b4;
  font-size: 13px;
  transition: color 0.15s ease;
}
.site-footer__nav a:hover {
  color: var(--c-text-onDark);
}
.site-footer__bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-dark);
}
.site-footer__bar small {
  font-size: 12px;
  color: #d8c8b4;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: #d8c8b4;
}
.site-footer__legal a {
  color: #d8c8b4;
  transition: color 0.15s ease;
}
.site-footer__legal a:hover {
  color: var(--c-text-onDark);
}
@media (min-width: 768px) {
  .site-footer__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ---------- Hero board (tablón vivo) ---------- */
.hero__board {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  perspective: 1200px;
}

.board {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--c-sand);
  border: 1px solid var(--c-border);
  border-radius: var(--r-2xl);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: var(--sh-photo);
  background-image:
    radial-gradient(circle at 25% 30%, rgba(31, 61, 44, 0.04) 1px, transparent 1.6px),
    radial-gradient(circle at 80% 70%, rgba(31, 61, 44, 0.035) 1px, transparent 1.6px);
  background-size: 22px 22px, 30px 30px;
  display: grid;
  gap: 14px;
}

.board::before,
.board::after {
  content: '';
  position: absolute;
  top: -8px;
  width: 28px;
  height: 16px;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.board::before {
  left: 28px;
  background: color-mix(in srgb, var(--c-primary-dark) 30%, var(--c-cream));
  transform: rotate(-6deg);
}

.board::after {
  right: 36px;
  background: color-mix(in srgb, var(--c-mustard) 40%, var(--c-cream));
  transform: rotate(7deg);
}

.board-entry {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  box-shadow: var(--sh-card);
  transition: box-shadow 0.2s ease, translate 0.2s ease;
}

.board-entry--tilt-left { rotate: -1.4deg; }
.board-entry--tilt-right { rotate: 1.6deg; }
.board-entry--tilt-tiny { rotate: 0.5deg; }

.board-entry:hover { box-shadow: var(--sh-card-hover); }
.board-entry--tilt-left:hover,
.board-entry--tilt-right:hover,
.board-entry--tilt-tiny:hover { translate: 0 -2px; }

.board-entry__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  flex-wrap: wrap;
}

.board-entry__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2px;
}

.board-entry__status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.board-entry__status--progress {
  background: var(--c-surface-tint-green);
  color: var(--c-primary-dark);
}

.board-entry__status--vote {
  background: var(--c-surface-tint-olive);
  color: var(--c-olive);
}

.board-entry__status--quota {
  background: var(--c-surface-tint-mustard);
  color: var(--c-mustard);
}

.board-entry__status--recommend {
  background: var(--c-surface-tint-green);
  color: var(--c-primary-dark);
}

.board-entry__date {
  color: var(--c-text-subtle);
  font-weight: 500;
  font-size: 11px;
  white-space: nowrap;
}

.board-entry__title {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  color: var(--c-text);
}

.board-entry__title strong {
  font-weight: 700;
}

.board-entry__meta {
  margin: 0;
  font-size: 13px;
  color: var(--c-text-muted);
  line-height: 1.5;
}

.board-entry__meta em {
  font-style: normal;
  font-weight: 700;
  color: var(--c-text);
  margin-right: 2px;
}

.board-entry__meta strong {
  color: var(--c-text);
  font-weight: 700;
}

.board-entry__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--c-text-subtle);
  padding-top: 6px;
  border-top: 1px dashed var(--c-border);
}

.board-entry__by {
  font-weight: 600;
  color: var(--c-text-muted);
}

.board-entry__count {
  font-variant-numeric: tabular-nums;
}

.scribble {
  display: inline;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 8' preserveAspectRatio='none'><path d='M2 6 Q 18 1 38 5 T 70 4 T 98 5' stroke='%231f6e42' stroke-width='1.6' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0.32em;
  padding-bottom: 1px;
}

@media (max-width: 640px) {
  .board-entry--tilt-left,
  .board-entry--tilt-right,
  .board-entry--tilt-tiny { rotate: 0deg; }
  .board::before,
  .board::after { display: none; }
}

/* ---------- Scenes (replaces 4-pillar grid) ---------- */
.scenes {
  display: grid;
  gap: clamp(48px, 7vw, 96px);
}

.scene {
  display: grid;
  gap: 20px;
  align-items: start;
}

.scene__numeral {
  font-family: var(--ff);
  font-size: clamp(64px, 14vw, 120px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: color-mix(in srgb, var(--c-primary) 26%, var(--c-cream));
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.scene__copy {
  display: grid;
  gap: 12px;
}

.scene__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.scene__lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text-muted);
  max-width: 44ch;
}

.scene__vignette {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--sh-card);
  display: grid;
  gap: 12px;
}

@media (min-width: 1024px) {
  .scene {
    grid-template-columns: minmax(96px, 14%) minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: center;
  }

  .scene__numeral { font-size: clamp(96px, 9vw, 140px); }

  .scene--right {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(96px, 14%);
  }

  .scene--right .scene__numeral { order: 3; text-align: right; }
  .scene--right .scene__copy { order: 2; }
  .scene--right .scene__vignette { order: 1; }
}

.section-head:not(.section-head--center) > .eyebrow {
  align-self: flex-start;
}

/* Vignette 1: Aviso */
.vignette-aviso__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vignette-aviso__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--c-surface-tint-green);
  color: var(--c-primary-dark);
  border-radius: var(--r-pill);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.vignette-aviso__pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.vignette-aviso__time {
  font-size: 11px;
  color: var(--c-text-subtle);
}

.vignette-aviso__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--c-text);
}

.vignette-aviso__body {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--c-text-muted);
}

.vignette-aviso__foot {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--c-border);
}

.reach { display: grid; gap: 6px; }

.reach__bar {
  display: block;
  height: 6px;
  background: var(--c-sand);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.reach__fill {
  display: block;
  height: 100%;
  background: var(--c-primary);
  border-radius: inherit;
}

.reach__label {
  font-size: 11px;
  color: var(--c-text-muted);
}

.confirmed {
  font-size: 11.5px;
  color: var(--c-primary-dark);
  font-weight: 700;
}

/* Vignette 2: Reporte con folio */
.vignette-report__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.vignette-report__folio {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: var(--c-text-subtle);
  background: var(--c-sand);
  padding: 3px 8px;
  border-radius: var(--r-sm);
}

.vignette-report__status {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--c-mustard);
  background: var(--c-surface-tint-mustard);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.vignette-report__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}

.vignette-report__evidence {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-sand);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.vignette-report__evidence img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vignette-report__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--c-text-muted);
}

/* Vignette 3: Timeline */
.vignette-timeline__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--c-border);
}

.timeline__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
}

.timeline__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--c-surface);
  border: 2px solid var(--c-border);
  margin-top: 3px;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline__dot--done {
  background: var(--c-primary);
  border-color: var(--c-primary);
}

.timeline__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

.timeline__body strong {
  font-weight: 600;
  color: var(--c-text);
}

.timeline__step--done .timeline__body strong {
  color: var(--c-primary-dark);
  font-weight: 700;
}

.timeline__body span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--c-text-subtle);
}

/* Vignette 4: Network (perfil + servicio) */
.vignette-network {
  gap: 10px;
}

.net-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  background: var(--c-sand);
  border-radius: var(--r-md);
  border: 1px solid transparent;
}

.net-card--neighbor {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
}

.net-card__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-deep) 100%);
  color: var(--c-text-onDark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.net-card__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.net-card__body strong {
  font-size: 13.5px;
  color: var(--c-text);
  font-weight: 700;
}

.net-card__body span {
  font-size: 11.5px;
  color: var(--c-text-muted);
}

.net-card__check {
  width: 18px;
  height: 18px;
  color: var(--c-primary);
  display: inline-flex;
  flex-shrink: 0;
}

.net-card__check svg {
  width: 100%;
  height: 100%;
}

.net-card--service {
  background: var(--c-surface);
  border-color: var(--c-border);
}

.net-card--service strong {
  font-size: 14px;
  color: var(--c-text);
  font-weight: 700;
}

.net-card__tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 700;
  color: var(--c-mustard);
}

.net-card__stat {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.45;
}

.net-card__stat strong {
  font-weight: 700;
  color: var(--c-text);
  font-size: inherit;
}

/* ---------- Motion: tokens ---------- */
:root {
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-expo: cubic-bezier(0.7, 0, 0.84, 0);
}

/* ---------- Motion: hero board pinning entrance ---------- */
@keyframes board-tape-in {
  from { opacity: 0; translate: 0 -4px; }
  to   { opacity: 1; translate: 0 0; }
}

/* "Thump" keyframe: paper slapped on a board. Falls fast (ease-in-expo),
   overshoots target by 4px with slight scale compression, settles smoothly
   (ease-out-expo). Single impact, no oscillation. */
@keyframes board-entry-thump {
  0%   {
    opacity: 0;
    translate: 0 -22px;
    scale: 1.06;
    animation-timing-function: var(--ease-in-expo);
  }
  65%  {
    opacity: 1;
    translate: 0 4px;
    scale: 0.985;
    animation-timing-function: var(--ease-out-expo);
  }
  100% {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

.board::before { animation: board-tape-in 360ms var(--ease-out-quart) 80ms backwards; }
.board::after  { animation: board-tape-in 360ms var(--ease-out-quart) 160ms backwards; }

.board-entry {
  animation: board-entry-thump 620ms backwards;
}
.board-entry:nth-of-type(1) { animation-delay: 260ms; }
.board-entry:nth-of-type(2) { animation-delay: 400ms; }
.board-entry:nth-of-type(3) { animation-delay: 540ms; }
.board-entry:nth-of-type(4) { animation-delay: 680ms; }

/* ---------- Motion: generic reveal system (js-gated) ----------
   Use `data-reveal="bottom|left|right|scene"` on any element.
   Stagger via inline `style="--reveal-delay: 120ms"`. */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity 760ms var(--ease-out-expo) var(--reveal-delay, 0ms),
    translate 760ms var(--ease-out-expo) var(--reveal-delay, 0ms);
}
.js [data-reveal="bottom"] { translate: 0 32px; }
.js [data-reveal="left"]   { translate: -44px 20px; }
.js [data-reveal="right"]  { translate: 44px 20px; }

/* Scenes: alternate direction by index to reinforce zig-zag layout */
.js [data-reveal="scene"] {
  transition:
    opacity 820ms var(--ease-out-expo),
    translate 820ms var(--ease-out-expo);
}
.js [data-reveal="scene"]:nth-of-type(odd)  { translate: -46px 28px; }
.js [data-reveal="scene"]:nth-of-type(even) { translate:  46px 28px; }

.js [data-reveal].is-in-view {
  opacity: 1;
  translate: 0 0;
}

/* ---------- Motion: progress bar with pause (scene 1 reveal) ----------
   0-40% grows to 65% width (560ms), holds 40-55% (210ms),
   then 55-100% completes to full (630ms). Feels like counting up,
   pausing on the realistic "still reading" moment. */
@keyframes reach-grow-paused {
  0%   { scale: 0 1; }
  40%  { scale: 0.65 1; }
  55%  { scale: 0.65 1; }
  100% { scale: 1 1; }
}

.js .reach__fill {
  transform-origin: left center;
  scale: 0 1;
}
.js [data-reveal="scene"]:nth-of-type(1).is-in-view .reach__fill {
  animation: reach-grow-paused 1400ms var(--ease-out-expo) 500ms forwards;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .board-entry--tilt-left,
  .board-entry--tilt-right,
  .board-entry--tilt-tiny { rotate: 0deg; }
  .board-entry--tilt-left:hover,
  .board-entry--tilt-right:hover,
  .board-entry--tilt-tiny:hover { translate: 0; }

  .board-entry,
  .board::before,
  .board::after { animation: none; opacity: 1; }

  .js [data-reveal] {
    opacity: 1;
    translate: 0;
    transition: none;
  }
  .js .reach__fill { scale: 1 1; animation: none; }
}
