/* Ironhawk Horarios
   Todos los selectores van con .ihh.ihh para ganar a los estilos globales del tema y del kit de Elementor
   (botones, tablas, títulos y enlaces). Colores y tipografías se heredan del kit global. */

.elementor-widget-ihh_horario,
.elementor-widget-shortcode:has(.ihh) {
	width: 100%;
	max-width: 100%;
	align-self: stretch;
}

.ihh.ihh {
	--ihh-accent: var(--e-global-color-accent, var(--e-global-color-primary, #1F8FE0));
	--ihh-ink: var(--e-global-color-text, currentColor);
	--ihh-font: var(--e-global-typography-text-font-family, inherit);
	--ihh-font-head: var(--e-global-typography-primary-font-family, inherit);
	--ihh-line: color-mix(in srgb, currentColor 12%, transparent);
	--ihh-soft: color-mix(in srgb, currentColor 5%, transparent);
	--ihh-radius: 8px;

	container-type: inline-size;
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	text-align: left;
	font-family: var(--ihh-font);
	font-size: 16px;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--ihh-ink);
}
.ihh.ihh *, .ihh.ihh *::before, .ihh.ihh *::after { box-sizing: border-box; }

.ihh.ihh .ihh-sr {
	position: absolute;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.ihh.ihh .ihh-fallback h4 { margin: 1em 0 .3em; font-size: 1.1rem; }
.ihh.ihh .ihh-fallback ul { margin: 0; padding-left: 1.1em; }

.ihh.ihh [role="button"],
.ihh.ihh [role="tab"] {
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}
.ihh.ihh :focus { outline: none; }
.ihh.ihh :focus-visible { outline: 2px solid var(--ihh-accent); outline-offset: 2px; }

/* ---------- Leyenda / filtro ---------- */
.ihh.ihh .ihh-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 24px;
	padding: 0;
}
.ihh.ihh .ihh-chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 16px;
	border: 1px solid var(--ihh-line);
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
	transition: background-color .15s, border-color .15s;
}
.ihh.ihh .ihh-chip:hover { border-color: var(--c); }
.ihh.ihh .ihh-chip__dot {
	width: 10px; height: 10px;
	border-radius: 50%;
	background: var(--c);
	flex: none;
}
.ihh.ihh .ihh-chip[aria-pressed="true"] {
	border-color: var(--c);
	background: color-mix(in srgb, var(--c) 16%, transparent);
	font-weight: 600;
}

