/* =========================================================
   INFORME FISCAL Y FINANCIERO
   Contraloría Distrital de Medellín
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.iff-page {
    --iff-green-deep: #002d22;
    --iff-green-dark: #003f2f;
    --iff-green: #0b7a35;
    --iff-lime: #8bd936;
    --iff-lime-soft: #eef8df;
    --iff-gold: #d5a708;
    --iff-blue: #4f83a0;
    --iff-white: #ffffff;
    --iff-bg: #f4f7f3;
    --iff-text: #203a32;
    --iff-muted: #66736e;
    --iff-border: #dbe5de;
    --iff-shadow: 0 18px 42px rgba(0, 63, 47, 0.1);
    --iff-shadow-hover: 0 28px 60px rgba(0, 63, 47, 0.17);
    --iff-container: 1320px;

    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    color: var(--iff-text);
    background: var(--iff-white);
    font-family:
        "Segoe UI Variable",
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.65;
}

.iff-page *,
.iff-page *::before,
.iff-page *::after {
    box-sizing: border-box;
}

.iff-page a,
.iff-page a:hover,
.iff-page a:focus,
.iff-page a:active,
.iff-page a:visited {
    color: inherit;
    text-decoration: none !important;
}

.iff-container {
    width:
        min(
            calc(100% - 40px),
            var(--iff-container)
        );
    margin-inline: auto;
}

/* =========================================================
   BOTONES
========================================================= */

.iff-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding:
        0 24px;
    border:
        1px solid transparent;
    border-radius: 12px;
    font-weight: 800;
    transition:
        transform 0.22s ease,
        background-color 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.iff-button:hover {
    transform:
        translateY(-3px);
}

.iff-button--primary {
    color: var(--iff-green-deep);
    background: var(--iff-lime);
    box-shadow:
        0 14px 34px rgba(139, 217, 54, 0.24);
}

.iff-button--secondary {
    color: var(--iff-white);
    border-color:
        rgba(255, 255, 255, 0.24);
    background:
        rgba(255, 255, 255, 0.08);
    backdrop-filter:
        blur(8px);
}

/* =========================================================
   HERO
========================================================= */

.iff-hero {
    --iff-x: 0px;
    --iff-y: 0px;

    position: relative;
    min-height: 740px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    color: var(--iff-white);
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(139, 217, 54, 0.2),
            transparent 22%
        ),
        radial-gradient(
            circle at 10% 92%,
            rgba(79, 131, 160, 0.18),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            #0b6548 0%,
            var(--iff-green-dark) 48%,
            var(--iff-green-deep) 100%
        );
}

.iff-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.iff-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.035) 1px,
            transparent 1px
        );
    background-size: 44px 44px;
}

.iff-hero__orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    animation:
        iffOrbFloat 11s ease-in-out infinite;
}

.iff-hero__orb--one {
    top: -190px;
    right: -130px;
    width: 520px;
    height: 520px;
    border:
        1px solid rgba(139, 217, 54, 0.2);
    box-shadow:
        0 0 0 70px rgba(139, 217, 54, 0.025),
        0 0 0 140px rgba(255, 255, 255, 0.018);
}

.iff-hero__orb--two {
    left: -190px;
    bottom: -270px;
    width: 600px;
    height: 600px;
    background:
        radial-gradient(
            circle,
            rgba(79, 131, 160, 0.18) 0%,
            rgba(79, 131, 160, 0.03) 48%,
            transparent 72%
        );
    animation-delay:
        -4s;
}

.iff-hero__line {
    position: absolute;
    display: block;
    height: 1px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(139, 217, 54, 0.58),
            transparent
        );
    animation:
        iffLineMove 9s ease-in-out infinite;
}

.iff-hero__line--one {
    top: 22%;
    left: 36%;
    width: 40%;
    transform:
        rotate(-12deg);
}

.iff-hero__line--two {
    top: 57%;
    left: 46%;
    width: 38%;
    transform:
        rotate(10deg);
    animation-delay:
        -2.5s;
}

.iff-hero__line--three {
    top: 78%;
    left: 17%;
    width: 36%;
    transform:
        rotate(-7deg);
    animation-delay:
        -4.2s;
}

.iff-hero__layout {
    position: relative;
    z-index: 2;
    min-height: 740px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.03fr)
        minmax(460px, 0.97fr);
    gap: 70px;
    align-items: center;
    padding:
        84px 0 110px;
}

