#banner-interna {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#banner-interna img {
    width: 100%;
    height: 62vh;
    object-fit: cover;
    filter: brightness(0.85) saturate(1.05);
}

#s-info-interna {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 30px;
    align-items: start;
    padding: 56px 5% 40px;
    background: linear-gradient(180deg, #f9f6f1 0%, #fff 55%);
}

.property-shell {
    position: relative;
}

#content-info-interna {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

#info-taps,
.property-tags {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
    padding: 0;
}

#info-taps span,
.property-tags span {
    padding: 6px 14px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.color-arriendo {
    background-color: #2980b9;
}

.color-venta {
    background-color: #e74c3c;
}

.color-destacado {
    background-color: #27ae60;
}

.color-estandar {
    background-color: #c96d3a;
}

.property-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: #fff;
    border-radius: 20px;
    padding: 20px 22px;
    border: 1px solid rgba(47, 34, 27, 0.08);
    box-shadow: 0 14px 30px rgba(31, 26, 22, 0.12);
}

.property-price {
    font-size: 26px;
    font-weight: 700;
    color: #2f221b;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    align-items: center;
    line-height: 1.2;
}

.property-price strong {
    color: #6b3d2a;
    font-weight: 700;
}

#content-info-text-interna,
.property-body {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#content-info-text-interna h3,
.property-body h3 {
    margin-bottom: 6px;
    font-size: 22px;
    border-bottom: 2px solid #2f221b;
    padding-bottom: 6px;
    padding-right: 20px;
}

.property-body h1 {
    font-size: clamp(2rem, 3vw, 2.6rem);
    color: #2f221b;
    margin: 6px 0 0;
}

.property-gallery-block {
    background: #fff;
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 18px 40px rgba(31, 26, 22, 0.14);
    border: 1px solid rgba(47, 34, 27, 0.08);
    position: relative;
}

.gallery-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.gallery-head h3 {
    margin: 0;
    font-size: 24px;
    color: #2f221b;
}

.gallery-head p {
    margin: 0;
    color: #6b625a;
    font-size: 0.95rem;
    max-width: 360px;
}

#content-info-text-interna p,
.property-body p {
    font-size: 17px;
    text-align: left;
    color: #4a413a;
    line-height: 1.7;
}

.content-items-interna {
    display: grid;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.dos-items {
    width: 100%;
    grid-template-columns: 1fr 1fr;
}

.cuatro-items {
    width: 100%;
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.content-items-interna span {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.content-items-interna span svg {
    width: 30px;
    background-color: #c96d3a;
    border-radius: 50%;
}

.content-items-interna span p {
    font-size: 18px;
    color: #636363;
    width: calc(100% - 30px);
    margin: 0px;
}

.mt-5 {
    margin-top: 50px;
}

#content-galeria-interna {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 16px;
}

.gallery-grid--collapsed .gallery-item {
    display: none;
}

.gallery-grid--collapsed .gallery-item:nth-child(-n + 5) {
    display: block;
}

.gallery-grid--collapsed {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 150px;
    gap: 14px;
    align-content: start;
}

.gallery-grid--collapsed .gallery-main {
    grid-column: 1 / -1;
    grid-row: span 2;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #f4efe7;
    box-shadow: 0 12px 26px rgba(31, 26, 22, 0.16);
    border: 1px solid rgba(47, 34, 27, 0.08);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: zoom-in;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(0,0,0,0.02), rgba(0,0,0,0.32));
    opacity: 0.22;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.04);
    filter: saturate(1.03);
}

.gallery-item:hover::after {
    opacity: 0.4;
}

.gallery-main {
    grid-column: 1 / -1;
    grid-row: span 2;
}

.gallery-thumb {
    grid-column: span 1;
    grid-row: span 1;
}

.gallery-toggle {
    margin-top: 18px;
    display: flex;
    justify-content: center;
}

.gallery-toggle .btn {
    border-radius: 999px;
    padding: 6px 18px;
}

.gallery-mobile-nav {
    margin-top: 14px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.gallery-mobile-counter {
    font-size: 0.85rem;
    color: #4a413a;
    font-weight: 600;
}

.gallery-grid--mobile .gallery-item {
    display: none;
}

.gallery-grid--mobile .gallery-item.is-active {
    display: block;
}

.gallery-grid--mobile .gallery-item {
    width: 100%;
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(15, 12, 10, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2000;
    padding: 24px;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: min(100%, 980px);
    max-height: 85vh;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1f1a16;
    font-size: 28px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #1f1a16;
    font-size: 32px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    position: absolute;
    top: 22px;
    left: 24px;
    background: rgba(255, 255, 255, 0.9);
    color: #1f1a16;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.iframe-ubi {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
}

.property-aside {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(31, 26, 22, 0.14);
    border: 1px solid rgba(47, 34, 27, 0.08);
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 22px;
    color: #2f221b;
}

.contact-card p {
    color: #4a413a;
    font-size: 14px;
}

.contact-owner {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(47, 34, 27, 0.1);
}

.contact-owner h4 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #2f221b;
}

.contact-owner a {
    color: #6b3d2a;
    text-decoration: none;
}

.line-separator {
    width: 70%;
    border-radius: 20px;
    height: 4px;
    background-color: #2980b9;
    content: "";
    margin: 80px 0px 40px;
}

@media screen and (max-width: 1200px) {
    #s-info-interna {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 24px;
    }

    .property-price {
        font-size: 24px;
    }
}

@media screen and (max-width: 1024px) {
    #s-info-interna {
        grid-template-columns: 1fr;
        padding: 44px 6% 30px;
    }

    .property-aside {
        position: static;
    }

    .property-price {
        font-size: 22px;
    }

    .dos-items {
        width: 100%;
        grid-template-columns: 1fr;
    }

    #content-galeria-interna {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 140px;
        gap: 12px;
    }

    .cuatro-items {
        grid-template-columns: 1fr;
    }

    .line-separator {
        margin: 40px 0px 20px;
    }
}

