/**
 * Styling for diagnosis.
*/

.chsm-content-diagnosis {
    padding: 4rem 0;
}

.chsm-content-diagnosis .chsm-container{
    width: 100%;
    max-width: 1600px;
    display: flex;
    flex-wrap: wrap;
    gap: 4%;
}

.chsm-content-diagnosis .chsm-container .content{
    width: 68%;
}

.chsm-team {
    padding: 5em 0em;
}

.chsm-content-diagnosis .chsm-title {
    margin-bottom: 0;
}

.chsm-content-diagnosis .field.field--name-field-zona-corporal a {
    color: var(--principal);
    text-decoration: none;
    pointer-events: none;
}

.chsm-content-diagnosis .field.field--name-field-zona-corporal a:hover {
    color: var(--principal);
    text-decoration: underline;
}

.chsm-content-diagnosis .field.field--name-field-zona-corporal {
    margin-bottom: 0;
    margin-bottom: 2rem;
    display: contents;
}

.chsm-content-diagnosis .chsm-container .content .field__label {
    font-size: 2rem;
    color: var(--principal);
    font-weight: bold;
    margin: 4rem 0 2rem 0;
    border-bottom: 2px solid;
}

.chsm-content-diagnosis .chsm-container .sidebar{
    width: 28%;
}

 .chsm-banner-diagnosis .field--name-field-imagen img{
    min-height: 60vh;
    height: 60vh;
 }

 .chsm-content-diagnosis .field--name-field-imagen img {
    width: 100%;
    height: auto;
    margin-bottom: 3rem;
}

.chsm-content-diagnosis .chsm-title, h2, h3, h4, h5, h6 {
    color: var(--secundario);
}

.chsm-content-diagnosis .details {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 2rem;
}
.sidebar .sidebar-wrapper {
    background: var(--gris-claro);
    padding: 2rem 2rem 4rem;
    border-radius: 40px;
    margin-bottom: 3rem;
}

.sidebar .sidebar-wrapper h3 {
    color: var(--secundario);
    border-bottom: 5px solid;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.sidebar .sidebar-wrapper .views-row a {
    font-weight: bold;
    color: var(--gris-oscuro);
    text-decoration: none;
    position: relative;
}

.sidebar .sidebar-wrapper:first-child .views-row a {
    padding-left: 29px;
}

.sidebar .sidebar-wrapper .views-row a:hover {
    color: var(--principal);
}

.sidebar .sidebar-wrapper .views-row span{
    color: var(--gris-oscuro);
}

a.specialty-name::before {
    content: "";
    background: url(/sites/default/files/iconos/arrow-double.png);
    display: block;
    width: 20px;
    height: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar .sidebar-wrapper .views-row {
    padding: 0.6rem 0;
    border-bottom: 2px solid var(--gris-medio);
}

.sidebar .sidebar-wrapper .specialty-wrapper {
    display: flex;
    justify-content: space-between;
}

.sidebar .sidebar-wrapper > a {
    display: none;
}

.sidebar .sidebar-wrapper .views-row img {
    height: 100px;
    width: 100px;
    object-fit: cover;
}


.other-content-wrapper a:hover {
    color: var(--secundario);
}

.other-content-wrapper .prev-next-wrapper, .other-content-wrapper .related-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 4rem 0;
    border-bottom: 2px solid #ccc;
    flex-wrap: wrap;
}

.other-content-wrapper .prev-next-wrapper > div {
    width: calc(50% - 1rem);
}

.other-content-wrapper .prev-next-wrapper .next-wrapper {
    text-align: right;
}

.other-content-wrapper .prev-next-wrapper .blog-prev, .other-content-wrapper .prev-next-wrapper .blog-next{
    display: flex;
    gap: 1rem;
    align-items: center;
}

.other-content-wrapper .prev-next-wrapper .blog-next{
    flex-direction: row-reverse;
}


.other-content-wrapper .prev-next-wrapper .side-wrapper a{
    color: var(--secundario);
    text-decoration: none;
}

.other-content-wrapper .prev-next-wrapper .link-wrapper a {
    font-size: 1.3rem;
    font-weight: bold;
}

.related-wrapper .view-content.row {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

.related-wrapper .views-row {
    width: calc(30% - 1rem);
}

.blog-related-wrapper .title-wrapper a {
    color: var(--secundario);
    text-decoration: none;
    font-weight: bold;
}

.related-wrapper .views-row img {
    width: 100%;
    height: auto;
}

@media(max-width:1400px){
    .chsm-content-diagnosis .chsm-container .content{
        width: 58%;
    }
    
    .chsm-content-diagnosis .chsm-container .sidebar{
        width: 38%;
    }
}

@media(max-width:1100px){
    .chsm-content-diagnosis .chsm-container .content{
        width: 48%;
    }
    
    .chsm-content-diagnosis .chsm-container .sidebar{
        width: 48%;
    }
}

@media(max-width:900px){
    .chsm-content-diagnosis .chsm-container .content{
        width: 100%;
    }
    
    .chsm-content-diagnosis .chsm-container .sidebar{
        width: 100%;
        margin-top: 4rem;
    }
}

@media(max-width:767px){

    .chsm-banner-diagnosis .field--name-field-imagen img{
        min-height: 30vh;
        height: 30vh;
    }
    
    .chsm-content-diagnosis{
        padding: 2rem 0;
    }

    .related-wrapper .views-row {
        width: calc(50% - 1rem);
    }
}

@media(max-width:500px){

    .other-content-wrapper .prev-next-wrapper > div {
        width: 100%;
    }

    .related-wrapper .views-row {
        width: 100%;
    }
}

.view-display-id-block_most_viewed{
    & h4 {
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
    }
}


