/* ====== Cards de noticias: miniaturas del mismo tamaño ====== */
.event-box-items-2 {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.event-box-items-2 .event-content {
    flex: 1 1 auto;
}

/* Mismo tamaño para todas las imágenes */
.event-box-items-2 .event-thumb {
    flex: 0 0 300px;
    /* ancho fijo de la miniatura (ajusta a tu gusto) */
    aspect-ratio: 16 / 9;
    /* todas con la misma proporción; usa 1/1 si las quieres cuadradas */
    overflow: hidden;
    border-radius: 12px;
    background: #f2f2f2;
}

.event-box-items-2 .event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* recorta sin deformar */
    object-position: center;
    display: block;
}

/* En móviles, que la imagen ocupe todo el ancho arriba o abajo */
@media (max-width: 991px) {
    .event-box-items-2 {
        flex-direction: column;
    }

    .event-box-items-2 .event-thumb {
        flex: none;
        width: 100%;
    }
}

.event-box-items-2 {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* interior en dos columnas: fecha + texto */
.event-box-items-2 .content {
    display: grid;
    grid-template-columns: 110px 1fr;
    /* ancho del bloque de fecha + texto */
    gap: 16px;
    height: 100%;
}

/* columna de texto como flex vertical */
.event-box-items-2 .title-text {
    display: flex;
    flex-direction: column;
    min-height: 120px;
    /* ajusta según necesites */
}

/* espacio del título */
.event-box-items-2 .title-text h4 {
    margin: 0 0 10px;
    line-height: 1.3;
}

/* limitar el título a 3 líneas y mostrar "..." */
.event-box-items-2 .title-text h4 a {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    /* cambia a 2 o 4 si prefieres */
    overflow: hidden;
}

/* los metadatos siempre al fondo de la columna */
.event-box-items-2 .post-time {
    margin-top: auto;
}

/* Responsive */
@media (max-width: 991px) {
    .event-box-items-2 {
        flex-direction: column;
    }

    .event-box-items-2 .content {
        grid-template-columns: 1fr;
    }
}

/* Scope del modal */
#conveniosModal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    display: none;
    z-index: 9999;
}

#conveniosModal[aria-hidden="false"] {
    display: block;
}

#conveniosModal .convenios-dialog {
    max-width: 1024px;
    margin: 6vh auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    overflow: hidden;
    width: calc(100% - 32px);
}

#conveniosModal .convenios-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f8fc;
    border-bottom: 1px solid #eef0f6;
}

#conveniosModal .convenios-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

#conveniosModal .btn-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    padding: 6px;
    border-radius: 8px;
    cursor: pointer;
}

#conveniosModal .btn-close:hover {
    background: #e9ecf5;
}

#conveniosModal .convenios-controls {
    padding: 14px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    border-bottom: 1px solid #eef0f6;
}

#conveniosModal .convenios-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#conveniosModal .convenios-tab {
    border: 1px solid #d9def0;
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

#conveniosModal .convenios-tab[aria-selected="true"] {
    background: #2B66F6;
    color: #fff;
    border-color: #2B66F6;
}

#conveniosModal .convenios-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

#conveniosModal .convenios-search input {
    width: 260px;
    max-width: 60vw;
    padding: 10px 12px;
    border: 1px solid #d9def0;
    border-radius: 10px;
    outline: none;
}

#conveniosModal .convenios-search input:focus {
    border-color: #2B66F6;
    box-shadow: 0 0 0 3px rgba(43, 102, 246, .12);
}

/* Tabla con scroll */
#conveniosModal .table-wrap {
    padding: 12px 20px 20px;
    max-height: 65vh;
    overflow: auto;
}

#conveniosModal table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

#conveniosModal thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #6b7390;
    padding: 0 14px 8px;
}

#conveniosModal tbody tr {
    background: #fff;
    box-shadow: 0 1px 0 rgba(17, 24, 39, .04), 0 1px 3px rgba(17, 24, 39, .06);
}

#conveniosModal tbody td {
    padding: 14px;
    border-top: 1px solid #eef0f6;
    border-bottom: 1px solid #eef0f6;
}

#conveniosModal tbody td:first-child {
    border-left: 1px solid #eef0f6;
    border-radius: 10px 0 0 10px;
    width: 64px;
    color: #2B66F6;
    font-weight: 700;
}

#conveniosModal tbody td:last-child {
    border-right: 1px solid #eef0f6;
    border-radius: 0 10px 10px 0;
}

#conveniosModal .muted {
    color: #7c82a2;
    font-size: 13px;
}

/* Footer simple */
#conveniosModal .convenios-footer {
    padding: 10px 20px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eef0f6;
    background: #fafbff;
    font-size: 13px;
    color: #6b7390;
}

@media (max-width:720px) {
    #conveniosModal .convenios-controls {
        grid-template-columns: 1fr;
    }

    #conveniosModal .convenios-search input {
        width: 100%;
        max-width: none;
    }

    #conveniosModal .table-wrap {
        max-height: 58vh;
    }
}

@media (max-width: 991.98px) {

    .courses-section .row>[style*="margin-left:210px"],
    .courses-section .row>[style*="margin-left: 210px"] {
        margin-left: 0 !important;
    }
}

@media (max-width: 991.98px) {
    .hero-5 .hero-image {
        display: grid;
        place-items: center;
        margin-top: 12px;
    }

    .hero-5 .hero-image>img {
        display: block;
        margin: 0 auto;
        max-width: min(420px, 90%);
        height: auto;
    }
}