@media screen and (max-width: 900px) {
    .property-gallery-block {
        padding: 0;
        border-radius: 18px;
        overflow: hidden;
    }

    .gallery-head {
        display: none;
    }

    #content-galeria-interna {
        display: block;
    }

    .gallery-main {
        grid-column: 1 / -1;
        grid-row: span 2;
    }

    #content-galeria-interna .gallery-item {
        display: none;
        height: 260px;
        border-radius: 0;
    }

    #content-galeria-interna .gallery-item.is-active,
    #content-galeria-interna .gallery-item:first-child {
        display: block;
    }

    #content-galeria-interna .gallery-item img {
        border-radius: 0;
    }

    .gallery-toggle {
        display: none;
    }

    .gallery-mobile-nav {
        position: absolute;
        left: 50%;
        bottom: 12px;
        transform: translateX(-50%);
        background: #fff;
        border-radius: 999px;
        padding: 6px 10px;
        gap: 10px;
        box-shadow: 0 12px 28px rgba(31, 26, 22, 0.18);
        display: flex;
    }

    .gallery-mobile-nav .btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        line-height: 1;
    }
}

@media screen and (max-width: 768px) {
    #s-info-interna {
        padding: 36px 5% 24px;
    }

    .property-tags span {
        flex: 0 0 calc(50% - 6px);
        text-align: center;
    }

    .property-price {
        font-size: 20px;
    }

    #content-galeria-interna {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
    }

    .contact-card {
        margin-top: 10px;
    }
}

@media screen and (max-width: 640px) {
    .property-head {
        padding: 16px;
        border-radius: 16px;
    }

    .property-gallery-block {
        padding: 0;
        border-radius: 18px;
    }

    .gallery-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-head p {
        max-width: none;
    }
}

@media screen and (max-width: 576px) {
    #s-info-interna {
        padding: 28px 5% 20px;
    }

    #content-galeria-interna {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }

    .gallery-main {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-grid--mobile {
        display: block;
    }

    .gallery-grid--mobile .gallery-item {
        height: 240px;
    }

    .gallery-mobile-nav {
        bottom: 10px;
    }

    .property-tags span {
        flex: 0 0 calc(50% - 6px);
        font-size: 0.72rem;
        padding: 6px 10px;
    }

    .property-price {
        font-size: 18px;
    }

    .contact-card {
        padding: 18px;
    }
}
