.hec-academic {
    --hec-blue-dark: #071a48;
    --hec-blue: #3199d4;
    --hec-white: #ffffff;

    width: 100%;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
}

.hec-academic__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 45px;
    width: 100%;
}

/* CARD */

.hec-academic-card {
    min-width: 0;
    margin: 0;
}

.hec-academic-card__button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.hec-academic-card__button:hover,
.hec-academic-card__button:focus {
    background: transparent;
}

.hec-academic-card__button:focus-visible {
    outline: 2px solid var(--hec-blue);
    outline-offset: 4px;
}

.hec-academic-card__photo {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f3f5;
}

.hec-academic-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.35s ease;
}

.hec-academic-card__button:hover .hec-academic-card__image {
    transform: scale(1.025);
}

.hec-academic-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #eef0f3;
}

/* INFORMACIÓN */

.hec-academic-card__info {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 47px;
    padding: 9px 2px 9px;
    border-bottom: 2px solid var(--hec-blue);
}

.hec-academic-card__name {
    display: block;
    margin: 0;
    color: var(--hec-blue-dark);
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
}

.hec-academic-card__position {
    display: block;
    color: var(--hec-blue);
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.3;
}

/* MODAL */

.hec-academic-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}

.hec-academic-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hec-academic-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 15, 42, 0.78);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.hec-academic-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 920px);
    max-height: calc(100vh - 60px);
    overflow: auto;
    background: var(--hec-white);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
    transform: translateY(15px) scale(0.985);
    transition: transform 0.25s ease;
}

.hec-academic-modal.is-open .hec-academic-modal__dialog {
    transform: translateY(0) scale(1);
}

.hec-academic-modal__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hec-blue-dark);
    color: var(--hec-white);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
}

.hec-academic-modal__close:hover,
.hec-academic-modal__close:focus {
    background: var(--hec-blue);
    color: var(--hec-white);
}

.hec-academic-modal__layout {
    display: grid;
    grid-template-columns: minmax(280px, 38%) 1fr;
    min-height: 450px;
}

.hec-academic-modal__photo {
    min-height: 450px;
    background: #f1f2f4;
}

.hec-academic-modal__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 450px;
    object-fit: cover;
    object-position: center top;
}

.hec-academic-modal__content {
    padding: 65px 55px 55px;
}

.hec-academic-modal__name {
    margin: 0 0 8px;
    padding: 0;
    color: var(--hec-blue-dark);
    font-family: inherit;
    font-size: clamp(22px, 2.3vw, 32px);
    font-weight: 800;
    line-height: 1.15;
}

.hec-academic-modal__position {
    margin-bottom: 25px;
    padding-bottom: 17px;
    border-bottom: 2px solid var(--hec-blue);
    color: var(--hec-blue);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
}

.hec-academic-modal__bio {
    color: #34425c;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.75;
}

.hec-academic-modal__bio> :first-child {
    margin-top: 0;
}

.hec-academic-modal__bio> :last-child {
    margin-bottom: 0;
}

.hec-academic-modal__bio p {
    margin: 0 0 16px;
}

.hec-academic-modal__bio ul,
.hec-academic-modal__bio ol {
    margin: 0 0 16px;
    padding-left: 22px;
}

.hec-academic-modal[hidden] {
    display: none !important;
}

/* Evita scroll del documento con modal abierto */

html.hec-modal-open,
body.hec-modal-open {
    overflow: hidden;
}

/* TABLET */

@media (max-width: 900px) {
    .hec-academic__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 30px;
    }

    .hec-academic-modal__layout {
        grid-template-columns: minmax(240px, 38%) 1fr;
    }

    .hec-academic-modal__content {
        padding: 60px 35px 40px;
    }
}

/* MOBILE */

@media (max-width: 600px) {
    .hec-academic__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hec-academic-modal {
        align-items: flex-start;
        padding: 15px;
        overflow-y: auto;
    }

    .hec-academic-modal__dialog {
        max-height: none;
        margin: auto 0;
    }

    .hec-academic-modal__layout {
        grid-template-columns: 1fr;
    }

    .hec-academic-modal__photo {
        min-height: 0;
    }

    .hec-academic-modal__image {
        width: 100%;
        height: auto;
        min-height: 0;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    .hec-academic-modal__content {
        padding: 30px 25px 35px;
    }

    .hec-academic-modal__close {
        position: fixed;
        top: 25px;
        right: 25px;
    }

    .hec-academic-card__name {
        font-size: 14px;
    }

    .hec-academic-card__position {
        font-size: 11px;
    }
}