/* ============================================================
   WP EVENTOS & COMPETICIONES — Frontend CSS v4.0 
   ============================================================ */

:root {
    --wpe-rojo:      var(--Bot-Competi);
    --wpe-rojo-dark: #c0001f;
    --wpe-verde:     #22c55e;
    --wpe-naranja:   #f97316;
    --wpe-gris:      #6b7280;
    --wpe-gris-claro:#f3f4f6;
    --wpe-borde:     #e5e7eb;
    --wpe-texto:     #111827;
    --wpe-texto-sec: #4b5563;
    --wpe-fondo:     #f9fafb;
    --wpe-blanco:    #ffffff;
    --wpe-radio:     8px;
    --wpe-sombra:    0 1px 2px rgba(0,0,0,0.04);
}

/* ── RESET / BASE ── */
#wpe-app, #wpe-app * { box-sizing: border-box; }
#wpe-app { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
#wpe-app a, #wpe-app a:hover, #wpe-app a:visited, #wpe-app a:focus { text-decoration: none; color: inherit; }

/* ── WRAPPER GENERAL ── */
/* Antes tenía max-width: 900px fijo, ignorando el ancho real del contenedor
   de Elementor donde se coloque el shortcode. Ahora ocupa el 100% de lo
   que le dé el contenedor (el propio Elementor ya controla el ancho real). */
#wpe-app.wpe-completo,
#wpe-app.wpe-lista-standalone,
#wpe-app.wpe-inscripcion-wrap,
#wpe-app.wpe-en-directo-wrap {
    max-width: 100%;
    margin: 0 auto;
    padding: 16px 0 32px;
}

/* ── BARRA DE FILTROS PROPIA ── */
.wpe-filtros-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: var(--wpe-blanco);
    border: 1px solid var(--wpe-borde);
    border-radius: var(--wpe-radio);
}
.wpe-filtro-input,
.wpe-filtro-select {
    padding: 8px 12px;
    border: 1px solid var(--wpe-borde);
    border-radius: 6px;
    font-size: 13px;
    color: var(--wpe-texto);
    background: var(--wpe-blanco);
}
.wpe-filtro-input { flex: 1 1 200px; min-width: 160px; }
.wpe-filtro-select { flex: 1 1 160px; }
.wpe-filtro-btn {
    background: var(--wpe-rojo)!important;
    color: #fff;
    border: none;
    border-radius: 6px!important;
    padding: 8px 18px!important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wpe-filtro-btn:hover { background: var(--wpe-rojo-dark); }
.wpe-filtro-clear {
    font-size: 12px;
    font-weight: 600;
    color: var(--wpe-gris);
    text-decoration: underline;
    white-space: nowrap;
}
.wpe-filtro-clear:hover { color: var(--wpe-rojo); }
.wpe-filtros-form--compact { padding: 10px 14px; }

/* ── INSCRIPCIONES (2 bloques fijos, sin filtros) ── */
.wpe-inscripcion-wrap { display: flex; flex-direction: column; gap: 24px; }
.wpe-inscripcion-header {
    font-size: 16px;
    font-weight: 800;
    color: var(--wpe-texto);
    margin: 0 0 10px;
}

/* ── CALENDARIO POPUP ── */
.wpe-cal-popup-wrapper { position: relative; margin-bottom: 12px; }
.wpe-cal-popup-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wpe-rojo)!important;
    color: #fff;
    border: none;
    border-radius: 6px!important;
    padding: 8px 14px!important;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wpe-cal-popup-toggle:hover { background: var(--wpe-rojo-dark); }
.wpe-cal-toggle-arrow { transition: transform 0.2s; }
.wpe-cal-popup-wrapper.open .wpe-cal-toggle-arrow { transform: rotate(180deg); }

.wpe-cal-popup-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 100;
    background: var(--wpe-blanco);
    border-radius: var(--wpe-radio);
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 3px;
    min-width: 300px;
}
.wpe-cal-popup-panel::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 20px;
    width: 10px;
    height: 10px;
    background: var(--wpe-blanco);
    transform: rotate(45deg);
    border-radius: 2px;
}

