/* ================================================
   Feriados Anuales – Calendar Styles v1.1
   ================================================ */

.fa-container {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Encabezado ─────────────────────────────────── */
.fa-cal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 12px;
}

/* ── Leyenda ──────────────────────────────────────  */
.fa-legend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
}

.fa-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #444;
}

.fa-dot {
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	flex-shrink: 0;
}

.fa-inamovible-dot  { background: #4a86c8; }
.fa-trasladable-dot { background: #8ecfb0; }
.fa-no-laborable-dot {
	background: #fff;
	border: 1.5px solid #aaa;
}

/* ── Selector de año ──────────────────────────────  */
.fa-year-selector {
	display: flex;
	gap: 6px;
}

.fa-year-btn {
	padding: 5px 18px;
	border: 1.5px solid #4a86c8;
	background: #fff;
	color: #4a86c8;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s, color 0.15s;
	line-height: 1.6;
}

.fa-year-btn:hover {
	background: #e8f0fa;
}

.fa-year-btn.fa-year-active {
	background: #4a86c8;
	color: #fff;
}

/* ── Grilla de meses ──────────────────────────────  */
.fa-year-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

/* ── Tarjeta de mes ───────────────────────────────  */
.fa-month {
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 12px;
	background: #fff;
}

.fa-month h3 {
	text-align: center;
	margin: 0 0 10px;
	font-size: 15px;
	font-weight: 600;
	color: #222;
}

/* ── Wrapper gris de la tabla ────────────────────  */
.fa-table-wrap {
	background: #f5f6f7;
	border-radius: 5px;
	padding: 4px;
}

/* ── Tabla del calendario ─────────────────────────  */
.fa-month table {
	width: 100%;
	border-collapse: collapse;
}

.fa-month th {
	text-align: center;
	font-size: 11px;
	color: #888;
	padding: 2px 0 4px;
	font-weight: 500;
}

.fa-month td {
	width: 14.28%;
	height: 30px;
	text-align: center;
	vertical-align: middle;
	font-size: 12px;
	padding: 1px;
	border: none;
	color: #333;
}

.fa-month td.fa-event-day {
	cursor: pointer;
}

/* ── Círculo del número de día ────────────────────  */
.fa-day-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
}

.fa-inamovible  .fa-day-num { background: #4a86c8; color: #fff; }
.fa-trasladable .fa-day-num { background: #8ecfb0; color: #2a5a3a; }
.fa-no-laborable .fa-day-num {
	background: #fff;
	border: 1.5px solid #aaa;
	color: #333;
}
.fa-provincial  .fa-day-num { background: #0275d8; color: #fff; }
.fa-asueto      .fa-day-num { background: #7e57c2; color: #fff; }
.fa-otro        .fa-day-num { background: #999;    color: #fff; }

/* ── Listado de feriados bajo cada mes ────────────  */
.fa-month-events {
	list-style: none;
	margin: 10px 0 0;
	padding: 10px 0 0;
	border-top: 1px solid #e3e4e6;
}

.fa-event-item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 5px;
	font-size: 12px;
	line-height: 1.4;
}

.fa-day-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 12px;
	font-weight: 600;
	flex-shrink: 0;
}

.fa-day-badge.fa-inamovible  { background: #4a86c8; color: #fff; }
.fa-day-badge.fa-trasladable { background: #8ecfb0; color: #2a5a3a; }
.fa-day-badge.fa-no-laborable {
	background: #fff;
	border: 1.5px solid #aaa;
	color: #333;
}
.fa-day-badge.fa-provincial  { background: #0275d8; color: #fff; }
.fa-day-badge.fa-asueto      { background: #7e57c2; color: #fff; }
.fa-day-badge.fa-otro        { background: #999;    color: #fff; }

.fa-event-name {
	align-self: center;
	flex: 1;
	color: #333;
}

/* ── Modal ────────────────────────────────────────  */
.fa-modal {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	z-index: 99999;
	justify-content: center;
	align-items: center;
}

.fa-modal-content {
	background: white;
	width: 500px;
	max-width: 90%;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.fa-close {
	float: right;
	cursor: pointer;
	font-size: 24px;
	font-weight: bold;
	line-height: 1;
	color: #666;
}

.fa-close:hover {
	opacity: .7;
}

/* ── Responsive ───────────────────────────────────  */
@media (max-width: 900px) {
	.fa-year-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 580px) {
	.fa-year-grid {
		grid-template-columns: 1fr;
	}

	.fa-cal-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

