/**
 * Curso Hongos - Hero / Portada
 *
 * Aqui viven la ESTRUCTURA, los valores por defecto y el COMPORTAMIENTO
 * (estados del slider, animaciones, accesibilidad). La apariencia —
 * tipografia, colores, fondos, bordes, espaciados — la escribe Elementor
 * mediante el array `selectors` de cada control, que alimenta las variables
 * --chhero-* declaradas mas abajo.
 *
 * Reparto de responsabilidades:
 *   - Este archivo: layout, estados, keyframes, accesibilidad, impresion y
 *                   tamanos de texto FLUIDOS por defecto (clamp), que
 *                   Elementor pisa en cuanto tocas el grupo Tipografia.
 *   - Elementor:    valores de las variables, por dispositivo, con sus
 *                   breakpoints nativos.
 *   - Bloque <style> del widget: unicamente los dos puntos de ruptura propios
 *                   de la instancia (apilado y compacto), que son media
 *                   queries con ancho configurable y Elementor no sabe
 *                   generar.
 *
 * Todas las clases e IDs llevan el prefijo cursohongoshero.
 */

/* ===================================================================
 * VALORES POR DEFECTO
 * =================================================================== */

.cursohongoshero {
	/* Paleta base. Todo lo demas hereda de aqui mientras no se le de color propio. */
	--chhero-tinta: #16150f;
	--chhero-tinta-80: rgba(22, 21, 15, 0.8);
	--chhero-tinta-60: rgba(22, 21, 15, 0.6);
	--chhero-lima: #cdf13b;
	--chhero-lima-osc: #bde02c;
	--chhero-tarjeta: #fffdf5;
	--chhero-rojo: #ff4d4f;
	--chhero-sombra-sello: 3px 4px 0 rgba(22, 21, 15, 0.85);
	--chhero-sombra-pegado: 6px 8px 0 rgba(22, 21, 15, 0.18);

	/* Caja de la seccion */
	--chhero-pad-y: 86px;
	--chhero-pad-x: 20px;
	--chhero-ancho: 1180px;

	/* Rejilla */
	--chhero-col-texto: 1.12fr;
	--chhero-col-media: 0.88fr;
	--chhero-gap: 56px;
	--chhero-gap-apilado: 44px;
	--chhero-alineado: center;
	--chhero-texto-align: left;
	--chhero-slider-justificado-apilado: flex-start;

	/* Sello */
	--chhero-sello-gap: 10px;
	--chhero-sello-pad: 4px 10px;
	--chhero-sello-radio: 3px;
	--chhero-sello-color: var(--chhero-tinta);
	--chhero-sello-fondo: var(--chhero-lima);
	--chhero-sello-borde-ancho: 2px;
	--chhero-sello-borde-color: var(--chhero-tinta);
	--chhero-sello-giro: -1.2deg;
	--chhero-sello-sombra: var(--chhero-sombra-sello);
	--chhero-sello-margen: 8px;
	--chhero-cola-color: var(--chhero-tinta-60);

	/* Nota superior */
	--chhero-nota-color: var(--chhero-tinta-80);
	--chhero-nota-margen: 16px;

	/* Titulo */
	--chhero-titulo-color: var(--chhero-tinta);
	--chhero-titulo-margen: 26px;
	--chhero-tachado-color: inherit;

	/* Marcas dibujadas */
	--chhero-marca-color: var(--chhero-rojo);
	--chhero-marca-grosor: 3.4;
	--chhero-marca-dur: 0.9s;

	/* Precio garabateado */
	--chhero-precio-color: var(--chhero-rojo);
	--chhero-precio-giro: -5deg;

	/* Parrafos */
	--chhero-lede-color: var(--chhero-tinta);
	--chhero-lede-ancho: 540px;
	--chhero-lede-margen: 18px;
	--chhero-sub-color: var(--chhero-tinta-60);
	--chhero-sub-fuerte-color: var(--chhero-tinta);
	--chhero-sub-ancho: 520px;
	--chhero-sub-margen: 28px;
	--chhero-resalte-color: var(--chhero-lima);

	/* Botones */
	--chhero-acciones-gap: 18px;
	--chhero-acciones-margen: 24px;
	--chhero-btn-gap: 10px;
	--chhero-btn-pad: 19px 34px;
	--chhero-btn-radio: 4px;
	--chhero-btn-borde-ancho: 2px;
	--chhero-btn-color: var(--chhero-tinta);
	--chhero-btn-color-h: var(--chhero-tinta);
	--chhero-btn-fondo: var(--chhero-lima);
	--chhero-btn-fondo-h: var(--chhero-lima);
	--chhero-btn-borde-color: var(--chhero-tinta);
	--chhero-btn-borde-color-h: var(--chhero-tinta);
	--chhero-btn-sombra: var(--chhero-sombra-sello);
	--chhero-btn-sombra-h: 4px 5px 0 rgba(22, 21, 15, 0.85);
	--chhero-btn-giro: -0.8deg;
	--chhero-btn-desp: 4px;

	/* Boton fantasma */
	--chhero-btn2-pad: 15px 26px;
	--chhero-btn2-color: var(--chhero-tinta);
	--chhero-btn2-color-h: var(--chhero-tarjeta);
	--chhero-btn2-fondo: transparent;
	--chhero-btn2-fondo-h: var(--chhero-tinta);
	--chhero-btn2-borde-color: var(--chhero-tinta);
	--chhero-btn2-borde-color-h: var(--chhero-tinta);
	--chhero-btn2-giro: 0.6deg;

	/* Avales */
	--chhero-avales-gap-y: 8px;
	--chhero-avales-gap-x: 10px;
	--chhero-chip-color: var(--chhero-tinta-80);
	--chhero-chip-fuerte-color: var(--chhero-tinta);
	--chhero-chip-fondo: var(--chhero-tarjeta);
	--chhero-chip-borde-ancho: 1.5px;
	--chhero-chip-borde-color: var(--chhero-tinta);
	--chhero-chip-radio: 100px;
	--chhero-chip-pad: 6px 13px;
	--chhero-chip-giro: -0.6deg;

	/* Slider */
	--chhero-slider-ancho: 322px;
	--chhero-slider-giro: 1.6deg;
	--chhero-slider-justificado: center;
	--chhero-marco-prop: 9 / 16;
	--chhero-marco-borde-ancho: 8px;
	--chhero-marco-borde-color: var(--chhero-tarjeta);
	--chhero-marco-radio: 6px;
	--chhero-marco-fondo: var(--chhero-tinta);
	--chhero-marco-sombra: var(--chhero-sombra-pegado);
	--chhero-slide-dur: 0.5s;
	--chhero-slide-ease: cubic-bezier(0.6, 0.02, 0.1, 1);

	/* Cinta adhesiva */
	--chhero-cinta-ancho: 96px;
	--chhero-cinta-alto: 30px;
	--chhero-cinta-color: rgba(205, 241, 59, 0.42);
	--chhero-cinta-arriba: -14px;
	--chhero-cinta-izq: 14%;
	--chhero-cinta-giro: -6deg;

	/* Etiqueta de la diapositiva */
	--chhero-etiqueta-color: var(--chhero-tinta);
	--chhero-etiqueta-fondo: var(--chhero-lima);
	--chhero-etiqueta-pad: 4px 8px;
	--chhero-etiqueta-radio: 3px;
	--chhero-etiqueta-arriba: 12px;
	--chhero-etiqueta-izq: 12px;

	/* Boton de sonido */
	--chhero-sonido-color: var(--chhero-tinta);
	--chhero-sonido-fondo: var(--chhero-lima);
	--chhero-sonido-fondo-h: var(--chhero-lima-osc);
	--chhero-sonido-borde-color: var(--chhero-tinta);
	--chhero-sonido-abajo: 14px;

	/* Flechas */
	--chhero-flecha-size: 44px;
	--chhero-flecha-color: var(--chhero-tinta);
	--chhero-flecha-fondo: var(--chhero-tarjeta);
	--chhero-flecha-fondo-a: var(--chhero-lima);
	--chhero-flecha-borde-ancho: 2px;
	--chhero-flecha-borde-color: var(--chhero-tinta);
	--chhero-flecha-icono: 16px;

	/* Puntos */
	--chhero-punto-size: 9px;
	--chhero-punto-gap: 8px;
	--chhero-punto-borde: var(--chhero-tinta);
	--chhero-punto-fondo: transparent;
	--chhero-punto-fondo-on: var(--chhero-lima);
	--chhero-punto-margen: 18px;

	/* Pie del slider */
	--chhero-pie-color: var(--chhero-tinta-60);
	--chhero-pie-margen: 8px;
	--chhero-pie-giro: -1deg;

	/* Circulo de coste */
	--chhero-circulo-color: var(--chhero-tinta);
	--chhero-circulo-fondo: var(--chhero-tarjeta);
	--chhero-circulo-pad: 6px 12px;
	--chhero-circulo-radio: 6px;
	--chhero-circulo-sombra: var(--chhero-sombra-pegado);
	--chhero-circulo-giro: 5deg;
	--chhero-circulo-arriba: 14px;
	--chhero-circulo-der: 10px;

	/* Entrada */
	--chhero-entrada-desp: 26px;
	--chhero-entrada-dur: 0.85s;
	--chhero-entrada-ease: cubic-bezier(0.16, 1, 0.3, 1);

	/* Foco visible */
	--chhero-foco-color: var(--chhero-tinta);
	--chhero-foco-ancho: 3px;
	--chhero-foco-offset: 3px;
}

