:root {
    --azul: #144069;
    --naranja: #F7941D;
    --blanco: #ffffff;
    --gris: #f5f5f3;
    --texto: #183a5a;
    --logo-flotante: 205px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding-bottom: 35px;

    font-family: "Montserrat", Arial, sans-serif;
    color: var(--texto);
    background: #fff;
}

img {
    max-width: 100%;
    display: block;
}

.header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 82px;

    padding: 10px 6.5%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    background: var(--azul);
    color: #fff;

    border-bottom: 2px solid var(--naranja);
}

.company-name {
    color: #fff;
    text-decoration: none;

    font-size: clamp(17px, 2vw, 27px);
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1.05;
}

.company-name span {
    display: block;
    margin-top: 6px;

    font-size: 9px;
    font-weight: 400;
    letter-spacing: 3px;
}

nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.5vw, 38px);
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: .5px;
    padding: 10px 0;
}

nav a:hover {
    color: var(--naranja);
}

.menu {
    display: none;
    border: 0;
    background: transparent;
    color: white;
    font-size: 28px;
}

.floating-logo {
    position: fixed;
    z-index: 1100;

    top: 82px;
    right: 0;

    width: 205px;

    display: block;

    text-decoration: none;

    pointer-events: auto;
}

.floating-logo img {
    width: 100%;
    height: auto;

    display: block;

    object-fit: contain;

    filter: drop-shadow(0 6px 14px rgba(0,0,0,.18));
}

.floating-contact {
    position: fixed;
    z-index: 1090;

    top: 240px;
    right: 14px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 7px;
}

.floating-contact a {
    display: block;
    line-height: 0;
}

.floating-icon {
    width: 43px;
    height: 43px;

    display: block;

    object-fit: contain;

    border-radius: 50%;

    filter: drop-shadow(0 3px 7px rgba(0,0,0,.20));
}

.floating-quote {
    width: 68px;
    height: auto;

    display: block;

    object-fit: contain;

    filter: drop-shadow(0 3px 7px rgba(0,0,0,.20));
}

