/**
 * Plantilla «Hygienalia 2027».
 *
 * Línea de tiempo: la hora grande en una columna, un nodo sobre la línea
 * vertical y cada sesión en una tarjeta. La empresa organizadora va encima
 * del título. Las sesiones destacadas se pintan en azul y las de categoría
 * «Pausa» se reducen a una franja discontinua.
 *
 * El marcado es el del plugin, sin cambios: todo se resuelve con CSS. Las
 * variables --hy-* existen en las páginas 2027 (plugin Hygienalia Design
 * System); fuera de ellas se usan los valores de reserva.
 *
 * Convenciones del Excel que aprovecha:
 *   - ponentes_es con un ponente por línea (Alt+Intro en la celda) se lee
 *     como lista: «Nombre, cargo» en cada línea.
 *   - categoria = Pausa  → franja de pausa.
 *   - destacado = SI     → tarjeta azul.
 */

.fp-tpl-hygienalia {
	--hyp-col: 8.5rem;                 /* columna de la hora */
	--hyp-gap: 2.5rem;                 /* hueco entre hora y tarjeta */
	--hyp-x: calc(var(--hyp-col) + var(--hyp-gap) / 2);  /* eje de la línea */
	--hyp-blue: var(--hy-blue, #2b2e78);
	--hyp-turq: var(--hy-accent, #00a2b8);
	--hyp-turq-txt: var(--hy-accent-text, #00788a);
	--hyp-lime: var(--hy-lime, #bcd898);
	--hyp-line-strong: var(--hy-line-strong, #b9bbd3);
	--hyp-label: var(--font-hy-label, Saira, "Plus Jakarta Sans", system-ui, sans-serif);
	font-family: var(--fp-fuente, var(--font-hy-sans, "Plus Jakarta Sans", system-ui, sans-serif));
	font-size: 1rem;
	line-height: 1.55;
}

/* ------------------------------------------------------------ barra */

.fp-tpl-hygienalia .fp-toolbar {
	top: var(--hy-header-h, 0px);
	padding: 1rem 0;
	margin-bottom: 1.5rem;
}
.fp-barra-fija.fp-tpl-hygienalia .fp-toolbar.fp-fija { top: var(--hy-header-h, 0px); }
.fp-tpl-hygienalia .fp-dias { gap: .5rem; }
.fp-tpl-hygienalia .fp-dia {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: .125rem;
	min-width: 0;
	min-height: 3.5rem;
	padding: .625rem 1.25rem;
	border: 1.5px solid var(--hyp-line-strong);
	border-radius: 999px;
	background: var(--fp-fondo);
	color: var(--fp-txt);
	text-align: left;
	transition: background-color .2s cubic-bezier(.22,1,.36,1), border-color .2s, color .2s;
}
.fp-tpl-hygienalia .fp-dia:hover { background: var(--fp-fondo); border-color: var(--fp-txt); }
.fp-tpl-hygienalia .fp-dia:focus-visible,
.fp-tpl-hygienalia .fp-btn:focus-visible,
.fp-tpl-hygienalia .fp-filtros-btn:focus-visible,
.fp-tpl-hygienalia .fp-desc-btn:focus-visible,
.fp-tpl-hygienalia .fp-ics:focus-visible,
.fp-tpl-hygienalia .fp-inscripcion:focus-visible {
	outline: 3px solid var(--hy-focus, #00788a);
	outline-offset: 3px;
}
.fp-tpl-hygienalia .fp-dia-sem {
	font-size: 1rem;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: none;
	opacity: 1;
}
.fp-tpl-hygienalia .fp-dia-num {
	font-family: var(--hyp-label);
	font-size: .8125rem;
	font-weight: 400;
	line-height: 1.1;
	color: var(--fp-txt2);
}
.fp-tpl-hygienalia .fp-dia-todos { align-items: center; justify-content: center; font-weight: 700; }
.fp-tpl-hygienalia .fp-dia[aria-selected="true"] {
	background: var(--hyp-blue);
	border-color: var(--hyp-blue);
	color: #fff;
}
.fp-tpl-hygienalia .fp-dia[aria-selected="true"] .fp-dia-num { color: #c9cbe6; }

.fp-tpl-hygienalia .fp-btn,
.fp-tpl-hygienalia .fp-filtros-btn {
	min-height: 2.75rem;
	padding: .5rem 1.125rem;
	border: 1.5px solid var(--hyp-line-strong);
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 700;
	color: var(--fp-txt);
}
.fp-tpl-hygienalia .fp-btn:hover,
.fp-tpl-hygienalia .fp-filtros-btn:hover { background: var(--fp-fondo); border-color: var(--fp-txt); }
.fp-tpl-hygienalia .fp-filtros-n { background: var(--hyp-blue); }
.fp-tpl-hygienalia .fp-select { border-radius: .5rem; font-size: .9375rem; }

.fp-tpl-hygienalia .fp-dia-actual {
	font-family: var(--hyp-label);
	font-size: .8125rem;
	font-weight: 500;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hyp-turq-txt);
}
.fp-tpl-hygienalia .fp-conteo { font-size: .875rem; }

/* ------------------------------------------------------ cabecera de día */

.fp-tpl-hygienalia .fp-sep {
	margin: 2.5rem 0 1.5rem;
	padding: 0 0 .75rem;
	border-bottom: 2px solid var(--fp-txt);
}
.fp-tpl-hygienalia .fp-sep:first-child { margin-top: 0; }
.fp-tpl-hygienalia .fp-sep h3 {
	font-size: clamp(1.25rem, 1.1rem + .6vw, 1.625rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.01em;
	color: var(--fp-txt);
}

/* ------------------------------------------------- sesión: línea de tiempo */

.fp-tpl-hygienalia .fp-sesion {
	position: relative;
	display: grid;
	grid-template-columns: var(--hyp-col) minmax(0, 1fr);
	column-gap: var(--hyp-gap);
	row-gap: 0;
	padding: 0 0 var(--fp-sep-px);
	border: 0;
	/* La línea vertical: un degradado de 2px, sin elementos extra. */
	background: linear-gradient(var(--fp-linea), var(--fp-linea)) no-repeat calc(var(--hyp-x) - 1px) .5rem / 2px 100%;
}
/* La tarjeta es un pseudoelemento que ocupa la columna 2 entera: así la
   descripción, que es hermana del cuerpo, cae dentro de la misma caja. */
.fp-tpl-hygienalia .fp-sesion::before {
	content: "";
	grid-column: 2;
	grid-row: 1 / span 2;
	margin-left: 1.25rem;
	border: 1px solid var(--fp-linea);
	border-radius: 1rem;
	background: var(--fp-fondo);
	transition: border-color .2s cubic-bezier(.22,1,.36,1), box-shadow .2s cubic-bezier(.22,1,.36,1);
}
.fp-tpl-hygienalia .fp-sesion:hover::before {
	border-color: var(--hyp-line-strong);
	box-shadow: 0 .25rem 1rem rgba(43, 46, 120, .08);
}
/* El nodo sobre la línea */
.fp-tpl-hygienalia .fp-sesion::after {
	content: "";
	position: absolute;
	left: calc(var(--hyp-x) - .4375rem);
	top: 1.75rem;
	width: .875rem;
	height: .875rem;
	border-radius: 50%;
	background: var(--fp-fondo);
	box-shadow: inset 0 0 0 3px var(--hyp-turq);
}

.fp-tpl-hygienalia .fp-hora {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .25rem;
	padding-top: 1.5rem;
	text-align: right;
	font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
	font-weight: 800;
	line-height: 1;
	color: var(--fp-hora-color);
}
.fp-tpl-hygienalia .fp-hora-fin {
	font-size: .875rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--fp-txt2);
}
.fp-tpl-hygienalia .fp-hora-fin::before { content: "a "; }
.fp-tpl-hygienalia .fp-hora-fin::after { content: " h"; }

.fp-tpl-hygienalia .fp-cuerpo {
	position: relative;
	grid-column: 2;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-left: 1.25rem;
	padding: 1.5rem 1.75rem 0;
}
/* Sin descripción, el cuerpo cierra la tarjeta. */
.fp-tpl-hygienalia .fp-cuerpo:last-child { padding-bottom: 1.5rem; }

.fp-tpl-hygienalia .fp-etiquetas { margin: 0; gap: .375rem; }
.fp-tpl-hygienalia .fp-badge {
	padding: .125rem .625rem;
	border-radius: 999px;
	font-family: var(--hyp-label);
	font-size: .75rem;
	font-weight: 500;
	letter-spacing: .04em;
	text-transform: uppercase;
}

/* La empresa, arriba, en el tono de rótulo de la marca */
.fp-tpl-hygienalia .fp-organiza {
	order: -1;
	margin: 0;
	font-family: var(--hyp-label);
	font-size: .875rem;
	letter-spacing: .02em;
	color: var(--hyp-turq-txt);
}
.fp-tpl-hygienalia .fp-organiza .fp-etq { color: inherit; font-weight: 400; }
.fp-tpl-hygienalia .fp-empresa { color: var(--fp-empresa-color, var(--fp-txt)); font-weight: var(--fp-empresa-peso, 500); }

.fp-tpl-hygienalia .fp-titulo {
	margin: 0;
	font-size: var(--fp-titulo-px, 1.25rem);
	font-weight: 700;
	line-height: 1.25;
	text-wrap: balance;
}
.fp-tpl-hygienalia .fp-t { font-weight: 700; }
.fp-tpl-hygienalia .fp-adicional { display: block; margin-top: .375rem; font-size: .9375rem; font-weight: 400; line-height: 1.5; }

/* Ponentes: un nombre por línea en el Excel = un nombre por línea aquí */
.fp-tpl-hygienalia .fp-ponentes {
	margin: 0;
	padding-left: .875rem;
	border-left: 2px solid var(--hyp-lime);
	font-size: var(--fp-meta-px, .9375rem);
	line-height: 1.55;
	color: var(--fp-txt2);
	white-space: pre-line;
}
.fp-tpl-hygienalia .fp-ponentes .fp-etq {
	display: block;
	margin-bottom: .125rem;
	font-family: var(--hyp-label);
	font-size: .75rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--fp-txt3);
	white-space: normal;
}

.fp-tpl-hygienalia .fp-meta { margin: 0; font-size: .875rem; }
.fp-tpl-hygienalia .fp-icono { color: var(--hyp-turq); }

.fp-tpl-hygienalia .fp-acc { margin: 0; gap: .5rem; }
.fp-tpl-hygienalia .fp-ics,
.fp-tpl-hygienalia .fp-inscripcion {
	min-height: 2.5rem;
	padding: .4375rem 1rem;
	border-radius: 999px;
	font-size: .875rem;
	font-weight: 700;
}
.fp-tpl-hygienalia .fp-ics { border: 1.5px solid var(--hyp-line-strong); color: var(--fp-txt); }
.fp-tpl-hygienalia .fp-inscripcion { border: 1.5px solid var(--hyp-blue); background: var(--hyp-blue); color: #fff; }
.fp-tpl-hygienalia .fp-inscripcion:hover { background: var(--hy-blue-dark, #1d1f57); border-color: var(--hy-blue-dark, #1d1f57); color: #fff; }

/* «Más información»: enlace dentro de la tarjeta, al pie */
.fp-tpl-hygienalia .fp-desc {
	position: relative;
	grid-column: 2;
	grid-row: 2;
	margin: 0 0 0 1.25rem;
	padding: 1rem 1.75rem 1.5rem;
}
.fp-tpl-hygienalia .fp-desc-btn {
	min-height: 2.75rem;
	padding: 0;
	border: 0;
	background: none;
	font-size: .9375rem;
	font-weight: 700;
	color: var(--fp-txt);
}
.fp-tpl-hygienalia .fp-desc-btn::after {
	content: "";
	width: .5rem;
	height: .5rem;
	margin-left: .625rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s cubic-bezier(.22,1,.36,1);
}
.fp-tpl-hygienalia .fp-desc-btn:hover { background: none; color: var(--hyp-turq-txt); }
.fp-tpl-hygienalia .fp-desc-btn:hover::after { transform: translateX(.25rem) rotate(-45deg); }
.fp-tpl-hygienalia .fp-icono-info { color: var(--hyp-turq); margin-right: .5rem; }
.fp-tpl-hygienalia .fp-desc-texto { border-radius: .5rem; font-size: .9375rem; }

/* ------------------------------------------------------ sesión destacada */

.fp-tpl-hygienalia .fp-destacada::before { background: var(--hyp-blue); border-color: var(--hyp-blue); }
.fp-tpl-hygienalia .fp-destacada:hover::before { border-color: var(--hyp-blue); }
.fp-tpl-hygienalia .fp-destacada::after { background: var(--hyp-lime); box-shadow: inset 0 0 0 3px var(--hyp-blue); }
.fp-tpl-hygienalia .fp-destacada .fp-cuerpo,
.fp-tpl-hygienalia .fp-destacada .fp-desc { color: #d9dbf0; }
.fp-tpl-hygienalia .fp-destacada .fp-titulo {
	font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem);
	font-weight: 800;
	letter-spacing: -.01em;
	text-transform: uppercase;
	color: #fff;
}
.fp-tpl-hygienalia .fp-destacada .fp-organiza { color: var(--hyp-lime); }
.fp-tpl-hygienalia .fp-destacada .fp-empresa { color: #fff; }
.fp-tpl-hygienalia .fp-destacada .fp-ponentes { color: #d9dbf0; }
.fp-tpl-hygienalia .fp-destacada .fp-ponentes .fp-etq,
.fp-tpl-hygienalia .fp-destacada .fp-espacio,
.fp-tpl-hygienalia .fp-destacada .fp-ubi { color: #fff; }
.fp-tpl-hygienalia .fp-destacada .fp-icono,
.fp-tpl-hygienalia .fp-destacada .fp-icono-info { color: var(--hyp-lime); }
.fp-tpl-hygienalia .fp-destacada .fp-desc-btn { color: #fff; }
.fp-tpl-hygienalia .fp-destacada .fp-desc-btn:hover { color: var(--hyp-lime); }
.fp-tpl-hygienalia .fp-destacada .fp-ics { border-color: rgba(255,255,255,.5); background: transparent; color: #fff; }
.fp-tpl-hygienalia .fp-destacada .fp-inscripcion { border-color: var(--hyp-lime); background: var(--hyp-lime); color: var(--hyp-blue); }
.fp-tpl-hygienalia .fp-destacada .fp-badge-dest { display: none; }

/* -------------------------------------------- pausa (categoria = Pausa) */

.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] { padding-bottom: var(--fp-sep-px); }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i]::before { display: none; }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i]::after {
	top: .875rem;
	width: .625rem;
	height: .625rem;
	left: calc(var(--hyp-x) - .3125rem);
	box-shadow: inset 0 0 0 2px var(--hyp-line-strong);
}
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-hora {
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	gap: 0;
	padding-top: .625rem;
	font-size: .875rem;
	font-weight: 700;
	color: var(--fp-txt2);
}
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-hora-fin { font-weight: 700; }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-hora-fin::before { content: "\00a0– "; }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-hora-fin::after { content: ""; }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-cuerpo {
	display: block;
	align-self: start;
	justify-self: start;
	padding: .5rem 1.25rem;
	border: 1px dashed var(--hyp-line-strong);
	border-radius: 999px;
}
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-cuerpo > :not(.fp-titulo) { display: none; }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-titulo { font-size: .875rem; font-weight: 400; color: var(--fp-txt2); }
.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-desc { display: none; }

/* La última sesión de cada día no prolonga la línea */
.fp-tpl-hygienalia .fp-sesion:has(+ .fp-sep),
.fp-tpl-hygienalia .fp-sesion:last-child { background-size: 2px calc(100% - var(--fp-sep-px) - .5rem); }

/* ----------------------------------------------------------- la ventana */

.fp-tpl-hygienalia .fp-modal,
.fp-tpl-hygienalia ~ .fp-modal { border-radius: 1rem; }
.fp-tpl-hygienalia .fp-modal-caja { padding: 2rem 2rem 2.25rem; }
.fp-tpl-hygienalia .fp-modal-meta {
	font-family: var(--hyp-label);
	font-size: .8125rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--hyp-turq-txt);
}
.fp-tpl-hygienalia .fp-modal-tit { font-size: 1.375rem; font-weight: 800; line-height: 1.25; color: var(--fp-txt); }
.fp-tpl-hygienalia .fp-modal-cuerpo p { font-size: 1rem; line-height: 1.65; color: var(--fp-txt2); }
.fp-tpl-hygienalia .fp-modal-cerrar { border-radius: 999px; }
.fp-tpl-hygienalia .fp-modal::backdrop { background: rgba(29, 31, 87, .55); }

/* ----------------------------------------------------------------- móvil */

@media (max-width: 47.9375rem) {
	.fp-tpl-hygienalia .fp-toolbar { top: var(--hy-header-h-mobile, var(--hy-header-h, 0px)); }
	.fp-tpl-hygienalia .fp-dias { flex-wrap: nowrap; overflow-x: auto; }
	.fp-tpl-hygienalia .fp-dia { flex: 0 0 auto; padding: .5rem 1rem; }
	.fp-tpl-hygienalia .fp-sesion { grid-template-columns: minmax(0, 1fr); row-gap: .5rem; background: none; }
	.fp-tpl-hygienalia .fp-sesion::after { display: none; }
	.fp-tpl-hygienalia .fp-sesion::before { grid-column: 1; grid-row: 2 / span 2; margin-left: 0; }
	.fp-tpl-hygienalia .fp-hora {
		grid-row: 1;
		flex-direction: row;
		align-items: baseline;
		justify-content: flex-start;
		gap: .75rem;
		padding-top: 0;
		text-align: left;
	}
	.fp-tpl-hygienalia .fp-cuerpo { grid-column: 1; grid-row: 2; margin-left: 0; padding: 1.25rem 1.25rem 0; }
	.fp-tpl-hygienalia .fp-cuerpo:last-child { padding-bottom: 1.25rem; }
	.fp-tpl-hygienalia .fp-desc { grid-column: 1; grid-row: 3; margin-left: 0; padding: .75rem 1.25rem 1.25rem; }
	.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] { grid-template-columns: auto minmax(0, 1fr); column-gap: .75rem; align-items: center; }
	.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-hora { grid-column: 1; padding-top: 0; }
	.fp-tpl-hygienalia .fp-sesion[data-categoria="Pausa" i] .fp-cuerpo { grid-column: 2; grid-row: 1; padding: .375rem 1rem; }
	.fp-tpl-hygienalia .fp-modal-caja { padding: 1.5rem 1.25rem 1.75rem; }
}

@media (prefers-reduced-motion: reduce) {
	.fp-tpl-hygienalia .fp-dia,
	.fp-tpl-hygienalia .fp-sesion::before,
	.fp-tpl-hygienalia .fp-desc-btn::after { transition: none; }
}

@media print {
	.fp-tpl-hygienalia .fp-sesion { background: none; }
	.fp-tpl-hygienalia .fp-sesion::before,
	.fp-tpl-hygienalia .fp-sesion::after { display: none; }
	.fp-tpl-hygienalia .fp-destacada .fp-cuerpo,
	.fp-tpl-hygienalia .fp-destacada .fp-titulo { color: #000; }
}