/* ===================================================================
 * RAIZ Y RESET LOCAL
 * =================================================================== */

.cursohongoshero {
	position: relative;
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: var(--chhero-pad-y) 0;
	color: var(--chhero-tinta);
	/* El hero suele tener piezas rotadas que sobresalen: sin esto aparece
	   una barra de scroll horizontal en moviles estrechos. */
	overflow-x: clip;
}

.cursohongoshero *,
.cursohongoshero *::before,
.cursohongoshero *::after {
	box-sizing: border-box;
}

.cursohongoshero p {
	margin: 0;
}

.cursohongoshero a {
	color: inherit;
	text-decoration: none;
}

.cursohongoshero button {
	font: inherit;
	color: inherit;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
}

.cursohongoshero img {
	display: block;
	max-width: 100%;
}

.cursohongoshero__wrap {
	width: 100%;
	max-width: var(--chhero-ancho);
	margin: 0 auto;
	padding: 0 var(--chhero-pad-x);
}

.cursohongoshero__grid {
	display: grid;
	grid-template-columns: var(--chhero-col-texto) var(--chhero-col-media);
	gap: var(--chhero-gap);
	align-items: var(--chhero-alineado);
}

/* Solo columna de texto: la rejilla pasa a una sola pista. */
.cursohongoshero--sin-media .cursohongoshero__grid {
	grid-template-columns: 1fr;
}

