/*  ****************   SHORTCODE: [lista_eventos_v2]   ***********************/
   

.zd-evb-wrap {
    padding: 10px 0;
}

.zd-evb-card {
    display: block;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none !important;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.zd-evb-card:hover {
    transform: scale(1.02);
    border: 1px solid #00000014;
    z-index: 1;
    background: white;
}

.zd-evb-card:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.zd-evb-inner {
    display: grid;
    grid-template-columns: 64px 251px 1fr;
    gap: 0;
    align-items: start;
    padding-block: 1.7rem;
    padding-inline: 1rem;
}

/* Fecha */
.zd-evb-fecha {
    padding-right: 1.25rem;
    padding-top: 4px;
    text-align: left;
}

.zd-evb-mes {
    font-size: 16px;
    color: #6ec1e4;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.zd-evb-dia {
    font-size: 38px;
    font-weight: 300;
    color: #0a1628;
    line-height: 1;
    margin-bottom: 2px;
}

.zd-evb-anyo {
    font-size: 11px;
    color: #999;
}

/* Imagen */
.zd-evb-img-wrap {
    width: 251px;
    height: 209px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.zd-evb-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
}

.zd-evb-img-placeholder {
    width: 100%;
    height: 100%;
        width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #edfbff 0%, #b7d5ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zd-evb-img-placeholder::after {
    content: '';
    display: block;
    width: 60%;
    height: 100%;
    background: url("https://www.zaindatanext.eu/wp-content/uploads/2026/05/ZaindataNext-logo-2.png") center/contain no-repeat;
}


/* BODY */
.zd-evb-body {
    padding: 0 0 0 5.5rem;
}

.zd-evb-lugar {
    font-size: 12px;
    color: #1a9fe0;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.zd-evb-titulo {
    font-size: 29px !important;
    font-weight: 600 !important;
    color: #0a1628 !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.3 !important;
}

.zd-evb-subtitulo {
    font-size: 18px !important;
    color: #555 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.6 !important;
}

.zd-evb-colab-label {
    font-size: 12px;
    color: #888;
    margin: 0 0 8px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zd-evb-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 14px;
}

.zd-evb-logos img {
    max-height: 54px !important;
    max-width: 121px !important;
    width: auto !important;
    object-fit: contain;
}

.zd-evb-link {
    position: absolute;
    bottom: 0;
    right: 0;
    top: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    background: #6ec1e4;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 0 6px 6px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.zd-evb-link svg {
    stroke: #fff;
    transition: transform 0.2s ease;
}

.zd-evb-card:hover .zd-evb-link {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.zd-evb-card:hover .zd-evb-link svg {
    transform: translateX(4px);
}

@media (max-width: 680px) {
    .zd-evb-inner {
        grid-template-columns: 56px 1fr;
        grid-template-rows: auto auto;
    }

    .zd-evb-img-wrap {
        grid-column: 1 / -1;
        width: 100%;
        height: 180px;
        margin-bottom: 12px;
        margin-left: 0;
    }

    .zd-evb-body {
        grid-column: 2 / -1;
        padding-left: 0.75rem;
    }

    .zd-evb-link {
        position: static;
        display: inline-flex;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
        color: #1a9fe0 !important;
        padding: 0;
        border-radius: 0;
        margin-top: 12px;
    }

    .zd-evb-link svg {
        stroke: #1a9fe0;
    }
}


/*  ****************   SHORTCODE: [historial_eventos] ***********************/

/* Filtros */
.zd-hist-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    align-items: center;
}

.zd-hist-filtros select {
    padding: 8px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    color: #0a1628;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.zd-hist-filtros select:focus {
    outline: none;
    border-color: #1a9fe0;
}

.zd-hist-reset {
    font-size: 13px;
    color: #1a9fe0;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

.zd-hist-count {
    font-size: 13px;
    color: #999;
    margin-left: auto;
}

.zd-hist-empty {
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 15px;
    display: none;
}

/* Cards */
.zd-ev2-wrap {
    padding: 10px 0;
}

.zd-ev2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.zd-ev2-card {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.10);
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zd-ev2-card:hover {
    transform: translateY(-5px);
    
}


.zd-ev2-imagen {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0a1628;
    overflow: hidden;
}

.zd-ev2-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.zd-ev2-imagen-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #edfbff 0%, #b7d5ea 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.zd-ev2-imagen-placeholder::after {
    content: '';
    display: block;
    width: 60%;
    height: 100%;
    background: url("https://www.zaindatanext.eu/wp-content/uploads/2026/05/ZaindataNext-logo-2.png") center/contain no-repeat;
}


.zd-ev2-fecha-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #6EC1E4;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.zd-ev2-fecha-badge--pasado {
    background: #888;
}

.zd-ev2-card--pasado .zd-ev2-imagen img {
    filter: grayscale(50%);
    opacity: 0.85;
}

.zd-ev2-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.zd-ev2-lugar {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 8px 0;
}

.zd-ev2-titulo {
    color: #0a1628 !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}

.zd-ev2-subtitulo {
    color: #555 !important;
    font-size: 14px !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
    flex: 1;
}

.zd-ev2-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.zd-ev2-logos img {
    max-height: 36px !important;
    max-width: 90px !important;
    width: auto !important;
    object-fit: contain;
}

.zd-ev2-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a9fe0 !important;
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
}


/* ******************** PLANTILLA EVENTO ********************* */

body.single-eventos .page-content {
    padding-top: 0;
}

.zds-evento {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 72px;
}

/* Cabecera */
.zds-evento-header {
    margin-bottom: 32px;
}

.zds-evento-header h1 {
    font-size: clamp(28px, 4vw, 40px) !important;
    color: #0a1628 !important;
    line-height: 1.2 !important;
    margin: 0 0 12px !important;
}

.zds-evento-subtitulo {
    font-size: 18px;
    color: #1a9fe0;
    margin: 0 0 20px;
    line-height: 1.5;
}

.zds-evento-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 24px;
    color: #556070;
    font-size: 14px;
    margin-bottom: 4px;
}

.zds-evento-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.zds-evento-meta svg {
    width: 15px;
    height: 15px;
    stroke: #1a9fe0;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.zds-ev-pasado-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 2px 8px;
    margin-bottom: 16px;
}

/* Imagen destacada */
.zds-evento-imagen {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin: 28px 0 40px;
    line-height: 0;
}

.zds-evento-imagen img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 460px;
    object-fit: cover;
}

/* Contenido */
.zds-evento-contenido {
    font-size: 16px;
    line-height: 1.85;
    color: #2a3a4a;
    margin-bottom: 48px;
}

.zds-evento-contenido p {
    margin-bottom: 1.4em;
}

.zds-evento-contenido h2,
.zds-evento-contenido h3 {
    color: #0a1628;
}

/* Separador */
.zds-sep {
    border: none;
    border-top: 1px solid #e3ecf4;
    margin: 0 0 40px;
}

/* Colaboradores */
.zds-colab-titulo {
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: #556070 !important;
    margin: 0 0 20px !important;
}

.zds-colab-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 48px;
}

.zds-colab-logos img {
    max-height: 44px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: opacity 0.2s, filter 0.2s;
}

.zds-colab-logos img:hover {
    opacity: 1;
    filter: none;
}

/* Volver */
.zds-volver {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #1a9fe0 !important;
    text-decoration: none !important;
    font-weight: 500;
}

.zds-volver:hover {
    text-decoration: underline !important;
}

.zds-volver svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}



