﻿/* ================================================================
   PORTAL SIGS - GALERIA OFICIAL
   ================================================================ */

.pg-page {
    min-height: 100vh;
    background: #fff;
}

    .pg-page .header {
        background: rgba(255,255,255,.96);
        border-color: rgba(6,69,107,.09);
        box-shadow: 0 8px 35px rgba(3,55,86,.07);
        backdrop-filter: blur(18px);
    }

    .pg-page .nav a.active {
        color: var(--primary);
    }

        .pg-page .nav a.active::after {
            width: 100%;
        }


/* ================================================================
   HERO
   ================================================================ */

.pg-hero {
    position: relative;
    overflow: hidden;
    padding: 155px 0 90px;
    color: #fff;
    background: radial-gradient(circle at 14% 20%,rgba(22,185,228,.23),transparent 29%), radial-gradient(circle at 85% 23%,rgba(49,201,163,.14),transparent 25%), linear-gradient(128deg,#031f32,#06496f 55%,#087aac);
}

.pg-hero-orb {
    position: absolute;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.pg-orb-one {
    width: 520px;
    height: 520px;
    top: -290px;
    right: -120px;
}

.pg-orb-two {
    width: 310px;
    height: 310px;
    bottom: -190px;
    left: -120px;
}

.pg-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 80px;
    align-items: center;
}

.pg-eyebrow {
    margin-bottom: 18px;
    color: #76d8f6;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .15em;
}

    .pg-eyebrow i {
        margin-right: 8px;
    }

.pg-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(47px,5vw,70px);
    line-height: 1;
    letter-spacing: -.055em;
}

    .pg-hero h1 strong {
        display: block;
        margin-top: 8px;
        color: #38c4ed;
    }

.pg-hero-copy > p {
    max-width: 670px;
    margin: 25px 0 0;
    color: #c4dae5;
    font-size: 15px;
    line-height: 1.8;
}

.pg-live {
    width: max-content;
    max-width: 100%;
    margin-top: 27px;
    padding: 10px 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 999px;
    color: #b8d3df;
    background: rgba(255,255,255,.055);
    font-size: 10px;
}

    .pg-live i {
        color: #e7aa4e;
        font-size: 7px;
    }

    .pg-live.online i {
        color: #42d5a4;
        animation: pg-live 1.5s infinite;
    }

@keyframes pg-live {
    50% {
        opacity: .28
    }
}

.pg-hero-visual {
    width: 360px;
    min-height: 350px;
    margin-left: auto;
    padding: 45px 38px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 32px;
    background: rgba(255,255,255,.07);
    box-shadow: 0 35px 80px rgba(0,0,0,.20);
    backdrop-filter: blur(14px);
    text-align: center;
}

.pg-hero-icon {
    width: 105px;
    height: 105px;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    color: #fff;
    background: linear-gradient(135deg,#0fa4d9,#076298);
    font-size: 41px;
}

.pg-hero-visual > span {
    color: #75d2ee;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .16em;
}

.pg-hero-visual > strong {
    max-width: 260px;
    margin-top: 10px;
    font-size: 24px;
    line-height: 1.25;
}


/* ================================================================
   STATS
   ================================================================ */

.pg-stats-wrap {
    position: relative;
    z-index: 4;
    margin-top: -35px;
}

.pg-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(3,66,101,.12);
}

    .pg-stats article {
        min-height: 110px;
        padding: 23px 27px;
        display: flex;
        align-items: center;
        gap: 15px;
        border-right: 1px solid #edf2f5;
    }

        .pg-stats article:last-child {
            border-right: 0;
        }

        .pg-stats article > i {
            width: 48px;
            height: 48px;
            display: grid;
            place-items: center;
            flex: 0 0 48px;
            border-radius: 14px;
            color: #087fb9;
            background: #eaf6fb;
            font-size: 19px;
        }

    .pg-stats strong,
    .pg-stats span {
        display: block;
    }

    .pg-stats strong {
        color: #24495f;
        font-size: 25px;
    }

    .pg-stats span {
        margin-top: 2px;
        color: #84939c;
        font-size: 10px;
    }