.cursohongoshero__texto {
	min-width: 0;
	text-align: var(--chhero-texto-align);
}

/* Invertir el orden visual sin tocar el orden del DOM (que es el que lee
   un lector de pantalla y el que sigue el tabulador). */
.cursohongoshero--invertido .cursohongoshero__texto {
	order: 2;
	grid-column: 2;
	grid-row: 1;
}

.cursohongoshero--invertido .cursohongoshero__escena {
	order: 1;
	grid-column: 1;
	grid-row: 1;
}

.cursohongoshero--invertido .cursohongoshero__grid {
	grid-template-columns: var(--chhero-col-media) var(--chhero-col-texto);
}

/* ===================================================================
 * SELLO Y NOTA
 * =================================================================== */

.cursohongoshero__sello-fila {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px var(--chhero-sello-gap);
	margin-bottom: var(--chhero-sello-margen);
}

/* Centrado: la columna de texto se alinea al medio y las filas flexibles
   (sello, botones, chips) tienen que seguirla. */
.cursohongoshero--centrado {
	--chhero-texto-align: center;
	--chhero-slider-justificado-apilado: center;
}

.cursohongoshero--centrado .cursohongoshero__sello-fila,
.cursohongoshero--centrado .cursohongoshero__acciones,
.cursohongoshero--centrado .cursohongoshero__avales {
	justify-content: center;
}

