/* ==========================================================================
   Devolución de impuestos · DIAN landing
   Mobile-first (320–480), content column 560px centered.
   ========================================================================== */

:root {
  --green: #069169;
  --green-dark: #046b4f;
  --green-deep: #035741;
  --green-soft: #e6f4ef;
  --green-line: #bfe6d8;
  --blue: #3c67c5;
  --blue-deep: #0b457f;
  --blue-line: #d3e0f5;
  --blue-soft: #e5eefb;
  --sky: #dff0ff;
  --ink: #1a1a1a;
  --muted: #4d5b66;
  --muted-soft: #6b7780;
  --line: #e2e8ee;
  --paper: #ffffff;
  --bg: #f5f7f9;
  --radius: 16px;
  --wrap: 560px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: #e9edf1;
}

html.dl-open,
html.dl-open body {
  overflow: hidden;
}

body {
  max-width: var(--wrap);
  min-height: 100vh;
  margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 0 60px rgba(11, 69, 127, 0.08);
}

h1, h2, h3, p, ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: none;
  cursor: pointer;
}

svg {
  display: block;
}

:focus-visible {
  outline: 3px solid rgba(6, 145, 105, 0.55);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--blue-deep);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* --------------------------------------------------------------------------
   GOV.CO bar
   -------------------------------------------------------------------------- */

.govbar {
  background: #3c67c5;
  color: #ffffff;
}

.govbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px calc(16px + env(safe-area-inset-right, 0px)) 4px calc(16px + env(safe-area-inset-left, 0px));
}

.govbar__logo {
  display: flex;
  flex: none;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}

.govbar__logo img {
  width: auto;
  height: 20px;
}

.govbar__entity {
  max-width: 168px;
  color: #eaf0fb;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

/* --------------------------------------------------------------------------
   DIAN logo row
   -------------------------------------------------------------------------- */

.dianbar {
  position: relative;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.dianbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 10px;
  padding: 10px 16px;
}

.dianbar__logo {
  width: auto;
  height: 26px;
}

.dianbar__tag {
  padding: 6px 10px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: var(--paper);
}

.hero__media {
  position: relative;
  overflow: hidden;
  background: #dfe7ee;
}

.hero__media img {
  width: 100%;
  aspect-ratio: 1200 / 549;
  object-fit: cover;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 40, 30, 0) 58%, rgba(3, 40, 30, 0.2) 100%);
  pointer-events: none;
}

.hero__card {
  position: relative;
  margin: -32px clamp(12px, 3.4vw, 18px) 0;
  padding: 20px 18px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 12px 30px rgba(11, 69, 127, 0.12);
}

