.project-interno-modern {
    --pi-bg: #f4f7f6;
    --pi-surface: #ffffff;
    --pi-text: #1f2b2a;
    --pi-muted: #5f6f6d;
    --pi-primary: #1f7a73;
    --pi-primary-2: #2f9c93;
    --pi-border: #dbe7e5;
    --pi-shadow: 0 14px 34px rgba(21, 50, 47, 0.12);
    --pi-radius: 18px;
    background: radial-gradient(circle at 8% 0%, #ecf7f5 0%, #f7faf9 48%, #eef4f3 100%);
}

.project-interno-modern #pi-c {
    min-height: 190px;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.project-interno-modern #pi-c::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 41, 38, 0.2) 0%, rgba(6, 41, 38, 0.5) 100%);
    pointer-events: none;
}

.project-interno-modern #pi-w,
.project-interno-modern #project-btn {
    position: relative;
    z-index: 1;
}

.project-interno-modern #project-btn > button {
    border-radius: 999px;
    padding: 12px 22px;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--pi-primary), var(--pi-primary-2));
    box-shadow: 0 12px 26px rgba(22, 115, 106, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-interno-modern #project-btn > button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(22, 115, 106, 0.45);
}

.project-interno-modern #description-apto {
    width: min(1120px, calc(100% - 32px));
    margin: -54px auto 24px;
    border-radius: var(--pi-radius);
    border: 1px solid var(--pi-border);
    background: linear-gradient(145deg, #ffffff 0%, #f7fbfa 100%);
    box-shadow: var(--pi-shadow);
    padding: 24px 20px;
    position: relative;
    z-index: 2;
}

.project-interno-modern #description-apto > h5 {
    color: #fff;
    font-size: clamp(20px, 2.6vw, 30px);
    letter-spacing: 0.02em;
    margin-bottom: 14px;
}

.project-interno-modern #description-apto .content-info-torre {
    gap: 16px;
}

.project-interno-modern #description-apto .info-torre {
    background: #ffffff;
    border: 1px solid #e6efed;
    border-radius: 14px;
    padding: 14px 16px;
    min-width: 146px;
    box-shadow: 0 8px 18px rgba(20, 66, 63, 0.08);
}

.project-interno-modern #description-apto .info-torre h4 {
    color: #123f3c;
    font-size: 28px;
}

.project-interno-modern #description-apto .line-separator {
    opacity: 0.3;
}

.project-interno-modern #projects-content,
.project-interno-modern #s-z-comunes,
.project-interno-modern #s-galeria,
.project-interno-modern #s-tipologia,
.project-interno-modern #s-como-llegar,
.project-interno-modern #s-prox-casa,
.project-interno-modern #content-n-asesores,
.project-interno-modern #s-c-natural {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto 28px;
    border-radius: var(--pi-radius);
    border: 1px solid var(--pi-border);
    background: var(--pi-surface);
    box-shadow: var(--pi-shadow);
}

.project-interno-modern #projects-content {
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
    padding: 28px;
}

.project-interno-modern .col-izq .description {
    margin-bottom: 24px;
}

.project-interno-modern .col-izq .description .title {
    border-bottom: 0;
    font-size: clamp(25px, 3.4vw, 38px);
    line-height: 1.16;
    color: #0f2523;
    margin: 0;
    padding-bottom: 10px;
    position: relative;
}

.project-interno-modern .col-izq .description .title::after {
    content: "";
    width: 84px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pi-primary), #80c5be);
    display: block;
    margin-top: 14px;
}

.project-interno-modern .col-izq * {
    color: var(--pi-muted);
}

.project-interno-modern .col-izq p {
    line-height: 1.8;
    font-size: 15px;
}

.project-interno-modern .desciption-details {
    background: #f6faf9;
    border: 1px dashed #cfe2df;
    border-radius: 14px;
    padding: 16px;
    gap: 10px 0;
}

.project-interno-modern #content-btn-calc-vid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 8px;
}

.project-interno-modern #content-btn-calc-vid a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 16px;
    font-size: 18px;
    font-family: "lato bold";
    border: 1px solid #d3e7e4;
    background: linear-gradient(135deg, var(--pi-primary), var(--pi-primary-2));
    color: #fff;
    transition: all 0.25s ease;
}

.project-interno-modern #content-btn-calc-vid a:hover {
    border-color: var(--pi-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(26, 111, 103, 0.18);
}

.project-interno-modern .col-der form {
    width: 100%;
    margin-top: 0;
    border-radius: 16px;
    border: 1px solid #d8e9e6;
    box-shadow: 0 10px 24px rgba(21, 63, 58, 0.12);
    padding: 22px 18px;
    background: #fbfdfd;
    position: sticky;
    top: 92px;
}

