/* QC Beneficios Navidad — todos los estilos viven bajo .qcbn para no chocar con el tema.
   Cambia los colores aquí si necesitas ajustar algún tono de la paleta. */
.qcbn {
	--qcbn-fondo: #004b49;
	--qcbn-fondo-2: #08796b;
	--qcbn-tarjeta: #fcf7ee;
	--qcbn-lima: #c1ff72;
	--qcbn-verde: #0b7a3e;
	--qcbn-verde-claro: #8dc96b;
	--qcbn-menta: #3ba58b;
	--qcbn-texto: #0f3b3a;
	--qcbn-texto-suave: #3f6263;
	--qcbn-crema: #f6fde9;

	position: relative;
	overflow: hidden;
	isolation: isolate;
	padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px) clamp(48px, 7vw, 88px);
	background: radial-gradient(120% 90% at 50% 0%, var(--qcbn-fondo-2) 0%, var(--qcbn-fondo) 62%);
	color: #fff;
	box-sizing: border-box;
}
.qcbn *, .qcbn *::before, .qcbn *::after { box-sizing: border-box; }

.qcbn-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; }

/* Encabezado */
.qcbn-head { text-align: center; max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); }
.qcbn .qcbn-title {
	margin: 0 0 12px; color: #fff; font-size: clamp(26px, 3.6vw, 40px);
	line-height: 1.15; font-weight: 700; text-wrap: balance;
}
.qcbn .qcbn-sub { margin: 0; color: var(--qcbn-crema); opacity: .9; font-size: clamp(16px, 1.6vw, 18px); line-height: 1.5; text-wrap: balance; }

/* Tarjetas */
.qcbn .qcbn-grid {
	list-style: none; margin: 0; padding: 0;
	display: grid; gap: clamp(14px, 2vw, 22px);
	grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1023px) { .qcbn .qcbn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px)  { .qcbn .qcbn-grid { grid-template-columns: 1fr; } }

.qcbn .qcbn-card {
	position: relative; margin: 0; padding: 28px 24px 26px;
	background: var(--qcbn-tarjeta); color: var(--qcbn-texto);
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
	transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
}
.qcbn .qcbn-card::after { /* línea de acento que crece al aparecer */
	content: ""; position: absolute; left: 24px; right: 24px; bottom: 0; height: 4px;
	border-radius: 4px 4px 0 0; background: var(--qcbn-lima);
	transform: scaleX(0); transform-origin: left; transition: transform .8s cubic-bezier(.2, .7, .2, 1);
	transition-delay: calc(var(--n) * .14s + .5s);
}
@media (hover: hover) {
	.qcbn .qcbn-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); }
}
.qcbn .qcbn-card-title { margin: 18px 0 8px; color: var(--qcbn-fondo); font-size: 20px; line-height: 1.25; font-weight: 700; }
.qcbn .qcbn-card-text { margin: 0; color: var(--qcbn-texto-suave); font-size: 16px; line-height: 1.55; }

/* Ícono */
.qcbn-icon {
	display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%;
	background: var(--qcbn-fondo); box-shadow: 0 0 0 6px rgba(193, 255, 114, .28);
}
.qcbn-icon svg { display: block; stroke: #fff; stroke-width: 2.4; overflow: visible; }
.qcbn-icon .qcbn-accent { stroke: var(--qcbn-lima); stroke-width: 3; }
.qcbn-dot { fill: rgba(255, 255, 255, .25); stroke: none; }
.qcbn-window { fill: var(--qcbn-lima); stroke: none; }
.qcbn-star { fill: var(--qcbn-lima); stroke: none; transform-box: fill-box; transform-origin: center; }

/* ---------- Animación (solo cuando el JS está activo) ---------- */
.qcbn.qcbn-js .qcbn-head { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1); }
.qcbn.qcbn-js .qcbn-card {
	opacity: 0; transform: translateY(34px) scale(.97);
	transition: opacity .7s, transform .7s cubic-bezier(.2, .7, .2, 1), box-shadow .35s;
	transition-delay: calc(var(--n) * .14s + .15s), calc(var(--n) * .14s + .15s), 0s;
}
.qcbn.qcbn-js .qcbn-icon { transform: scale(.6); transition: transform .6s cubic-bezier(.3, 1.5, .5, 1); transition-delay: calc(var(--n) * .14s + .3s); }
.qcbn.qcbn-js .qcbn-draw { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .9s ease-out; transition-delay: calc(var(--n) * .14s + .45s + var(--d, 0s)); }
.qcbn.qcbn-js .qcbn-window, .qcbn.qcbn-js .qcbn-star { opacity: 0; transition: opacity .5s; transition-delay: calc(var(--n) * .14s + 1.3s); }

.qcbn.qcbn-js.is-visible .qcbn-head { opacity: 1; transform: none; }
.qcbn.qcbn-js.is-visible .qcbn-card { opacity: 1; transform: none; }
.qcbn.qcbn-js.is-visible .qcbn-card:hover { transition-delay: 0s; }
@media (hover: hover) { .qcbn.qcbn-js.is-visible .qcbn-card:hover { transform: translateY(-6px); } }
.qcbn.is-visible .qcbn-card::after { transform: scaleX(1); }
.qcbn.qcbn-js.is-visible .qcbn-icon { transform: none; }
.qcbn.qcbn-js.is-visible .qcbn-draw { stroke-dashoffset: 0; }
.qcbn.qcbn-js.is-visible .qcbn-window, .qcbn.qcbn-js.is-visible .qcbn-star { opacity: 1; }

