/* PÁGINAS DE ARCHIVOS EVENTOS */
body.tax-mec_category .site-content {
    padding: 64px 0;
}
body.tax-mec_category .site-content h1 {
    margin-bottom: 24px;
}


/* ESTILOS FICHA DE EVENTOS POR DEFECTO*/
/*Ordenar redes sociales en Compartir*/
/* Asegura que la lista es flex */
.mec-event-sharing ul {
  display: flex;
  list-style: none;
}

/* Asigna el orden deseado */
.mec-event-social-icon:has(a.whatsapp)  { order: 1; }
.mec-event-social-icon:has(a.telegram)  { order: 2; }
.mec-event-social-icon:has(a.email)     { order: 3; }
.mec-event-social-icon:has(a.linkedin)  { order: 4; }
.mec-event-social-icon:has(a.facebook)  { order: 5;display:none!important; }
.mec-event-social-icon:has(a.twitter)   { order: 6;display:none!important; }


@media (max-width: 768px) {
    .mec-single-event-flex-row {
        flex-direction: column;
    }
}

.mec-wrap p {
    margin-bottom: 8px;
}

.eic-custom-content .mec-single-event-flex-row,
.mec-single-event-flex-row {
    display: flex;
    gap: 16px;
    flex-wrap: nowrap;
    margin-bottom: 24px;
    align-items: stretch;
}

.eic-custom-content .mec-single-event-flex-row>div {
    flex: 1;
}

/* Pills Comisiones y Etiquetas*/
.eic-custom-content .mec-single-event-flex-row .comision,
.mec-events-meta-group-tags a[rel="tag"] {
    background: var(--ast-global-color-1);
    border-radius: 16px;
    padding: 4px 16px;
    text-transform: uppercase;
    flex: inherit;
}

.eic-custom-content .mec-single-event-flex-row .comision abbr {
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
    font-weight: 300;
    color: var(--ast-global-color-0);
    margin-bottom. 8px;
}

.mec-events-meta-group-tags a[rel="tag"] {
    border-color: var(--ast-global-color-1);
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
    letter-spacing: 0;
    color: var(--ast-global-color-0);
    font-size: 14px;
}

.mec-events-meta-group-tags a[rel="tag"]:hover {
    background-color: var(--ast-global-color-0);
    border-color: var(--ast-global-color-0);
    color: var(--ast-global-color-1);
}

.mec-single-event .mec-event-content {
    padding-bottom: 0;
}

/* Fila ancho completo */
.mec-full-row-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 40px 16px;
}

.mec-full-row-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 8px;
}

.eic-custom-content .mec-events-event-image img {
    border-radius: 24px;
}

.eic-custom-content .mec-single-title {
    color: var(--ast-global-color-0);
    font-weight: normal;
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
}

/* Fila ancho completo con detalles del evento */
.mec-full-row-inner-details * {
    color: var(--ast-global-color-5);
}

.mec-full-row-inner-details i::before {
    color: var(--ast-global-color-1);
    font-size: 24px;
}

.mec-full-row-inner-details h3.mec-date {
    display: none;
}

.mec-full-row-inner-details dt,
.sedes h3 {
    font-weight: normal;
    text-transform: uppercase;
    font-family: 'Abel';
    font-size: 14px;
    color: #FFF;
    margin-bottom: 0;
}

.mec-full-row-inner-details dd,
.mec-full-row-inner-details .mec-single-event-date,
.mec-full-row-inner-details .mec-single-event-time,
.mec-full-row-inner-details .mec-single-event-acf,
.mec-full-row-inner-details .mec-event-cost {
    margin: 0 !important;
}

.mec-full-row-inner-details .mec-single-event-acf {
    padding: 12px 14px 8px;
    margin-bottom: 12px;
    position: relative;
}

.mec-full-row-inner-details .mec-single-event-flex-row>div {
    border-left: 1px solid var(--ast-global-color-1);
}

