/* =========================================================
   PÁGINA DE RESOLUCIONES
   Contraloría Distrital de Medellín
========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  html,
  body {
    overflow-x: clip;
  }
}

.resoluciones {
  --res-verde-profundo: #002d22;
  --res-verde-oscuro: #003f2f;
  --res-verde-principal: #0b7a35;
  --res-verde-lima: #8bd936;
  --res-verde-claro: #eaf4e5;
  --res-verde-palido: #f4f9f1;
  --res-gris-fondo: #f3f5f2;
  --res-gris-texto: #4a4f4d;
  --res-gris-borde: #d8e2dc;
  --res-blanco: #ffffff;
  --res-negro: #17201c;
  --res-sombra-suave: 0 12px 32px rgba(0, 63, 47, 0.1);
  --res-sombra-media: 0 20px 50px rgba(0, 63, 47, 0.16);
  --res-sombra-hero: 0 22px 55px rgba(0, 29, 22, 0.26);
  --res-radio-grande: 26px;
  --res-contenedor: 1320px;
  --res-fuente: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;

  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  color: var(--res-negro);
  background-color: var(--res-blanco);
  font-family: var(--res-fuente);
}

@supports (overflow: clip) {
  .resoluciones {
    overflow-x: clip;
  }
}

.resoluciones *,
.resoluciones *::before,
.resoluciones *::after {
  box-sizing: border-box;
}

.resoluciones img,
.resoluciones svg {
  display: block;
  max-width: 100%;
}

.resoluciones h1,
.resoluciones h2,
.resoluciones h3,
.resoluciones p {
  margin-top: 0;
}

/* =========================================================
   BANNER EDITABLE
========================================================= */

.resoluciones-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 726px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  color: var(--res-blanco);
  background-color: var(--res-verde-profundo);
}

.resoluciones-hero__imagen {
  position: absolute;
  inset: 0;
  z-index: -5;
  width: 100%;
  height: 100%;
  max-width: none;
  background-image: url("/banner-resoluciones-medellin.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  transform: scale(1.015);
  transform-origin: center;
  animation: resolucionesHeroImagenEntrada 1200ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.resoluciones-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 29, 22, 0.98) 0%,
    rgba(0, 45, 34, 0.95) 30%,
    rgba(0, 63, 47, 0.82) 48%,
    rgba(0, 45, 34, 0.34) 72%,
    rgba(0, 29, 22, 0.08) 100%
  );
}

.resoluciones-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, #000 0%, #000 50%, transparent 82%);
}

.resoluciones-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.16);
  pointer-events: none;
}

.resoluciones-hero__decoracion {
  position: absolute;
  z-index: -2;
  pointer-events: none;
}

.resoluciones-hero__decoracion--superior {
  top: -240px;
  left: -190px;
  width: 660px;
  height: 660px;
  max-width: none;
  border: 1px solid rgba(139, 217, 54, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 0 55px rgba(139, 217, 54, 0.03),
    0 0 0 115px rgba(255, 255, 255, 0.018);
}

.resoluciones-hero__decoracion--inferior {
  right: -160px;
  bottom: -230px;
  width: 520px;
  height: 520px;
  max-width: none;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(139, 217, 54, 0.22) 0%,
    rgba(139, 217, 54, 0.06) 46%,
    transparent 72%
  );
}

.resoluciones-hero__contenido {
  width: min(calc(100% - 48px), var(--res-contenedor));
  min-height: 726px;
  margin: 0 auto;
  padding: 72px 0;
  display: flex;
  align-items: center;
}