/* ================================================================
   GALERIA
   ================================================================ */

.pg-gallery-section {
    padding: 100px 0 110px;
    background: #fff;
}

.pg-section-head {
    margin-bottom: 30px;
}

    .pg-section-head span {
        display: block;
        margin-bottom: 9px;
        color: var(--primary);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .16em;
    }

    .pg-section-head h2 {
        margin: 0;
        color: #17384c;
        font-size: 39px;
        letter-spacing: -.04em;
    }

    .pg-section-head p {
        margin: 9px 0 0;
        color: #768995;
        font-size: 13px;
    }


/* ================================================================
   FILTROS
   ================================================================ */

.pg-filter {
    padding: 14px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e0e9ee;
    border-radius: 18px;
    background: #f8fbfc;
}

.pg-quick {
    display: flex;
    gap: 6px;
}

    .pg-quick button {
        height: 40px;
        padding: 0 13px;
        border: 1px solid #dce8ee;
        border-radius: 20px;
        color: #547184;
        background: #fff;
        font-size: 10px;
        font-weight: 700;
        cursor: pointer;
    }

        .pg-quick button.active {
            border-color: var(--primary);
            color: #fff;
            background: var(--primary);
        }

.pg-search {
    position: relative;
}

    .pg-search i {
        position: absolute;
        top: 14px;
        left: 14px;
        color: #1691c9;
    }

    .pg-search input {
        width: 100%;
        height: 44px;
        padding: 0 14px 0 41px;
        border: 1px solid #dbe7ed;
        border-radius: 12px;
        outline: 0;
        color: #36596c;
        background: #fff;
        font-size: 12px;
    }

        .pg-search input:focus {
            border-color: #35a9d5;
            box-shadow: 0 0 0 3px rgba(7,131,197,.07);
        }