/* ── CALENDARIO INTERNO ── */
.wpe-cal-box { background: #fff; border-radius: 6px; padding: 12px; }
.wpe-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.wpe-cal-titulo { font-size: 14px; font-weight: 700; color: var(--wpe-texto); }
.wpe-cal-prev, .wpe-cal-next {
    background: none!important; border: none!important; cursor: pointer!important;
    font-size: 18px!important; color: var(--wpe-gris)!important; line-height: 1!important;
    padding: 2px 6px!important; border-radius: 4px!important; transition: background 0.15s!important;
}
.wpe-cal-prev:hover, .wpe-cal-next:hover { background: var(--wpe-gris-claro)!important; }
.wpe-cal-cabecera { display: grid; grid-template-columns: repeat(7,1fr); text-align: center; margin-bottom: 3px; }
.wpe-cal-cabecera span { font-size: 9px; font-weight: 700; color: var(--wpe-gris); padding: 2px 0; text-transform: uppercase; }
.wpe-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }

.wpe-cal-dia {
    position: relative; aspect-ratio: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500;
    border-radius: 4px; color: var(--wpe-texto);
    background: transparent; transition: background 0.1s;
    cursor: default;
}
.wpe-cal-dia.vacio-nav { color: #d1d5db; cursor: pointer; }
.wpe-cal-dia.vacio-nav:hover { background: var(--wpe-gris-claro); }
.wpe-cal-dia.hoy { background: var(--wpe-rojo); color: #fff; font-weight: 700; border-radius: 6px; }
.wpe-cal-dia.tiene-evento { background: var(--wpe-rojo); color: #fff; font-weight: 700; border-radius: 6px; cursor: pointer; }
.wpe-cal-dia.tiene-evento:hover { background: var(--wpe-rojo-dark); }
.wpe-cal-dia.activo { background: var(--wpe-rojo-dark); color: #fff; outline: 2px solid rgba(230,0,38,0.25); outline-offset: 1px; }

/* Popup día */
.wpe-popup {
    position: absolute; background: #fff;
    border: 1px solid var(--wpe-borde);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 10px 12px; z-index: 9999;
    min-width: 180px; max-width: 240px;
}
.wpe-popup-titulo { font-size: 10px; font-weight: 700; color: var(--wpe-gris); margin: 0 0 6px; text-transform: uppercase; letter-spacing: 0.05em; }
.wpe-popup-item { display: flex; align-items: flex-start; gap: 6px; padding: 4px 0; border-bottom: 1px solid var(--wpe-gris-claro); }
.wpe-popup-item:last-child { border: none; padding-bottom: 0; }
.wpe-popup-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; display: block; }
.wpe-popup-item a { font-size: 12px; color: var(--wpe-texto); line-height: 1.3; }
.wpe-popup-item a:hover { color: var(--wpe-rojo); }

/* ── MES GRUPO ── */
.wpe-mes-grupo { margin-bottom: 1%; }
.wpe-mes-header {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    background: var(--wpe-rojo)!important; color: #fff;
    border: none; padding: 10px 16px!important;
    font-size: 14px; font-weight: 700;
    border-radius: 8px; cursor: pointer;
    transition: background 0.15s; text-align: left;
    margin-bottom: 0;
}
.wpe-mes-header:hover { background: var(--wpe-rojo-dark); }
.wpe-chevron { transition: transform 0.2s; flex-shrink: 0; width: 18px; height: 18px; }
.wpe-mes-grupo.collapsed .wpe-chevron { transform: rotate(-90deg); }
.wpe-mes-grupo.collapsed .wpe-mes-body { display: none; }

/* ── FILA EVENTO (ajustado a imagen) ── */
.wpe-fila-evento {
    display: grid;
    grid-template-columns: 52px 1fr 100px 130px 110px;
    gap: 0 16px;
    align-items: center;
    padding: 14px 16px;
    background: var(--wpe-blanco);
    border-bottom: 1px solid var(--wpe-borde);
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}
.wpe-fila-evento:hover { background: var(--wpe-fondo); }
.wpe-mes-body > .wpe-fila-evento:first-child { border-top: 1px solid var(--wpe-borde); }

/* Fecha */
.wpe-fila-fecha {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    min-width: 52px;
}
.wpe-fila-fecha .wpe-mes {
    font-size: 9px;
    font-weight: 800;
    color: var(--wpe-gris);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.wpe-fila-fecha .wpe-dias {
    font-size: 15px;
    font-weight: 700;
    color: var(--wpe-texto);
    margin-top: 1px;
}

/* Info central */
.wpe-fila-info {
    min-width: 0;
    overflow: hidden;
}
.wpe-fila-titulo {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--wpe-texto);
    line-height: 1.3;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wpe-fila-evento:hover .wpe-fila-titulo { color: var(--wpe-rojo); }

.wpe-fila-sede {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--wpe-gris);
}
.wpe-fila-sede svg {
    width: 11px;
    height: 11px;
    color: var(--wpe-gris);
    flex-shrink: 0;
}

/* Badges (ocultos por defecto, se muestran si existen) */
.wpe-fila-badges { display: block; }

.wpe-fila-sede { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--wpe-gris); margin-bottom: 3px; }
.wpe-fila-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.wpe-tag { display: inline-block; font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }
.wpe-tag--comite { background: #e8f0fb; color: var(--wpe-rojo); }
.wpe-tag--fed    { background: #e6f0f4; color: var(--wpe-texto); }
.wpe-tag--no-gestionada { background: #fff3cd; color: #8a6100; font-weight: 700; }

/* Estado */
.wpe-fila-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 20px;
    white-space: nowrap;
    justify-self: center;
}

/* Ganador */
.wpe-fila-ganador {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.wpe-fila-ganador[style*="hidden"] {
    visibility: hidden;
}
.wpe-ganador-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--wpe-gris-claro);
}
.wpe-ganador-avatar--placeholder {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wpe-gris-claro);
    flex-shrink: 0;
}
.wpe-ganador-label {
    display: block;
    font-size: 9px;
    color: var(--wpe-gris);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 1px;
}
.wpe-ganador-nombre {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--wpe-texto);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

/* CTA */
.wpe-fila-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--wpe-texto-sec);
    white-space: nowrap;
    text-align: right;
    transition: color 0.15s;
}
.wpe-fila-evento:hover .wpe-fila-cta { color: var(--wpe-rojo); }