.cursohongoshero__sello {
	display: inline-block;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--chhero-sello-color);
	background: var(--chhero-sello-fondo);
	border: var(--chhero-sello-borde-ancho) solid var(--chhero-sello-borde-color);
	border-radius: var(--chhero-sello-radio);
	padding: var(--chhero-sello-pad);
	transform: rotate(var(--chhero-sello-giro));
	box-shadow: var(--chhero-sello-sombra);
	white-space: nowrap;
}

.cursohongoshero__sello-cola {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--chhero-cola-color);
}

.cursohongoshero__nota {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--chhero-nota-color);
	margin-bottom: var(--chhero-nota-margen) !important;
}

/* ===================================================================
 * TITULO
 * =================================================================== */

.cursohongoshero__titulo {
	/* Tamano fluido por defecto. En cuanto tocas el grupo Tipografia de
	   Elementor, su regla (mas especifica) gana y manda la suya. */
	font-size: clamp(2.9rem, 8.4vw, 7rem);
	font-weight: 800;
	line-height: 0.86;
	letter-spacing: -0.04em;
	color: var(--chhero-titulo-color);
	margin: 0 0 var(--chhero-titulo-margen);
	/* Los garabatos se salen de la caja del texto: sin esto se recortan. */
	overflow: visible;
}

.cursohongoshero__tachado {
	position: relative;
	display: inline-block;
	white-space: nowrap;
	color: var(--chhero-tachado-color);
}

.cursohongoshero__marca {
	position: absolute;
	pointer-events: none;
	overflow: visible;
	z-index: 3;
}

.cursohongoshero__marca path,
.cursohongoshero__marca line,
.cursohongoshero__marca ellipse,
.cursohongoshero__marca polyline {
	fill: none;
	stroke: var(--chhero-marca-color);
	stroke-width: var(--chhero-marca-grosor);
	stroke-linecap: round;
	stroke-linejoin: round;
}

.cursohongoshero__tachado > .cursohongoshero__marca {
	left: -4%;
	top: 8%;
	width: 108%;
	height: 84%;
}

/* Los subrayados no cruzan la palabra: se apoyan bajo la linea base. */
.cursohongoshero__tachado > .cursohongoshero__marca--subrayado,
.cursohongoshero__tachado > .cursohongoshero__marca--doble {
	top: auto;
	bottom: -0.24em;
	height: 0.5em;
}

/* Trazo animado: se dibuja al entrar en pantalla. Sin JS (o sin
   IntersectionObserver) el trazo queda visible y completo, que es el
   estado correcto de reposo. */
.cursohongoshero--js .cursohongoshero__marca path,
.cursohongoshero--js .cursohongoshero__marca line,
.cursohongoshero--js .cursohongoshero__marca ellipse,
.cursohongoshero--js .cursohongoshero__marca polyline {
	stroke-dasharray: var(--chhero-len, 600);
	stroke-dashoffset: var(--chhero-len, 600);
}

.cursohongoshero--js .cursohongoshero__marca.is-dibujada path,
.cursohongoshero--js .cursohongoshero__marca.is-dibujada line,
.cursohongoshero--js .cursohongoshero__marca.is-dibujada ellipse,
.cursohongoshero--js .cursohongoshero__marca.is-dibujada polyline {
	animation: cursohongoshero-trazo var(--chhero-marca-dur) cubic-bezier(0.6, 0.05, 0.2, 1) forwards;
}

.cursohongoshero__precio {
	position: absolute;
	top: -0.34em;
	right: -0.5em;
	font-family: "Caveat", "Segoe Script", cursive;
	font-size: 0.42em;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: 0;
	color: var(--chhero-precio-color);
	white-space: nowrap;
	transform: rotate(var(--chhero-precio-giro));
	display: inline-block;
}

.cursohongoshero__precio-x {
	font-family: inherit;
	font-weight: 700;
}

/* ===================================================================
 * PARRAFOS
 * =================================================================== */

.cursohongoshero__lede {
	font-size: clamp(1.15rem, 2.2vw, 1.44rem);
	line-height: 1.45;
	font-weight: 500;
	color: var(--chhero-lede-color);
	max-width: var(--chhero-lede-ancho);
	margin-bottom: var(--chhero-lede-margen) !important;
}