.pg-filter-open {
    height: 44px;
    padding: 0 15px;
    border: 1px solid #dbe7ed;
    border-radius: 12px;
    color: #37637a;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

    .pg-filter-open i {
        margin-right: 6px;
    }

.pg-advanced {
    margin-top: 12px;
    padding: 17px;
    display: grid;
    grid-template-columns: repeat(6,1fr) auto;
    gap: 10px;
    align-items: end;
    border: 1px solid #e1eaef;
    border-radius: 16px;
    background: #f8fbfc;
}

    .pg-advanced label {
        display: block;
        margin-bottom: 5px;
        color: #587286;
        font-size: 9px;
        font-weight: 750;
    }

    .pg-advanced select,
    .pg-advanced input {
        width: 100%;
        height: 42px;
        padding: 0 9px;
        border: 1px solid #dae6ec;
        border-radius: 10px;
        outline: 0;
        color: #3b5c6e;
        background: #fff;
        font-size: 10px;
    }

.pg-apply {
    height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg,#078ed0,#07618e);
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
}

.pg-gallery-info {
    margin: 25px 0 15px;
    color: #85949d;
    font-size: 11px;
}

    .pg-gallery-info strong {
        color: #31708f;
    }


/* ================================================================
   TIMELINE
   ================================================================ */

.pg-timeline {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.pg-period-head {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .pg-period-head:after {
        content: "";
        height: 1px;
        flex: 1;
        background: #e3ebef;
    }

.pg-period-dot {
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #0aa0d8;
    box-shadow: 0 0 0 3px #dff3fa;
}

.pg-period-head strong {
    color: #34566b;
    font-size: 15px;
}


/* ================================================================
   MOSAICO PREMIUM - GRID REAL
   ================================================================ */

.pg-grid {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    grid-auto-flow: dense;
    gap: 13px;
}

.pg-card {
    position: relative;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    margin: 0;
    border-radius: 18px;
    background: #dce8ee;
    box-shadow: 0 8px 27px rgba(4,60,90,.09);
    cursor: pointer;
    transition: transform .22s ease, box-shadow .22s ease;
}

.pg-card-square {
    aspect-ratio: 1 / 1;
}

.pg-card-tall {
    aspect-ratio: 4 / 5;
}

.pg-card-wide {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

.pg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(4,60,90,.17);
}

.pg-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .45s ease;
}

.pg-card:hover img {
    transform: scale(1.035);
}

.pg-card-overlay {
    position: absolute;
    z-index: 2;
    inset: 38% 0 0;
    padding: 20px 16px 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #fff;
    background: linear-gradient( to bottom, transparent, rgba(0,13,21,.88) );
}

.pg-card-date {
    margin-bottom: 5px;
    font-size: 9px;
    font-weight: 700;
    opacity: .82;
}

.pg-card-caption {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pg-card-social {
    margin-top: 9px;
    display: flex;
    gap: 12px;
    color: #d7e6ed;
    font-size: 9px;
}

    .pg-card-social span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .pg-card-social .heart {
        color: #ff96a5;
    }
        


/* ================================================================
   ESTADOS
   ================================================================ */

.pg-loader,
.pg-empty {
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #83949e;
    text-align: center;
}

    .pg-loader > span {
        width: 32px;
        height: 32px;
        border: 3px solid #dceff6;
        border-top-color: #0788c9;
        border-radius: 50%;
        animation: pg-spin .7s linear infinite;
    }

@keyframes pg-spin {
    to {
        transform: rotate(360deg)
    }
}

.pg-empty i {
    color: #0b91ca;
    font-size: 37px;
}

.pg-empty h3 {
    margin: 4px 0 0;
    color: #355a6e;
}

.pg-empty p {
    margin: 0;
    font-size: 11px;
}

.pg-more {
    padding-top: 35px;
    text-align: center;
}

    .pg-more button {
        min-height: 48px;
        padding: 0 20px;
        border: 1px solid #d5e4eb;
        border-radius: 13px;
        color: #31657f;
        background: #fff;
        font-size: 11px;
        font-weight: 750;
        cursor: pointer;
    }

    .pg-more i {
        margin-left: 8px;
    }


/* ================================================================
   CTA
   ================================================================ */

.pg-cta {
    padding: 0 0 85px;
    background: #fff;
}

.pg-cta-card {
    padding: 37px 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    border-radius: 24px;
    color: #fff;
    background: radial-gradient(circle at 82% 20%,rgba(47,193,228,.24),transparent 30%), linear-gradient(125deg,#063a59,#075e88);
}

    .pg-cta-card span {
        color: #7ad5f1;
        font-size: 9px;
        font-weight: 800;
        letter-spacing: .15em;
    }

    .pg-cta-card h2 {
        max-width: 720px;
        margin: 7px 0 0;
        font-size: 23px;
    }

    .pg-cta-card > a {
        min-height: 48px;
        padding: 0 18px;
        display: inline-flex;
        align-items: center;
        gap: 10px;
        flex: 0 0 auto;
        border-radius: 12px;
        color: #07527d;
        background: #fff;
        font-size: 11px;
        font-weight: 750;
        text-decoration: none;
    }


/* ================================================================
   LIGHTBOX
   ================================================================ */

.pg-lightbox {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px 65px;
    background: rgba(1,9,14,.95);
    backdrop-filter: blur(8px);
}

    .pg-lightbox.show {
        display: flex;
    }

.pg-lightbox-dialog {
    width: min(1400px,94vw);
    height: min(860px,92vh);
    display: grid;
    grid-template-columns: minmax(0,1fr) 370px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 22px;
    background: #04131c;
    box-shadow: 0 40px 120px rgba(0,0,0,.65);
}

.pg-lightbox-image {
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

    .pg-lightbox-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.pg-lightbox-info {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 22px;
    color: #fff;
    background: linear-gradient(180deg,#09283a,#061d2c);
}

.pg-lightbox-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,.09);
}

    .pg-lightbox-brand img {
        width: 46px;
        height: 46px;
        border-radius: 13px;
        object-fit: contain;
        background: #fff;
    }

    .pg-lightbox-brand span {
        display: flex;
        flex-direction: column;
    }

    .pg-lightbox-brand small {
        color: #63caeb;
        font-size: 7px;
        font-weight: 800;
        letter-spacing: .13em;
    }

    .pg-lightbox-brand strong {
        margin-top: 4px;
        font-size: 12px;
    }

.pg-lightbox-date {
    margin-top: 21px;
    color: #83a4b7;
    font-size: 9px;
}

.pg-lightbox-caption {
    flex: 1;
    overflow: auto;
    margin-top: 13px;
    color: #d6e5ec;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.pg-lightbox-social {
    padding: 15px 0;
    display: flex;
    gap: 20px;
    border-top: 1px solid rgba(255,255,255,.09);
    color: #afc5d0;
    font-size: 9px;
}

    .pg-lightbox-social span {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .pg-lightbox-social .fa-heart {
        color: #ee7182;
    }

.pg-lightbox-note {
    padding: 12px;
    border-radius: 11px;
    color: #9fb8c5;
    background: rgba(255,255,255,.04);
    font-size: 8px;
    line-height: 1.5;
}

    .pg-lightbox-note i {
        margin-right: 5px;
        color: #56c7ec;
    }

.pg-lightbox-access {
    min-height: 45px;
    margin-top: 12px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 11px;
    color: #07577f;
    background: #fff;
    font-size: 10px;
    font-weight: 750;
    text-decoration: none;
}

.pg-lightbox-close,
.pg-lightbox-nav {
    position: fixed;
    z-index: 5010;
    border: 1px solid rgba(255,255,255,.16);
    color: #fff;
    background: rgba(0,0,0,.40);
    cursor: pointer;
}

.pg-lightbox-close {
    top: 15px;
    right: 17px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
}

.pg-lightbox-nav {
    top: 50%;
    width: 48px;
    height: 60px;
    border-radius: 14px;
    transform: translateY(-50%);
}

.pg-prev {
    left: 9px;
}

.pg-next {
    right: 9px;
}


/* ================================================================
   HOME - PREVIEW
   ================================================================ */

.portal-gallery-preview {
    padding: 100px 0;
    background: #f4f8fa;
}

.pg-preview-head {
    margin-bottom: 35px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

    .pg-preview-head h2 {
        margin: 0;
        color: #17384c;
        font-size: 38px;
        letter-spacing: -.04em;
    }

    .pg-preview-head p {
        margin: 10px 0 0;
        color: #748691;
        font-size: 12px;
    }

    .pg-preview-head > a {
        min-height: 43px;
        padding: 0 15px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        border: 1px solid #d4e3ea;
        border-radius: 11px;
        color: #1477a6;
        background: #fff;
        font-size: 10px;
        font-weight: 750;
        text-decoration: none;
    }

.pg-preview-grid {
    display: grid;
    grid-template-columns: repeat(6,1fr);
    gap: 10px;
}

.pg-preview-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: 16px;
    background: #dbe7ed;
    cursor: pointer;
}

    .pg-preview-card:nth-child(1),
    .pg-preview-card:nth-child(6) {
        grid-column: span 2;
    }

    .pg-preview-card img {
        width: 100%;
        height: 100%;
        position: absolute;
        inset: 0;
        object-fit: cover;
        transition: .3s ease;
    }

    .pg-preview-card:hover img {
        transform: scale(1.045);
    }

    .pg-preview-card > span {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        padding: 42px 11px 11px;
        color: #fff;
        background: linear-gradient(transparent,rgba(0,11,18,.80));
        font-size: 9px;
        font-weight: 700;
    }

.pg-preview-loading {
    grid-column: 1/-1;
    min-height: 230px;
    display: grid;
    place-items: center;
    color: #82949e;
    font-size: 11px;
}





.pg-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
}

.pg-section-actions {
    flex: 0 0 auto;
}

.pg-telao-link {
    min-width: 205px;
    min-height: 62px;
    padding: 9px 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #d7e7ee;
    border-radius: 15px;
    color: #214d64;
    background: #fff;
    box-shadow: 0 8px 25px rgba(4,76,111,.06);
    text-decoration: none;
    transition: .2s ease;
}

    .pg-telao-link:hover {
        border-color: #94d6ed;
        color: #0879ad;
        transform: translateY(-2px);
        box-shadow: 0 15px 32px rgba(4,76,111,.12);
    }

.pg-telao-link-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg,#079bd3,#075d89);
}

.pg-telao-link > span:nth-child(2) {
    flex: 1;
}

.pg-telao-link small,
.pg-telao-link strong {
    display: block;
}

.pg-telao-link small {
    margin-bottom: 2px;
    color: #7c929e;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .12em;
}

.pg-telao-link strong {
    font-size: 12px;
}

.pg-telao-link > i {
    color: #8da4af;
    font-size: 10px;
}

@media(max-width:800px) {

    .pg-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pg-section-actions,
    .pg-telao-link {
        width: 100%;
    }
}




/* ================================================================
   RESPONSIVO
   ================================================================ */

@media(max-width:1100px) {

    .pg-grid {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }

    .pg-advanced {
        grid-template-columns: repeat(3,1fr);
    }

    .pg-preview-grid {
        grid-template-columns: repeat(3,1fr);
    }

    .pg-preview-card:nth-child(1),
    .pg-preview-card:nth-child(6) {
        grid-column: auto;
    }
}

@media(max-width:800px) {

    .pg-hero {
        padding: 120px 0 75px;
    }

    .pg-hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .pg-hero-copy > p {
        margin-left: auto;
        margin-right: auto;
    }

    .pg-live {
        margin-left: auto;
        margin-right: auto;
    }

    .pg-hero-visual {
        width: min(390px,100%);
        min-height: 280px;
        margin: auto;
    }

    .pg-stats {
        grid-template-columns: 1fr;
    }

        .pg-stats article {
            min-height: 85px;
            border-right: 0;
            border-bottom: 1px solid #edf2f5;
        }

            .pg-stats article:last-child {
                border-bottom: 0;
            }

    .pg-filter {
        grid-template-columns: 1fr;
    }

    .pg-quick {
        overflow-x: auto;
        padding-bottom: 3px;
    }

        .pg-quick button {
            flex: 0 0 auto;
        }

    .pg-advanced {
        grid-template-columns: 1fr 1fr;
    }

    .pg-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    .pg-cta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .pg-lightbox {
        padding: 0;
    }

    .pg-lightbox-dialog {
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        border: 0;
        border-radius: 0;
    }

    .pg-lightbox-image {
        flex: 0 0 56vh;
    }

    .pg-lightbox-info {
        flex: 1 1 auto;
        min-height: 0;
        padding: 14px;
    }

    .pg-lightbox-caption {
        font-size: 12px;
    }

    .pg-lightbox-nav {
        display: none;
    }

    .pg-preview-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .pg-preview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pg-preview-card {
        min-height: 210px;
    }
}

@media(max-width:520px) {

    .pg-hero h1 {
        font-size: 40px;
    }

    .pg-gallery-section {
        padding: 75px 0;
    }

    .pg-section-head h2,
    .pg-preview-head h2 {
        font-size: 31px;
    }

    .pg-advanced {
        grid-template-columns: 1fr;
    }

    .pg-grid {
        grid-template-columns: 1fr;
    }

    .pg-card-wide {
        grid-column: span 1;
        aspect-ratio: 4 / 3;
    }

    .pg-card-square {
        aspect-ratio: 1 / 1;
    }

    .pg-card-tall {
        aspect-ratio: 4 / 5;
    }

    .pg-preview-grid {
        grid-template-columns: 1fr;
    }

    .pg-preview-card {
        min-height: 300px;
    }

    .pg-cta-card {
        padding: 28px 23px;
    }

    .pg-lightbox-image {
        flex-basis: 50vh;
    }
}