.hero {
    position: relative;
    width: 100%;
    margin-top: 82px;
    overflow: hidden;
    line-height: 0;
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.projects {
    padding: 0 5.5% 24px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.section-heading {
    width: 100%;

    padding: 12px 10px 14px;
    text-align: center;
}

.heading-line {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 20px;
}

.heading-line span {
    width: 125px;
    height: 2px;
    background: var(--naranja);
}

.heading-line h2 {
    margin: 0;

    color: var(--azul);

    font-size: clamp(24px, 2.8vw, 38px);
    font-weight: 600;

    letter-spacing: 7px;
}

.section-heading p {
    margin: 4px 0 0;

    color: var(--azul);

    font-size: 11px;
    letter-spacing: 5px;
}

.project-card {
    position: relative;
    flex: 0 0 calc(50% - 10px);

    margin-bottom: 25px;

    overflow: hidden;

    border-radius: 4px;

    background: #fff;
}
.project-address {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 44px;
    margin: 0 0 10px;
    padding: 10px 14px;

    color: var(--azul);
    background: var(--gris);
    border-left: 3px solid var(--naranja);
    border-radius: 3px;

    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition: background-color .2s ease, color .2s ease;
}

.project-address span {
    flex: 0 0 auto;
    color: var(--naranja);
    font-size: 20px;
    line-height: 1;
}

.project-address:hover,
.project-address:focus-visible {
    color: #fff;
    background: var(--azul);
    outline: none;
}

.project-image {
    display: block;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 4px;
    line-height: 0;
}

.project-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
}

.project-info {
    padding: 18px 10px 5px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    color: var(--azul);
}

.project-logo {
    width: 250px;
    max-height: 140px;

    object-fit: contain;
    object-position: left center;

    margin-bottom: 8px;
}

.project-info p {
    margin: 0 0 13px;

    color: var(--azul);

    font-size: 13px;
    letter-spacing: 3px;
    line-height: 1.35;
}

.project-info .outline-btn {
    display: inline-block;
    width: fit-content;

    padding: 10px 18px;

    color: var(--azul);
    text-decoration: none;

    border: 1px solid var(--azul);

    font-size: 11px;
    letter-spacing: 1px;
}

.project-info .outline-btn:hover {
    background: var(--azul);
    color: white;
}

.values {
    display: grid;
    grid-template-columns: repeat(4, 1fr);

    position: fixed;
    z-index: 1000;

    bottom: 0;
    left: 0;

    width: 100%;

    margin: 0;

    padding: 2px 5.5% 4px;

    background: #fff;

    border-top: 1px solid #ddd;
}

.value {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 20px;

    border-right: 1px solid #bbb;
}

.value:last-child {
    border-right: 0;
}

.value strong {
    color: var(--azul);
    font-size: 20px;
    font-weight: 300;
}

.value span {
    color: var(--azul);
    font-size: 9px;
    letter-spacing: .7px;
}

.content-section {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    padding: 90px 9%;

    background: var(--gris);
}

.content-section h2 {
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.1;
}

.content-section p,
.development-text {
    line-height: 1.8;
}

.development {
    padding: 90px 7%;
}

.development-header {
    text-align: center;
    margin-bottom: 35px;
}

.development-header h2 {
    font-size: clamp(30px, 4vw, 50px);
}

.development-gallery {
    max-width: 1250px;
    margin: auto;
}

.development-gallery img {
    width: 100%;
}

.development-text {
    max-width: 900px;
    margin: 30px auto;
}

.main-btn {
    display: inline-block;

    padding: 13px 22px;

    background: var(--naranja);
    color: white;

    text-decoration: none;

    border: 0;
}

.lotification {
    display: grid;
    grid-template-columns: .7fr 1.3fr;

    gap: 50px;

    margin-top: 70px;
}

.lot-map img {
    width: 100%;
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 60px;

    padding: 90px 9%;

    background: var(--azul);
    color: white;
}

.contact-section h2 {
    font-size: clamp(30px, 4vw, 50px);
}

.contact-data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.contact-data a,
.contact-data span {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

footer {
    padding: 20px 7%;

    display: flex;
    justify-content: space-between;

    background: #0d2f50;
    color: white;

    font-size: 11px;
}

@media (max-width: 900px) {

    .header {
        min-height: 70px;
        padding: 10px 5%;
    }

    .company-name {
        font-size: 15px;
    }

    .company-name span {
        font-size: 7px;
        letter-spacing: 1.5px;
    }

    .menu {
        display: block;
    }

    .header #main-nav {
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: flex-start;

        padding: 20px 6%;

        background: var(--azul);
    }

    .header #main-nav.open {
        display: flex;
    }

    .floating-logo {
        top: 70px;
        right: 0;
        width: 135px;
    }

    .floating-contact {
        top: 185px;
        right: 8px;
        gap: 5px;
    }

    .floating-icon {
        width: 38px;
        height: 38px;
    }

    .floating-quote {
        width: 60px;
    }

    .hero {
        margin-top: 70px;
        height: auto;
    }

    .heading-line {
        gap: 8px;
    }

    .heading-line span {
        width: 45px;
    }

    .heading-line h2 {
        font-size: 18px;
        letter-spacing: 3px;
    }

    .section-heading p {
        font-size: 8px;
        letter-spacing: 2px;
    }

    .project-card {
        flex: none;
        display: block;

        width: 100%;

        margin-right: 0;
    }

    .project-address {
        min-height: 42px;
        margin-bottom: 8px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .project-image {
        height: auto;
    }

    .project-image img {
        height: auto;
    }

    .project-info {
        padding: 14px 8px 5px;
    }

    .project-logo {
        width: 220px;
        max-height: 130px;
    }

    .values {
        grid-template-columns: repeat(4, 1fr);

        bottom: 0;
        left: 0;

        width: 100%;

        margin: 0;

        padding: 2px 1% 3px;

        background: #fff;
    }

    .value {
        min-height: 20px;

        gap: 3px;

        border-right: 1px solid #bbb;
        border-bottom: 0;
    }

    .value strong {
        font-size: 14px;
    }

    .value span {
        font-size: 6px;
        letter-spacing: .3px;
    }


    .content-section,
    .lotification,
    .contact-section {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        gap: 8px;
    }
}

.project-image-link {
    display: block;
    color: inherit;
    cursor: pointer;
}

.project-logo-link {
    display: inline-block;
    max-width: 100%;
    line-height: 0;
    text-decoration: none;
}

.project-logo-link:focus-visible,
.project-image-link:focus-visible {
    outline: 3px solid var(--naranja);
    outline-offset: 3px;
}
.detail-page {
    padding: 118px 7% 105px;
}

.detail-header {
    max-width: 1100px;
    margin: 0 auto 30px;
    text-align: center;
}

.detail-header .detail-project-logo {
    display: block;
    width: min(250px, 55vw);
    max-height: 150px;
    height: auto;
    object-fit: contain;
    margin: 0 auto 18px;
}

.detail-header small {
    display: block;
    color: var(--naranja);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.detail-header h1 {
    color: var(--azul);
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.12;
    margin: 0 0 18px;
}

.detail-header p {
    max-width: 850px;
    margin: 0 auto 22px;
    line-height: 1.8;
}

.detail-address {
    display: flex;
    align-items: center;
    gap: 9px;
    max-width: 1250px;
    min-height: 44px;
    margin: 0 auto 18px;
    padding: 10px 14px;
    color: var(--azul);
    background: var(--gris);
    border-left: 3px solid var(--naranja);
    border-radius: 3px;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.detail-address span {
    flex: 0 0 auto;
    color: var(--naranja);
    font-size: 20px;
    line-height: 1;
}

.detail-address:hover,
.detail-address:focus-visible {
    color: #fff;
    background: var(--azul);
    outline: none;
}

.detail-main-image {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto 48px;
    overflow: hidden;
    border-radius: 4px;
}

.detail-main-image img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.detail-section-title {
    color: var(--azul);
    font-size: clamp(24px, 3vw, 36px);
    text-align: center;
    margin: 40px 0 24px;
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    max-width: 1250px;
    margin: 0 auto 45px;
    align-items: start;
}

.detail-gallery figure {
    margin: 0;
    min-width: 0;
}

.detail-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.detail-gallery figcaption {
    padding: 12px 4px 0;
    color: var(--azul);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .4px;
}

.detail-information {
    max-width: 900px;
    margin: 35px auto 45px;
    text-align: center;
    line-height: 1.8;
}

.detail-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 28px 0 12px;
}

.detail-actions .main-btn {
    text-align: center;
}

.detail-lotification {
    display: grid;
    grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr);
    align-items: center;
    gap: 32px;
    max-width: 1250px;
    margin: 55px auto 15px;
}

.detail-lotification h2 {
    color: var(--azul);
    font-size: clamp(25px, 3vw, 38px);
    line-height: 1.15;
}

.detail-lotification p {
    line-height: 1.8;
}

.detail-lotification img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 850px;
    object-fit: contain;
}