.mec-full-row-inner-details .mec-single-event-time {
    display: none;
}

.mec-events-event-categories a:hover {
    color: var(--ast-global-color-1) !important;
}

/* Cajas con info */
.mec-single-event .mec-frontbox {
    border-radius: 24px;
    background-color: var(--ast-global-color-4);
    color: var(--ast-global-color-3);
    font-size: 16px;
}

.mec-single-event .mec-frontbox-title:before {
    content: none;
}

.mec-single-event .mec-frontbox-title,
.mec-single-event .mec-social-single.mec-frontbox-title {
    border-bottom: none !important;
    margin-bottom: 8px;
    color: var(--ast-global-color-0);
    font-weight: 300;
    text-align: left;
    font-size: 24px;
}

.mec-single-event .mec-event-social.mec-frontbox {
    margin-bottom: 0;
}

/* Hover enlaces en la caja de programa */
.mec-single-event .mec-event-programa a {
    text-decoration: underline!important;
}
.mec-single-event .mec-event-programa a:hover {
    color: #212121;
}

/* Reviu la sessió */
.mec-single-event .mec-cronica .mec-cronica-head {
    font-size: 32px;
}

.mec-single-event .mec-cronica .mec-single-event-flex-row>div {
    flex: 1;
}

.mec-single-event .titulo-reviu {
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 18px;
}


.mec-cronica .video-container {
    border-radius: 32px;
}

/* ODS */
.mec-single-event .eic-ods-frontbox ul {
    margin-left: 0;
    list-style: none;
    color: var(--ast-global-color-3);
    font-size: 16px;
}

.mec-event-export-module {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin-top: 64px;
}

/* Botones de inscripción */
.eic-box-inscripcion {
    margin-top: 24px;
}
.eic-box-inscripcion .title-inscripcion {
    font-family: 'Inter', sans-serif;

}

.eic-box-inscripcion .eic-incripcion-button {
    height: initial;
    line-height: initial;
    text-transform: uppercase;
    color: var(--ast-global-color-1) !important;
    padding: 8px 16px;
    font-size: 14px;
    width: fit-content;
}

.eic-box-inscripcion .eic-incripcion-button:hover {
    background-color: var(--ast-global-color-1) !important;
    color: var(--ast-global-color-0) !important;
}

.mec-wrap li.mec-event-social-icon a>svg {
    fill: var(--ast-global-color-0);
    transition: all .2s linear;
}

.mec-single-event .mec-event-social a.twitter:hover svg path {
    fill: var(--ast-global-color-1) !important;
}

.mec-single-event .mec-event-social a {
    background: transparent !important;
    border-radius: 100% !important;
    color: var(--ast-global-color-0) !important;
    border: 1px solid var(--ast-global-color-0);
}

.mec-wrap li.mec-event-social-icon a:hover {
    color: var(--ast-global-color-1) !important;
    border-color: var(--ast-global-color-1);
}

/* Eventos relacionados custom */
.mec-related-events-custom {
    margin-top: 24px;
    padding: 24px 24px;
    border-top: 1px solid var(--ast-global-color-6);
}

.mec-related-events-custom .related-events-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 40px;
    text-align: center;
    color: var(--ast-global-color-0);
    text-transform: uppercase;
    text-transform: uppercase;
}

.mec-related-events-custom .related-events-slider {
    position: relative;

}

.mec-related-events-custom .related-events-wrapper {
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto;
}

.mec-related-events-custom .related-events-container {
    display: flex;
    gap: 24px;
    overflow-x: hidden;
    scroll-behavior: auto;
    transition: transform 0.3s ease;
}

.mec-related-events-custom .related-event-card {
    min-width: calc(50% - 20px);
    max-width: calc(50% - 20px);
    flex-shrink: 0;
    border-radius: 25px;
    overflow: hidden;
    background: var(--ast-global-color-4);
    border: 1px solid var(--ast-global-color-6);
    color: var(--ast-global-color-2);
    transition: 0.3s;
}

