/*!
 * JR Horario de Atención - v1.0.0
 * Estilos theme-proof para el shortcode [horario_atencion]
 */

.jr-hours {
	--jr-accent: #2563eb;
	--jr-accent-soft: rgba(37, 99, 235, 0.09);
	--jr-text: #111827;
	--jr-muted: #6b7280;
	--jr-border: #e5e7eb;
	--jr-bg: #ffffff;
	--jr-hover: #f9fafb;

	position: relative !important;
	display: inline-block !important;
	vertical-align: middle !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
	             "Helvetica Neue", Arial, sans-serif !important;
	line-height: 1 !important;
	text-align: left !important;
}

.jr-hours,
.jr-hours *,
.jr-hours *::before,
.jr-hours *::after {
	box-sizing: border-box !important;
}

/* ---------- Pill trigger ---------- */
.jr-hours .jr-hours__trigger {
	display: inline-flex !important;
	align-items: center !important;
	gap: 9px !important;
	width: auto !important;
	min-width: 0 !important;
	max-width: none !important;
	min-height: 0 !important;
	height: auto !important;
	margin: 0 !important;
	padding: 8px 12px 8px 13px !important;
	background: var(--jr-bg) !important;
	background-image: none !important;
	border: 1px solid var(--jr-border) !important;
	border-radius: 999px !important;
	box-shadow: none !important;
	text-shadow: none !important;
	font-family: inherit !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	color: var(--jr-text) !important;
	line-height: 1 !important;
	letter-spacing: -0.005em !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-align: left !important;
	white-space: nowrap !important;
	cursor: pointer !important;
	user-select: none !important;
	-webkit-user-select: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	appearance: none !important;
	outline: none !important;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease !important;
}
.jr-hours .jr-hours__trigger:hover,
.jr-hours:focus-within .jr-hours__trigger,
.jr-hours.is-open .jr-hours__trigger {
	border-color: #d1d5db !important;
	background: #fafafa !important;
}
.jr-hours .jr-hours__trigger:focus-visible {
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

/* ---------- Punto de estado ---------- */
.jr-hours .jr-hours__dot {
	width: 7px !important;
	height: 7px !important;
	border-radius: 50% !important;
	position: relative !important;
	flex-shrink: 0 !important;
	display: inline-block !important;
	margin: 0 !important;
	padding: 0 !important;
}
.jr-hours .jr-hours__dot--open   { background: #10b981 !important; }
.jr-hours .jr-hours__dot--closed { background: #ef4444 !important; }
.jr-hours .jr-hours__dot--open::after {
	content: '' !important;
	position: absolute !important;
	inset: 0 !important;
	border-radius: 50% !important;
	background: #10b981 !important;
	animation: jr-pulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite !important;
}
@keyframes jr-pulse {
	0%   { transform: scale(1);   opacity: 0.6; }
	100% { transform: scale(2.8); opacity: 0;   }
}

/* ---------- Label ---------- */
.jr-hours .jr-hours__label {
	display: inline !important;
	margin: 0 !important;
	padding: 0 !important;
	color: inherit !important;
	font: inherit !important;
}
.jr-hours .jr-hours__label-strong {
	font-weight: 600 !important;
	color: var(--jr-text) !important;
}
.jr-hours .jr-hours__label-muted {
	color: var(--jr-muted) !important;
	font-weight: 400 !important;
	margin-left: 2px !important;
}

/* ---------- Chevron ---------- */
.jr-hours .jr-hours__chevron {
	width: 10px !important;
	height: 10px !important;
	opacity: 0.55 !important;
	transition: transform 0.3s ease !important;
	flex-shrink: 0 !important;
	margin-left: 1px !important;
	display: inline-block !important;
}
.jr-hours:hover .jr-hours__chevron,
.jr-hours:focus-within .jr-hours__chevron,
.jr-hours.is-open .jr-hours__chevron {
	transform: rotate(180deg) !important;
}

/* ---------- Panel ---------- */
.jr-hours .jr-hours__panel {
	position: absolute !important;
	top: calc(100% + 8px) !important;
	left: 0 !important;
	right: auto !important;
	min-width: 100% !important;
	width: max-content !important;
	max-width: 320px !important;
	margin: 0 !important;
	padding: 6px !important;
	background: var(--jr-bg) !important;
	background-image: none !important;
	border: 1px solid var(--jr-border) !important;
	border-radius: 12px !important;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px) scale(0.98);
	transform-origin: top left;
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
	z-index: 100 !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08),
	            0 2px 6px rgba(0, 0, 0, 0.04) !important;
	text-align: left !important;
}
.jr-hours .jr-hours__panel::before {
	content: '' !important;
	position: absolute !important;
	top: -8px !important;
	left: 0 !important;
	right: 0 !important;
	height: 8px !important;
	background: transparent !important;
}
.jr-hours:hover .jr-hours__panel,
.jr-hours:focus-within .jr-hours__panel,
.jr-hours.is-open .jr-hours__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0) scale(1);
	transition: opacity 0.22s ease,
	            transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
	            visibility 0s;
}
.jr-hours.jr-hours--align-right .jr-hours__panel {
	left: auto !important;
	right: 0 !important;
	transform-origin: top right;
}

/* ---------- Filas ---------- */
.jr-hours .jr-hours__row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	gap: 24px !important;
	padding: 9px 12px !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 8px !important;
	background: transparent !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	transition: background 0.15s ease !important;
}
.jr-hours .jr-hours__row + .jr-hours__row { margin-top: 1px !important; }
.jr-hours .jr-hours__row:hover    { background: var(--jr-hover) !important; }
.jr-hours .jr-hours__row.is-today { background: var(--jr-accent-soft) !important; }

.jr-hours .jr-hours__row-day {
	color: var(--jr-text) !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.jr-hours .jr-hours__row.is-today .jr-hours__row-day {
	color: var(--jr-accent) !important;
}
.jr-hours .jr-hours__row-hours {
	color: var(--jr-muted) !important;
	font-size: 13px !important;
	font-weight: 400 !important;
	font-variant-numeric: tabular-nums !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
}
.jr-hours .jr-hours__row.is-today .jr-hours__row-hours {
	color: var(--jr-text) !important;
	font-weight: 500 !important;
}
.jr-hours .jr-hours__row--closed .jr-hours__row-hours {
	color: #9ca3af !important;
	font-style: italic !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
	.jr-hours .jr-hours__panel   { max-width: calc(100vw - 32px) !important; }
	.jr-hours .jr-hours__trigger { font-size: 12.5px !important; }
}
@media (prefers-reduced-motion: reduce) {
	.jr-hours *, .jr-hours *::after {
		animation: none !important;
		transition: none !important;
	}
}