/* Responsive */
@media (max-width: 768px) {
    .wpe-fila-evento {
        grid-template-columns: 48px 1fr 84px 100px;
        gap: 0 10px;
        padding: 12px;
    }
    .wpe-fila-ganador { display: none; }
    .wpe-fila-cta { font-size: 11px; }
}
@media (max-width: 520px) {
    .wpe-fila-evento {
        grid-template-columns: 44px 1fr 76px;
        gap: 0 8px;
    }
    .wpe-fila-estado { font-size: 9px; padding: 3px 6px; }
    .wpe-fila-cta { display: none; }
    .wpe-fila-titulo { font-size: 13px; }
}

/* ── SIN RESULTADOS ── */
.wpe-no-resultados {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 40px 20px;
    text-align: center;
}
.wpe-no-resultados svg { opacity: 0.25; color: var(--wpe-gris); }
.wpe-no-resultados p { font-size: 15px; font-weight: 600; color: var(--wpe-texto); margin: 0; }
.wpe-no-resultados span { font-size: 13px; color: var(--wpe-gris); }

/* ── FICHA INDIVIDUAL ── */
.wpe-ficha { max-width: 100%; margin: 0 auto; }
.wpe-ficha-golfbox { max-width: 900px; margin: 20px auto 0; }

/* Fases de competición: pestañas a la izquierda + embed de GolfBox */
.wpe-fases-wrap {
    display: flex;
    gap: 12px;
    align-items: stretch;
}
.wpe-fases-tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 0 220px;
}
/* !important en todo el bloque: es un <button>, y muchos temas/Elementor
   aplican sus propios estilos globales a "button" con más especificidad
   que una clase sola — sin esto, el tema gana y sale negro/sin formato. */
.wpe-fase-tab {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    width: 100% !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    background: var(--wpe-gris-claro) !important;
    border: 1px solid var(--wpe-borde) !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    text-align: left !important;
    font-family: inherit !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    box-shadow: none !important;
    transition: background 0.15s, border-color 0.15s;
}
.wpe-fase-tab:not(.wpe-fase-tab--active):hover { background: #eceef0 !important; }
.wpe-fase-tab--active {
    background: var(--wpe-rojo) !important;
    border-color: var(--wpe-rojo) !important;
}
.wpe-fase-tab--active:hover { background: var(--wpe-rojo-dark) !important; }
.wpe-fase-tab-num {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--wpe-texto) !important;
    white-space: normal !important;
    word-break: break-word !important;
}
.wpe-fase-tab--active .wpe-fase-tab-num { color: #fff !important; }
.wpe-fase-tab-fecha {
    display: block !important;
    font-size: 10px !important;
    color: var(--wpe-gris) !important;
    white-space: nowrap !important;
}
.wpe-fase-tab--active .wpe-fase-tab-fecha { color: rgba(255,255,255,0.85) !important; }

.wpe-fases-embed { flex: 1; min-width: 0; }

@media (max-width: 640px) {
    .wpe-fases-wrap { flex-direction: column; }
    .wpe-fases-tabs { flex-direction: row; flex-wrap: wrap; flex: 0 0 auto; }
    .wpe-fase-tab { flex: 1 1 auto; align-items: center; }
}

/* Popup de inscripción (iframe) */
.wpe-modal-inscripcion {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
.wpe-modal-inscripcion--open { display: flex; }
.wpe-modal-inscripcion-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}
.wpe-modal-inscripcion-box {
    position: relative;
    width: min(920px, 92vw);
    height: min(720px, 88vh);
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.wpe-modal-inscripcion-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--wpe-borde);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpe-modal-inscripcion-close:hover { background: var(--wpe-gris-claro); }
.wpe-modal-inscripcion-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Indicador de carga mientras el iframe de inscripción no ha terminado de cargar */
.wpe-modal-inscripcion-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 1;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.wpe-modal-inscripcion--loading .wpe-modal-inscripcion-loading { display: flex; }
.wpe-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--wpe-gris-claro);
    border-top-color: var(--wpe-rojo);
    animation: wpe-spin 0.8s linear infinite;
}
@keyframes wpe-spin {
    to { transform: rotate(360deg); }
}
.wpe-ficha * { box-sizing: border-box; }
.wpe-ficha a, .wpe-ficha a:hover { text-decoration: none; }

