.avt-gallery-v2,
.avt-gallery-v2 * {
    box-sizing: border-box;
}

.avt-gallery-v2 {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    background:
        radial-gradient(
            circle at 96% 8%,
            rgba(0, 101, 163, 0.09),
            transparent 29%
        ),
        linear-gradient(
            180deg,
            #f8fbfe,
            #eef5fb
        );
}

.avt-gallery-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.avt-gallery-header {
    max-width: 750px;
    margin: 0 auto 43px;
    text-align: center;
}

.avt-gallery-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #0065a3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.avt-gallery-label::before {
    content: "";
    width: 30px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5700, #ff934d);
}

.avt-gallery-header h2 {
    margin: 0 0 15px;
    color: #00234d;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -.04em;
}

.avt-gallery-header p {
    max-width: 650px;
    margin: 0 auto;
    color: #647287;
    font-size: 15px;
    line-height: 1.72;
}

.avt-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.avt-gallery-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 35, 77, .09);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 45px rgba(0, 35, 77, .10);
    transition: transform .25s ease, box-shadow .25s ease;
}

.avt-gallery-preview {
    position: relative;
    display: block;
    height: 255px;
    overflow: hidden;
    background: linear-gradient(145deg, #00234d, #0065a3);
}

.avt-gallery-browser {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 37px;
    align-items: center;
    gap: 5px;
    padding: 0 13px;
    background: rgba(255, 255, 255, .96);
}

.avt-gallery-browser > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c7d2dc;
}

.avt-gallery-browser > span:first-child {
    background: #ff6600;
}

.avt-gallery-browser small {
    margin-left: auto;
    color: #718092;
    font-size: 8px;
}

.avt-gallery-preview img {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    padding-top: 37px;
    object-fit: cover;
    object-position: top;
    transition: transform .5s ease;
}

.avt-gallery-fallback {
    position: absolute;
    inset: 37px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 255, 255, .18),
            transparent 30%
        ),
        linear-gradient(145deg, #5a1f10, #c35025);
    color: #fff;
}

.avt-fallback-clima {
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 255, 255, .19),
            transparent 30%
        ),
        linear-gradient(145deg, #00234d, #138bc1);
}

.avt-fallback-tech {
    background:
        radial-gradient(
            circle at 80% 15%,
            rgba(255, 255, 255, .19),
            transparent 30%
        ),
        linear-gradient(145deg, #211044, #0065a3);
}

.avt-gallery-fallback svg {
    width: 44px;
    height: 44px;
    margin-bottom: 15px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.avt-gallery-fallback strong {
    margin-bottom: 5px;
    font-size: 21px;
}

.avt-gallery-fallback span {
    color: rgba(255, 255, 255, .72);
    font-size: 11px;
}

.avt-gallery-open {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 14px;
    padding: 8px 11px;
    border-radius: 9px;
    background: rgba(0, 35, 77, .88);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    opacity: 0;
    transform: translateY(7px);
    transition: opacity .22s ease, transform .22s ease;
}

.avt-gallery-content {
    padding: 25px 24px 26px;
}

.avt-gallery-category {
    display: inline-flex;
    margin-bottom: 11px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(0, 101, 163, .09);
    color: #0065a3;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.avt-gallery-content h3 {
    margin: 0 0 10px;
    color: #00234d;
    font-size: 22px;
}

.avt-gallery-content p {
    min-height: 67px;
    margin: 0 0 20px;
    color: #647287;
    font-size: 14px;
    line-height: 1.65;
}

.avt-gallery-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0065a3;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.avt-gallery-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: 29px;
    padding: 25px 27px;
    border: 1px solid rgba(0, 35, 77, .08);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 35, 77, .07);
}

.avt-gallery-footer p {
    margin: 0;
    color: #647287;
    font-size: 13px;
}

.avt-gallery-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 20px;
    border-radius: 11px;
    background: linear-gradient(135deg, #ff5700, #ff8129);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

@media (hover: hover) {
    .avt-gallery-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 55px rgba(0, 35, 77, .15);
    }

    .avt-gallery-card:hover img {
        transform: scale(1.035);
    }

    .avt-gallery-card:hover .avt-gallery-open {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .avt-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .avt-gallery-card:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 11px);
        justify-self: center;
    }
}

@media (max-width: 700px) {
    .avt-gallery-v2 {
        padding: 70px 0 74px;
    }

    .avt-gallery-shell {
        width: calc(100% - 32px);
    }

    .avt-gallery-header {
        margin-bottom: 34px;
        text-align: left;
    }

    .avt-gallery-header h2 {
        font-size: 31px;
    }

    .avt-gallery-header p {
        font-size: 14px;
    }

    .avt-gallery-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .avt-gallery-card:last-child {
        grid-column: auto;
        width: 100%;
    }

    .avt-gallery-preview {
        height: 225px;
    }

    .avt-gallery-content p {
        min-height: 0;
        font-size: 14px;
    }

    .avt-gallery-footer {
        display: block;
        padding: 22px 20px;
    }

    .avt-gallery-footer p {
        margin-bottom: 17px;
        font-size: 13px;
    }

    .avt-gallery-button {
        width: 100%;
    }
}