.iff-kicker,
.iff-section-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--iff-green);
    font-size: 0.76rem;
    font-weight: 850;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.iff-kicker {
    margin-bottom: 22px;
    padding:
        8px 16px;
    border:
        1px solid rgba(139, 217, 54, 0.46);
    border-radius: 999px;
    color: #e9fac3;
    background:
        rgba(139, 217, 54, 0.1);
}

.iff-kicker::before,
.iff-section-label::before {
    content: "";
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.iff-section-label--light {
    color: var(--iff-lime);
}

.iff-hero h1 {
    margin: 0;
    color: var(--iff-white);
    font-size:
        clamp(3.45rem, 5.5vw, 6.4rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.iff-hero h1 span {
    display: block;
    margin-top: 12px;
    color: var(--iff-lime);
    font-size: 0.64em;
    line-height: 1;
}

.iff-hero__copy > p {
    max-width: 700px;
    margin:
        30px 0 0;
    padding-left: 24px;
    border-left:
        4px solid var(--iff-lime);
    color:
        rgba(255, 255, 255, 0.82);
    font-size:
        clamp(1rem, 1.35vw, 1.17rem);
}

.iff-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 32px;
}

.iff-hero__indicators {
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 34px;
}

.iff-hero__indicator {
    min-height: 98px;
    padding: 16px;
    border:
        1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background:
        rgba(0, 45, 34, 0.5);
}

.iff-hero__indicator strong,
.iff-hero__indicator span {
    display: block;
}

.iff-hero__indicator strong {
    color: var(--iff-white);
}

.iff-hero__indicator span {
    margin-top: 5px;
    color:
        rgba(255, 255, 255, 0.61);
    font-size: 0.72rem;
}

.iff-hero__visual {
    min-height: 520px;
    display: grid;
    place-items: center;
    transform:
        translate3d(
            calc(var(--iff-x) * 0.25),
            calc(var(--iff-y) * 0.25),
            0
        );
    transition:
        transform 0.18s ease-out;
}

.iff-hero__photo-frame {
    position: relative;
    width:
        min(570px, 100%);
    min-height: 510px;
}

.iff-hero__photo-shape {
    position: absolute;
    inset: 2% 1% 5% 8%;
    border:
        1px solid rgba(139, 217, 54, 0.26);
    border-radius:
        34% 66% 44% 56% /
        52% 38% 62% 48%;
    background:
        linear-gradient(
            145deg,
            rgba(139, 217, 54, 0.15),
            rgba(255, 255, 255, 0.03)
        );
    transform:
        rotate(-4deg);
    animation:
        iffPhotoShape 7s ease-in-out infinite;
}

.iff-hero__photo {
    position: absolute;
    inset: 5% 3% 3% 6%;
    width: 91%;
    height: 92%;
    display: block;
    object-fit: cover;
    object-position: center;
    border:
        1px solid rgba(255, 255, 255, 0.22);
    border-radius:
        32% 68% 46% 54% /
        52% 42% 58% 48%;
    box-shadow:
        0 32px 72px rgba(0, 22, 16, 0.4);
}

.iff-hero__photo-overlay {
    position: absolute;
    inset: 5% 3% 3% 6%;
    border-radius:
        32% 68% 46% 54% /
        52% 42% 58% 48%;
    background:
        linear-gradient(
            180deg,
            transparent 48%,
            rgba(0, 45, 34, 0.33) 100%
        );
    pointer-events: none;
}

.iff-hero__chart-card {
    position: absolute;
    right: 1%;
    bottom: 4%;
    z-index: 4;
    width: 220px;
    padding: 18px 20px;
    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.92);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.22);
    backdrop-filter:
        blur(14px);
    animation:
        iffFloatingCard 5.8s ease-in-out infinite;
}

.iff-hero__chart-label {
    color: var(--iff-green);
    font-size: 0.7rem;
    font-weight: 850;
    text-transform: uppercase;
}

.iff-hero__chart {
    height: 74px;
    display: flex;
    align-items: end;
    gap: 8px;
    margin-top: 14px;
}

.iff-hero__chart i {
    flex: 1;
    border-radius:
        8px 8px 0 0;
    background:
        linear-gradient(
            180deg,
            var(--iff-lime),
            var(--iff-green)
        );
}

.iff-hero__chart i:nth-child(1) {
    height: 34%;
}

.iff-hero__chart i:nth-child(2) {
    height: 58%;
}

.iff-hero__chart i:nth-child(3) {
    height: 46%;
}

.iff-hero__chart i:nth-child(4) {
    height: 78%;
}

.iff-hero__chart i:nth-child(5) {
    height: 92%;
}