.wpe-ficha-hero {
    width: 100%; height: 260px;
    background: #1f2937 center/cover no-repeat;
    border-radius: 10px; position: relative; overflow: hidden;
}
.wpe-ficha-hero-inner {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.05) 60%);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px 24px;
}
.wpe-ficha-hero-inner h1 { color: #fff; font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; }
.wpe-ficha-sede { color: rgba(255,255,255,0.8); font-size: 13px; margin: 0; display: flex; align-items: center; gap: 4px; }

.wpe-ficha-hero-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.wpe-ficha-tags-info { margin: 12px 0 0; }

/* Panel flotante del hero: estado + fechas, arriba a la derecha de la foto */
.wpe-ficha-hero-panel {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.wpe-ficha-hero-estado {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid;
}
.wpe-ficha-hero-estado i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.wpe-ficha-hero-estado--clickable { cursor: pointer; transition: transform 0.15s; }
.wpe-ficha-hero-estado--clickable:hover { transform: scale(1.04); }

.wpe-ficha-hero-fechas {
    background: #fff;
    border-radius: 8px;
    padding: 8px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 160px;
}
.wpe-ficha-hero-fechas div { display: flex; flex-direction: column; gap: 1px; }
.wpe-ficha-hero-fechas span { font-size: 9px; color: var(--wpe-gris); text-transform: uppercase; letter-spacing: 0.03em; }
.wpe-ficha-hero-fechas strong { font-size: 12px; font-weight: 700; color: var(--wpe-texto); }

/* Descripción: ahora texto plano bajo el título, sobre la foto de cabecera */
.wpe-ficha-hero-inner .wpe-ficha-descripcion {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 8px;
    max-height: 4.5em;
    overflow: hidden;
}

/* Tabs */
.wpe-ficha-tabs {
    display: flex;
    border-bottom: 3px solid var(--wpe-rojo);
    margin: 20px 0 16px;
    flex-wrap: wrap;
    gap: 2px;
}
.wpe-tab {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    background: #4b5563;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 6px 6px 0 0;
    transition: background 0.15s;
}
.wpe-tab:hover { background: #6b7280; }
.wpe-tab--active { background: var(--wpe-rojo); }
.wpe-tab--active:hover { background: var(--wpe-rojo-dark); }

/* Pestaña "Inscríbete": separada a la derecha (abre popup, no cambia de panel) */
.wpe-tab--inscripcion {
    margin-left: auto;
    background: var(--wpe-rojo);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.wpe-tab--inscripcion:hover { background: var(--wpe-rojo-dark); }
.wpe-tab--inscripcion, .wpe-tab--inscripcion:hover, .wpe-tab--inscripcion:visited { color: #fff !important; }

/* Tab panels */
.wpe-tab-panel { display: none; }
.wpe-tab-panel--active { display: block; }

.wpe-ficha-body { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }

.wpe-ficha-card {
    background: #fff;
    border: 1px solid var(--wpe-borde);
    border-radius: var(--wpe-radio);
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: var(--wpe-sombra);
}
.wpe-ficha-card h2 { font-size: 14px; font-weight: 700; color: var(--wpe-texto); margin: 0 0 12px; }

.wpe-ficha-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--wpe-borde);
    border: 1px solid var(--wpe-borde);
    border-radius: 6px;
    overflow: hidden;
}
.wpe-ficha-dato { background: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.wpe-ficha-dato span { font-size: 10px; color: var(--wpe-gris); text-transform: uppercase; letter-spacing: 0.03em; }
.wpe-ficha-dato strong { font-size: 13px; font-weight: 600; color: var(--wpe-texto); }
@media (max-width: 480px) { .wpe-ficha-grid { grid-template-columns: 1fr; } }

.wpe-ficha-contenido { font-size: 14px; line-height: 1.65; color: var(--wpe-texto-sec); }

/* Estado pill */
.wpe-ficha-estado-card { text-align: center; }
.wpe-estado-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    border: 1.5px solid;
    margin-bottom: 12px;
}
.wpe-estado-pill i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; flex-shrink: 0; font-style: normal; }

.wpe-ficha-side-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0;
    border-top: 1px solid var(--wpe-borde);
}
.wpe-ficha-side-meta span { font-size: 10px; color: var(--wpe-gris); text-transform: uppercase; }
.wpe-ficha-side-meta strong { font-size: 13px; font-weight: 600; color: var(--wpe-texto); }

/* Campo card */
.wpe-ficha-campo-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.wpe-ficha-campo-card p { font-size: 12px; color: var(--wpe-gris); margin: 0; }

.wpe-ficha-campo-img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; margin-bottom: 8px; }
.wpe-ficha-campo-nombre { font-size: 14px; font-weight: 700; color: var(--wpe-texto); margin: 0 0 3px; }
.wpe-ficha-campo-sede { font-size: 12px; color: var(--wpe-gris); margin: 0; }

