/* Efecto «Cyber · Oferta flash» de «Más vendidos» (1.5.68). Mismos colores, medidas y animaciones que la muestra
   del Cyber hecha con snippet sobre el carrusel de Woodmart (mu-plugin haussen-stcl-muestra-cyber.php en staging),
   aplicados a las tarjetas propias de la sección. */
.crh-sec.crh-tops--cyber {
	--cy-b: #1300ef; --cy-y: #ffc400; --cy-r: #e01f26; --cy-d: #ff4d5e;
	--crh-gap: 14px;
	--crh-basis: calc((100% - 4 * var(--crh-gap)) / 4.5); /* 4½ tarjetas a la vista, como el carrusel del snippet */
}
.crh-tops--cyber .crh-cyber {
	position: relative; isolation: isolate; min-width: 0; max-width: 100%; /* sin overflow: las flechas pueden salir del recuadro */
	border-radius: 24px; padding: 22px 18px 12px;
	background: radial-gradient(120% 140% at 0% 0%, #2a1cff 0%, #0d0396 38%, #06013f 100%);
	box-shadow: 0 30px 60px -25px rgba(19, 0, 239, .55);
	font-family: Poppins, Arial, sans-serif; color: #fff;
}
/* Fondo animado en su propia capa recortada (el recuadro no recorta, para no cortar las flechas). */
.crh-cyber__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.crh-cyber__fondo::before {
	content: ""; position: absolute; inset: -40%; z-index: -1; pointer-events: none;
	background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 196, 0, .16) 80%, transparent 90%);
	animation: crh-cy-giro 9s linear infinite;
}
.crh-cyber__fondo::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px); background-size: 18px 18px;
}
@keyframes crh-cy-giro { to { transform: rotate(360deg); } }
@keyframes crh-cy-rayo { 0%, 100% { transform: scale(1) rotate(0); } 8% { transform: scale(1.2) rotate(-10deg); } 16% { transform: scale(1) rotate(6deg); } 24% { transform: rotate(0); } }
@keyframes crh-cy-punto { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes crh-cy-brillo { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@keyframes crh-cy-barra { from { width: 0; } }
@keyframes crh-cy-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 196, 0, .55), 0 10px 30px -8px rgba(255, 196, 0, .6); } 50% { box-shadow: 0 0 0 10px rgba(255, 196, 0, 0), 0 10px 40px -4px rgba(255, 196, 0, .9); } }
@keyframes crh-cy-pop { 0%, 100% { transform: rotate(-4deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.06); } }
@keyframes crh-cy-franja { to { transform: translateX(-50%); } }
@keyframes crh-cy-logo { 0%, 100% { filter: drop-shadow(0 2px 6px rgba(18, 56, 255, .7)); } 50% { filter: drop-shadow(0 2px 12px rgba(60, 140, 255, 1)); } }