/* Micro-animaciones en bucle (solo mientras la sección está en pantalla) */
.qcbn.is-visible .qcbn-dot { animation: qcbn-dot 3.6s calc(var(--i) * .45s + 1.6s) infinite; }
.qcbn.is-visible .qcbn-window { animation: qcbn-glow 3.2s 2s ease-in-out infinite; }
.qcbn.is-visible .qcbn-star { animation: qcbn-twinkle 2.6s 2s ease-in-out infinite; }
.qcbn.is-visible .qcbn-icon { animation: qcbn-halo 4s calc(var(--n) * .5s + 2s) ease-in-out infinite; }

@keyframes qcbn-dot { 0%, 100% { fill: rgba(255, 255, 255, .25); } 18%, 70% { fill: #c1ff72; } }
@keyframes qcbn-glow { 0%, 100% { fill: #c1ff72; filter: drop-shadow(0 0 0 rgba(193, 255, 114, 0)); } 50% { fill: #f6fde9; filter: drop-shadow(0 0 5px rgba(193, 255, 114, .9)); } }
@keyframes qcbn-twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .5; } }
@keyframes qcbn-halo { 0%, 100% { box-shadow: 0 0 0 6px rgba(193, 255, 114, .28); } 50% { box-shadow: 0 0 0 11px rgba(193, 255, 114, .12); } }

/* Serie de luces */
.qcbn-lights {
	position: absolute; z-index: 1; top: 0; left: 0; right: 0; height: 34px;
	display: flex; justify-content: space-around; align-items: flex-start;
	border-top: 2px solid rgba(255, 255, 255, .22);
}
.qcbn-lights span {
	width: 9px; height: 13px; margin-top: 5px; border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
	background: var(--qcbn-lima); box-shadow: 0 0 10px 2px rgba(193, 255, 114, .55);
	animation: qcbn-bulb 2.4s calc(var(--i) * -.37s) ease-in-out infinite;
}
.qcbn-lights span:nth-child(3n+2) { background: var(--qcbn-tarjeta); box-shadow: 0 0 10px 2px rgba(252, 247, 238, .5); margin-top: 11px; }
.qcbn-lights span:nth-child(3n) { background: var(--qcbn-verde-claro); box-shadow: 0 0 10px 2px rgba(141, 201, 107, .55); margin-top: 7px; }
@media (max-width: 599px) { .qcbn-lights span:nth-child(n+11) { display: none; } }
@keyframes qcbn-bulb { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Nieve */
.qcbn-snow { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.qcbn-snow i {
	position: absolute; top: -12px; border-radius: 50%; background: #fff;
	animation: qcbn-fall linear infinite; will-change: transform;
}
@keyframes qcbn-fall {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(var(--x, 20px), var(--qcbn-h, 800px), 0); }
}

/* Pausa todo cuando la sección no está en pantalla */
.qcbn:not(.is-inview) .qcbn-snow i,
.qcbn:not(.is-inview) .qcbn-lights span,
.qcbn:not(.is-inview) .qcbn-icon,
.qcbn:not(.is-inview) .qcbn-icon * { animation-play-state: paused; }

/* Accesibilidad: sin movimiento para quien lo pide en su sistema */
@media (prefers-reduced-motion: reduce) {
	.qcbn *, .qcbn *::after { animation: none !important; transition: none !important; }
	.qcbn.qcbn-js .qcbn-head, .qcbn.qcbn-js .qcbn-card, .qcbn.qcbn-js .qcbn-icon { opacity: 1; transform: none; }
	.qcbn.qcbn-js .qcbn-draw { stroke-dashoffset: 0; }
	.qcbn.qcbn-js .qcbn-window, .qcbn.qcbn-js .qcbn-star { opacity: 1; }
	.qcbn .qcbn-card::after { transform: scaleX(1); }
	.qcbn-snow { display: none; }
}

/* ---------- Tarjeta ancha: cargo por atraso ---------- */
.qcbn .qcbn-card--mora {
	grid-column: 1 / -1;
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 20px clamp(24px, 4vw, 56px); align-items: center;
	padding: 28px clamp(24px, 3vw, 36px) 26px;
}
.qcbn-mora-copy { display: flex; gap: 20px; align-items: center; }
.qcbn-mora-copy .qcbn-icon { flex: none; }
.qcbn .qcbn-card--mora .qcbn-card-title { margin-top: 0; font-size: clamp(20px, 2vw, 24px); text-wrap: balance; }

.qcbn-mora-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.qcbn-mora-day { color: var(--qcbn-texto-suave); font-size: 15px; font-variant-numeric: tabular-nums; }
.qcbn-mora-day b { display: inline-block; min-width: 2ch; text-align: center; color: var(--qcbn-fondo); font-size: 18px; }
.qcbn-mora-badge {
	display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
	background: var(--qcbn-fondo); color: var(--qcbn-lima); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.qcbn-mora-bars { display: flex; gap: 3px; height: 58px; }
.qcbn-mora-bars span { flex: 1; border-radius: 3px; background: rgba(11, 122, 62, .16); transition: background-color .25s; }
.qcbn-mora-bars span.on { background: var(--qcbn-verde); }
.qcbn-mora-foot { display: flex; justify-content: space-between; margin-top: 8px; color: var(--qcbn-texto-suave); font-size: 13px; }
.qcbn .qcbn-mora-nota { grid-column: 1 / -1; margin: 0; color: var(--qcbn-texto-suave); font-size: 12.5px; line-height: 1.5; }

@media (max-width: 1023px) { .qcbn .qcbn-card--mora { grid-template-columns: 1fr; } }
@media (max-width: 599px) {
	.qcbn-mora-copy { flex-direction: column; align-items: flex-start; gap: 0; }
	.qcbn .qcbn-card--mora .qcbn-card-title { margin-top: 18px; }
	.qcbn-mora-bars { gap: 2px; height: 46px; }
}