.cursohongoshero__sub {
	font-size: 1rem;
	line-height: 1.62;
	color: var(--chhero-sub-color);
	max-width: var(--chhero-sub-ancho);
	margin-bottom: var(--chhero-sub-margen) !important;
}

.cursohongoshero__sub strong,
.cursohongoshero__sub b {
	color: var(--chhero-sub-fuerte-color);
	font-weight: 600;
}

/* Centrado: los max-width dejarian el parrafo pegado a la izquierda. */
.cursohongoshero--centrado .cursohongoshero__lede,
.cursohongoshero--centrado .cursohongoshero__sub {
	margin-left: auto;
	margin-right: auto;
}

/* Resaltador. box-decoration-break mantiene el trazo al saltar de linea. */
.cursohongoshero__resalte,
.cursohongoshero .hl {
	background: linear-gradient(
		transparent 56%,
		var(--chhero-resalte-color) 56% 94%,
		transparent 94%
	);
	padding: 0 0.03em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* ===================================================================
 * BOTONES
 * =================================================================== */

.cursohongoshero__acciones {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--chhero-acciones-gap);
	margin-bottom: var(--chhero-acciones-margen);
}

.cursohongoshero__boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--chhero-btn-gap);
	font-size: 1.19rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.2;
	padding: var(--chhero-btn-pad);
	border-radius: var(--chhero-btn-radio);
	border: var(--chhero-btn-borde-ancho) solid var(--chhero-btn-borde-color);
	background: var(--chhero-btn-fondo);
	color: var(--chhero-btn-color);
	box-shadow: var(--chhero-btn-sombra);
	transform: rotate(var(--chhero-btn-giro));
	transition: transform 0.14s ease, box-shadow 0.14s ease,
		background-color 0.14s ease, color 0.14s ease, border-color 0.14s ease;
	white-space: nowrap;
	cursor: pointer;
}

.cursohongoshero__boton:hover,
.cursohongoshero__boton:focus-visible {
	color: var(--chhero-btn-color-h);
	background: var(--chhero-btn-fondo-h);
	border-color: var(--chhero-btn-borde-color-h);
	box-shadow: var(--chhero-btn-sombra-h);
	transform: rotate(var(--chhero-btn-giro)) translate(-1px, -1px);
}

.cursohongoshero__boton:active {
	transform: rotate(var(--chhero-btn-giro)) translate(2px, 2px);
	box-shadow: 1px 1px 0 rgba(22, 21, 15, 0.85);
}

