.aeu-eventos-widget {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: 0 auto;
}

.aeu-filters {
    background: #f9f9f9;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.aeu-filter-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

.aeu-filter-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 12px;
}

.aeu-filter {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.aeu-apply-filters {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

.aeu-apply-filters:hover {
    background: #005a87;
}

.aeu-calendar-container {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
    align-items: flex-start;
    /* Mantener tamaño fijo durante navegación */
    width: 100%;
    box-sizing: border-box;
}

.aeu-calendar-wrapper {
    flex: 0 0 auto;
    min-width: 200px;
    box-sizing: border-box;
    /* Elementor controlará el ancho vía flex y max-width */
    /* Forzar ancho fijo para evitar cambios dinámicos */
    width: var(--calendar-width, 50%);
}

.aeu-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0073aa;
    color: white;
    padding: 15px;
    border-radius: 5px 5px 0 0;
}

.aeu-nav-arrow {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease;
    /* Heredar exactamente todo del título */
    margin: 0;
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    line-height: inherit;
    color: inherit;
}

.aeu-nav-arrow:hover {
    opacity: 0.7;
}

.current-month {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
}

.aeu-calendar {
    border: 1px solid #ddd;
    border-top: none;
    background: white;
    /* Mantener tamaño fijo */
    table-layout: fixed;
    width: 100%;
}

.aeu-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f5f5f5;
}

.aeu-weekday {
    padding: 10px;
    text-align: center;
    font-weight: bold;
    border-right: 1px solid #ddd;
    font-size: 12px;
}

.aeu-weekday:last-child {
    border-right: none;
}

.aeu-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    /* Mantener tamaño consistente */
    grid-auto-rows: minmax(auto, auto);
}

.aeu-calendar-day {
    min-height: 60px;
    padding: 8px;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    position: relative;
    background: white;
}

.aeu-calendar-day:hover {
    background: #f0f8ff;
}

.aeu-calendar-day.today {
    background: #e0e0e0;
}

.aeu-calendar-day.selected {
    background: #cce7ff;
}

.aeu-calendar-day.other-month {
    color: #ccc;
    background: #f9f9f9;
}

.aeu-calendar-day:last-child {
    border-right: none;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.event-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    /* Mantener altura mínima para consistencia */
    min-height: 12px;
    align-items: flex-start;
}

.event-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #0073aa;
}

.event-dot.tipo-1 { background: #e74c3c; }
.event-dot.tipo-2 { background: #3498db; }
.event-dot.tipo-3 { background: #2ecc71; }
.event-dot.tipo-4 { background: #f39c12; }
.event-dot.tipo-5 { background: #9b59b6; }

.aeu-events-list {
    flex: 0 0 auto;
    min-width: 200px;
    box-sizing: border-box;
    /* Elementor controlará el ancho vía flex y max-width */
    /* Forzar ancho fijo para evitar cambios dinámicos */
    width: var(--events-width, 50%);
}

.aeu-events-list h4,
.aeu-events-header {
    background: #f5f5f5;
    padding: 15px;
    margin: 0 0 10px 0;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.aeu-events-content {
    border: 1px solid #ddd;
    border-top: none;
    min-height: 200px;
    padding: 15px;
    background: white;
    border-radius: 0 0 5px 5px;
}

.aeu-event-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}

.aeu-event-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.aeu-event-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
    color: #333;
}

.aeu-event-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.aeu-event-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 10px;
}

.aeu-event-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.aeu-event-link {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.3s ease;
}

.aeu-event-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.aeu-event-link:first-child {
    background: #28a745;
}

.aeu-event-link:first-child:hover {
    background: #1e7e34;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .aeu-calendar-container {
        flex-direction: column;
    }

    .aeu-filter-group {
        display: block;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .aeu-calendar-day {
        min-height: 40px;
        padding: 4px;
    }

    .event-dot {
        width: 6px;
        height: 6px;
    }
}