.resoluciones-hero__texto {
  width: min(760px, 62%);
  max-width: 760px;
  animation: resolucionesHeroTextoEntrada 900ms 180ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.resoluciones-hero__kicker {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 20px;
  padding: 8px 17px;
  border: 1px solid rgba(139, 217, 54, 0.52);
  border-radius: 999px;
  color: #ecfac8;
  background: rgba(139, 217, 54, 0.12);
  box-shadow: 0 10px 25px rgba(0, 29, 22, 0.12);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.resoluciones-hero__titulo {
  margin: 0;
  color: var(--res-blanco);
  font-size: clamp(4.1rem, 7.3vw, 7.8rem);
  font-weight: 900;
  line-height: 0.88;
  letter-spacing: -0.06em;
  text-transform: uppercase;
}

.resoluciones-hero__titulo span {
  display: block;
  max-width: 620px;
  margin-top: 17px;
  color: var(--res-verde-lima);
  font-size: 0.33em;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.resoluciones-hero__descripcion {
  max-width: 660px;
  margin: 30px 0 0;
  padding-left: 23px;
  border-left: 4px solid var(--res-verde-lima);
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.14rem;
  line-height: 1.75;
}

.resoluciones-hero__acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.resoluciones-hero__boton {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.resoluciones-hero__boton:hover {
  transform: translateY(-3px);
}

.resoluciones-hero__boton--principal {
  color: var(--res-verde-profundo);
  background: var(--res-verde-lima);
  box-shadow: 0 14px 30px rgba(139, 217, 54, 0.2);
}

.resoluciones-hero__boton--secundario {
  color: var(--res-blanco);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(9px);
}

.resoluciones-hero__destacados {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  margin-top: 34px;
}

.resoluciones-hero__destacado {
  min-width: 0;
  min-height: 124px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(0, 45, 34, 0.56);
  box-shadow: var(--res-sombra-hero);
  backdrop-filter: blur(11px);
  transition:
    transform 250ms ease,
    background-color 250ms ease,
    border-color 250ms ease;
}

.resoluciones-hero__destacado:hover {
  transform: translateY(-5px);
  border-color: rgba(139, 217, 54, 0.38);
  background: rgba(0, 63, 47, 0.7);
}

.resoluciones-hero__destacado > div {
  min-width: 0;
}

.resoluciones-hero__numero {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--res-verde-profundo);
  background: var(--res-verde-lima);
  font-size: 0.77rem;
  font-weight: 900;
}

.resoluciones-hero__destacado strong,
.resoluciones-hero__destacado small {
  display: block;
  overflow-wrap: anywhere;
}

.resoluciones-hero__destacado strong {
  margin-bottom: 5px;
  color: var(--res-blanco);
  font-size: 0.92rem;
  line-height: 1.3;
}

.resoluciones-hero__destacado small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.73rem;
  line-height: 1.45;
}

@keyframes resolucionesHeroImagenEntrada {
  from {
    opacity: 0;
    transform: scale(1.06);
  }

  to {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes resolucionesHeroTextoEntrada {
  from {
    opacity: 0;
    transform: translateY(34px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   CONTENIDO PRINCIPAL
========================================================= */

.resoluciones-contenido {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 78px 0 92px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 8%, rgba(139, 217, 54, 0.11), transparent 24%),
    linear-gradient(180deg, var(--res-blanco) 0%, #f8fbf7 100%);
}

.resoluciones-contenido__container {
  width: min(calc(100% - 40px), var(--res-contenedor));
  max-width: var(--res-contenedor);
  min-width: 0;
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
}

.resoluciones-encabezado {
  margin-bottom: 34px;
  text-align: center;
}

.resoluciones-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--res-verde-principal);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.resoluciones-kicker::before,
.resoluciones-kicker::after {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-verde-lima), var(--res-verde-principal));
}

.resoluciones-titulo {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 20px;
  color: var(--res-verde-oscuro);
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -0.045em;
  text-align: center;
}

.resoluciones-titulo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 96px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--res-verde-principal), var(--res-verde-lima));
  transform: translateX(-50%);
  box-shadow: 0 5px 14px rgba(11, 122, 53, 0.25);
}

.resoluciones-introduccion {
  margin-bottom: 58px;
}

.resoluciones-descripcion {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding: 36px 42px 36px 50px;
  overflow: hidden;
  border: 1px solid rgba(11, 122, 53, 0.14);
  border-radius: var(--res-radio-grande);
  color: var(--res-gris-texto);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(234, 244, 229, 0.88));
  box-shadow: var(--res-sombra-suave);
  font-size: 1.06rem;
  line-height: 1.9;
  text-align: justify;
  isolation: isolate;
  transition:
    transform 300ms ease,
    box-shadow 300ms ease,
    border-color 300ms ease;
}

.resoluciones-descripcion::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 9px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--res-verde-lima),
    var(--res-verde-principal),
    var(--res-verde-profundo)
  );
}

.resoluciones-descripcion::after {
  content: "RESOLUCIONES";
  position: absolute;
  right: 18px;
  bottom: -8px;
  z-index: -1;
  color: rgba(0, 63, 47, 0.035);
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.resoluciones-descripcion:hover {
  transform: translateY(-4px);
  border-color: rgba(11, 122, 53, 0.28);
  box-shadow: var(--res-sombra-media);
}

.resoluciones-listado__encabezado {
  width: 100%;
  max-width: 1120px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 auto 26px;
}

.resoluciones-listado__icono {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--res-verde-principal);
  background: linear-gradient(145deg, var(--res-blanco), var(--res-verde-claro));
  box-shadow: 0 10px 24px rgba(0, 63, 47, 0.1);
}