.project-interno-modern .col-der form input,
.project-interno-modern .col-der form select {
    width: calc(100% - 20px);
    margin: 7px 10px;
    border-radius: 12px;
    border: 1px solid #c7dcda;
    min-height: 44px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.project-interno-modern .col-der form input:focus,
.project-interno-modern .col-der form select:focus {
    border-color: var(--pi-primary);
    box-shadow: 0 0 0 4px rgba(39, 125, 117, 0.15);
}

.project-interno-modern .btn-enviar {
    width: min(220px, 100%);
    min-height: 46px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pi-primary), var(--pi-primary-2));
    font-size: 15px;
    box-shadow: 0 11px 24px rgba(24, 111, 104, 0.34);
}

.project-interno-modern .title-border {
    font-size: clamp(22px, 2.8vw, 31px);
    letter-spacing: 0.01em;
    color: #112f2c;
    margin-bottom: 18px;
}

.project-interno-modern #s-z-comunes,
.project-interno-modern #s-galeria,
.project-interno-modern #s-tipologia,
.project-interno-modern #s-como-llegar,
.project-interno-modern #s-prox-casa,
.project-interno-modern #content-n-asesores,
.project-interno-modern #s-c-natural {
    padding: 28px;
}

.project-interno-modern ul#lightgallery {
    gap: 14px;
}

.project-interno-modern ul#lightgallery li {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(18, 63, 58, 0.17);
}

.project-interno-modern ul#lightgallery li a img {
    display: block;
    min-height: 190px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.project-interno-modern ul#lightgallery li:hover a img {
    transform: scale(1.04);
}

.project-interno-modern .card-carousel,
.project-interno-modern #s-c-natural > div > a {
    border-radius: 16px;
    border: 1px solid #dce9e7;
    box-shadow: 0 10px 24px rgba(18, 58, 54, 0.1);
}

.project-interno-modern #s-c-natural > div {
    gap: 16px;
}

.project-interno-modern #s-como-llegar .mapouter,
.project-interno-modern #s-como-llegar .gmap_canvas {
    height: 440px !important;
    border-radius: 14px;
    overflow: hidden;
    padding: 10px;
}

.project-interno-modern #s-como-llegar iframe {
    border-radius: 14px;
}

.project-interno-modern #s-tipologia-mobile {
    margin-top: 0;
}

.project-interno-modern #projects-content,
.project-interno-modern #description-apto,
.project-interno-modern #s-z-comunes,
.project-interno-modern #s-galeria,
.project-interno-modern #s-tipologia,
.project-interno-modern #s-como-llegar,
.project-interno-modern #s-prox-casa,
.project-interno-modern #content-n-asesores,
.project-interno-modern #s-c-natural {
    animation: piFadeUp 0.55s ease both;
}

@keyframes piFadeUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1024px) {
    .project-interno-modern #projects-content {
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
        align-items: start;
    }
}

@media (max-width: 991px) {
    .project-interno-modern #description-apto,
    .project-interno-modern #projects-content,
    .project-interno-modern #s-z-comunes,
    .project-interno-modern #s-galeria,
    .project-interno-modern #s-tipologia,
    .project-interno-modern #s-como-llegar,
    .project-interno-modern #s-prox-casa,
    .project-interno-modern #content-n-asesores,
    .project-interno-modern #s-c-natural {
        width: calc(100% - 22px);
    }

    .project-interno-modern #description-apto {
        margin-top: -32px;
    }

    .project-interno-modern #projects-content,
    .project-interno-modern #s-z-comunes,
    .project-interno-modern #s-galeria,
    .project-interno-modern #s-tipologia,
    .project-interno-modern #s-como-llegar,
    .project-interno-modern #s-prox-casa,
    .project-interno-modern #content-n-asesores,
    .project-interno-modern #s-c-natural {
        padding: 20px 16px;
    }

    .project-interno-modern .col-der form {
        position: static;
    }

    .project-interno-modern ul#lightgallery li {
        flex: 0 0 calc(50% - 7px);
        width: calc(50% - 7px);
    }
}

@media (max-width: 640px) {
    .project-interno-modern #project-btn > button {
        width: 100%;
        justify-content: center;
        font-size: 12px;
    }

    .project-interno-modern #description-apto {
        padding: 18px 14px;
    }

    .project-interno-modern #description-apto .content-info-torre {
        flex-direction: column;
        align-items: stretch;
    }

    .project-interno-modern #description-apto .line-separator {
        height: 1px;
        width: 100%;
        margin: 0;
    }

    .project-interno-modern .desciption-details > span {
        width: 100%;
        margin-bottom: 16px;
    }

    .project-interno-modern #content-btn-calc-vid a {
        width: 100%;
        justify-content: center;
    }

    .project-interno-modern ul#lightgallery li {
        flex: 0 0 100%;
        width: 100%;
    }

    .project-interno-modern #s-como-llegar .mapouter,
    .project-interno-modern #s-como-llegar .gmap_canvas {
        height: 320px !important;
    }
}