.cursohongoshero__boton-icono {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.cursohongoshero__boton-icono svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

.cursohongoshero__boton:hover .cursohongoshero__boton-icono--fin {
	transform: translateX(var(--chhero-btn-desp));
}

.cursohongoshero__boton:hover .cursohongoshero__boton-icono--ini {
	transform: translateX(calc(var(--chhero-btn-desp) * -1));
}

/* Variante fantasma */
.cursohongoshero__boton--fantasma {
	font-size: 1rem;
	padding: var(--chhero-btn2-pad);
	color: var(--chhero-btn2-color);
	background: var(--chhero-btn2-fondo);
	border-color: var(--chhero-btn2-borde-color);
	box-shadow: none;
	transform: rotate(var(--chhero-btn2-giro));
}

.cursohongoshero__boton--fantasma:hover,
.cursohongoshero__boton--fantasma:focus-visible {
	color: var(--chhero-btn2-color-h);
	background: var(--chhero-btn2-fondo-h);
	border-color: var(--chhero-btn2-borde-color-h);
	box-shadow: var(--chhero-btn-sombra);
	transform: rotate(var(--chhero-btn2-giro)) translate(-1px, -1px);
}

.cursohongoshero__boton--fantasma:active {
	transform: rotate(var(--chhero-btn2-giro)) translate(2px, 2px);
}

/* ===================================================================
 * AVALES (CHIPS)
 * =================================================================== */

.cursohongoshero__avales {
	display: flex;
	flex-wrap: wrap;
	gap: var(--chhero-avales-gap-y) var(--chhero-avales-gap-x);
}

.cursohongoshero__chip {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	line-height: 1.4;
	color: var(--chhero-chip-color);
	background: var(--chhero-chip-fondo);
	border: var(--chhero-chip-borde-ancho) solid var(--chhero-chip-borde-color);
	border-radius: var(--chhero-chip-radio);
	padding: var(--chhero-chip-pad);
	transform: rotate(var(--chhero-chip-giro));
}

.cursohongoshero__chip:nth-of-type(2n) {
	transform: rotate(calc(var(--chhero-chip-giro) * -1.33));
}

.cursohongoshero__chip b,
.cursohongoshero__chip strong {
	color: var(--chhero-chip-fuerte-color);
	font-weight: 700;
}

/* Salto de linea forzado dentro del flex. Solo actua en pantallas
   pequenas: en escritorio los chips ya caben en una fila. */
.cursohongoshero__avales-salto {
	display: none;
}

/* ===================================================================
 * ESCENA Y SLIDER
 * =================================================================== */

.cursohongoshero__escena {
	position: relative;
	display: flex;
	justify-content: var(--chhero-slider-justificado);
	min-width: 0;
}

.cursohongoshero__slider {
	position: relative;
	width: 100%;
	max-width: var(--chhero-slider-ancho);
	transform: rotate(var(--chhero-slider-giro));
}

.cursohongoshero__cinta {
	position: absolute;
	top: var(--chhero-cinta-arriba);
	left: var(--chhero-cinta-izq);
	width: var(--chhero-cinta-ancho);
	height: var(--chhero-cinta-alto);
	background-color: var(--chhero-cinta-color);
	background-image: repeating-linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.25) 0,
		rgba(255, 255, 255, 0.25) 5px,
		transparent 5px,
		transparent 10px
	);
	border-left: 1px dashed rgba(22, 21, 15, 0.18);
	border-right: 1px dashed rgba(22, 21, 15, 0.18);
	box-shadow: 0 2px 6px rgba(22, 21, 15, 0.12);
	transform: rotate(var(--chhero-cinta-giro));
	z-index: 6;
	pointer-events: none;
}

.cursohongoshero__marco {
	position: relative;
	aspect-ratio: var(--chhero-marco-prop);
	border: var(--chhero-marco-borde-ancho) solid var(--chhero-marco-borde-color);
	border-radius: var(--chhero-marco-radio);
	overflow: hidden;
	background: var(--chhero-marco-fondo);
	box-shadow: var(--chhero-marco-sombra);
}

.cursohongoshero__pista {
	display: flex;
	height: 100%;
	transition: transform var(--chhero-slide-dur) var(--chhero-slide-ease);
	will-change: transform;
}

/* Mientras se arrastra con el dedo el movimiento es 1:1 con la mano: una
   transicion aqui lo volveria pastoso. */
.cursohongoshero__pista.is-arrastrando {
	transition: none;
}

.cursohongoshero__diapo {
	position: relative;
	min-width: 100%;
	height: 100%;
	overflow: hidden;
}

.cursohongoshero__diapo img,
.cursohongoshero__diapo video,
.cursohongoshero__diapo iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: cover;
	background: var(--chhero-marco-fondo);
}

.cursohongoshero__diapo-poster {
	z-index: 1;
	transition: opacity 0.4s ease;
	pointer-events: none;
}

.cursohongoshero__diapo.is-cargada .cursohongoshero__diapo-poster {
	opacity: 0;
}

.cursohongoshero__etiqueta {
	position: absolute;
	top: var(--chhero-etiqueta-arriba);
	left: var(--chhero-etiqueta-izq);
	z-index: 3;
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--chhero-etiqueta-color);
	background: var(--chhero-etiqueta-fondo);
	padding: var(--chhero-etiqueta-pad);
	border-radius: var(--chhero-etiqueta-radio);
	white-space: nowrap;
}

/* --- Boton de sonido ------------------------------------------------- */

.cursohongoshero__sonido {
	position: absolute;
	bottom: var(--chhero-sonido-abajo);
	left: 50%;
	transform: translateX(-50%);
	z-index: 7;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-height: 44px;
	max-width: 88%;
	padding: 11px 18px;
	border-radius: 100px;
	border: 2px solid var(--chhero-sonido-borde-color);
	background: var(--chhero-sonido-fondo);
	color: var(--chhero-sonido-color);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: -0.01em;
	white-space: nowrap;
	box-shadow: var(--chhero-sombra-sello);
	animation: cursohongoshero-latido 2.4s ease-in-out infinite;
}

