.stage4-container {
    background-color: #f8f9fe;
    background-image: url('../assets/img/bg_office.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Open Sans', sans-serif;
    position: relative;
}

.stage4-container .deco-object-up {
    position: absolute;
    top: -100px;
    right: -100px;
    width: 600px;
    height: auto;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.stage4-container .deco-object-down {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 700px;
    height: auto;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

.stage4-container .stage4-logo {
    position: absolute;
    top: 40px;
    right: 60px;
    width: 200px;
    height: auto;
    z-index: 20;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.stage4-container .glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.05),
        0 1px 3px rgba(0, 0, 0, 0.02);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10;
    position: relative;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.stage4-container .panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.stage4-container .header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.stage4-container .logo-brand-sm {
    height: 40px;
    width: auto;
}

.stage4-container .title-section {
    font-size: 14px;
    color: #8898aa;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    font-weight: 700;
    border-left: 4px solid #007ba6;
    padding-left: 15px;
}

.stage4-container .patient-info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stage4-container .datos-nombre-row {
    width: 100%;
}

.stage4-container .datos-grid-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.stage4-container .datos-email-row {
    margin-top: 10px;
    width: 100%;
}

.stage4-container .datos-email-row .dato-card {
    width: 100%;
}

.stage4-container .dato-card {
    background: white;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    overflow: hidden;
}

.stage4-container .dato-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #007ba6;
}

.stage4-container .dato-icon-container {
    width: 70px;
    height: 70px;
    background-color: #007ba6;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 6px rgba(0, 123, 166, 0.2);
}

.stage4-container .dato-icon {
    font-size: 32px;
    color: white;
    line-height: 1;
}

.stage4-container .dato-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
}

.stage4-container .dato-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stage4-container .dato-value {
    font-size: 16px;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

.stage4-container .update-info-legend {
    margin-top: 40px;
    font-size: 13px;
    color: #8898aa;
    text-align: center;
    line-height: 1.6;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 20px;
}
.stage4-container .update-info-legend a {
    color: #007ba6;
    text-decoration: none;
    font-weight: 600;
}
.stage4-container .update-info-legend a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .stage4-container {
        background-image: url('../assets/img/bg_office.png');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }

    .stage4-container .glass-panel {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 0;
        padding: 20px;
        overflow-y: scroll;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        backdrop-filter: none;
    }

    .stage4-container .stage4-logo {
        width: 120px;
        top: 15px;
        right: 15px;
        position: absolute;
    }

    .stage4-container .dato-value {
        font-size: 12px;
    }

    .stage4-container .dato-label {
        font-size: 10px;
    }

    .stage4-container .dato-icon-container {
        width: 28px;
        height: 28px;
        margin-right: 10px;
        border-radius: 6px;
    }

    .stage4-container .dato-icon {
        font-size: 14px;
    }

    .stage4-container .dato-card {
        padding: 15px;
        align-items: flex-start;
    }

    .stage4-container .datos-resumen {
        grid-template-columns: 1fr;
    }

    .stage4-container .datos-grid-details {
        grid-template-columns: 1fr;
    }
}
