/* Horarios de Apertura PLUS — lista de 7 días y pop-up. */
:root {
	--ha-acento: #ff5a00;
	--ha-texto: #1e2033;
	--ha-suave: #6b6f80;
	--ha-linea: #e6e7ec;
	--ha-radio: 10px;
}

/* ── Lista (pop-up y [horarios_semana]) ── */
.ha-lista {
	list-style: none;
	margin: 0;
	padding: 0;
	color: var(--ha-texto);
}
.ha-dia-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 13px 16px;
	border-bottom: 1px solid var(--ha-linea);
	line-height: 1.3;
}
.ha-dia-item:last-child { border-bottom: 0; }
.ha-nombre {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	font-weight: 700;
}
.ha-nombre em {
	font-style: normal;
	font-weight: 400;
	color: var(--ha-suave);
	font-size: .9em;
}
.ha-hora {
	font-weight: 600;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.ha-hora-cerrado,
.ha-cerrado .ha-nombre { color: var(--ha-suave); }
.ha-hora-cerrado { font-weight: 700; letter-spacing: .02em; }

.ha-badge {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.ha-badge-hoy { background: var(--ha-acento); color: #fff; }
.ha-badge-fest { background: #fff3cd; color: #7a5a00; }

.ha-hoy {
	background: #fff5ef;
	background: color-mix( in srgb, var(--ha-acento) 8%, #fff );
	box-shadow: inset 3px 0 0 var(--ha-acento);
}

/* ── Pop-up ── */
.ha-modal {
	width: min( 92vw, 440px );
	max-height: min( 88vh, 640px );
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--ha-radio);
	background: #fff;
	color: var(--ha-texto);
	box-shadow: 0 24px 60px rgba( 16, 18, 32, .35 );
	overflow: hidden;
}
.ha-modal[open] {
	display: flex;
	flex-direction: column;
	animation: ha-entrar .22s ease-out;
}
.ha-modal::backdrop {
	background: rgba( 16, 18, 32, .6 );
}
/* Navegadores sin <dialog>: centrar a mano */
.ha-modal[open]:not(:modal) {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.ha-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 12px 16px 20px;
	background: var(--ha-acento);
	color: #fff;
}
.ha-modal__titulo {
	margin: 0;
	font-size: 18px;
	line-height: 1.25;
	font-weight: 700;
	color: inherit;
}
.ha-modal__cerrar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	cursor: pointer;
	transition: background-color .15s;
}
.ha-modal__cerrar:hover,
.ha-modal__cerrar:focus-visible { background: rgba( 255, 255, 255, .18 ); }
.ha-modal__cerrar:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }

.ha-modal__body { overflow-y: auto; overscroll-behavior: contain; }
.ha-modal__nota {
	margin: 0;
	padding: 12px 20px 16px;
	font-size: 13px;
	color: var(--ha-suave);
}
.ha-modal .ha-dia-item { padding-inline: 20px; }

html.ha-modal-abierto { overflow: hidden; }

@keyframes ha-entrar {
	from { opacity: 0; transform: translateY( 12px ) scale( .98 ); }
	to { opacity: 1; transform: none; }
}
@media ( prefers-reduced-motion: reduce ) {
	.ha-modal[open] { animation: none; }
}