.iff-hero__floating-card {
    position: absolute;
    z-index: 4;
    border:
        1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background:
        rgba(255, 255, 255, 0.91);
    box-shadow:
        0 20px 46px rgba(0, 0, 0, 0.22);
    backdrop-filter:
        blur(14px);
    animation:
        iffFloatingCard 5.5s ease-in-out infinite;
}

.iff-hero__floating-card--top {
    top: 4%;
    right: 0;
    width: 220px;
    padding:
        18px 20px;
}

.iff-hero__floating-card--top span,
.iff-hero__floating-card--top strong {
    display: block;
}

.iff-hero__floating-card--top span {
    color: var(--iff-green);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.iff-hero__floating-card--top strong {
    margin-top: 4px;
    color: var(--iff-green-deep);
}

.iff-hero__floating-card--bottom {
    left: 0;
    bottom: 10%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding:
        15px 18px;
    animation-delay:
        -2.2s;
}

.iff-hero__floating-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--iff-green-deep);
    background: var(--iff-lime);
    font-weight: 900;
}

.iff-hero__floating-card--bottom strong,
.iff-hero__floating-card--bottom small {
    display: block;
}

.iff-hero__floating-card--bottom strong {
    color: var(--iff-green-deep);
}

.iff-hero__floating-card--bottom small {
    color: var(--iff-muted);
}

.iff-hero__scroll {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 22px;
    display: grid;
    justify-items: center;
    gap: 8px;
    transform:
        translateX(-50%);
    color:
        rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.iff-hero__scroll i {
    width: 1px;
    height: 34px;
    display: block;
    background:
        linear-gradient(
            var(--iff-lime),
            transparent
        );
}

/* =========================================================
   INTRO Y SECCIONES
========================================================= */

.iff-intro {
    padding:
        82px 0 34px;
}

.iff-intro__panel {
    display: grid;
    grid-template-columns:
        92px 1fr;
    gap: 26px;
    align-items: start;
    padding: 38px;
    border:
        1px solid rgba(11, 122, 53, 0.13);
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f4f9f0
        );
    box-shadow: var(--iff-shadow);
}

.iff-intro__icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--iff-lime-soft);
}

.iff-intro__icon svg {
    width: 48px;
    height: 48px;
    fill: none;
    stroke: var(--iff-green);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.iff-intro h2,
.iff-section__header h2,
.iff-value h2,
.iff-listing__header h2,
.iff-closing h2 {
    margin:
        10px 0 14px;
    color: var(--iff-green-dark);
    font-size:
        clamp(2.3rem, 4vw, 4rem);
    line-height: 1.04;
    letter-spacing: -0.045em;
}

.iff-intro p,
.iff-section__header p,
.iff-value p,
.iff-listing__header p,
.iff-closing p {
    margin: 0;
    color: var(--iff-muted);
    font-size: 1.02rem;
}

.iff-section {
    padding:
        94px 0;
}

.iff-section--soft {
    background: var(--iff-bg);
}

.iff-section__header {
    max-width: 900px;
    margin-bottom: 38px;
}

.iff-component-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.iff-component-card {
    min-height: 260px;
    padding: 28px;
    border:
        1px solid var(--iff-border);
    border-radius: 22px;
    background: var(--iff-white);
    box-shadow: var(--iff-shadow);
    transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease;
}

.iff-component-card:hover {
    transform:
        translateY(-7px);
    border-color:
        rgba(139, 217, 54, 0.45);
    box-shadow: var(--iff-shadow-hover);
}

.iff-component-card__number {
    display: block;
    color: var(--iff-lime);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
}

.iff-component-card h3 {
    margin:
        24px 0 13px;
    color: var(--iff-green-dark);
    font-size: 1.15rem;
}

.iff-component-card p {
    margin: 0;
    color: var(--iff-muted);
}

/* =========================================================
   VALOR PÚBLICO
========================================================= */

.iff-value {
    display: grid;
    grid-template-columns:
        1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    padding: 54px;
    border:
        1px solid var(--iff-border);
    border-radius: 26px;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f0f7ed
        );
    box-shadow: var(--iff-shadow);
}

.iff-value__graphic {
    display: grid;
    place-items: center;
}

.iff-value__circle {
    width: 170px;
    height: 170px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background:
        linear-gradient(
            145deg,
            var(--iff-green),
            var(--iff-green-deep)
        );
}

.iff-value__circle svg {
    width: 96px;
    height: 96px;
    fill: none;
    stroke: var(--iff-lime);
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   LISTADO
========================================================= */

.iff-section--listing {
    background:
        radial-gradient(
            circle at 92% 8%,
            rgba(139, 217, 54, 0.1),
            transparent 23%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f7faf6
        );
}

.iff-listing__header {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    padding: 36px;
    border:
        1px solid var(--iff-border);
    border-radius:
        26px 26px 0 0;
    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f1f7ed
        );
}