.cursohongoshero__sonido:hover {
	background: var(--chhero-sonido-fondo-h);
}

.cursohongoshero__sonido svg {
	flex-shrink: 0;
	width: 15px;
	height: 15px;
}

.cursohongoshero__sonido[hidden] {
	display: none;
}

/* --- Flechas --------------------------------------------------------- */

.cursohongoshero__flechas {
	position: absolute;
	inset: 0;
	z-index: 5;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 6px;
}

.cursohongoshero__flecha {
	pointer-events: auto;
	width: var(--chhero-flecha-size);
	height: var(--chhero-flecha-size);
	border-radius: 50%;
	background: var(--chhero-flecha-fondo);
	border: var(--chhero-flecha-borde-ancho) solid var(--chhero-flecha-borde-color);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--chhero-sombra-sello);
	transition: transform 0.12s ease, background-color 0.12s ease, opacity 0.2s ease;
}

.cursohongoshero__flecha:hover {
	transform: scale(1.08);
}

.cursohongoshero__flecha:active {
	transform: scale(0.92);
	background: var(--chhero-flecha-fondo-a);
}

.cursohongoshero__flecha svg {
	width: var(--chhero-flecha-icono);
	height: var(--chhero-flecha-icono);
	fill: var(--chhero-flecha-color);
}

/* Sin bucle, en los extremos, la flecha se apaga en vez de desaparecer:
   asi el layout no da un salto. */
.cursohongoshero__flecha[disabled] {
	opacity: 0.35;
	cursor: default;
	pointer-events: none;
}

/* --- Puntos ---------------------------------------------------------- */

.cursohongoshero__puntos {
	display: flex;
	gap: var(--chhero-punto-gap);
	justify-content: center;
	margin-top: var(--chhero-punto-margen);
}

.cursohongoshero__punto {
	width: var(--chhero-punto-size);
	height: var(--chhero-punto-size);
	border-radius: 50%;
	background: var(--chhero-punto-fondo);
	border: 2px solid var(--chhero-punto-borde);
	transition: background-color 0.2s ease, transform 0.2s ease;
	padding: 0;
}

.cursohongoshero__punto.is-activo {
	background: var(--chhero-punto-fondo-on);
	transform: scale(1.25);
}

/* --- Pie ------------------------------------------------------------- */

.cursohongoshero__pie {
	text-align: center;
	margin-top: var(--chhero-pie-margen);
	font-family: "Caveat", "Segoe Script", cursive;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--chhero-pie-color);
	transform: rotate(var(--chhero-pie-giro));
}

/* --- Circulo de coste ------------------------------------------------ */

.cursohongoshero__circulo {
	position: absolute;
	top: var(--chhero-circulo-arriba);
	right: var(--chhero-circulo-der);
	z-index: 8;
	text-align: inherit;
}

.cursohongoshero__circulo--abajo {
	top: auto;
	bottom: var(--chhero-circulo-arriba);
}

.cursohongoshero__circulo--izq {
	right: auto;
	left: var(--chhero-circulo-der);
}

.cursohongoshero__circulo-txt {
	position: relative;
	display: inline-block;
	font-family: "Caveat", "Segoe Script", cursive;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.1;
	color: var(--chhero-circulo-color);
	background: var(--chhero-circulo-fondo);
	padding: var(--chhero-circulo-pad);
	border-radius: var(--chhero-circulo-radio);
	box-shadow: var(--chhero-circulo-sombra);
	transform: rotate(var(--chhero-circulo-giro));
}

.cursohongoshero__circulo-txt > .cursohongoshero__marca {
	left: -16%;
	top: -22%;
	width: 132%;
	height: 150%;
}

/* ===================================================================
 * ANIMACION DE ENTRADA
 * =================================================================== */

.cursohongoshero--js.cursohongoshero--entrada .cursohongoshero__anim {
	opacity: 0;
	transform: translateY(var(--chhero-entrada-desp));
}

