/* =====================================================
   Calendario para Elementor — Estilos base
   ===================================================== */

.cea-calendar {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', Arial, sans-serif;
	box-sizing: border-box;
	max-width: 100%;
	overflow: hidden;
}

.cea-calendar *,
.cea-calendar *::before,
.cea-calendar *::after {
	box-sizing: border-box;
}

/* Encabezado */
.cea-cal-header {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 20px;
	border-radius: 14px;
	margin-bottom: 20px;
}

.cea-cal-month-label {
	color: #ffffff;
	letter-spacing: 0.03em;
	text-transform: capitalize;
}

/* Fila de días de la semana */
.cea-cal-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
	margin-bottom: 10px;
}

.cea-weekday {
	text-align: center;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding-bottom: 6px;
}

/* Grid de días */
.cea-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.cea-day {
	position: relative;
	min-height: 84px;
	padding: 10px;
	border-radius: 12px;
	transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.cea-day:not(.cea-day-empty):hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(17, 17, 26, 0.08);
	cursor: default;
}

.cea-day-empty {
	background: transparent !important;
	box-shadow: none !important;
}

.cea-day-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	margin-bottom: 6px;
	width: fit-content;
}

/* Día actual */
.cea-day.is-today .cea-day-number {
	color: #ffffff !important;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	width: 24px;
	height: 24px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cea-day.is-today {
	box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}

/* Días con contenido/eventos */
.cea-day.has-content {
	border-left: 3px solid var(--cea-accent, #6C5CE7);
}

.cea-day-entries {
	display: flex;
	flex-direction: column;
	gap: 4px;
	overflow: hidden;
}

.cea-day-entry {
	overflow: hidden;
}

.cea-day-title {
	color: var(--cea-accent, #6C5CE7);
	line-height: 1.3;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.cea-day-content {
	color: #636e72;
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Responsive */
@media (max-width: 767px) {
	.cea-day {
		min-height: 60px;
		padding: 6px;
		border-radius: 8px;
	}

	.cea-day-content {
		display: none;
	}

	.cea-weekday {
		font-size: 9px;
	}

	.cea-cal-month-label {
		font-size: 18px !important;
	}
}
