/* Efecto «Navidad · Tren de regalos» del Hero (1.5.68): el mismo tren de papel que recorría la vitrina navideña de
   «Más vendidos», sobre una vía dorada en el borde inferior del slider. Avanza solo mientras el hero está en pantalla.
   Los controles, el texto y la tarjeta del producto suben lo que mide la vía para no quedar encima del tren. */
.crh-sec.crh-hero--tren { --tren-h: 55px; --vagon: 153px; }
.crh-hero--tren .crh-hero__txt { margin-bottom: var(--tren-h); }
.crh-hero--tren .crh-hero__ctl,
.crh-hero--tren .crh-hero__card { margin-bottom: var(--tren-h); }
.crh-hero-tren {
	position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--tren-h);
	overflow: hidden; pointer-events: none;
	background: linear-gradient(transparent 30%, #00000038);
}
.crh-hero-tren::after {
	content: ""; position: absolute; inset: auto 0 0; height: 4px; border-top: 1px solid #f7cd81; border-bottom: 1px solid #b89559;
	background: repeating-linear-gradient(105deg, transparent 0 9px, #b28b4b 10px 12px, transparent 13px 14px);
}
.crh-hero-tren i { position: absolute; inset: 0; transform: translateX(42%); }
.crh-hero-tren i::before {
	content: ""; position: absolute; bottom: 4px; left: calc(0px - var(--vagon)); width: var(--vagon); height: calc(100% - 4px);
	background: url("navidad-tren.webp") left bottom / contain no-repeat;
}
@keyframes crh-hero-tren { from { transform: translateX(0); } to { transform: translateX(calc(100% + var(--vagon))); } }
@media (prefers-reduced-motion: no-preference) {
	.crh-hero-tren i { animation: crh-hero-tren 17s linear -5s infinite paused; }
	.crh-hero--tren.is-tren .crh-hero-tren i { animation-play-state: running; }
}
@media (max-width: 900px) {
	.crh-sec.crh-hero--tren { --tren-h: 40px; --vagon: 114px; }
	.crh-hero-tren i { animation-duration: 11s; animation-delay: -4s; }
}

/* Luces del efecto (1.5.68): bokeh dorado y chispas blancas como las del banner del diseñador (en la unión entre el
   lado rojo y la foto), más densas arriba. Titilan y suben despacio mientras el hero se ve. */
.crh-hero-luces { position: absolute; inset: 0; z-index: 3; overflow: hidden; pointer-events: none; }
.crh-hero-luces i {
	--x: 40%; --y: 10%; --s: 26px; --d: 5s; --f: 0s; --o: .75;
	position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2);
	border-radius: 50%; opacity: var(--o);
	background: radial-gradient(circle, #fff7d6 0 18%, #ffd877cc 34%, #f6b94a55 58%, transparent 72%);
	filter: blur(.6px);
}
.crh-hero-luces i:nth-child(3n) { background: radial-gradient(circle, #fffef6 0 30%, #fff3c8aa 48%, transparent 70%); }
.crh-hero-luces i:nth-child(1)  { --x: 41%; --y: 6%;  --s: 34px; --d: 6.2s; --f: -1.1s; }
.crh-hero-luces i:nth-child(2)  { --x: 46%; --y: 15%; --s: 14px; --d: 4.4s; --f: -2.6s; }
.crh-hero-luces i:nth-child(3)  { --x: 38%; --y: 22%; --s: 6px;  --d: 3.6s; --f: -.4s; --o: .95; }
.crh-hero-luces i:nth-child(4)  { --x: 44%; --y: 31%; --s: 26px; --d: 5.6s; --f: -3.9s; --o: .6; }
.crh-hero-luces i:nth-child(5)  { --x: 49%; --y: 9%;  --s: 8px;  --d: 3.9s; --f: -1.7s; --o: .9; }
.crh-hero-luces i:nth-child(6)  { --x: 35%; --y: 4%;  --s: 18px; --d: 5.1s; --f: -4.2s; }
.crh-hero-luces i:nth-child(7)  { --x: 43%; --y: 45%; --s: 12px; --d: 4.7s; --f: -.9s; --o: .55; }
.crh-hero-luces i:nth-child(8)  { --x: 28%; --y: 12%; --s: 5px;  --d: 3.3s; --f: -2.2s; --o: .9; }
.crh-hero-luces i:nth-child(9)  { --x: 47%; --y: 58%; --s: 20px; --d: 6.4s; --f: -5.1s; --o: .45; }
.crh-hero-luces i:nth-child(10) { --x: 20%; --y: 7%;  --s: 22px; --d: 5.8s; --f: -3.2s; --o: .5; }
.crh-hero-luces i:nth-child(11) { --x: 39%; --y: 68%; --s: 6px;  --d: 3.7s; --f: -1.3s; --o: .8; }
.crh-hero-luces i:nth-child(12) { --x: 12%; --y: 18%; --s: 5px;  --d: 4.1s; --f: -2.9s; --o: .8; }
.crh-hero-luces i:nth-child(13) { --x: 51%; --y: 24%; --s: 5px;  --d: 3.4s; --f: -.2s; --o: .95; }
.crh-hero-luces i:nth-child(14) { --x: 33%; --y: 36%; --s: 9px;  --d: 4.9s; --f: -4.6s; --o: .7; }
@keyframes crh-hero-luz {
	0%, 100% { opacity: calc(var(--o) * .35); transform: translateY(0) scale(.85); }
	50% { opacity: var(--o); transform: translateY(-14px) scale(1.08); }
}
@media (prefers-reduced-motion: no-preference) {
	.crh-hero-luces i { animation: crh-hero-luz var(--d) ease-in-out var(--f) infinite paused; }
	.crh-hero--tren.is-tren .crh-hero-luces i { animation-play-state: running; }
}
/* Apilado (texto bajo la foto): las luces van en la unión entre la foto y el panel de texto. */
@media (max-width: 1024px) {
	.crh-hero-luces { bottom: auto; height: 100%; }
	.crh-hero-luces i { left: calc(var(--x) * 2 - 20%); top: calc(var(--y) * .45 + var(--crh-hero-union, 45%)); }
}
@media (max-width: 1024px) and (min-width: 768px) { .crh-sec.crh-hero--tren { --crh-hero-union: 58%; } }
@media (max-width: 767.98px) { .crh-sec.crh-hero--tren { --crh-hero-union: 50%; } }

/* La barra de avance roja no se ve sobre una escena roja: va blanca. */
.crh-hero__slider:has(.crh-hero__slide.is-on.is-rojo) .crh-hero__bar i { background: #fff; }
.crh-hero__slider:has(.crh-hero__slide.is-on.is-rojo) .crh-hero__pg.is-on .crh-hero__bar { background: rgba(255, 255, 255, .35); }