.iff-listing__badge {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    flex:
        0 0 auto;
    border-radius: 22px;
    color: var(--iff-green-dark);
    background: var(--iff-lime);
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow:
        0 14px 30px rgba(139, 217, 54, 0.24);
}

.iff-listing__content {
    padding:
        32px 36px 40px;
    border:
        1px solid var(--iff-border);
    border-top: 0;
    border-radius:
        0 0 26px 26px;
    background: var(--iff-white);
    box-shadow: var(--iff-shadow);
}

/* =========================================================
   CIERRE
========================================================= */

.iff-closing {
    color: var(--iff-white);
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(139, 217, 54, 0.17),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            var(--iff-green-dark),
            var(--iff-green-deep)
        );
}

.iff-closing__layout {
    min-height: 390px;
    display: grid;
    grid-template-columns:
        1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
    padding:
        70px 0;
}

.iff-closing h2 {
    color: var(--iff-white);
}

.iff-closing p {
    color:
        rgba(255, 255, 255, 0.74);
}

.iff-closing__icon {
    display: grid;
    place-items: center;
}

.iff-closing__icon svg {
    width: 170px;
    height: 170px;
    fill: none;
    stroke: var(--iff-lime);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =========================================================
   ANIMACIONES Y ACCESIBILIDAD
========================================================= */

[data-iff-reveal] {
    opacity: 0;
    transform:
        translateY(30px);
}

[data-iff-reveal].is-visible {
    opacity: 1;
    transform:
        translateY(0);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.iff-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: var(--iff-green-dark);
    background: var(--iff-lime);
    opacity: 0;
    pointer-events: none;
    transform:
        translateY(18px);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.iff-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform:
        translateY(0);
}

.iff-powerpages-block,
.iff-powerpages-block .container,
.iff-powerpages-block .columnBlockLayout {
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.iff-page :focus-visible {
    outline:
        3px solid var(--iff-lime);
    outline-offset: 4px;
}

@keyframes iffOrbFloat {
    0%,
    100% {
        transform:
            translate3d(0, 0, 0);
    }

    50% {
        transform:
            translate3d(18px, -16px, 0);
    }
}

@keyframes iffLineMove {
    0%,
    100% {
        opacity: 0.18;
    }

    50% {
        opacity: 0.62;
    }
}

@keyframes iffPhotoShape {
    0%,
    100% {
        transform:
            translateY(0)
            rotate(-4deg);
    }

    50% {
        transform:
            translateY(-12px)
            rotate(-2deg);
    }
}

@keyframes iffFloatingCard {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-10px);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
    .iff-hero__layout {
        grid-template-columns: 1fr;
    }

    .iff-hero__visual {
        width:
            min(560px, 100%);
        min-height: 500px;
        margin-inline: auto;
    }

    .iff-component-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .iff-container {
        width:
            min(
                calc(100% - 28px),
                var(--iff-container)
            );
    }

    .iff-hero {
        min-height: auto;
    }

    .iff-hero__layout {
        min-height: auto;
        padding:
            72px 0 105px;
    }

    .iff-hero h1 {
        font-size:
            clamp(3rem, 14vw, 4.9rem);
    }

    .iff-hero__actions {
        flex-direction: column;
    }

    .iff-button {
        width: 100%;
    }

    .iff-hero__indicators,
    .iff-component-grid,
    .iff-value,
    .iff-closing__layout {
        grid-template-columns: 1fr;
    }

    .iff-intro__panel {
        grid-template-columns: 1fr;
    }

    .iff-listing__header {
        align-items: flex-start;
        flex-direction: column;
        padding:
            28px 24px;
    }

    .iff-listing__content {
        padding:
            24px 20px 30px;
    }
}

@media (max-width: 520px) {
    .iff-hero__visual {
        min-height: 370px;
    }

    .iff-hero__photo-frame {
        min-height: 350px;
    }

    .iff-hero__chart-card {
        width: 175px;
        padding: 14px;
    }

    .iff-hero__floating-card--top {
        width: 185px;
        padding: 14px;
    }

    .iff-hero__floating-card--bottom {
        left: 2px;
        bottom: 3%;
        padding: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iff-page *,
    .iff-page *::before,
    .iff-page *::after {
        animation: none !important;
        transition: none !important;
    }

    [data-iff-reveal] {
        opacity: 1;
        transform: none;
    }
}
