/* ============================================================================
   Inicio: banner «Cómo funcionan los tickets» y tarjetas de plan reorganizadas.
   Todo usa el color del plan activo (--tier-live, que sale de --kf-tier y cambia al elegir plan)
   y animaciones de transform/opacity. Se carga después de home-conversion.css.
   ========================================================================== */

/* ── Enlace del hero ───────────────────────────────────────────────────── */
.kf-sales .kf-sales-how { margin: 6px 0 0; text-align: center; }
.kf-sales .kf-sales-how a { align-items: center; color: var(--accent-2); display: inline-flex; font-size: 14px; font-weight: 500; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }

/* ── Acceso a «Cómo funcionan los tickets» y franja de premios ──────────── */
.kf-sales .kf-how { padding: 8px 0 56px; scroll-margin-top: 90px; }
.kf-hm { background: linear-gradient(180deg, color-mix(in srgb, var(--tier-live) 9%, #141416), #0e0e10 72%); border: 1px solid color-mix(in srgb, var(--tier-live) 45%, transparent); border-radius: 24px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier-live) 10%, transparent), 0 24px 56px -32px color-mix(in srgb, var(--tier-live) 60%, transparent); display: grid; gap: 16px; justify-items: center; margin: 0 auto; max-width: 720px; padding: 24px 16px; position: relative; text-align: center; -webkit-tap-highlight-color: transparent; transition: transform .25s cubic-bezier(.2, .7, .2, 1), border-color .25s; }
.kf-sales #kf-home-main .kf-hm h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; }
.kf-hm__steps { display: grid; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; max-width: 420px; padding: 0; width: 100%; }
.kf-hm__steps li { align-items: center; display: grid; gap: 8px; justify-items: center; position: relative; }
.kf-hm__steps li:not(:last-child)::after { background: color-mix(in srgb, var(--tier-live) 55%, transparent); content: ""; height: 2px; left: calc(50% + 32px); position: absolute; right: calc(-50% + 32px); top: 23px; }
.kf-hm__ico { align-items: center; background: color-mix(in srgb, var(--tier-live) 16%, #0e0e10); border: 1.5px solid var(--tier-live); border-radius: 50%; display: grid; height: 48px; justify-items: center; width: 48px; }
.kf-hm__ico .kf-sales-icon { color: var(--tier-live); height: 24px; width: 24px; }
.kf-hm__steps li > span:last-child { color: var(--text); font-size: 16px; font-weight: 700; }
.kf-sales #kf-home-main .kf-hm__rule { color: #d4d4d8; font-size: 14px; margin: 0; }
.kf-hm__rule b { color: var(--tier-live); font-variant-numeric: tabular-nums; }
/* Toda la tarjeta se puede tocar (enlace invisible bajo el botón) y responde al presionar: la tarjeta se hunde un poco,
   los íconos se encienden con el acento y el botón se comprime con un aro que se expande. Solo transform y opacity. */
.kf-hm__hit { border-radius: inherit; inset: 0; position: absolute; z-index: 0; }
.kf-hm > :not(.kf-hm__hit) { position: relative; z-index: 1; }
.kf-hm__ico { transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background-color .25s; }
.kf-hm__steps li:not(:last-child)::after { transition: opacity .25s; }
.kf-hm__cta { align-items: center; background: var(--tier-live); border-radius: 999px; box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--tier-live) 80%, transparent); color: #0b0b0c; display: inline-flex; font-size: 16px; font-weight: 700; gap: 8px; justify-content: center; min-height: 52px; padding: 0 28px; position: relative; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: transform .2s cubic-bezier(.2, .7, .2, 1), background-color .25s; }
.kf-hm__cta > span { transition: transform .25s cubic-bezier(.2, .7, .2, 1); }
.kf-hm__cta::after { border: 2px solid var(--tier-live); border-radius: inherit; content: ""; inset: -2px; opacity: 0; pointer-events: none; position: absolute; transform: scale(1); transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s; }
@media (hover: hover) {
	.kf-hm:hover { border-color: var(--tier-live); }
	.kf-hm__cta:hover { background: var(--accent-2); }
	.kf-hm__cta:hover > span { transform: translateX(4px); }
}
.kf-hm:has(.kf-hm__hit:active, .kf-hm__cta:active) { transform: scale(.985); }
.kf-hm:has(.kf-hm__hit:active, .kf-hm__cta:active) .kf-hm__ico { background: color-mix(in srgb, var(--tier-live) 32%, #0e0e10); transform: scale(1.12); }
.kf-hm:has(.kf-hm__hit:active, .kf-hm__cta:active) .kf-hm__steps li:not(:last-child)::after { opacity: 1; }
.kf-hm__cta:active, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta { background: var(--accent-2); transform: scale(.96); }
.kf-hm__cta:active > span, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta > span { transform: translateX(6px); }
.kf-hm__cta:active::after, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta::after { opacity: .55; transform: scale(1.14, 1.35); }
.kf-hm__cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* Frase de confianza bajo «Premios de la comunidad»: la letra normal del sitio (Outfit), sin cursiva, con una línea de acento a la izquierda */
.kf-sales #kf-home-main .kf-sales-promise { border-left: 3px solid var(--tier-live); color: #e4e4e7; font-family: inherit; font-size: clamp(17px, 4.6vw, 21px); font-style: normal; font-weight: 400; letter-spacing: 0; line-height: 1.6; margin: 0 0 24px; max-width: 36em; padding: 2px 0 2px 16px; text-wrap: balance; }
.kf-sales .kf-sales-promise em { color: var(--tier-live); font-style: normal; font-weight: 600; }

/* Premios 1 a 3 en celular: encuadre propio de cada foto (la moto no se toca). Las fotos de producto traen mucho margen blanco:
   se acercan y se centran; la camiseta baja 13 % (el fondo gris de la foto rellena el hueco) para que la etiqueta de arriba no tape el rostro. */
@media (max-width: 760px) {
	.kf-sales .kf-sales-prize:nth-child(2) .kf-sales-prize__media img { transform: scale(1.3) translate(2%, 9%); }
	.kf-sales .kf-sales-prize.has-photo:nth-child(2):hover .kf-sales-prize__media img { transform: scale(1.3) translate(2%, 9%); }
	.kf-sales .kf-sales-prize:nth-child(3) .kf-sales-prize__media img { transform: scale(1.1) translate(0, 4%); }
	.kf-sales .kf-sales-prize.has-photo:nth-child(3):hover .kf-sales-prize__media img { transform: scale(1.1) translate(0, 4%); }
	.kf-sales .kf-sales-prize:nth-child(1) .kf-sales-prize__media { background: #d5d5d5; }
	.kf-sales .kf-sales-prize:nth-child(1) .kf-sales-prize__media img { transform: translateY(13%); }
	.kf-sales .kf-sales-prize.has-photo:nth-child(1):hover .kf-sales-prize__media img { transform: translateY(13%); }
	/* Recuadros de premios más grandes en celular (antes 40 %): se lee bien el valor de cada uno y se ve la siguiente tarjeta asomando */
	.kf-sales .kf-sales-prizes .kf-sales-prize { flex: 0 0 56%; min-width: 0; }
}

/* Valor de cada premio (S/): pastilla dorada bajo el nombre, clara y grande */
.kf-sales #kf-home-main .kf-sales-prize__val { align-items: baseline; background: linear-gradient(180deg, color-mix(in srgb, var(--kf-tier-hi) 12%, transparent), color-mix(in srgb, var(--kf-tier) 6%, transparent)); border: 1px solid color-mix(in srgb, var(--kf-tier-hi) 33%, transparent); border-radius: 99px; display: inline-flex; gap: 8px; line-height: 1; margin: 0 auto; padding: 8px 18px 9px; }
.kf-sales #kf-home-main .kf-sales-prize__val small { color: color-mix(in srgb, var(--kf-tier-hi) 65%, #a1a1aa); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.kf-sales #kf-home-main .kf-sales-prize__val b { color: var(--kf-tier-hi); font-size: 24px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 0 18px color-mix(in srgb, var(--kf-tier) 40%, transparent); }
@media (max-width: 760px) {
	/* Mismo tamaño en todas las tarjetas: la cápsula del valor ocupa todo el ancho y el monto se achica para que «S/ 17,000» entre sin desbordar */
	.kf-sales #kf-home-main .kf-sales-prize__val { box-sizing: border-box; gap: 6px; justify-content: center; max-width: 100%; padding: 8px 8px 9px; width: 100%; }
	.kf-sales #kf-home-main .kf-sales-prize__val small { font-size: 9px; letter-spacing: .12em; }
	.kf-sales #kf-home-main .kf-sales-prize__val b { font-size: clamp(16px, 5vw, 21px); white-space: nowrap; }
}
/* Nota de impuestos: pequeña y sutil, fuera de los recuadros */
.kf-sales #kf-home-main .kf-sales-rewards .kf-sales-tax { font-size: 11px; margin-top: 6px; opacity: .8; }

/* Outfit Opulent: el polo y el pantalón se turnan uno por uno en el recuadro, girando en órbita (solo transform y opacity).
   Cada foto se queda quieta y entera ~3,4 s; mientras una sale por la derecha hacia el fondo, la otra entra por la izquierda. */
.kf-sales .kf-sales-prize .kf-sales-prize__media.kf-outfit,
.kf-sales .kf-sales-prize:nth-child(1) .kf-sales-prize__media.kf-outfit { background: #f2f2f2; perspective: 800px; position: relative; }
.kf-outfit__it { animation: kf-outfit 9s ease-in-out infinite -1.1s; backface-visibility: hidden; display: block; inset: 0; opacity: 0; position: absolute; will-change: transform, opacity; }
.kf-outfit__it:first-child { opacity: 1; }
.kf-outfit__it:nth-child(2) { animation-delay: -5.6s; }
/* Con tres fotos (polo, pantalón y conjunto de cuero): ciclo de 9 s, una foto cada 3 s; la que entra lo hace mientras sale la anterior */
.kf-outfit--3 .kf-outfit__it { animation-name: kf-outfit3; animation-duration: 9s; animation-delay: -.72s; }
.kf-outfit--3 .kf-outfit__it:nth-child(2) { animation-delay: -3.72s; }
.kf-outfit--3 .kf-outfit__it:nth-child(3) { animation-delay: -6.72s; }
.kf-sales .kf-sales-prize .kf-sales-prize__media.kf-outfit .kf-outfit__it:nth-child(3) img,
.kf-sales .kf-sales-prize.has-photo:hover .kf-sales-prize__media.kf-outfit .kf-outfit__it:nth-child(3) img,
.kf-sales .kf-sales-prize.has-photo:nth-child(1):hover .kf-sales-prize__media.kf-outfit .kf-outfit__it:nth-child(3) img { transform: none; }
.kf-sales .kf-sales-prize .kf-sales-prize__media.kf-outfit .kf-outfit__it img,
.kf-sales .kf-sales-prize.has-photo:hover .kf-sales-prize__media.kf-outfit .kf-outfit__it img,
.kf-sales .kf-sales-prize.has-photo:nth-child(1):hover .kf-sales-prize__media.kf-outfit .kf-outfit__it img { transform: scale(1.12); }
@keyframes kf-outfit3 {
	0% { opacity: 0; transform: translate3d(-64%, 0, -140px) rotateY(58deg); }
	8%, 33% { opacity: 1; transform: none; }
	41%, 100% { opacity: 0; transform: translate3d(64%, 0, -140px) rotateY(-58deg); }
}
@keyframes kf-outfit {
	0% { opacity: 0; transform: translate3d(-64%, 0, -140px) rotateY(58deg); }
	12%, 50% { opacity: 1; transform: none; }
	62%, 100% { opacity: 0; transform: translate3d(64%, 0, -140px) rotateY(-58deg); }
}
@media (prefers-reduced-motion: reduce) {
	.kf-outfit__it, .kf-outfit--3 .kf-outfit__it { animation: none; }
	.kf-outfit__it:nth-child(2), .kf-outfit__it:nth-child(3) { display: none; }
}

/* Cápsula del inicio con la frase más larga: si baja de línea, que quede pareja */
.kf-sales #kf-home-main .kf-sales-pill { text-wrap: balance; }

/* Nota legal (la usa /como-funciona/) */
.kf-sales .kf-how__legal { color: var(--soft); font-size: 13px; margin: 16px 0 0; text-align: center; }
.kf-how__legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1023px) {
	.kf-sales .kf-how { padding-bottom: 32px; }
}

/* Mascota con accesorio: el bracito derecho no saluda (el accesorio ocupa las manos); confeti con parpadeo suave */
.kf-mascot--acc .kf-m-arm-r { animation: none; }
.kf-mascot .kf-acc-conf { animation: kf-conf 2.4s ease-in-out infinite alternate; transform-origin: 60px 40px; }
@keyframes kf-conf { from { opacity: .55; transform: translateY(0); } to { opacity: 1; transform: translateY(-4px); } }

/* ── Tarjetas de plan ─────────────────────────────────────────────────── */
.kf-sales .kf-sales-plans { margin-top: 14px; }
.kf-sales .kf-plan-tab { background: var(--tier-live); border-radius: 12px 12px 0 0; bottom: calc(100% - 1px); color: #0b0b0c; font-size: 13px; font-weight: 700; left: 22px; letter-spacing: .02em; line-height: 1.2; padding: 7px 14px 6px; position: absolute; }
.kf-sales .kf-plan-top { align-items: center; display: flex; justify-content: space-between; min-height: 46px; }
.kf-sales .kf-plan-mascot { height: auto; margin: -4px 0 -8px; width: 42px; }
.kf-sales #kf-home-main .kf-sales-plan h3 { margin-top: 8px; }
.kf-sales #kf-home-main .kf-sales-price { font-size: clamp(50px, 14vw, 57px); margin-top: 14px; color: rgba(244, 244, 245, .78); }
.kf-sales #kf-home-main .kf-sales-weekly { color: #e4e4e7; font-size: 15px; font-weight: 600; margin: 8px 0 0; }
.kf-sales #kf-home-main .kf-sales-closeline { font-size: 13px; margin-top: 6px; }
.kf-sales .kf-sales-duration span { display: block; white-space: normal; }
.kf-sales .kf-faq-more { align-items: center; color: var(--tier-live); display: inline-flex; font-size: 14px; font-weight: 600; gap: 4px; margin: -4px 0 16px; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; }
.kf-sales #kf-home-main .kf-sales-closeline:empty { display: none; }
/* Línea de tickets bajo «oportunidades de ganar un premio» */
.kf-sales #kf-home-main .kf-sales-tickets { align-items: center; color: var(--tier-live); display: flex; font-size: 14px; font-weight: 600; gap: 8px; line-height: 1.35; margin: 12px 0 0; transition: color .3s; }
.kf-sales .kf-sales-tickets .kf-sales-icon { flex: none; height: 18px; width: 18px; }
.kf-sales .kf-stats { gap: 14px; margin-bottom: 18px; }
.kf-sales .kf-stats dt { color: #c9c9cf; font-size: 14px; }
.kf-sales .kf-stats dd { grid-template-columns: 1fr 36px; }
.kf-sales .kf-stats dd > b { font-size: 14px; font-weight: 700; }
.kf-sales .kf-bar, .kf-sales .kf-pips > i { height: 9px; }
.kf-sales .kf-sales-plan .kf-sales-button { background: var(--tier-live); border-color: var(--tier-live); border-radius: 999px; font-size: 16px; font-weight: 700; margin-top: auto; min-height: 52px; width: 100%; }
.kf-sales .kf-sales-plan .kf-sales-button:hover { background: var(--accent-2); border-color: var(--accent-2); }

/* «Ver más»: el detalle secundario (acompañamiento y beneficios) */
.kf-sales .kf-plan-more { border-top: 1px solid var(--line); margin-top: 16px; }
.kf-sales .kf-plan-more summary { align-items: center; color: var(--text); cursor: pointer; display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; letter-spacing: .06em; list-style: none; min-height: 48px; text-transform: uppercase; }
.kf-sales .kf-plan-more summary::-webkit-details-marker { display: none; }
.kf-sales .kf-plan-more summary:focus-visible { outline: 2px solid var(--tier-live); outline-offset: 2px; }
.kf-sales .kf-plan-more summary svg { color: var(--tier-live); transition: transform .25s; }
.kf-sales .kf-plan-more[open] summary svg { transform: rotate(180deg); }
.kf-sales .kf-plan-more__body { padding-bottom: 4px; }
.kf-sales #kf-home-main .kf-plan-more .kf-sales-plan-support { margin-top: 4px; }
.kf-sales .kf-plan-more ul { margin: 12px 0 4px; }

/* Tarjeta seleccionada: un poco más grande, con halo; las demás, atenuadas pero legibles */
.kf-sales .kf-sales-plans .kf-sales-plan.is-selected { box-shadow: 0 0 0 2px var(--rar), 0 18px 44px -26px var(--rar), 0 0 56px -14px color-mix(in srgb, var(--rar) 60%, transparent); transform: scale(1.02); }
.kf-sales .kf-sales-plans:has(.is-selected) .kf-sales-plan:not(.is-selected) { opacity: .8; }

@media (max-width: 1023px) {
	.kf-sales .kf-sales-plans { padding-bottom: 20px; padding-top: 36px; }
}
@media (min-width: 761px) {
	.kf-sales .kf-sales-plans { align-items: start; }
}

/* «Reducir movimiento»: sin llenado animado ni escalas; la mascota y el confeti quedan quietos */
@media (prefers-reduced-motion: reduce) {
	.kf-hm, .kf-hm__ico, .kf-hm__cta, .kf-hm__cta > span, .kf-hm__cta::after { transition: none; }
	.kf-hm:has(.kf-hm__hit:active, .kf-hm__cta:active), .kf-hm:has(.kf-hm__hit:active, .kf-hm__cta:active) .kf-hm__ico, .kf-hm__cta:active, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta { transform: none; }
	.kf-hm__cta:active > span, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta > span { transform: none; }
	.kf-hm__cta:active::after, .kf-hm:has(.kf-hm__hit:active) .kf-hm__cta::after { transform: none; }
	.kf-mascot .kf-acc-conf { animation: none; opacity: 1; transform: none; }
	.kf-sales .kf-plan-more summary svg { transition: none; }
	.kf-sales .kf-sales-plans .kf-sales-plan.is-selected { transform: none; }
}