.mec-related-events-custom .related-event-card:hover {
    background: var(--ast-global-color-1);
}

.mec-related-events-custom .card-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: 0.3s;
}

.mec-related-events-custom .card-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.mec-related-events-custom .card-image:hover .card-image-link {
    transform: scale(1.5);
}

.mec-related-events-custom .card-content {
    padding: 24px;
    min-height: 240px;
    display: flex;
    flex-direction: column;
}

.mec-related-events-custom .card-label {
    display: inline-block;
    border: 1px solid var(--ast-global-color-0);
    color: var(--ast-global-color-0);
    padding: 2px 12px;
    border-radius: 16px;
    font-size: 14px;
    text-transform: lowercase;
    margin-bottom: 12px;
    align-self: flex-start;
    font-weight: 400;
    transition: 0.3s;
}

.mec-related-events-custom .card-label:hover {
    color: var(--ast-global-color-1);
    background-color: var(--ast-global-color-0);
}

.mec-related-events-custom .card-date {
    font-size: 14px;
    font-weight: 400;
    font-family: "Abel", Sans-serif;
    margin-bottom: 16px;
}

.mec-related-events-custom .card-title {
    font-size: 20px;
    line-height: 1.3;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.mec-related-events-custom .card-title a {
    color: #1a1a1a;
    text-decoration: none;
    text-transform: uppercase;
}

.mec-related-events-custom .card-title a:hover {
    color: var(--ast-global-color-1);
}

.mec-related-events-custom .card-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    flex-grow: 1;
}

.mec-related-events-custom .card-link {
    display: inline-block;
    color: #1a1a1a;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    margin-top: auto;
    text-transform: uppercase;
    transition: 0.2s;
}

.mec-related-events-custom .card-link:hover {
    transform: scale(1.1)
}

.mec-related-events-custom .slider-arrow {
    position: absolute !important;
    top: 50%;
    transform: translateY(-50%);
    background: var(--ast-global-color-6) !important;
    padding: 8px 8px 8px 8px;
    border-radius: 100% !important;
    cursor: pointer;
    font-size: 24px !important;
    font-weight: bold;
    z-index: 10;
    display: flex;
    border: none !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transition: 0.2s;
}

.mec-related-events-custom .slider-arrow svg {
    width: 1em;
    height: 1em;
    fill: var(--ast-global-color-0);
    transition: 0.3s;

}

.mec-related-events-custom .slider-arrow:hover {
    background: var(--ast-global-color-0) !important;
}

.mec-related-events-custom .slider-arrow:hover svg {
    fill: var(--ast-global-color-1);
}


.mec-related-events-custom .slider-prev {
    left: 240px;
}

.mec-related-events-custom .slider-next {
    right: 240px;
}

@media (max-width: 768px) {
    .mec-related-events-custom .related-events-wrapper {
        padding: 0;
    }

    .mec-related-events-custom .related-event-card {
        min-width: 100%;
        max-width: 100%;
    }

    .mec-related-events-custom .slider-prev {
        left: 0;
    }

    .mec-related-events-custom .slider-next {
        right: 0;
    }

    .mec-related-events-custom .card-title {
        font-size: 18px;
        min-height: auto;
    }
    .mec-single-event .mec-frontbox {
        padding: 24px;
    }
}

