/* =========================================================
   CONTRALORÍA DISTRITAL DE MEDELLÍN
   ACTOS ADMINISTRATIVOS DE CONTRATACIÓN
   CSS PARA MICROSOFT POWER PAGES
========================================================= */

.aa-page {
    --aa-green-950: #052f25;
    --aa-green-900: #073e31;
    --aa-green-800: #0b5540;
    --aa-green-700: #126c4e;
    --aa-lime: #8bd936;
    --aa-lime-soft: #eaf6dc;
    --aa-white: #ffffff;
    --aa-bg: #f4f8f5;
    --aa-bg-soft: #f8fbf9;
    --aa-ink: #163d31;
    --aa-text: #52645d;
    --aa-muted: #7a8983;
    --aa-line: #dce8e2;
    --aa-shadow: 0 18px 50px rgba(5, 47, 37, 0.09);
    --aa-shadow-strong: 0 28px 70px rgba(5, 47, 37, 0.16);
    --aa-radius: 24px;
    --aa-max: 1280px;

    width: 100%;
    min-height: 1px;
    overflow-x: clip;
    color: var(--aa-text);
    background: var(--aa-white);
    font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

.aa-page *,
.aa-page *::before,
.aa-page *::after {
    box-sizing: border-box;
}

.aa-page a,
.aa-page a:hover,
.aa-page a:focus,
.aa-page a:active,
.aa-page a:visited {
    color: inherit;
    text-decoration: none !important;
}

.aa-page button,
.aa-page input,
.aa-page select {
    font: inherit;
}

.aa-shell {
    width: min(calc(100% - 64px), var(--aa-max));
    margin-right: auto;
    margin-left: auto;
}

/* =========================================================
   UTILIDADES
========================================================= */

.aa-label,
.aa-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--aa-green-700);
    font-size: 0.74rem;
    font-weight: 850;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.aa-label::before,
.aa-kicker::before {
    content: "";
    width: 28px;
    height: 3px;
    background: currentColor;
    border-radius: 999px;
}

.aa-label--light {
    color: var(--aa-lime);
}

.aa-btn {
    min-height: 52px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 800;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.aa-btn:hover {
    transform: translateY(-3px);
}

.aa-btn--primary {
    color: var(--aa-green-950) !important;
    background: var(--aa-lime);
    box-shadow: 0 14px 30px rgba(139, 217, 54, 0.18);
}

.aa-btn--ghost {
    color: var(--aa-white) !important;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.22);
}

.aa-section-heading {
    max-width: 850px;
    margin-bottom: 42px;
}

.aa-section-heading h2 {
    margin: 10px 0 14px;
    color: var(--aa-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.35rem, 4.2vw, 3.9rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.aa-section-heading p {
    margin: 0;
    color: var(--aa-muted);
    line-height: 1.76;
}

/* =========================================================
   HERO
========================================================= */

.aa-hero {
    position: relative;
    isolation: isolate;
    min-height: 710px;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--aa-white);
    background:
        radial-gradient(
            circle at 86% 18%,
            rgba(139, 217, 54, 0.19),
            transparent 24%
        ),
        radial-gradient(
            circle at 5% 92%,
            rgba(139, 217, 54, 0.08),
            transparent 24%
        ),
        linear-gradient(
            132deg,
            #0a6248 0%,
            var(--aa-green-900) 46%,
            var(--aa-green-950) 100%
        );
}

.aa-hero__grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: 0.33;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.04) 1px,
            transparent 1px
        );
    background-size: 46px 46px;
}

.aa-hero::after {
    content: "";
    position: absolute;
    right: -180px;
    top: -150px;
    z-index: -1;
    width: 650px;
    height: 650px;
    border: 1px solid rgba(139, 217, 54, 0.15);
    border-radius: 50%;
    box-shadow:
        0 0 0 82px rgba(255, 255, 255, 0.025),
        0 0 0 164px rgba(255, 255, 255, 0.015);
}

.aa-hero__layout {
    min-height: 700px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.95fr);
    gap: 64px;
    align-items: center;
    padding-top: 58px;
    padding-bottom: 76px;
}

.aa-kicker {
    margin-bottom: 18px;
    color: #e4f7bb;
}

.aa-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--aa-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.8rem, 6.4vw, 6.7rem);
    font-weight: 700;
    line-height: 0.92;
    letter-spacing: -0.055em;
}

.aa-hero h1 strong {
    display: block;
    margin-top: 10px;
    color: var(--aa-lime);
    font-weight: 700;
}

