/* KONECTEK HOME PHOTOS V1 */

/* Fotografias en las cuatro tarjetas principales */
#kt33 .areas .area {
    overflow: hidden;
}

#kt33 .ktPhotoCardMedia {
    display: block;
    overflow: hidden;
    margin: -28px -24px 22px;
    height: 185px;
    flex: none;
    background: #d9e9ef;
}

#kt33 .ktPhotoCardMedia img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .7s ease, filter .7s ease;
}

#kt33 .areas .area:hover .ktPhotoCardMedia img {
    transform: scale(1.09);
    filter: saturate(1.12);
}

/* Cabecera de galeria */
#kt33 .ktPhotoSection {
    background: #fff;
}

#kt33 .ktPhotoHeading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 34px;
}

#kt33 .ktPhotoHeading .lead {
    margin-bottom: 0;
}

#kt33 .ktPhotoTextLink {
    white-space: nowrap;
    color: #008da3;
    font-weight: 800;
    padding-bottom: 9px;
}

/* Galeria tipo mosaico */
#kt33 .ktPhotoGallery {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
}

#kt33 .ktPhotoTile {
    grid-column: span 3;
    min-height: 280px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 18px;
    background: #0d2d45;
    color: white;
    box-shadow: 0 12px 32px rgba(5, 38, 62, .12);
    transition: transform .35s ease, box-shadow .35s ease;
}

#kt33 .ktPhotoTile:nth-child(1),
#kt33 .ktPhotoTile:nth-child(6) {
    grid-column: span 6;
    min-height: 330px;
}

#kt33 .ktPhotoTile img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    transition: transform .8s ease, filter .8s ease;
}

#kt33 .ktPhotoShade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(2, 19, 36, .95) 0%,
        rgba(4, 25, 45, .3) 70%,
        rgba(4, 25, 45, .06) 100%
    );
}

#kt33 .ktPhotoTileContent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 27px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 8px;
    color: white;
}

#kt33 .ktPhotoTileContent small {
    color: #83e5ec;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 800;
}

#kt33 .ktPhotoTileContent strong {
    font-size: clamp(20px, 2.1vw, 27px);
    line-height: 1.18;
}

#kt33 .ktPhotoMore {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    opacity: .78;
    transform: translateY(5px);
    transition: transform .35s ease, opacity .35s ease;
}

#kt33 .ktPhotoTile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 42px rgba(5, 38, 62, .24);
}

#kt33 .ktPhotoTile:hover img {
    transform: scale(1.075);
    filter: saturate(1.13);
}

#kt33 .ktPhotoTile:hover .ktPhotoMore {
    transform: translateY(0);
    opacity: 1;
}

/* Fotografia grande junto al texto */
#kt33 .ktPhotoSplit {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 58px;
    align-items: center;
}

#kt33 .ktPhotoSplitImage {
    position: relative;
    min-height: 420px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(7, 47, 74, .16);
    background: #dbeaf0;
}

#kt33 .ktPhotoSplitImage > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .75s ease;
}

#kt33 .ktPhotoSplitImage:hover > img {
    transform: scale(1.05);
}

#kt33 .ktPhotoImageBadge {
    position: absolute;
    left: 22px;
    bottom: 22px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 14px 17px;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(6, 39, 62, .84);
    color: #fff;
    backdrop-filter: blur(12px);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
}

#kt33 .ktPhotoBadgeDot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #32e7d4;
    box-shadow: 0 0 0 5px rgba(50, 231, 212, .15);
}

#kt33 .ktPhotoSplitCopy p:not(.kicker) {
    font-size: 17px;
    line-height: 1.75;
    color: #536d7d;
}

#kt33 .ktPhotoBenefits {
    display: grid;
    gap: 13px;
    margin: 25px 0 30px;
    color: #21465d;
    font-size: 15px;
    font-weight: 650;
}

/* Banner panoramico */
#kt33 .ktPhotoBanner {
    min-height: 385px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b2b43;
    color: white;
}

#kt33 .ktPhotoBanner > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease;
}

#kt33 .ktPhotoBanner:hover > img {
    transform: scale(1.035);
}

#kt33 .ktPhotoBannerOverlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(2, 21, 40, .96),
        rgba(5, 36, 59, .86) 55%,
        rgba(4, 31, 54, .35)
    );
}

#kt33 .ktPhotoBannerBody {
    position: relative;
    padding-top: 65px;
    padding-bottom: 65px;
    z-index: 1;
}

#kt33 .ktPhotoBannerKicker {
    color: #91eef1;
    letter-spacing: .13em;
    font-size: 12px;
    font-weight: 850;
}

#kt33 .ktPhotoBanner h2 {
    color: white;
    max-width: 660px;
    margin: 18px 0;
}

#kt33 .ktPhotoBanner p {
    max-width: 570px;
    font-size: 17px;
    line-height: 1.7;
    color: #d9eaf0;
    margin: 0 0 25px;
}

/* Aparicion al desplazarse */
#kt33.ktPhotoMotion .ktPhotoReveal {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity .7s ease,
        transform .7s cubic-bezier(.2,.7,.2,1);
}

#kt33.ktPhotoMotion .ktPhotoReveal.ktPhotoVisible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width:1000px) {
    #kt33 .ktPhotoSplit {
        gap: 30px;
    }
    #kt33 .ktPhotoTile {
        grid-column: span 6;
    }
    #kt33 .ktPhotoTile:nth-child(1),
    #kt33 .ktPhotoTile:nth-child(6) {
        grid-column: span 6;
    }
}

@media(max-width:760px) {
    #kt33 .ktPhotoHeading {
        align-items: flex-start;
        flex-direction: column;
    }
    #kt33 .ktPhotoSplit {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    #kt33 .ktPhotoSplitImage {
        min-height: 335px;
    }
    #kt33 .ktPhotoBanner {
        min-height: 350px;
    }
}

@media(max-width:520px) {
    #kt33 .ktPhotoGallery {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    #kt33 .ktPhotoTile,
    #kt33 .ktPhotoTile:nth-child(1),
    #kt33 .ktPhotoTile:nth-child(6) {
        grid-column: auto;
        min-height: 270px;
    }
    #kt33 .ktPhotoCardMedia {
        height: 210px;
    }
    #kt33 .ktPhotoTileContent {
        padding: 22px;
    }
    #kt33 .ktPhotoImageBadge {
        left: 12px;
        right: 12px;
        bottom: 12px;
        font-size: 12px;
    }
}

@media(prefers-reduced-motion:reduce) {
    #kt33 .ktPhotoReveal,
    #kt33 .ktPhotoTile,
    #kt33 .ktPhotoTile img,
    #kt33 .ktPhotoCardMedia img,
    #kt33 .ktPhotoSplitImage img,
    #kt33 .ktPhotoBanner img {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}