.cursohongoshero--js.cursohongoshero--entrada.is-dentro .cursohongoshero__anim {
	animation: cursohongoshero-entrada var(--chhero-entrada-dur)
		var(--chhero-entrada-ease) both;
	animation-delay: var(--chhero-retardo, 0s);
}

/* ===================================================================
 * FOCO VISIBLE
 * =================================================================== */

.cursohongoshero a:focus-visible,
.cursohongoshero button:focus-visible {
	outline: var(--chhero-foco-ancho) solid var(--chhero-foco-color);
	outline-offset: var(--chhero-foco-offset);
	border-radius: 4px;
}

/* Region de estado del slider: la leen los lectores de pantalla al cambiar de
   diapositiva. Invisible, pero presente en el arbol de accesibilidad — de ahi
   el recorte en lugar de display:none, que la sacaria de el. */
.cursohongoshero__estado {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* ===================================================================
 * AVISO DEL EDITOR
 * =================================================================== */

.cursohongoshero-editor-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	padding: 10px 14px;
	border: 1px dashed #b4b4ac;
	border-radius: 4px;
	background: #fbfbf7;
	color: #55554d;
	font-size: 12px;
	line-height: 1.45;
}

/* ===================================================================
 * AJUSTES DE PANTALLA MUY ESTRECHA
 *
 * Los dos puntos de ruptura principales (apilado y compacto) los imprime el
 * widget, porque su ancho es configurable por instancia. Este bloque es el
 * ultimo retoque para moviles pequenos, donde los chips no caben.
 * =================================================================== */

@media (max-width: 480px) {
	.cursohongoshero__avales {
		gap: 6px;
	}

	.cursohongoshero__chip {
		font-size: 9.5px;
		letter-spacing: 0.02em;
		padding: 4px 8px;
	}

	.cursohongoshero__avales-salto {
		display: block;
		flex-basis: 100%;
		width: 100%;
		height: 0;
	}

	.cursohongoshero__acciones {
		gap: 12px;
	}

	.cursohongoshero__boton {
		width: 100%;
		white-space: normal;
		text-align: center;
	}
}

/* ===================================================================
 * KEYFRAMES
 * =================================================================== */

@keyframes cursohongoshero-trazo {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes cursohongoshero-entrada {
	from {
		opacity: 0;
		transform: translateY(var(--chhero-entrada-desp));
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes cursohongoshero-latido {
	0%,
	100% {
		box-shadow: var(--chhero-sombra-sello);
	}

	50% {
		box-shadow: 2px 3px 0 rgba(22, 21, 15, 0.85),
			0 0 0 5px rgba(205, 241, 59, 0.4);
	}
}

/* ===================================================================
 * MOVIMIENTO REDUCIDO
 *
 * Se anulan animaciones y transiciones, pero NO el resultado: los trazos
 * quedan dibujados y las piezas visibles. Una animacion desactivada no
 * puede dejar contenido invisible.
 * =================================================================== */

@media (prefers-reduced-motion: reduce) {
	.cursohongoshero *,
	.cursohongoshero *::before,
	.cursohongoshero *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}

	.cursohongoshero--js.cursohongoshero--entrada .cursohongoshero__anim {
		opacity: 1;
		transform: none;
	}

	.cursohongoshero--js .cursohongoshero__marca path,
	.cursohongoshero--js .cursohongoshero__marca line,
	.cursohongoshero--js .cursohongoshero__marca ellipse,
	.cursohongoshero--js .cursohongoshero__marca polyline {
		stroke-dasharray: none;
		stroke-dashoffset: 0;
	}
}

/* ===================================================================
 * IMPRESION
 * =================================================================== */

@media print {
	.cursohongoshero__flechas,
	.cursohongoshero__puntos,
	.cursohongoshero__sonido,
	.cursohongoshero-editor-hint {
		display: none !important;
	}

	.cursohongoshero__slider,
	.cursohongoshero__boton,
	.cursohongoshero__chip,
	.cursohongoshero__sello,
	.cursohongoshero__circulo-txt {
		transform: none !important;
		box-shadow: none !important;
	}
}
