/* ── El Radar – Próximos Eventos: Widget + Shortcode ── */

/* ════════════════════════════════════════════
   SHORTCODE [elradar_todos_eventos]
   ════════════════════════════════════════════ */

.elradar-sc-wrap {
    width: 100%;
}

.elradar-sc-mes {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #c00;
    margin: 2rem 0 1rem;
    padding-bottom: 6px;
    border-bottom: 2px solid #c00;
}

.elradar-sc-grid {
    display: grid;
    gap: 20px;
    margin-bottom: 8px;
}

.elradar-sc-cols-2 .elradar-sc-grid { grid-template-columns: repeat(2, 1fr); }
.elradar-sc-cols-3 .elradar-sc-grid { grid-template-columns: repeat(3, 1fr); }
.elradar-sc-cols-4 .elradar-sc-grid { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .elradar-sc-cols-4 .elradar-sc-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
    .elradar-sc-cols-2 .elradar-sc-grid,
    .elradar-sc-cols-3 .elradar-sc-grid,
    .elradar-sc-cols-4 .elradar-sc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 440px) {
    .elradar-sc-cols-2 .elradar-sc-grid,
    .elradar-sc-cols-3 .elradar-sc-grid,
    .elradar-sc-cols-4 .elradar-sc-grid { grid-template-columns: 1fr; }
}

.elradar-sc-card {
    border: 1px solid #e2e2e2;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.15s, transform 0.15s;
}

.elradar-sc-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.elradar-sc-card-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f5f5f5;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.elradar-sc-card-img a,
.elradar-sc-card-img span {
    display: block;
    width: 100%;
    height: 100%;
}

.elradar-sc-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    display: block;
}

.elradar-sc-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: #eee;
}

.elradar-sc-card-body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.elradar-sc-fecha {
    font-size: 11px;
    font-weight: 700;
    color: #c00;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.elradar-sc-nombre {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: #1a1a1a;
    margin: 2px 0 0;
}

.elradar-sc-nombre a,
.elradar-sc-nombre span { color: inherit; text-decoration: none; }
.elradar-sc-nombre a:hover { color: #c00; }

.elradar-sc-lugar {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.elradar-sc-btn {
    display: inline-block;
    margin-top: auto;
    padding-top: 10px;
    font-size: 11px;
    font-weight: 700;
    color: #c00;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.elradar-sc-btn:hover { text-decoration: underline; }

.elradar-sc-empty {
    color: #999;
    font-style: italic;
}

/* ════════════════════════════════════════════
   WIDGET sidebar
   ════════════════════════════════════════════ */

.widget_elradar_eventos_widget .elradar-eventos-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget_elradar_eventos_widget .elradar-evento-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e8e8e8;
}

.widget_elradar_eventos_widget .elradar-evento-item:last-child {
    border-bottom: none;
}

.widget_elradar_eventos_widget .elradar-evento-img {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
}

.widget_elradar_eventos_widget .elradar-evento-img img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: #f5f5f5;
    display: block;
}

.widget_elradar_eventos_widget .elradar-evento-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.widget_elradar_eventos_widget .elradar-evento-fecha {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.widget_elradar_eventos_widget .elradar-evento-nombre {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.widget_elradar_eventos_widget .elradar-evento-nombre a {
    color: inherit;
    text-decoration: none;
}

.widget_elradar_eventos_widget .elradar-evento-nombre a:hover {
    color: #c00;
}

.widget_elradar_eventos_widget .elradar-evento-lugar {
    font-size: 11px;
    color: #999;
    line-height: 1.3;
}

.widget_elradar_eventos_widget .elradar-no-events {
    color: #999;
    font-size: 13px;
    margin: 0;
}

.widget_elradar_eventos_widget .elradar-ver-mas {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}

.widget_elradar_eventos_widget .elradar-ver-mas:hover {
    background: #f0f0f0;
    color: #222;
}
