* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f3f6fa;
}

body {
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 72px;
    padding: 0 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0f254b;
    color: white;
}

.topbar h1 {
    margin: 0;
    font-size: 21px;
    letter-spacing: 1px;
}

.topbar {
    height: 96px;
    background: #061426;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 100%;
}

.brand-logo {
    width: 420px;
    max-height: 72px;
    object-fit: contain;
    display: block;
}

.brand-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #00BBD4;
    white-space: nowrap;
}

#projectName {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

.layout {
    flex: 1;

    display: grid;
    grid-template-columns: 1fr 320px;

    min-height: 0;
}

.viewer-panel {
    position: relative;
    overflow: hidden;
}

#viewer3d {
    width: 100%;
    height: 100%;
}

.info-panel {
    padding: 24px;

    background: white;
    border-left: 1px solid #dfe5ed;

    overflow-y: auto;
}

.info-panel h2 {
    margin-top: 0;
    color: #0f254b;
}

.property {
    margin-bottom: 17px;
}

.property span {
    display: block;

    font-size: 12px;
    color: #6b7280;

    margin-bottom: 3px;
}

.property strong {
    display: block;

    font-size: 15px;
    color: #172033;

    word-break: break-word;
}

hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 22px 0;
}

/* =====================================================
   RESPONSIVE - TABLET Y CELULAR
   ===================================================== */

@media (max-width: 900px) {

    .topbar {
        min-height: 72px;
        height: auto;
        padding: 8px 14px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
        min-width: 0;
    }

    .brand-logo {
        width: 230px;
        max-height: 58px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    #projectName {
        font-size: 13px;
        white-space: nowrap;
    }

    .layout {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        height: auto;
        min-height: calc(100vh - 72px);
    }

    .viewer-panel {
        width: 100%;
        min-height: 65vh;
    }

    #viewer3d {
        width: 100%;
        height: 65vh;
    }

    .info-panel {
        width: 100%;
        max-width: none;
        box-sizing: border-box;

        border-left: none;
        border-top: 1px solid #d9e0e7;

        padding: 18px 20px;
    }
}

@media (max-width: 600px) {

    .topbar {
        padding: 8px 10px;
    }

    .brand-logo {
        width: 180px;
        max-height: 50px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    #projectName {
        font-size: 12px;
    }

    #viewer3d {
        height: 58vh;
    }

    .viewer-panel {
        min-height: 58vh;
    }

    .info-panel {
        padding: 16px;
    }

    .info-panel h2 {
        font-size: 20px;
    }

    #projectName {
        display: none;
    }

    .brand-logo {
        width: 210px;
        max-height: 54px;
    }

    .brand-subtitle {
        font-size: 12px;
        margin-left: 8px;
    }
}