/* ---------- Cabecera ---------- */
.crh-tops--cyber .crh-head.crh-cyber__cabecera {
	box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin: 0 10px 12px;
}
.crh-cyber__marca { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.crh-cyber__pill {
	display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden;
	padding: 6px 15px 6px 10px; border: 2px solid #fff; border-radius: 999px; background: var(--cy-b);
	font-weight: 800; font-size: 13px; line-height: 1.5; letter-spacing: 1.6px; text-transform: uppercase; color: #fff;
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .18), 0 6px 22px -4px rgba(19, 0, 239, .9), 0 0 18px rgba(255, 255, 255, .35);
}
.crh-cyber__pill::after {
	content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
	animation: crh-cy-brillo 3s ease-in-out infinite;
}
.crh-cyber__rayo { width: 20px; height: 20px; border-radius: 50%; background: rgba(255, 255, 255, .15); display: grid; place-items: center; animation: crh-cy-rayo 2.4s infinite; }
.crh-cyber__rayo svg, .crh-cyber__mini svg { display: block; width: 12px; height: 12px; fill: var(--cy-y); }
.crh-cyber__punto { width: 7px; height: 7px; border-radius: 50%; background: var(--cy-d); box-shadow: 0 0 8px var(--cy-d); animation: crh-cy-punto 1.8s infinite; }
.crh-cyber__logo { display: block; width: fit-content; margin: 0; animation: crh-cy-logo 2.4s ease-in-out infinite; }
.crh-cyber__logo span {
	display: block; font: 900 24px/1 "Arial Black", "Helvetica Neue", Arial, sans-serif; letter-spacing: 1.5px; color: #fff;
	background: linear-gradient(180deg, #fff 0%, #cfe0ff 55%, #8fb4ff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.crh-sec.crh-tops--cyber .crh-title {
	margin: 8px 0 2px; font-family: Poppins, Arial, sans-serif; font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.5px; color: #fff;
}
.crh-sec.crh-tops--cyber .crh-title :is(em, strong, .crh-accent) { color: var(--cy-y); font-style: normal; text-shadow: 0 0 22px rgba(255, 196, 0, .55); }
.crh-sec.crh-tops--cyber .crh-sub { max-width: none; margin: 0; font-family: Poppins, Arial, sans-serif; font-size: 14px; line-height: 1.55; color: #fff; opacity: .75; }
.crh-sec.crh-tops--cyber .crh-head .crh-link { color: #fff; }
.crh-sec.crh-tops--cyber .crh-head .crh-link:hover { color: var(--cy-y); }
.crh-cyber__max {
	position: relative; overflow: hidden; padding: 8px 18px 10px; border-radius: 18px; background: var(--cy-y); color: #06013f; text-align: center;
	transform: rotate(-4deg); animation: crh-cy-glow 2s infinite, crh-cy-pop 2s ease-in-out infinite;
}
.crh-cyber__max small { display: block; font-size: 11px; font-weight: 800; letter-spacing: 2px; line-height: 1.5; }
.crh-cyber__max b { display: block; font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -1px; }
.crh-cyber__max i { font-style: normal; font-size: 12px; font-weight: 700; }
.crh-cyber__max-m { display: none; }

/* ---------- Franja de textos ---------- */
.crh-cyber__franja {
	margin: 0 0 12px; padding: 5px 0; overflow: hidden; white-space: nowrap;
	border-top: 1px solid rgba(255, 255, 255, .08); border-bottom: 1px solid rgba(255, 255, 255, .08);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.crh-cyber__franja > div { display: inline-block; animation: crh-cy-franja 70s linear infinite; font-weight: 700; font-size: 11px; line-height: 1.5; letter-spacing: 2.5px; text-transform: uppercase; color: #fff; opacity: .7; }
.crh-cyber__franja:hover > div { animation-play-state: paused; }
.crh-cyber__franja span { margin: 0 18px; }
.crh-cyber__franja em { font-style: normal; color: var(--cy-y); }

/* ---------- Tarjetas ---------- */
.crh-tops--cyber .crh-tops__stage { margin: 0 3px; }
.crh-tops--cyber .crh-track { padding: 8px 4px 10px; margin: -8px -4px 0; scroll-padding-inline: 4px; }
.crh-tops--cyber .crh-track .crh-card {
	box-sizing: border-box; height: auto; padding: 10px 10px 14px; border-radius: 18px; background: #fff; color: #1d1d1f;
	transition: transform .25s, box-shadow .25s;
}
.crh-tops--cyber .crh-card .crh-card__media { border-radius: 12px; background: #fff; }
.crh-tops--cyber .crh-card .crh-card__img img { transition: transform .4s, opacity .45s var(--crh-ease); }
@media (hover: hover) and (pointer: fine) {
	.crh-tops--cyber .crh-track .crh-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px -12px rgba(255, 196, 0, .6), 0 0 0 2px var(--cy-y); }
	.crh-tops--cyber .crh-card:hover .crh-card__img img { transform: scale(1.06); }
}
.crh-tops--cyber .crh-card .crh-tag--off { background: var(--cy-r); border-radius: 7px; font-weight: 700; }
.crh-tops--cyber .crh-card__tags .hau-bk-wrap { display: none !important; } /* sin el sello del Black: el % de la tarjeta */
.crh-tops--cyber .crh-card__tags.hau-bk-done :is(.crh-tag--off, .crh-tag--top):not([hidden]) { display: inline-block !important; }
.crh-tops--cyber .crh-card .crh-card__meta { padding: 12px 2px 0; }
.crh-tops--cyber .crh-card .crh-card__name, .crh-tops--cyber .crh-card .crh-card__name a { color: #1d1d1f; font-weight: 600; }
.crh-tops--cyber .crh-card .crh-card__price b { color: var(--cy-r); font-weight: 800; }
.crh-tops--cyber .crh-card .crh-card__price s { color: #999; }
.crh-cyber__mini {
	position: absolute; right: 8px; bottom: 8px; z-index: 1; width: 26px; height: 26px; border-radius: 50%;
	display: grid; place-items: center; background: var(--cy-b); box-shadow: 0 3px 10px rgba(19, 0, 239, .6); pointer-events: none;
}
.crh-cyber__mini svg { width: 13px; height: 13px; animation: crh-cy-rayo 2.4s infinite; }
/* Con mouse, al pasar sobre la tarjeta aparecen «Agregar» y la vista rápida abajo: el rayo sube sobre ellos. */
@media (hover: hover) and (pointer: fine) {
	.crh-cyber__mini { transition: transform .35s var(--crh-ease, ease); }
	.crh-tops--cyber .crh-card:is(:hover, :focus-within) .crh-cyber__mini { transform: translateY(-54px); }
}
/* En pantallas táctiles el botón de agregar ocupa la esquina derecha de la foto: el rayo pasa a la izquierda. */
@media (max-width: 767.98px) and (any-pointer: coarse), not all and (hover: hover) and (pointer: fine) {
	.crh-cyber__mini { right: auto; left: 8px; }
}
.crh-cyber__dbar { margin: 9px 2px 0; text-align: left; }
.crh-cyber__dbar[hidden] { display: none; }
.crh-cyber__dbar > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; line-height: 1.5; color: #555; white-space: nowrap; }
.crh-cyber__dbar > div:first-child > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crh-cyber__dbar em { flex-shrink: 0; font-style: normal; color: var(--cy-r); font-weight: 700; }
.crh-cyber__dbar em b { font-weight: inherit; }
.crh-cyber__t { height: 6px; margin-top: 5px; border-radius: 6px; background: #eee; overflow: hidden; }
.crh-cyber__t i { position: relative; display: block; height: 100%; overflow: hidden; border-radius: 6px; background: linear-gradient(90deg, var(--cy-y), var(--cy-r)); animation: crh-cy-barra 1.2s ease-out; }
.crh-cyber__t i::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .8), transparent); animation: crh-cy-brillo 2.2s ease-in-out infinite; }
.crh-cyber__ahorro { display: block; margin: 9px 2px 0; padding: 6px 8px; border-radius: 8px; background: linear-gradient(90deg, #fff4cc, #fff); font-size: 12px; line-height: 1.5; color: #06013f; text-align: left; }
.crh-cyber__ahorro[hidden] { display: none; }
.crh-cyber__ahorro b { color: var(--cy-r); }

/* Mismo contenido y orden que la tarjeta de Woodmart del snippet: centrada, sin marca ni cuotas, y el precio tachado
   antes del precio de oferta. Los colores elegibles (p. ej. botellas Kava) van en el espacio entre estrellas y precio. */
.crh-tops--cyber .crh-card .crh-card__meta { align-items: center; text-align: center; }
.crh-tops--cyber .crh-card :is(.crh-card__brand, .crh-card__cuotas) { display: none !important; }
.crh-tops--cyber .crh-card .crh-card__sw { order: 1; justify-content: center; align-items: center; margin: 9px 0 11px; }
.crh-tops--cyber .crh-card :is(.crh-card__price, .crh-cyber__dbar, .crh-cyber__ahorro) { order: 2; }
.crh-tops--cyber .crh-card .crh-card__name { width: 100%; min-height: 2.8em; margin: 7px 0 0; font: 600 14px/1.4 "DM Sans", Arial, Helvetica, sans-serif; letter-spacing: 0; }
.crh-tops--cyber .crh-card .crh-card__rating { justify-content: center; min-height: 14px; margin-top: 9px; font-size: 14px; line-height: 14px; }
.crh-tops--cyber .crh-card .crh-stars { --crh-star-on: #eabe12; width: 80px; height: 14px; -webkit-mask-size: 16px 14px; mask-size: 16px 14px; }
.crh-tops--cyber .crh-card .crh-card__rnum { color: #767676; font-size: 14px; }
.crh-tops--cyber .crh-card .crh-card__price { justify-content: center; align-items: baseline; gap: 4px; margin-top: 32px; min-height: 20px; }
.crh-tops--cyber .crh-card__meta:has(.crh-card__sw) .crh-card__price { margin-top: 0; }
.crh-tops--cyber .crh-card .crh-card__price b { order: 2; font-size: 14px; line-height: 1.4; }
.crh-tops--cyber .crh-card .crh-card__price s { order: 1; font-size: 12.6px; }
.crh-tops--cyber .crh-cyber__dbar, .crh-tops--cyber .crh-cyber__ahorro { align-self: stretch; }

/* ---------- Flechas y avance ---------- */
.crh-tops--cyber .crh-tops__stage .crh-arrows .crh-arrow,
.crh-tops--cyber .crh-tops__stage .crh-arrows .crh-arrow:focus {
	width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%;
	background: rgba(6, 1, 63, .55); color: #fff; box-shadow: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.crh-tops--cyber .crh-tops__stage .crh-arrows .crh-arrow:not(.is-off):hover { background: var(--cy-y); color: #06013f; }
/* Posición de las flechas: la misma de «Más vendidos» sin efecto (home.css), a caballo del borde de la fila. */
.crh-tops--cyber .crh-prog { margin: 10px 10px 4px; background: rgba(255, 255, 255, .35); }
.crh-tops--cyber .crh-prog i { background: var(--cy-y); }

/* ---------- Celular ---------- */
@media (max-width: 767px) {
	.crh-sec.crh-tops--cyber { --crh-gap: 10px; --crh-basis: calc((var(--crh-w, 100%) - 2 * var(--crh-gap)) / 2.5); } /* igual que «Más vendidos» sin efecto: 2½ */
	.crh-tops--cyber .crh-cyber { border-radius: 20px; padding: 16px 6px 8px; }
	.crh-tops--cyber .crh-head.crh-cyber__cabecera { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
	.crh-sec.crh-tops--cyber .crh-title { font-size: 24px; }
	.crh-sec.crh-tops--cyber .crh-sub { font-size: 12.5px; line-height: 1.4; }
	.crh-cyber__max { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 14px; border-radius: 12px; transform: rotate(-2deg); animation: crh-cy-glow 2s infinite; }
	.crh-cyber__max small { font-size: 10px; letter-spacing: 1.5px; }
	.crh-cyber__max b { font-size: 22px; letter-spacing: -.5px; }
	.crh-cyber__max i { font-size: 10px; opacity: .8; }
	.crh-cyber__max-l { display: none; }
	.crh-cyber__max-m { display: inline; }
	.crh-cyber__franja { margin: 0 0 10px; }
	.crh-tops--cyber .crh-track .crh-card { padding: 8px 8px 12px; }
	.crh-cyber__ahorro { padding: 5px 7px; font-size: 11.5px; }
	.crh-cyber__dbar > div:first-child { gap: 4px; font-size: 10.5px; }
	.crh-cyber__marca { gap: 10px; }
	.crh-cyber__logo span { font-size: 19px; letter-spacing: 1px; }
	.crh-cyber__off { display: none; } /* celular: «🔥 Descuento 38%» en una línea */
}
@media (prefers-reduced-motion: reduce) {
	.crh-tops--cyber .crh-cyber *, .crh-tops--cyber .crh-cyber *::before, .crh-tops--cyber .crh-cyber *::after,
	.crh-cyber__fondo::before { animation: none !important; }
}

/* Computador: la píldora «Agregar» (y «Ver opciones») que aparece al pasar el mouse, con la estética Cyber: azul
   eléctrico, ícono amarillo, borde blanco y el brillo de la píldora «Oferta Flash». Al pasar el mouse, amarilla. */
.crh-tops--cyber .crh-card__qa .crh-add,
.crh-tops--cyber .crh-card__qa .crh-add--link,
.crh-tops--cyber .crh-card__qa .crh-add:focus-visible {
	overflow: hidden; /* sin position: en táctil el botón va absoluto en su esquina */
	background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat,
		radial-gradient(120% 160% at 25% 15%, #3a2cff 0%, var(--cy-b) 55%, #0d0396 100%);
	color: #fff;
	font-weight: 700; letter-spacing: .3px;
	box-shadow: 0 0 0 2px #fff, 0 6px 18px -4px rgba(19, 0, 239, .9), 0 0 14px rgba(255, 255, 255, .3);
	animation: crh-cy-boton 3s ease-in-out infinite;
}
.crh-tops--cyber .crh-card__qa .crh-add svg { color: var(--cy-y); }
.crh-tops--cyber .crh-card__qa .crh-card__qv,
.crh-tops--cyber .crh-card__qa .crh-card__qv:focus {
	background: rgba(6, 1, 63, .55); color: #fff;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 4px 14px -6px rgba(6, 1, 63, .6);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
@media (hover: hover) and (pointer: fine) {
	.crh-tops--cyber .crh-card__qa .crh-add:hover {
		background: var(--cy-y); color: #06013f; animation: none;
		box-shadow: 0 0 0 2px #fff, 0 8px 22px -6px rgba(255, 196, 0, .9);
	}
	.crh-tops--cyber .crh-card__qa .crh-add:hover svg { color: #06013f; }
	.crh-tops--cyber .crh-card__qa .crh-card__qv:hover { background: var(--cy-y); color: #06013f; box-shadow: 0 0 0 2px #fff; }
}

/* Celular y táctil: botón redondo de agregar y ojo de vista rápida con la estética Cyber (azul eléctrico, ícono amarillo
   y brillo que cruza, como la píldora «Oferta Flash»), en las mismas posiciones y tamaños que en la sección sin efecto. */
@media (max-width: 767.98px) and (any-pointer: coarse), not all and (hover: hover) and (pointer: fine) {
	.crh-tops--cyber .crh-card__qa .crh-add,
	.crh-tops--cyber .crh-card__qa .crh-add--link,
	.crh-tops--cyber .crh-card__qa .crh-add--opts,
	.crh-tops--cyber .crh-card__qa .crh-add:hover,
	.crh-tops--cyber .crh-card__qa .crh-add:focus {
		overflow: hidden;
		background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat,
			radial-gradient(120% 120% at 30% 20%, #3a2cff 0%, var(--cy-b) 55%, #0d0396 100%);
		color: var(--cy-y);
		box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(255, 255, 255, .18), 0 6px 18px -4px rgba(19, 0, 239, .9), 0 0 14px rgba(255, 255, 255, .3);
		animation: crh-cy-boton 3s ease-in-out infinite;
	}
	.crh-tops--cyber .crh-card__qa .crh-add svg { filter: drop-shadow(0 0 4px rgba(255, 196, 0, .55)); }
	.crh-tops--cyber .crh-card__qa .crh-card__qv,
	.crh-tops--cyber .crh-card__qa .crh-card__qv:focus {
		background: rgba(6, 1, 63, .55); color: #fff;
		box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), 0 2px 10px -4px rgba(6, 1, 63, .6);
		-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	}
	.crh-tops--cyber .crh-card__qa .crh-add.loading::after { border-color: rgba(255, 196, 0, .25); border-top-color: var(--cy-y); }
}
@keyframes crh-cy-boton { 0% { background-position: -150% 0, 0 0; } 60%, 100% { background-position: 250% 0, 0 0; } }