/* ---------- Vista semanal ---------- */
.ihh.ihh .ihh-week { width: 100%; }
.ihh.ihh .ihh-table {
	width: calc(100% + 12px);
	max-width: none;
	margin: 0 -6px;
	border: 0;
	border-collapse: separate;
	border-spacing: 6px 5px;
	table-layout: fixed;
	background: transparent;
	font-size: 15px;
	line-height: 1.3;
}
.ihh.ihh .ihh-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ihh.ihh .ihh-table thead,
.ihh.ihh .ihh-table tbody,
.ihh.ihh .ihh-table tr,
.ihh.ihh .ihh-table tr > th,
.ihh.ihh .ihh-table tr > td {
	padding: 0;
	border: 0;
	background: transparent;
	text-align: left;
	vertical-align: middle;
	font-size: inherit;
	line-height: inherit;
	color: inherit;
}
.ihh.ihh .ihh-table .ihh-table__corner { width: 64px; }
.ihh.ihh .ihh-table thead .ihh-table__day {
	padding: 4px 2px 10px;
	border-bottom: 2px solid var(--ihh-line);
	font-family: var(--ihh-font-head);
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ihh.ihh .ihh-table thead .ihh-table__day.is-today { border-bottom-color: var(--ihh-accent); }
.ihh.ihh .ihh-today {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--ihh-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1.3;
	vertical-align: 2px;
}
.ihh.ihh .ihh-table tbody .ihh-table__time {
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	font-size: 14px;
	opacity: .7;
	white-space: nowrap;
}
.ihh.ihh .ihh-table tbody td { height: 46px; }
.ihh.ihh .ihh-table tbody td.is-today { background: var(--ihh-soft); border-radius: var(--ihh-radius); }

.ihh.ihh .ihh-table tbody .ihh-table__group > th { padding: 18px 0 4px; }
.ihh.ihh .ihh-table tbody .ihh-table__group:first-child > th { padding-top: 6px; }
.ihh.ihh .ihh-table__group span {
	display: block;
	padding-top: 6px;
	border-top: 2px solid currentColor;
	font-family: var(--ihh-font-head);
	font-size: 13px;
	font-weight: 700;
	opacity: .75;
}

.ihh.ihh .ihh-class {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 42px;
	margin: 0;
	padding: 6px 10px 6px 14px;
	border: 0;
	border-radius: var(--ihh-radius);
	background: color-mix(in srgb, var(--c) 16%, transparent);
	box-shadow: inset 4px 0 0 var(--c);
	color: inherit;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	transition: background-color .15s, opacity .15s;
}
.ihh.ihh .ihh-class:hover { background: color-mix(in srgb, var(--c) 28%, transparent); }
.ihh.ihh .ihh-class__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ihh.ihh.is-filtering [data-disc]:not(.is-match) { opacity: .2; }

/* ---------- Vista móvil ---------- */
.ihh.ihh .ihh-mobile { display: none; width: 100%; min-width: 0; }
.ihh.ihh .ihh-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 4px;
	width: 100%;
	margin: 0 0 16px;
	padding: 4px;
	border: 1px solid var(--ihh-line);
	border-radius: 999px;
	background: var(--ihh-soft);
}
.ihh.ihh .ihh-tab {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 10px 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}
.ihh.ihh .ihh-tab.is-today::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 3px;
	width: 4px; height: 4px;
	margin-left: -2px;
	border-radius: 50%;
	background: var(--ihh-accent);
}
.ihh.ihh .ihh-tab[aria-selected="true"] { background: var(--ihh-accent); color: #fff; }
.ihh.ihh .ihh-tab[aria-selected="true"].is-today::after { background: #fff; }

.ihh.ihh .ihh-panel__title {
	margin: 0 0 10px;
	font-family: var(--ihh-font-head);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}
.ihh.ihh .ihh-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ihh.ihh .ihh-list > li { margin: 0; padding: 0; list-style: none; }
.ihh.ihh .ihh-list > li::before, .ihh.ihh .ihh-list > li::marker { content: none; }
.ihh.ihh .ihh-list__empty { opacity: .7; padding: 12px 0; }
.ihh.ihh .ihh-row {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr) 10px;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 14px 16px 14px 18px;
	border-radius: var(--ihh-radius);
	background: color-mix(in srgb, var(--c) 14%, transparent);
	box-shadow: inset 4px 0 0 var(--c);
	color: inherit;
	font-size: 15px;
	text-align: left;
}
.ihh.ihh .ihh-row::after {
	content: "";
	width: 8px; height: 8px;
	border-right: 2px solid currentColor;
	border-top: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: .45;
}
.ihh.ihh .ihh-row__time { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ihh.ihh .ihh-row__name { font-weight: 600; min-width: 0; }

@container (max-width: 720px) {
	.ihh.ihh .ihh-week { display: none; }
	.ihh.ihh .ihh-mobile { display: block; }
	.ihh.ihh .ihh-legend {
		flex-wrap: nowrap;
		overflow-x: auto;
		margin-bottom: 16px;
		padding-bottom: 4px;
		scrollbar-width: none;
	}
	.ihh.ihh .ihh-legend::-webkit-scrollbar { display: none; }
	.ihh.ihh .ihh-chip { flex: none; font-size: 14px; padding: 7px 14px; }
}
@container (max-width: 400px) {
	.ihh.ihh .ihh-row { grid-template-columns: minmax(0, 1fr) 10px; row-gap: 2px; }
	.ihh.ihh .ihh-row__time, .ihh.ihh .ihh-row__name { grid-column: 1; }
	.ihh.ihh .ihh-row__time { font-size: 14px; opacity: .75; }
	.ihh.ihh .ihh-row::after { grid-column: 2; grid-row: 1 / span 2; }
	.ihh.ihh .ihh-tab { font-size: 13px; }
}

/* ---------- Ficha de la clase ---------- */
.ihh.ihh .ihh-modal {
	width: min(440px, calc(100vw - 32px));
	max-width: none;
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #1d1d1f;
	font-family: var(--ihh-font);
	text-align: left;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
	overflow: auto;
}
.ihh.ihh .ihh-modal::backdrop { background: rgba(10, 12, 16, .55); }
.ihh.ihh .ihh-modal[open] { animation: ihh-in .18s ease-out; }
@keyframes ihh-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ihh.ihh .ihh-modal__inner {
	position: relative;
	padding: 26px 24px 22px;
	border-top: 6px solid var(--c);
}
.ihh.ihh .ihh-modal__close {
	position: absolute;
	top: 12px; right: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px; height: 36px;
	border-radius: 50%;
	background: rgba(0, 0, 0, .06);
	color: #1d1d1f;
	font-size: 22px;
	line-height: 1;
}
.ihh.ihh .ihh-modal__close:hover { background: rgba(0, 0, 0, .12); }
.ihh.ihh .ihh-modal__title {
	margin: 0 44px 10px 0;
	font-family: var(--ihh-font-head);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
	color: #1d1d1f;
}
.ihh.ihh .ihh-modal p { margin: 0; padding: 0; color: inherit; }
.ihh.ihh .ihh-modal .ihh-modal__when { margin-bottom: 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.ihh.ihh .ihh-modal .ihh-modal__where { margin-bottom: 14px; font-size: 14px; opacity: .8; }
.ihh.ihh .ihh-modal .ihh-modal__desc { margin-bottom: 18px; font-size: 15px; }
.ihh.ihh .ihh-modal a,
.ihh.ihh .ihh-modal a:hover,
.ihh.ihh .ihh-modal a:visited { color: inherit; }
.ihh.ihh .ihh-modal .ihh-modal__where a { text-decoration: underline; text-underline-offset: 2px; }
.ihh.ihh .ihh-modal__cal {
	margin-bottom: 14px;
	padding: 16px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--c) 10%, #fff);
}
.ihh.ihh .ihh-modal .ihh-modal__label { margin-bottom: 12px; font-size: 14px; }
.ihh.ihh .ihh-modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ihh.ihh .ihh-modal a.ihh-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 999px;
	background: #fff;
	color: #1d1d1f;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
}
.ihh.ihh .ihh-modal a.ihh-btn:hover { border-color: rgba(0, 0, 0, .4); color: #1d1d1f; }
.ihh.ihh .ihh-modal a.ihh-btn--primary,
.ihh.ihh .ihh-modal a.ihh-btn--primary:hover,
.ihh.ihh .ihh-modal a.ihh-btn--primary:visited {
	border-color: var(--ihh-accent);
	background: var(--ihh-accent);
	color: #fff;
}
.ihh.ihh .ihh-modal a.ihh-btn--primary:hover { filter: brightness(1.08); }
.ihh.ihh .ihh-modal a.ihh-modal__more {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 560px) {
	.ihh.ihh .ihh-modal {
		width: 100vw;
		max-width: 100vw;
		margin: auto 0 0;
		border-radius: 18px 18px 0 0;
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
	.ihh.ihh .ihh-modal__actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	.ihh.ihh *, .ihh.ihh .ihh-modal { transition: none; animation: none; }
}