.aa-hero__lead {
    max-width: 680px;
    margin: 28px 0 0;
    color: var(--aa-white);
    font-size: 1.13rem;
    font-weight: 600;
    line-height: 1.6;
}

.aa-hero__description {
    max-width: 680px;
    margin: 14px 0 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.72);
    border-left: 3px solid var(--aa-lime);
    font-size: 0.98rem;
    line-height: 1.74;
}

.aa-hero__actions {
    margin-top: 31px;
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.aa-hero__facts {
    margin-top: 34px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

.aa-hero__facts article {
    padding: 15px 16px;
    background: rgba(0, 35, 26, 0.44);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
}

.aa-hero__facts strong,
.aa-hero__facts span {
    display: block;
}

.aa-hero__facts strong {
    color: var(--aa-lime);
    font-size: 0.88rem;
}

.aa-hero__facts span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    line-height: 1.4;
}

.aa-hero__visual {
    position: relative;
    min-height: 520px;
}

.aa-document-stack {
    position: absolute;
    left: 8%;
    top: 6%;
    width: 330px;
    height: 420px;
}

.aa-document {
    position: absolute;
    width: 270px;
    height: 360px;
    border-radius: 22px;
    box-shadow: 0 28px 65px rgba(0, 22, 16, 0.28);
}

.aa-document--back {
    left: 58px;
    top: 14px;
    background: #dce8e2;
    transform: rotate(7deg);
}

.aa-document--middle {
    left: 31px;
    top: 28px;
    background: #edf4ef;
    transform: rotate(2deg);
}

.aa-document--front {
    left: 0;
    top: 0;
    padding: 24px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5f8f6
        );
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: rotate(-4deg);
    animation: aaDocumentFloat 6.6s ease-in-out infinite;
}

.aa-document__header span,
.aa-document__header strong {
    display: block;
}

.aa-document__header span {
    color: var(--aa-green-700);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.15em;
}

.aa-document__header strong {
    margin-top: 4px;
    color: var(--aa-green-900);
    font-size: 1.25rem;
}

.aa-document__lines {
    margin-top: 31px;
}

.aa-document__lines i {
    display: block;
    height: 8px;
    margin: 11px 0;
    background: #dce5e0;
    border-radius: 999px;
}

.aa-document__lines i:nth-child(2) {
    width: 86%;
}

.aa-document__lines i:nth-child(3) {
    width: 72%;
}

.aa-document__lines i:nth-child(4) {
    width: 58%;
}

.aa-document__stamp {
    position: absolute;
    left: 24px;
    bottom: 28px;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    align-content: center;
    color: var(--aa-green-950);
    background: var(--aa-lime-soft);
    border: 4px solid var(--aa-lime);
    border-radius: 50%;
    transform: rotate(-8deg);
}

.aa-document__stamp span,
.aa-document__stamp strong {
    display: block;
}

.aa-document__stamp span {
    font-size: 1.5rem;
    font-weight: 900;
}

