/* rs-proceso — ciclo mensual en anillo (fondo claro durazno). Nodos alrededor del círculo; un punto viaja al paso activo
   y el arco degradado marca el avance del mes. En celular: anillo compacto con números y panel debajo. */

.rsr { --D: clamp(340px, 34vw, 470px); --R: calc(var(--D) * .45); position: relative; overflow: hidden; padding: var(--sep) var(--m); background: #FFF3EC; color: var(--ink); }
.rsr::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(40% 50% at 20% 60%, rgba(255, 91, 35, .14), transparent 70%), radial-gradient(36% 46% at 90% 20%, rgba(210, 251, 140, .5), transparent 70%); }
.rsr__in { position: relative; max-width: 1240px; margin: 0 auto; }
.rsr__cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "ceja ceja" "t intro"; gap: 0 clamp(24px, 5vw, 80px); align-items: end; }
.rsr__ceja { grid-area: ceja; margin-bottom: 16px; color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rsr__cab h2 { grid-area: t; max-width: 14ch; text-wrap: balance; font-size: clamp(36px, 4.8vw, 70px); }
.rsr__intro { grid-area: intro; max-width: 46ch; color: var(--ink-2); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.6; }

.rsr__cuerpo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(36px, 5vw, 64px); }

/* ── Anillo ── */
.rsr__anillo { position: relative; justify-self: center; width: var(--D); aspect-ratio: 1; margin: 40px 120px; }
.rsr__pista { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(18, 16, 17, .28); overflow: visible; }
.rsr__arco { stroke-dasharray: 0 100; transition: stroke-dasharray 1s var(--ease); }
.rsr__punto { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--rot, 0deg)); transition: transform 1s var(--ease); }
.rsr__punto i { position: absolute; left: -9px; top: calc(var(--R) * -1 - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(255, 91, 35, .2), 0 0 18px rgba(255, 91, 35, .7); }
.rsr__centro { position: absolute; left: 50%; top: 50%; display: grid; justify-items: center; gap: 2px; width: 46%; aspect-ratio: 1; place-content: center; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px -30px rgba(255, 91, 35, .45), 0 0 0 10px rgba(255, 255, 255, .5); text-align: center; transform: translate(-50%, -50%); }
.rsr__centro svg { color: var(--accent); animation: rsr-gira 8s linear infinite; }
@keyframes rsr-gira { to { transform: rotate(-360deg); } }
.rsr__centro b { font-family: 'Marko Display', var(--f); font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; line-height: 1.1; }
.rsr__centro small { color: var(--muted); font-size: 13px; }

.rsr__nodos { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.rsr__nodo { position: absolute; left: -29px; top: -29px; display: grid; place-items: center; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 0 0 1px #F1DCD0, 0 12px 26px -14px rgba(18, 16, 17, .4); transform: rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); transition: background-color .35s, color .35s, box-shadow .35s; font-family: var(--f); }
.rsr__nodo i { display: grid; place-items: center; transition: transform .35s var(--ease); }
.rsr__nodo:hover i { transform: scale(1.12); }
.rsr__nn { position: absolute; right: -4px; top: -4px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; }
.rsr__et { position: absolute; width: max-content; max-width: 150px; color: var(--ink-2); font-size: 14px; font-weight: 600; line-height: 1.2; transition: color .3s; }
.rsr__nodo--arr .rsr__et { bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); text-align: center; }
.rsr__nodo--aba .rsr__et { top: calc(100% + 10px); left: 50%; transform: translateX(-50%); text-align: center; }
.rsr__nodo--der .rsr__et { left: calc(100% + 12px); text-align: left; }
.rsr__nodo--izq .rsr__et { right: calc(100% + 12px); text-align: right; }
.rsr__nodo[aria-selected="true"] { background: var(--ink); color: var(--lima); box-shadow: 0 0 0 4px rgba(255, 91, 35, .25), 0 16px 30px -14px rgba(18, 16, 17, .6); }
.rsr__nodo[aria-selected="true"] .rsr__nn { background: var(--accent); }
.rsr__nodo[aria-selected="true"] .rsr__et { color: var(--ink); }
.rsr__nodo:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* ── Panel ── */
.rsr__paneles { min-width: 0; }
.rsr__panel { padding: clamp(22px, 2.6vw, 34px); border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px #F3E2D8, 0 40px 70px -50px rgba(255, 91, 35, .55); }
.rsr__panel + .rsr__panel { margin-top: 12px; }
.rsr.is-js .rsr__panel + .rsr__panel { margin-top: 0; }
.rsr__panel[hidden] { display: none; }
.rsr.is-js .rsr__panel { animation: rsr-entra .5s var(--ease); }
@keyframes rsr-entra { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.rsr__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; }
.rsr__num { font-family: 'Marko Display', var(--f); font-size: clamp(40px, 4vw, 56px); font-weight: 800; line-height: 1; color: var(--accent); }
.rsr__num small { color: var(--claro); font-size: .42em; }
.rsr__cuando { padding: 7px 13px; border-radius: 999px; background: var(--lima); font-size: 13px; font-weight: 700; }
.rsr__panel h3 { margin-top: 16px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
.rsr__d { margin-top: 10px; color: var(--ink-2); font-size: 16.5px; line-height: 1.6; }
.rsr__tu { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #FBF8F4; font-size: 15px; line-height: 1.5; }
.rsr__tu b { color: var(--accent); }
.rsr__nav { display: none; align-items: center; gap: 14px; margin-top: 16px; }
.rsr.is-js .rsr__nav { display: flex; }
.rsr__flecha { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: var(--ink); color: #fff; cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.rsr__flecha:hover { background: #000; transform: scale(1.06); }
.rsr__flecha:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.rsr__prog { flex: 1; height: 4px; border-radius: 4px; overflow: hidden; background: rgba(18, 16, 17, .1); }
.rsr__prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #FF3D6E, #FF5B23); transform: scaleX(0); transform-origin: left; }
.rsr__prog i.is-corre { animation: rsr-prog var(--rsr-dur, 5s) linear both; }
@keyframes rsr-prog { to { transform: scaleX(1); } }

.rsr.is-pausado *, .rsr.is-pausado *::before { animation-play-state: paused !important; }

/* ── Laptop: anillo sin etiquetas laterales tan anchas ── */
@media (max-width: 1180px) {
	.rsr__anillo { margin-inline: 90px; }
	.rsr__et { max-width: 110px; font-size: 13px; }
}

/* ── Tablet y celular: anillo compacto (solo íconos y números) + panel debajo ── */
@media (max-width: 960px) {
	.rsr__cab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "ceja" "t" "intro"; }
	.rsr__intro { margin-top: 14px; }
	.rsr__cuerpo { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.rsr { --D: min(78vw, 360px); }
	.rsr__anillo { margin: 18px auto 0; }
	.rsr__et { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } /* oculta a la vista, no al lector de pantalla */
	.rsr__paneles { width: 100%; max-width: 560px; margin: 0 auto; }
}
@media (max-width: 600px) {
	.rsr { --D: min(76vw, 300px); padding-block: 56px; }
	.rsr__cab h2 { font-size: clamp(34px, 10vw, 46px); }
	.rsr__intro { font-size: 15.5px; }
	.rsr__cuerpo { gap: 24px; margin-top: 28px; }
	.rsr__nodo { left: -24px; top: -24px; width: 48px; height: 48px; }
	.rsr__nodo svg { width: 18px; height: 18px; }
	.rsr__nn { width: 19px; height: 19px; font-size: 10px; }
	.rsr__punto i { left: -7px; top: calc(var(--R) * -1 - 7px); width: 14px; height: 14px; }
	.rsr__centro { width: 50%; }
	.rsr__centro b { font-size: 24px; }
	.rsr__centro small { font-size: 11.5px; }
	.rsr__centro svg { width: 22px; height: 22px; }
	.rsr__panel { padding: 20px 18px; border-radius: 22px; }
	.rsr__num { font-size: 36px; }
	.rsr__panel h3 { margin-top: 12px; font-size: 22px; }
	.rsr__d { font-size: 15px; }
	.rsr__tu { margin-top: 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.rsr *, .rsr *::before { animation: none !important; transition: none !important; }
}