.resoluciones-listado__icono svg {
  width: 30px;
  height: 30px;
}

.resoluciones-listado__encabezado > div:last-child {
  min-width: 0;
}

.resoluciones-listado__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--res-verde-principal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.resoluciones-listado__titulo {
  margin: 0;
  color: var(--res-verde-oscuro);
  font-size: clamp(1.55rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
}

.resoluciones-listado {
  position: relative;
  width: 100%;
  max-width: 1120px;
  min-width: 0;
  min-height: 1px;
  margin-inline: auto;
  overflow-x: hidden;
}

.resoluciones-listado table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

.resoluciones-listado p,
.resoluciones-listado a,
.resoluciones-listado td,
.resoluciones-listado th {
  overflow-wrap: anywhere;
}

.resoluciones-powerpages-block {
  width: 100%;
  max-width: 100%;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.resoluciones-powerpages-block > .container {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.resoluciones-powerpages-block .columnBlockLayout {
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.resoluciones a:focus-visible,
.resoluciones button:focus-visible,
.resoluciones input:focus-visible,
.resoluciones select:focus-visible {
  outline: 3px solid var(--res-verde-lima);
  outline-offset: 4px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .resoluciones-hero {
    min-height: 680px;
  }

  .resoluciones-hero__contenido {
    min-height: 680px;
  }

  .resoluciones-hero__texto {
    width: min(720px, 68%);
  }
}

@media (max-width: 992px) {
  .resoluciones-hero {
    min-height: 650px;
  }

  .resoluciones-hero__contenido {
    min-height: 650px;
    padding: 64px 0;
  }

  .resoluciones-hero__texto {
    width: min(700px, 74%);
  }

  .resoluciones-hero__titulo {
    font-size: clamp(3.6rem, 8vw, 6.2rem);
  }

  .resoluciones-hero__destacados {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .resoluciones-hero__destacado:last-child {
    grid-column: 1 / -1;
  }

  .resoluciones-contenido__container {
    width: min(calc(100% - 32px), var(--res-contenedor));
  }
}

@media (max-width: 768px) {
  .resoluciones-hero {
    min-height: auto;
  }

  .resoluciones-hero__imagen {
    background-position: 62% center;
  }

  .resoluciones-hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(0, 29, 22, 0.42) 0%,
      rgba(0, 45, 34, 0.76) 36%,
      rgba(0, 45, 34, 0.96) 66%,
      rgba(0, 29, 22, 0.99) 100%
    );
  }

  .resoluciones-hero__contenido {
    width: min(calc(100% - 28px), var(--res-contenedor));
    min-height: 820px;
    align-items: flex-end;
    padding: 220px 0 46px;
  }

  .resoluciones-hero__texto {
    width: 100%;
    max-width: 100%;
  }

  .resoluciones-hero__titulo {
    font-size: clamp(3rem, 13vw, 4.9rem);
    line-height: 0.96;
  }

  .resoluciones-hero__titulo span {
    max-width: 100%;
    font-size: 0.36em;
  }

  .resoluciones-hero__descripcion {
    font-size: 1rem;
    line-height: 1.65;
  }

  .resoluciones-hero__acciones {
    flex-direction: column;
  }

  .resoluciones-hero__boton {
    width: 100%;
  }

  .resoluciones-hero__destacados {
    grid-template-columns: 1fr;
  }

  .resoluciones-hero__destacado:last-child {
    grid-column: auto;
  }

  .resoluciones-contenido__container {
    width: min(calc(100% - 24px), var(--res-contenedor));
  }

  .resoluciones-descripcion {
    padding: 28px 24px 28px 32px;
    font-size: 0.98rem;
    line-height: 1.75;
    text-align: left;
  }
}

@media (max-width: 480px) {
  .resoluciones-hero__contenido {
    min-height: 850px;
    padding-top: 195px;
  }

  .resoluciones-hero__titulo {
    font-size: 3rem;
  }

  .resoluciones-hero__destacado {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .resoluciones-hero__numero {
    width: 38px;
    height: 38px;
  }

  .resoluciones-descripcion {
    padding: 24px 20px 24px 28px;
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .resoluciones-descripcion::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .resoluciones-hero__imagen,
  .resoluciones-hero__texto,
  .resoluciones-hero__boton,
  .resoluciones-hero__destacado,
  .resoluciones-descripcion {
    animation: none;
    transition: none;
  }

  .resoluciones-hero__imagen {
    opacity: 1;
    transform: none;
  }
}