/* Empty */
.wpe-empty { color: var(--wpe-gris); font-size: 14px; padding: 20px 0; text-align: center; }
.wpe-hidden { display: none !important; }

/* Circular */
.wpe-circular-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--wpe-borde);
    border-radius: 10px;
    padding: 16px;
    box-shadow: var(--wpe-sombra);
}
.wpe-circular-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpe-gris);
}
.wpe-circular-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wpe-circular-fecha { font-size: 12px; font-weight: 600; color: #2563eb; }
.wpe-circular-titulo { font-size: 16px; font-weight: 800; color: var(--wpe-texto); margin: 0; }
.wpe-circular-actions { display: flex; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.wpe-circular-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}
.wpe-circular-btn--ver {
    background: #eafaf1;
    color: #1a9c5c;
    border: 1px solid #b8ecd1;
}
.wpe-circular-btn--ver:hover { background: #d7f5e5; }
.wpe-resultados-pdf-link {
    margin-bottom: 16px;
    background: var(--wpe-rojo);
    color: #fff;
    border: none;
}
.wpe-resultados-pdf-link:hover { background: var(--wpe-rojo-dark); color: #fff; }

/* Noticias relacionadas — línea de tiempo */
.wpe-noticias-timeline { display: flex; flex-direction: column; }

.wpe-noticia-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 20px;
    position: relative;
}
.wpe-noticia-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 40px;
    bottom: 0;
    width: 1px;
    background: var(--wpe-borde);
}

.wpe-noticia-fecha-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    width: 40px;
    z-index: 1;
}
.wpe-noticia-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1.5px solid var(--wpe-borde);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--wpe-gris);
    flex-shrink: 0;
}
.wpe-noticia-fecha-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--wpe-texto-sec);
    white-space: nowrap;
}

.wpe-noticia-card {
    display: flex;
    gap: 16px;
    background: #fff;
    border: 1px solid var(--wpe-borde);
    border-radius: 10px;
    padding: 14px;
    box-shadow: var(--wpe-sombra);
    flex: 1;
    min-width: 0;
}
.wpe-noticia-img {
    width: 160px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: var(--wpe-gris-claro);
}
.wpe-noticia-img--placeholder { width: 160px; height: 130px; }

.wpe-noticia-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wpe-noticia-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--wpe-gris);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wpe-noticia-fecha-card { font-size: 12px; color: var(--wpe-gris); margin-bottom: 4px; }
.wpe-noticia-titulo-timeline {
    font-size: 15px;
    font-weight: 800;
    color: var(--wpe-texto);
    text-transform: uppercase;
    line-height: 1.3;
    margin: 0 0 12px;
}
.wpe-noticia-btn {
    display: inline-flex;
    align-self: flex-start;
    /* El color/borde los da la clase btn-color-actualidad del tema */
}

@media (max-width: 520px) {
    .wpe-noticia-card { flex-direction: column; }
    .wpe-noticia-img, .wpe-noticia-img--placeholder { width: 100%; height: 160px; }
}