.hero-image>img {
    margin-left: -250px;
}

.circle-animation {
    animation: spin 10s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.whatsapp_chat_support {
    z-index: 111 !important;
    right: 100px !important;
    position: fixed;
    bottom: 24px;
}

@font-face {
    font-family: 'Sora';
    src: url('web/sora/v16/xMQOuFFYT72X5wkB_18qmnndmScMnn-K.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('web/sora/v16/xMQOuFFYT72X5wkB_18qmnndmSdgnn-K.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSdSn3-K.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSdSnn-K.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSe1mX-K.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSeMmX-K.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSfSmX-K.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Sora';
    src: url('../../sora/v16/xMQOuFFYT72X5wkB_18qmnndmSfSnn-K.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

/* Que el slider respete la altura del contenido */
.hero-swiper {
    position: relative;
    overflow: hidden;
}

.hero-swiper .swiper-slide {
    height: auto;
}

.hero-swiper .swiper-wrapper {
    align-items: stretch;
}

.hero-swiper .swiper-slide>section.hero-5 {
    background-size: cover;
    background-position: center;
}

/* Flechas/puntos (ajusta a tu diseño si ya tienes estilos) */
.hero-swiper-prev,
.hero-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .35);
    z-index: 5;
    cursor: pointer;
}

.hero-swiper-prev {
    left: 16px;
}

.hero-swiper-next {
    right: 16px;
}

.hero-swiper-pagination {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 20px;
    z-index: 5;
}

.hero-5 {
    padding: 130px 0 10px !important;
}

@media (max-width: 480px) {

    /* Contenedor que agrupa .date y .title-text */
    .event-section .event-box-items-2 .event-content>.content {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Caja de fecha siempre cuadrada (como tu 2da imagen) */
    .event-section .event-box-items-2 .event-content>.content .date {
        flex: 0 0 90px !important;
        /* ancho fijo */
        width: 90px !important;
        height: 90px !important;
        /* alto fijo para que sea cuadrado */
        display: flex !important;
        flex-direction: column !important;
        /* 18 arriba / sep.2024 abajo */
        justify-content: center !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 10px !important;
    }

    .event-section .event-box-items-2 .event-content>.content .date h2 {
        margin: 0 !important;
        line-height: 1 !important;
    }

    .event-section .event-box-items-2 .event-content>.content .date span {
        margin-top: 6px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        text-align: center !important;
    }

    /* Título a la derecha (que no se baje) */
    .event-section .event-box-items-2 .event-content>.content .title-text {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        /* clave para que el flex no “rompa” */
    }

    .event-section .event-box-items-2 .event-content>.content .title-text h4 {
        margin: 0 !important;
    }

    .event-section .event-box-items-2 .event-content>.content .title-text .post-time {
        margin-top: 6px !important;
    }

    .whatsapp_chat_support {
        position: fixed !important;
        right: 20px !important;
        bottom: 100px !important;
        /* SUBE el botón sobre el botón amarillo */
        z-index: 9999 !important;
    }

    .single-footer-widget {
        text-align: center;
    }

    .single-footer-widget .social-icon {
        justify-content: center;
    }

    .single-footer-widget .widget-head img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;
    }

    .contact-list-area {
        display: block !important;
    }

    .section-padding-po {
        padding: 50px 0;
    }

    .breadcrumb-wrapper .page-heading .breadcrumb-image {
        margin-top: 30px;
    }

    .breadcrumb-wrapper .page-heading {
        padding: 50px 0 10px;
    }

    .about-section {
        margin-top: 20px;
    }

    .breadcrumb-wrapper .page-heading h1 {
        font-size: 35px !important;
    }

    .hero-image-mobile-orden1 {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* centra el contenido */
        justify-content: flex-start;
        width: 100%;
    }

    .hero-image-mobile-orden1 img {
        width: auto !important;
        height: auto !important;
        max-width: 100% !important;
        /* no se sale del viewport */
        display: block;
        border-radius: 0 !important;
        /* centra cada imagen */
    }


    /* evita una línea/separación entre imágenes */
    .hero-image-mobile-orden1 .img-top {
        margin-bottom: 10px;
        border-radius: 0 !important;

    }

    .hero-image-mobile-orden1 .img-bottom {
        margin-left: -10px;
    }

    .hero-5 {
        padding: 100px 0 0px !important;
    }

    .hero-5 .hero-content h1 {
        font-size: 28px;
        margin-bottom: 20px;
        line-height: 30px !important;
    }

    .org-chart-zoom {
        padding: 40px 0 10px !important;
    }

    .info-form .theme-btn {
        display: block;
        margin: 0 auto;
        width: fit-content;

    }

    .assign-card .assign-link {
        display: block !important;
        width: fit-content;
        margin: 12px auto 0 !important;
        float: none !important;
        left: auto !important;
        right: auto !important;
    }

    .hero-image-mobile-orden1 .img-top {
        display: block;
        margin: 0 auto;
        /* centra */
        max-width: 100%;
        height: auto;
    }

    /* Si el contenedor está en flex y la deja pegada a la izquierda */
    .hero-image-mobile-orden1 {
        width: 100%;
        text-align: center;
    }

    .hero-swiper,
    .hero-swiper .swiper-wrapper,
    .hero-swiper .swiper-slide {
        height: 88svh;
    }

    .hero-swiper .swiper-slide>.hero-section.hero-5 {
        height: 100%;
        padding-top: 60px;
        box-sizing: border-box;
    }
}