:root {
  --cd-blue: #20365f;
  --cd-blue-soft: #dff2fb;
  --cd-accent: #2b7fb8;
  --cd-action: #3d9dcc;
  --cd-action-dark: #2f85af;
  --cd-ink: #172946;
  --cd-muted: #62748b;
  --cd-line: #dbe6ef;
  --cd-bg: #f7fafc;
}

* {
  box-sizing: border-box;
}

body.cd-public {
  margin: 0;
  background: var(--cd-bg);
  color: var(--cd-ink);
  font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.cd-public a {
  color: #0a62a8;
}

.cd-hero {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  background: #dfe7ed;
}

.cd-topbar {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding: 18px min(48px, 4vw);
  background: linear-gradient(180deg, rgba(8, 22, 39, 0.52), rgba(8, 22, 39, 0));
}

.cd-topbar a {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: 0 1px 7px rgba(0, 0, 0, 0.35);
}

.cd-topbar a:hover,
.cd-topbar a:focus,
.cd-topbar a.is-active {
  text-decoration: underline;
}

.cd-hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 48, 76, 0.42), rgba(18, 48, 76, 0.08) 58%, rgba(18, 48, 76, 0.24)),
    linear-gradient(180deg, rgba(18, 48, 76, 0.06), rgba(18, 48, 76, 0.24)),
    url("/static/canal_denuncias/media/canal-denuncias-hero.jpg") center 48% / cover no-repeat;
  filter: saturate(0.96) contrast(1.02);
}

.cd-hero__card {
  position: relative;
  z-index: 2;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  transform: translateY(104px);
  padding: 30px 38px;
  background: rgba(35, 58, 80, 0.66);
  color: #fff;
  text-align: center;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(6px);
}

.cd-hero__card p {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-hero__card h1 {
  margin: 0;
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.05;
}

.cd-hero__card span {
  display: block;
  max-width: 460px;
  margin: 12px auto 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 16px;
}

.cd-main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 48px;
}

.cd-alert {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid #e0b64c;
  border-radius: 14px;
  background: #fff5d7;
  color: #624b00;
  font-weight: 700;
}

.cd-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  margin-top: 0;
  padding: 28px 34px;
  background: var(--cd-blue-soft);
}

.cd-kicker {
  margin: 0 0 4px;
  color: var(--cd-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cd-intro h2 {
  margin: 0;
  color: var(--cd-blue);
  font-size: 20px;
  line-height: 1.25;
}

.cd-intro p:last-child {
  max-width: 760px;
  margin: 8px 0 0;
  color: #496178;
}

.cd-intro__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cd-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #a8c8dc;
  border-radius: 4px;
  background: #fff;
  color: var(--cd-blue);
  font-weight: 800;
  text-decoration: none;
}

.cd-button--primary {
  border-color: var(--cd-action);
  background: var(--cd-action);
  color: #fff;
}

.cd-button--primary:hover,
.cd-button--primary:focus {
  border-color: var(--cd-action-dark);
  background: var(--cd-action-dark);
  color: #fff;
}

.cd-button:hover,
.cd-button:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(24, 60, 92, 0.14);
  text-decoration: none;
}

.cd-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 38px;
  padding: 54px 60px;
  background: #fff;
  text-align: center;
}

.cd-step {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: var(--cd-blue);
  text-decoration: none;
}

.cd-step:hover,
.cd-step:focus {
  text-decoration: none;
}

.cd-step:hover .cd-step__icon,
.cd-step:focus .cd-step__icon {
  transform: translateY(-3px);
  background: #eef8fd;
}

.cd-step__icon {
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border-radius: 28px;
  background: #f8fbfd;
  color: var(--cd-blue);
  transition: transform 160ms ease, background 160ms ease;
}

.cd-step__icon svg {
  width: 82px;
  height: 82px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-step strong {
  font-size: 18px;
}

.cd-step small {
  max-width: 250px;
  color: var(--cd-muted);
  font-size: 13px;
}

.cd-reminders {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 30px 42px;
  background: var(--cd-blue-soft);
}

.cd-reminders article {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  border-left: 3px solid var(--cd-accent);
}

.cd-reminders strong {
  color: var(--cd-blue);
}

.cd-reminders span {
  color: #496178;
  font-size: 14px;
}

.cd-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 30px 0;
  color: var(--cd-muted);
}

.cd-footer strong,
.cd-footer span,
.cd-footer a {
  display: block;
}

.cd-footer strong {
  color: var(--cd-ink);
}

.cd-footer div:last-child {
  text-align: right;
}

@media (max-width: 900px) {
  .cd-topbar {
    justify-content: center;
    gap: 14px;
    padding-inline: 14px;
  }

  .cd-intro,
  .cd-steps,
  .cd-reminders,
  .cd-footer {
    grid-template-columns: 1fr;
  }

  .cd-intro__actions {
    justify-content: flex-start;
  }

  .cd-steps {
    gap: 28px;
    padding: 42px 24px;
  }

  .cd-footer div:last-child {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .cd-hero {
    min-height: 250px;
  }

  .cd-hero__card {
    transform: translateY(92px);
    padding: 22px 20px;
  }

  .cd-main {
    width: min(100% - 24px, 560px);
  }

  .cd-intro {
    padding: 24px 18px;
  }

  .cd-intro__actions,
  .cd-button {
    width: 100%;
  }
}