@media (max-width: 900px) {
    .detail-page {
        padding: 94px 5% 95px;
    }

    .detail-header .detail-project-logo {
        width: min(220px, 60vw);
        max-height: 130px;
    }

    .detail-main-image {
        margin-bottom: 34px;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .detail-lotification {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 40px;
    }
}

#panel-acceso[hidden] {
    display: none !important;
}

#panel-acceso.acceso-popup {
    position: fixed !important;
    z-index: 5000;
    top: 75px;
    right: 12px;
    left: auto;
    width: 360px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 22px;
    background: #fff;
    color: #183a5a;
    border: 1px solid #e0e5e9;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .22);
    font-family: "Montserrat", Arial, sans-serif;
}
.acceso-popup-cabecera {
    text-align: center;
    padding: 4px 0 18px;
}

.acceso-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin: 0 auto 12px;

    border-radius: 50%;
    background: #144069;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.acceso-popup-cabecera h3 {
    margin: 0 0 5px;
    color: #144069;
    font-size: 18px;
}

.acceso-popup-cabecera p {
    margin: 0;
    color: #687785;
    font-size: 12px;
}

#form-acceso label {
    display: block;
    margin: 12px 0 6px;
    font-size: 12px;
    font-weight: 600;
}

#form-acceso input {
    display: block;
    width: 100%;
    height: 42px;
    padding: 10px 12px;

    border: 1px solid #cbd4dd;
    border-radius: 7px;
    background: #fff;
    color: #183a5a;
    font: inherit;
    font-size: 13px;
}

#form-acceso input:focus {
    outline: 2px solid rgba(20, 64, 105, .18);
    border-color: #144069;
}

.acceso-boton {
    display: block;
    width: 100%;
    margin-top: 18px;
    padding: 13px;

    border: 0;
    border-radius: 7px;
    background: #144069;
    color: #fff;

    font: inherit;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

.acceso-boton:hover {
    background: #0d304f;
}

.acceso-popup-enlaces {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 13px;
    margin-top: 19px;
    padding-top: 16px;
    border-top: 1px solid #edf0f2;
}

.acceso-popup-enlaces a {
    color: #144069;
    font-size: 12px;
    text-decoration: none;
}

.acceso-popup-enlaces a:hover {
    color: #f7941d;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .acceso-popup {
        top: 75px;
        right: 12px;
        width: 360px;
    }
}
#panel-acceso.acceso-popup {
    display: block;
    position: fixed !important;
    z-index: 99999 !important;

    top: 90px;
    right: 20px;
    left: auto;

    width: 360px;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;

    padding: 24px;
    background: #ffffff;
    color: #183a5a;

    border: 1px solid #d9e2ea;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);

    font-family: "Montserrat", Arial, sans-serif;
    text-align: left;
}
#panel-acceso.acceso-popup[hidden] {
    display: none !important;
}
#panel-acceso form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#panel-acceso label {
    display: block;
    margin-top: 8px;
    color: #183a5a;
    font-size: 14px;
}