/* ESTILOS FICHA CURSOS */
.titulo-actividad {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

.single-mec-events .mec-wrap .titulo-actividad h2 {
    color: var(--ast-global-color-5);
    text-transform: uppercase;
    font-size: 32px;
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
    font-weight: normal;

}

/* Colores cabecera según valor del campo actividad_iniciativa (Área de formación)*/
.eic-cabecera-cursos {
    padding: 80px 24px;
    background-image: url("/wp-content/themes/astra-child/assets-eic/images/background-cabecera-cursos.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.mec-single-event .activitat-, .mec-event-meta-wrap.activitat-{
    background-color: #09215f;
    padding-bottom: 124px;

}

.mec-single-event .activitat-energia, .mec-event-meta-wrap.activitat-energia {
    background-color: #FF8F49;
}

.mec-single-event .activitat-enginyeria, .mec-event-meta-wrap.activitat-enginyeria {
    background-color: #1396E4;
}

.mec-single-event .activitat-seguretat-i-medi-ambient, .mec-event-meta-wrap.activitat-seguretat-i-medi-ambient {
    background-color: #2AC981;
}

.mec-single-event .activitat-operacions, .mec-event-meta-wrap.activitat-operacions {
    background-color: #058C78;
}

.mec-single-event .activitat-gestio-i-habilitats-directives, .mec-event-meta-wrap.activitat-gestio-i-habilitats-directives {
    background-color: #003097;
}

.mec-single-event .activitat-transformacio-digital, .mec-event-meta-wrap.activitat-transformacio-digital {
    background-color: #978FEC;
}

.mec-single-event .activitat-administracions-publiques, .mec-event-meta-wrap.activitat-administracions-publiques {
    background-color: #DC3367;
}

.mec-single-event .activitat-enginyeria-biomedica, .mec-event-meta-wrap.activitat-enginyeria-biomedica {
    background-color: #67CFE3;
}

/* Selecciona todas las clases que empiezan por "activitat-" dentro de .mec-single-event */
.single-mec-events .mec-wrap [class*="activitat-"],
.single-mec-events .mec-wrap [class*="activitat-"] .mec-frontbox-title,
.single-mec-events .mec-wrap [class*="activitat-"] p {
    color: var(--ast-global-color-5) !important;
}

/* Bloque Consulta */

.mec-contact-list {
    list-style: none;
    margin-left: 0;
}

.mec-contact-list i {
    width: 16px;
    color: var(--ast-global-color-0);
    display: inline-block;
}
/* Cambiar orden de los bloques SHARED RRSS y CONSULTA*/
.eic-sidebar-cursos {
    padding-top: 40px;
    display: flex;
    flex-direction: column;
}
.eic-sidebar-cursos .mec-event-social {
    order: 1;
    margin-bottom: 30px!important;
}
.eic-sidebar-cursos .eic-consulta {
    order: 2;
}
.eic-sidebar-cursos .mec-single-event-documentacion,
.eic-sidebar-cursos .eic-consulta {
    margin-bottom: 0;
}

/* ============================================
   COLABORADORES - Grid responsive
============================================ */
.mec-colaboradores-box {
    margin-bottom: 24px;
}

.mec-colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 24px;
}

/* Tablet */
@media (max-width: 992px) {
    .mec-colaboradores-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .mec-colaboradores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tarjeta de colaborador */
.mec-colaborador-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Foto circular en blanco y negro */
.mec-colaborador-foto {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.mec-colaborador-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

/* Efecto hover en la foto */
.mec-colaborador-card:hover .mec-colaborador-foto img {
    filter: grayscale(0%);
}

/* Foto de empresa (rectangular) */
.mec-colaborador-empresa .mec-colaborador-foto {
    width: 150px;
    height: 100px;
    border-radius: 8px;
}

.mec-colaborador-empresa .mec-colaborador-foto img {
    object-fit: contain;
    padding: 10px;
    filter: none; /* Las empresas no van en blanco y negro */
}

/* Información */
.mec-colaborador-info {.act
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Nombre del colaborador */
.mec-colaborador-nombre {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-family: 'Abel',sans-serif;
}

.mec-colaborador-nombre a {
    text-decoration: none;
    transition: color 0.2s;
}

/* CV / Descripción */
.mec-colaborador-cv p {
    font-size: 12px!important;
    color: #666!important;
    margin-bottom: 8px;
    font-weight: 400;
}

/* LinkedIn icon con SVG */
.mec-colaborador-linkedin {
    margin-top: 4px;
}

.mec-colaborador-linkedin a {
    color: var(--ast-global-color-0);
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.mec-colaborador-linkedin a:hover {
    color: var(--ast-global-color-1);
}

.mec-colaborador-linkedin svg {
    width: 24px;
    height: 24px;
}


/*LISTADO FORMACIÓN*/
.mec-skin-list-container .select2-container, 
.mec-modal-result.mec-month-navigator-loading {
    z-index: 1!important;
}

.mec-event-list-standard .mec-event-article {
    border-radius: 24px;
    padding: 16px;
}
.mec-event-list-standard .mec-event-content {
    padding-bottom: 24px;
    padding-right: 32px;
}
.mec-event-list-standard .mec-event-footer {
    margin-top: 16px;
}
.mec-event-list-standard .mec-col-table-c.mec-event-meta-wrap,
.mec-event-list-standard .mec-event-image-wrap img {
    border-radius: 24px;
}

.mec-event-list-standard .mec-event-meta-wrap * {
    color: #FFF !important;
    font-size: 14px!important; 
}
.mec-event-list-standard .mec-event-meta-wrap i:before {
    color: #FFF !important;
    font-size: 20px; 
}

.mec-event-list-standard .mec-event-meta-wrap svg path {
    fill: #FFF !important;
}

.mec-event-list-standard ul.mec-event-status-icons li,
.mec-skin-list-container .mec-search-form label,
.mec-event-list-standard .mec-event-status-icons {
    display: none;
}

.mec-event-list-standard .mec-event-footer .mec-booking-button,
.mec-load-more-button, 
.mec-event-list-standard .mec-detail-button  {
    background-color: var(--ast-global-color-0);
    color: var(--ast-global-color-1);
    border: 1px solid var(--ast-global-color-0);
    letter-spacing: normal;
    font-size: 14px;
    transition: 0.2s;
    border-radius:0!important;

    margin-top: 16px;
    display: inline-block;
    text-transform: uppercase;
}

.mec-event-list-standard .mec-event-footer .mec-booking-button:hover,
.mec-load-more-button:hover,
.mec-detail-button:hover {
    background-color: var(--ast-global-color-1);
    color: var(--ast-global-color-0);
    border: 1px solid var(--ast-global-color-0);
    letter-spacing: normal;
    font-size: 14px;
    border-radius:0!important;
}

.mec-event-list-standard .mec-detail-button  {
   padding: 8px 24px;
}

.mec-event-list-standard .mec-event-actividad-label {
    text-transform: uppercase;
    font-size: 18px;
    font-family: var(--mec-heading-font-family), Helvetica, Arial, sans-serif;
    display: inline-block;
    font-weight: 700;
    color: var(--ast-global-color-0);
    margin-bottom: 8px;
}

.mec-gCalendar-filters .mec-gCalendar-filters-wrap .mec-search-reset-button {
    text-align: right;
}

.mec-gCalendar-filters .mec-gCalendar-filters-wrap .mec-search-reset-button .mec-button {
    width: auto;
    padding: 8px 24px;
    background-color: #fff !important;
    color: #767676 !important;
    border: 1px solid #e8e8e8;
    text-transform: capitalize;
    font-size: 13px;
}

.mec-skin-list-container .mec-search-form .mec-sl-clock,
.mec-skin-list-container .mec-search-form .mec-sl-magnifier {
    cursor: pointer;
}

@media only screen and (max-width: 479px) {
    .mec-event-list-standard .mec-col-table-c.mec-event-content-wrap {
        padding: 16px;
    }
}

.agenda-jove-lista-mobile .eic-custom-filters {
    display:none;
}



.mec-single-event .mec-event-export-module.mec-frontbox .mec-event-exporting .mec-export-details ul li:last-child {
    display:none;
}

.mec-single-event .mec-event-export-module.mec-frontbox .mec-event-exporting .mec-export-details {
    text-align: center;
}