.principal-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-direction: row-reverse;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Contenedor del paciente */
.paciente-container {
    width: auto;
    height: 100%;
    position: absolute;
    top: 18vh;
    margin-left: 110vh;
    z-index: 1;
}

/* Imagen del paciente */
.paciente-dpi {
    position: relative;
    width: auto;
    height: 100%;
}

/* Contenedor del médico */
.medico-container {
    width: auto;
    height: 75%;
    position: absolute;
    bottom: -10vh;
    margin-left: 20vh;
    z-index: 2;
}

/* Imagen del médico */
.medico-dpi {
    position: relative;
    width: auto;
    height: 100%;
}

/* Portal Info (bloques de título, descripción y botón) */
.portal-info {
    position: absolute;
    background: rgba(255,255,255,0.0); /* Fondo transparente, puedes ajustar si quieres una tarjeta */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    z-index: 10;
}

.portal-info.portal-paciente {
    width: 40vh;
    margin-right: 130vh;
    top: 25vh;
}

.portal-info.portal-medico {
    width: 30vh;
    margin-left: 130vh;
    top: 50vh;
}

.portal-paciente-titulo {
    width: 100%;
    max-width: 25vh;
    height: auto;
}

.portal-medico-titulo {
    width: 100%;
    max-width: 20vh;
    height: auto;
}

.portal-descripcion {
    color: #fff;
    font-size: 2vh;
    margin-bottom: 1.5vh;
}

.portal-btn {
    width: 30vh;
    display: inline-block;
    font-weight: 600;
    padding: 2vh 0;
    border-radius: 10vh;
    text-decoration: none;
    font-size: 2vh;
    transition: background 0.2s;
}

.portal-btn.portal-paciente {
    background: var(--primary-blue);
    color: #fff;
    transition: all 0.3s ease;
}

.portal-btn.portal-medico {
    background: var(--tertiary-light-blue);
    color: #fff;
    transition: all 0.3s ease;
}

.portal-btn.portal-paciente:hover {
    background: #19609a;
    scale: 1.05 !important;
    transition: all 0.3s ease;
}

.portal-btn.portal-medico:hover {
    background: #79dce7;
    scale: 1.05 !important;
    transition: all 0.3s ease;
}

.resultados-info {
    position: absolute;
    z-index: 2;
    left: 5vh;
    bottom: 7vh;
    width: 32%;
    color: #fff;
    font-size: 1.5vh;
    text-align: left;
    line-height: 1.2;
    background: none;
    font-family: 'Inter', Arial, sans-serif;
}

/* Responsive */
@media (max-width: 1200px) {
    .portal-info.portal-paciente {
        margin-right: 100vh !important;
    }
}

@media (max-width: 1279px) or (min-width: 1281px) {
    .portal-info.portal-paciente {
        margin-right: 110vh;
    }

    .portal-info.portal-medico {
        margin-left: 110vh;
    }

    .portal-paciente-titulo {
        max-width: 20vh;
    }

    .portal-medico-titulo {
        max-width: 15vh;
    }

    .portal-btn {
        width: 25vh;
    }
}