#panel-acceso input {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #b8c6d3;
    border-radius: 5px;
    font-size: 14px;
}

#panel-acceso button {
    width: 100%;
    padding: 11px;
    border: 0;
    border-radius: 5px;
    background: #17466c;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
}

#panel-acceso a {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
}

@media (max-width: 480px) {
    #panel-acceso.acceso-popup {
        top: 88px;
        right: 12px;
        width: calc(100vw - 24px);
    }
}

#panel-acceso.acceso-popup {
    box-sizing: border-box;
    border: 1px solid #e0c27a;
    border-radius: 14px;
    box-shadow:
        inset 3px 0 0 #c6a04a,
        inset -3px 0 0 #c6a04a,
        0 8px 30px rgba(0, 0, 0, 0.18);
}

#panel-acceso.acceso-popup::before,
#panel-acceso.acceso-popup::after {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    width: 1px;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        #e8d39a 12%,
        #b68b32 50%,
        #e8d39a 88%,
        transparent
    );
}

#panel-acceso.acceso-popup::before {
    left: 5px;
}

#panel-acceso.acceso-popup::after {
    right: 5px;
}
#panel-acceso.acceso-popup > * {
    position: relative;
}
@media (max-width: 640px) {
    #panel-acceso.acceso-popup {
        max-width: calc(100vw - 24px);
    }
}

#panel-acceso.acceso-popup {
    position: fixed !important;
    z-index: 99999 !important;

    width: 270px !important;
    min-width: 270px;
    max-width: 270px !important;

    box-sizing: border-box;
    padding: 12px 14px;

    background: #fff;
    border: 1px solid #d9bd79;
    border-radius: 13px;

    box-shadow:
        inset 3px 0 0 #c7a34f,
        inset -3px 0 0 #c7a34f,
        0 8px 24px rgba(0, 0, 0, .18);
}

#panel-acceso.acceso-popup::before,
#panel-acceso.acceso-popup::after {
    content: "";
    position: absolute;
    top: 10px;
    bottom: 10px;
    width: 1px;
    pointer-events: none;

    background: linear-gradient(
        to bottom,
        transparent,
        #ead8a5 15%,
        #b68b32 50%,
        #ead8a5 85%,
        transparent
    );
}

#panel-acceso.acceso-popup::before {
    left: 5px;
}

#panel-acceso.acceso-popup::after {
    right: 5px;
}

#panel-acceso.acceso-popup .acceso-avatar {
    width: 42px;
    height: 42px;
    margin: 0 auto 7px;
    font-size: 17px;
}

#panel-acceso.acceso-popup .acceso-popup-cabecera {
    padding: 2px 0 8px;
}

#panel-acceso.acceso-popup .acceso-popup-cabecera h3 {
    font-size: 15px;
}

#panel-acceso.acceso-popup #form-acceso label {
    margin: 8px 0 4px;
    font-size: 11px;
}

#panel-acceso.acceso-popup #form-acceso input {
    height: 36px;
    padding: 7px 9px;
    font-size: 12px;
}

#panel-acceso.acceso-popup .acceso-boton {
    margin-top: 12px;
    padding: 10px;
    font-size: 11px;
}

#panel-acceso.acceso-popup .acceso-popup-enlaces {
    gap: 9px;
    margin-top: 12px;
    padding-top: 10px;
}

#panel-acceso.acceso-popup .acceso-popup-enlaces a {
    font-size: 11px;
}

@media (max-width: 640px) {
    #panel-acceso.acceso-popup {
        width: 270px !important;
        min-width: 270px;
        max-width: 270px !important;
        right: 12px;
        left: auto;
    }
}
.palermo-plan-viewer {
    width: min(calc(100% - 48px), 1200px);
    max-width: 1200px;
    margin: 36px auto 42px;
}
.palermo-plan-viewer .detail-section-title { text-align: center; }
.palermo-plan-viewport {
    width: 100%;
    height: min(78vh, 900px);
    min-height: 560px;
}
.palermo-plan-viewport canvas { display: block; max-width: none; }
@media (max-width: 700px) {
    .palermo-plan-viewer { width: calc(100% - 24px); margin: 26px auto 32px; }
    .palermo-plan-viewport { height: 72vh; min-height: 430px; }
}

.legal-footer-links{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:10px}.legal-footer-links a{color:inherit;text-decoration:underline;font-size:.82rem}