.aa-document__stamp strong {
    margin-top: 3px;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.aa-route-card {
    position: absolute;
    right: 0;
    bottom: 12%;
    width: 280px;
    padding: 18px;
    background: rgba(5, 47, 37, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.aa-route-card__label {
    display: block;
    margin-bottom: 15px;
    color: var(--aa-lime);
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.aa-route {
    display: grid;
    grid-template-columns: 1fr 20px 1fr 20px 1fr;
    align-items: center;
    gap: 7px;
}

.aa-route article {
    text-align: center;
}

.aa-route article span,
.aa-route article strong {
    display: block;
}

.aa-route article span {
    width: 32px;
    height: 32px;
    margin: 0 auto 7px;
    display: grid;
    place-items: center;
    color: var(--aa-green-950);
    background: var(--aa-lime);
    border-radius: 9px;
    font-size: 0.67rem;
    font-weight: 900;
}

.aa-route article strong {
    color: var(--aa-white);
    font-size: 0.67rem;
}

.aa-route i {
    height: 2px;
    background: var(--aa-lime);
}

.aa-hero__seal {
    position: absolute;
    right: 7%;
    top: 3%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.93);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.14);
}

.aa-hero__seal span,
.aa-hero__seal strong {
    display: block;
}

.aa-hero__seal span {
    color: var(--aa-green-700);
    font-size: 0.62rem;
    font-weight: 850;
    text-transform: uppercase;
}

.aa-hero__seal strong {
    margin-top: 3px;
    color: var(--aa-green-900);
    font-size: 0.84rem;
}

.aa-hero__orbit {
    position: absolute;
    border: 1px solid rgba(139, 217, 54, 0.18);
    border-radius: 50%;
}

.aa-hero__orbit--one {
    right: -80px;
    top: 20px;
    width: 260px;
    height: 260px;
}

.aa-hero__orbit--two {
    left: -40px;
    bottom: 0;
    width: 190px;
    height: 190px;
}

.aa-hero__accent {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 9px;
    display: grid;
    grid-template-columns: 82% 18%;
}

.aa-hero__accent span:first-child {
    background: var(--aa-white);
}

.aa-hero__accent span:last-child {
    background: var(--aa-lime);
}

/* =========================================================
   INTRO
========================================================= */

.aa-intro {
    padding: 92px 0;
    background: var(--aa-white);
}

.aa-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
    gap: 74px;
    align-items: start;
}

.aa-intro h2 {
    max-width: 640px;
    margin: 12px 0 0;
    color: var(--aa-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4.4vw, 4rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
}

.aa-intro__content {
    padding: 34px 36px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(139, 217, 54, 0.10),
            transparent 27%
        ),
        #ffffff;
    border: 1px solid var(--aa-line);
    border-radius: var(--aa-radius);
    box-shadow: var(--aa-shadow);
}

.aa-intro__content p {
    margin: 0 0 18px;
    color: var(--aa-text);
    line-height: 1.8;
}

.aa-intro__highlights {
    margin-top: 27px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    border-top: 1px solid var(--aa-line);
}

.aa-intro__highlights article {
    padding: 14px;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    background: var(--aa-bg-soft);
    border: 1px solid var(--aa-line);
    border-radius: 13px;
}

.aa-intro__highlights article > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--aa-green-950);
    background: var(--aa-lime);
    border-radius: 11px;
    font-size: 0.70rem;
    font-weight: 900;
}

.aa-intro__highlights strong,
.aa-intro__highlights small {
    display: block;
}

.aa-intro__highlights strong {
    color: var(--aa-green-900);
}

.aa-intro__highlights small {
    margin-top: 2px;
    color: var(--aa-muted);
    line-height: 1.4;
}

/* =========================================================
   VALOR
========================================================= */

.aa-value {
    padding: 92px 0 102px;
    background:
        linear-gradient(
            180deg,
            #f8fbf9,
            var(--aa-bg)
        );
}

.aa-value__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.aa-value__grid article {
    position: relative;
    min-height: 285px;
    padding: 28px;
    overflow: hidden;
    background: var(--aa-white);
    border: 1px solid var(--aa-line);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(5, 47, 37, 0.06);
    transition:
        transform 0.26s ease,
        box-shadow 0.26s ease,
        border-color 0.26s ease;
}

.aa-value__grid article:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 217, 54, 0.50);
    box-shadow: var(--aa-shadow-strong);
}

.aa-value__number {
    position: absolute;
    right: 20px;
    top: 16px;
    color: #d5e2dc;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 700;
}

.aa-value__icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    color: var(--aa-green-950);
    background: var(--aa-lime);
    border-radius: 17px;
    font-size: 1.4rem;
    font-weight: 900;
}

.aa-value__grid h3 {
    margin: 23px 0 10px;
    color: var(--aa-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
}

.aa-value__grid p {
    margin: 0;
    color: var(--aa-muted);
    line-height: 1.7;
}

/* =========================================================
   SHAREPOINT
========================================================= */

.aa-publications {
    padding: 98px 0 110px;
    background: var(--aa-white);
}

.aa-publications__header {
    margin-bottom: 36px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 70px;
    align-items: end;
}

.aa-publications__header h2 {
    margin: 10px 0 0;
    color: var(--aa-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.5rem, 4.2vw, 4rem);
    line-height: 1.03;
}

.aa-publications__header p {
    max-width: 700px;
    margin: 0;
    color: var(--aa-muted);
    line-height: 1.78;
}

.aa-sharepoint-panel {
    overflow: hidden;
    background: var(--aa-white);
    border: 1px solid var(--aa-line);
    border-radius: 22px;
    box-shadow: var(--aa-shadow);
}

.aa-sharepoint-panel__top {
    min-height: 86px;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--aa-white);
    background:
        linear-gradient(
            135deg,
            var(--aa-green-900),
            var(--aa-green-950)
        );
}

.aa-sharepoint-panel__top span,
.aa-sharepoint-panel__top strong {
    display: block;
}