.hero__eyebrow {
  margin-bottom: 7px;
  color: var(--green);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero__title {
  color: var(--blue-deep);
  font-size: clamp(25px, 7.8vw, 33px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero__amount {
  color: var(--green);
  white-space: nowrap;
}

.hero__text {
  margin: 10px 0 16px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.hero__note {
  margin-top: 10px;
  color: var(--muted-soft);
  font-size: 11.5px;
  font-weight: 600;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Trust strip
   -------------------------------------------------------------------------- */

.trust {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px 16px 0;
  padding: 13px 14px;
  border: 1px solid var(--green-line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f4fbf8 0%, #e9f6f0 100%);
}

.trust__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.trust__logo {
  width: auto;
  height: 27px;
}

.trust__badge {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border: 1px solid var(--green-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.trust__badge svg {
  width: 13px;
  height: 13px;
}

.trust__line {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.trust__line strong {
  color: var(--ink);
  font-weight: 800;
}

.trust__amount {
  color: var(--green-dark);
  font-size: 12.5px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
  transition: transform 0.15s ease, filter 0.15s ease, background-color 0.2s ease;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  flex: none;
  width: 19px;
  height: 19px;
}

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #08a97b 0%, var(--green) 55%, #057a59 100%);
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(6, 145, 105, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 130% at 50% -35%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}

.btn--primary > * {
  position: relative;
  z-index: 1;
}

.btn--primary:active {
  transform: scale(0.985);
  filter: brightness(0.96);
}

.btn--ghost {
  min-height: 48px;
  border: 1px solid #d8e0e8;
  background: #f7f9fb;
  color: #33424f;
  font-size: 15px;
  font-weight: 700;
}

.btn--ghost:active {
  background: #eef2f6;
  transform: scale(0.99);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 26px 16px 4px;
}

.section--services {
  padding-bottom: 18px;
}

.section__head {
  margin-bottom: 14px;
}

.section__title {
  position: relative;
  padding-bottom: 9px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.section__title::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 8px;
  border-radius: 2px;
  background: var(--green);
}

.section__sub {
  margin-top: 7px;
  color: var(--green);
  font-size: 13.5px;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   Portales (green block)
   -------------------------------------------------------------------------- */

.portales {
  margin: 0 -16px;
  padding: 4px 16px 2px;
  background: var(--green);
  color: #ffffff;
}

.portal {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
}

.portal:last-child {
  border-bottom: 0;
}

.portal__icon {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.portal__body {
  flex: 1;
  min-width: 0;
}

.portal__name {
  display: block;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.portal__desc {
  display: block;
  margin-top: 2px;
  color: #d3efe5;
  font-size: 12.5px;
  line-height: 1.35;
}

.chev {
  flex: none;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.portal:active {
  background: rgba(255, 255, 255, 0.06);
}

/* --------------------------------------------------------------------------
   Help cards
   -------------------------------------------------------------------------- */

.cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card {
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2px 10px rgba(11, 69, 127, 0.04);
}

.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__icon {
  flex: none;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.card__title {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.card__text {
  margin-top: 9px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.card__links {
  margin-top: 8px;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  color: var(--green-dark);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.card__link svg {
  width: 14px;
  height: 14px;
}

.card__link:active {
  color: var(--green);
}

/* --------------------------------------------------------------------------
   Temas de interés (blue band)
   -------------------------------------------------------------------------- */

.band {
  margin-top: 22px;
  padding: 24px 16px;
  background: var(--sky);
}

.band .section__title::after {
  background: var(--blue);
}

.temas {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.tema {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 104px;
  padding: 13px 12px;
  border: 1px solid rgba(51, 102, 204, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-decoration: none;
}

.tema:active {
  background: #ffffff;
}

.tema__icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tema__name {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.tema__desc {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Servicios a la ciudadanía
   -------------------------------------------------------------------------- */

.groups {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.group__title {
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 15.5px;
  font-weight: 800;
}

.links li {
  border-bottom: 1px dashed #e3e8ee;
}

.links li:last-child {
  border-bottom: 0;
}

.links a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}

.links a::before {
  content: "\2022";
  flex: none;
  color: var(--green);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.links a:active {
  color: var(--green-dark);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer {
  margin-top: 22px;
  padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  background: #3c67c5;
  color: #ffffff;
}

.footer__inner {
  padding: 22px 16px 0;
}

.footer__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
}

.footer__gov {
  width: auto;
  height: 30px;
}

.footer__co {
  width: auto;
  height: 36px;
}

.footer__entity {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.footer__nit {
  margin-top: 4px;
  color: #dbe5f8;
  font-size: 12px;
  font-weight: 600;
}

.footer__text {
  margin-top: 10px;
  color: #e8eefb;
  font-size: 12px;
  line-height: 1.55;
}

.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 15px 0 4px;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
}

.footer__social img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.footer__contact {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.footer__contact h3 {
  font-size: 14px;
  font-weight: 800;
}

.footer__contact p {
  margin-top: 7px;
  color: #e8eefb;
  font-size: 12px;
  line-height: 1.6;
}

.footer__links a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer__legal {
  margin-top: 16px;
  padding: 12px 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #dbe5f8;
  font-size: 11px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Sticky download CTA
   -------------------------------------------------------------------------- */

.sticky-cta {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 60;
  width: 100%;
  max-width: var(--wrap);
  padding:
    10px calc(12px + env(safe-area-inset-right, 0px))
    calc(10px + env(safe-area-inset-bottom, 0px))
    calc(12px + env(safe-area-inset-left, 0px));
  transform: translate(-50%, 100%);
  visibility: hidden;
  pointer-events: none;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 -8px 24px rgba(11, 69, 127, 0.09);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, visibility 0.2s ease;
}

.sticky-cta.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  pointer-events: auto;
}

.sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-cta__copy {
  flex: 1;
  min-width: 0;
}

.sticky-cta__copy strong {
  display: block;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
}

.sticky-cta__copy span {
  display: block;
  margin-top: 2px;
  color: var(--muted-soft);
  font-size: 11.5px;
  line-height: 1.25;
}

.sticky-cta .btn {
  flex: none;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Download card (bottom sheet)
   -------------------------------------------------------------------------- */

.dl {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dl[hidden] {
  display: none;
}

.dl__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 26, 20, 0.6);
  opacity: 0;
  transition: opacity 0.2s ease;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dl.is-open .dl__backdrop {
  opacity: 1;
}

.dl__sheet {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  max-height: calc(100vh - 16px);
  max-height: calc(100dvh - 16px);
  padding:
    14px calc(20px + env(safe-area-inset-right, 0px))
    calc(18px + env(safe-area-inset-bottom, 0px))
    calc(20px + env(safe-area-inset-left, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 22px 22px 0 0;
  background: var(--paper);
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(100%);
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.25, 1);
}

.dl.is-open .dl__sheet {
  transform: translateY(0);
}

.dl__grip {
  display: block;
  width: 38px;
  height: 4px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: #dfe6ec;
}

.dl__close {
  position: absolute;
  top: 8px;
  right: calc(8px + env(safe-area-inset-right, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f8;
  color: #42505c;
}

.dl__close:active {
  background: #e6ecf1;
}

.dl__close svg {
  width: 18px;
  height: 18px;
}

.dl__head {
  padding-top: 8px;
  text-align: center;
}

.dl__icon {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 18px;
  box-shadow: 0 12px 26px rgba(6, 145, 105, 0.26);
}

.dl__title {
  margin-top: 15px;
  color: var(--blue-deep);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-wrap: balance;
}

.dl__tagline {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.dl__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 8px;
}

.dl__stars {
  display: inline-flex;
  gap: 2px;
  color: #f2b01e;
}

.dl__star {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.dl__rating-value {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
}

.dl__meta {
  margin-top: 5px;
  color: var(--muted-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.dl__amount {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 8px 18px rgba(6, 145, 105, 0.22);
}

.dl__amount span {
  color: #d3efe5;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dl__amount strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.dl__permissions {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted-soft);
  font-size: 11.5px;
  line-height: 1.4;
}

.dl__permissions svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.dl__perks {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--green-line);
  border-radius: 16px;
  background: var(--green-soft);
}

.dl__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #15372c;
  font-size: 13.5px;
  line-height: 1.35;
}

.dl__check {
  flex: none;
  width: 19px;
  height: 19px;
  color: var(--green);
}

.dl__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid #f2c98c;
  border-radius: 12px;
  background: #fff4e5;
  color: #8a5a00;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.dl__hint[hidden] {
  display: none;
}

.dl__hint-icon {
  flex: none;
  width: 16px;
  height: 16px;
}

.dl__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.dl__footnote {
  margin-top: 12px;
  color: #7a8791;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Motion preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