.aa-sharepoint-panel__top > div:first-child > span {
    color: var(--aa-lime);
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.aa-sharepoint-panel__top strong {
    margin-top: 3px;
    color: var(--aa-white);
    font-size: 1rem;
}

.aa-sharepoint-panel__status {
    display: flex !important;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68) !important;
    font-size: 0.72rem !important;
}

.aa-sharepoint-panel__status > span {
    width: 9px;
    height: 9px;
    background: var(--aa-lime);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(139, 217, 54, 0.11);
}

.aa-sharepoint-panel__body {
    padding: 30px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(139, 217, 54, 0.05),
            transparent 24%
        ),
        #ffffff;
}

.aa-sharepoint-panel__body .container {
    width: 100% !important;
    max-width: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

.aa-sharepoint-panel__body table {
    width: 100%;
}

.aa-sharepoint-panel__body a {
    color: var(--aa-green-700) !important;
    font-weight: 700;
}

/* =========================================================
   CIERRE
========================================================= */

.aa-closing {
    padding: 76px 0;
    color: var(--aa-white);
    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(139, 217, 54, 0.14),
            transparent 27%
        ),
        linear-gradient(
            145deg,
            var(--aa-green-900),
            var(--aa-green-950)
        );
}

.aa-closing__panel {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
}

.aa-closing__symbol {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    color: var(--aa-green-950);
    background: var(--aa-lime);
    border-radius: 18px;
    font-size: 1.6rem;
    font-weight: 900;
}

.aa-closing h2 {
    margin: 7px 0 8px;
    color: var(--aa-white);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.8rem;
}

.aa-closing p {
    max-width: 780px;
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.72;
}

/* =========================================================
   BACK TOP
========================================================= */

.aa-back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1400;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--aa-green-950);
    background: var(--aa-lime);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 12px 28px rgba(5, 47, 37, 0.18);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.aa-back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* =========================================================
   ANIMACIONES
========================================================= */

[data-aa-reveal] {
    opacity: 1;
    transform: none;
}

.aa-page.aa-js-ready [data-aa-reveal]:not(.is-visible) {
    opacity: 0;
    transform: translateY(28px);
}

.aa-page.aa-js-ready [data-aa-reveal] {
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.aa-page.aa-js-ready [data-aa-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes aaDocumentFloat {
    0%,
    100% {
        transform: translateY(0) rotate(-4deg);
    }

    50% {
        transform: translateY(-12px) rotate(-2deg);
    }
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1160px) {

    .aa-hero__layout {
        grid-template-columns: 1fr;
    }

    .aa-hero__visual {
        min-height: 500px;
    }

    .aa-intro__grid,
    .aa-publications__header {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .aa-value__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .aa-closing__panel {
        grid-template-columns: 68px 1fr;
    }

    .aa-closing__panel .aa-btn {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 820px) {

    .aa-shell {
        width: min(calc(100% - 32px), var(--aa-max));
    }

    .aa-hero {
        min-height: auto;
    }

    .aa-hero__layout {
        min-height: 0;
        padding-top: 58px;
        padding-bottom: 34px;
    }

    .aa-hero h1 {
        font-size: clamp(3rem, 14vw, 5.4rem);
    }

    .aa-hero__visual {
        min-height: 450px;
    }

    .aa-document-stack {
        left: 2%;
    }

    .aa-route-card {
        right: 2%;
    }

    .aa-value__grid {
        grid-template-columns: 1fr;
    }

    .aa-sharepoint-panel__top {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {

    .aa-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .aa-hero__actions .aa-btn {
        width: 100%;
    }

    .aa-hero__facts {
        grid-template-columns: 1fr;
    }

    .aa-hero__visual {
        min-height: 390px;
    }

    .aa-document-stack {
        width: 100%;
        transform: scale(0.78);
        transform-origin: left top;
    }

    .aa-route-card {
        right: 0;
        bottom: 0;
        width: 250px;
    }

    .aa-hero__seal,
    .aa-hero__orbit {
        display: none;
    }

    .aa-intro__content {
        padding: 26px 23px;
    }

    .aa-intro__highlights {
        grid-template-columns: 1fr;
    }

    .aa-sharepoint-panel__body {
        padding: 18px;
    }

    .aa-closing__panel {
        grid-template-columns: 1fr;
    }

    .aa-closing__panel .aa-btn {
        grid-column: auto;
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

.aa-page :focus-visible {
    outline: 3px solid var(--aa-lime);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .aa-page *,
    .aa-page *::before,
    .aa-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .aa-page.aa-js-ready [data-aa-reveal]:not(.is-visible) {
        opacity: 1;
        transform: none;
    }
}
