/* rs-cierre — FAQ (blanco) + banda final oscura con Marko. Acordeón <details> nativo con apertura suave donde exista ::details-content. */

.rsf { padding: clamp(64px, 8vw, 128px) max(var(--m), calc((100vw - 1240px) / 2)) clamp(40px, 5vw, 80px); background: #fff; color: var(--ink); interpolate-size: allow-keywords; }

.rsf__faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.rsf__lado { position: sticky; top: 110px; }
.rsf__ceja { margin-bottom: 16px; color: var(--accent); font-size: 13.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rsf__lado h2 { font-size: clamp(32px, 3.8vw, 56px); }
.rsf__lado > p:not(.rsf__ceja) { max-width: 380px; margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.rsf__duda { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 22px; color: var(--ink); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--accent); }
.rsf__duda svg { transition: transform .25s var(--ease); }
.rsf__duda:hover svg { transform: translateX(4px); }
.rsf a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.rsf__lista { border-top: 1px solid var(--surface-2); }
.rsf__q { border-bottom: 1px solid var(--surface-2); }
.rsf__q summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; min-height: 76px; padding: 18px 4px; cursor: pointer; list-style: none; border-radius: 12px; }
.rsf__q summary::-webkit-details-marker { display: none; }
.rsf__q summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rsf__n { color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color .3s; }
.rsf__p { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; transition: color .3s; }
.rsf__q summary:hover .rsf__p { color: #C8410F; } /* naranja oscuro: AA */
.rsf__q[open] .rsf__n { color: var(--accent); }
.rsf__mas { position: relative; flex: none; width: 40px; height: 40px; border: 1px solid var(--surface-2); border-radius: 50%; transition: background-color .35s var(--ease), border-color .35s, transform .45s var(--ease); }
.rsf__mas::before, .rsf__mas::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: var(--ink); transition: background-color .3s; }
.rsf__mas::after { transform: rotate(90deg); }
.rsf__q summary:hover .rsf__mas { border-color: var(--accent); }
.rsf__q[open] .rsf__mas { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); }
.rsf__q[open] .rsf__mas::before, .rsf__q[open] .rsf__mas::after { background: #fff; }
.rsf__q::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.rsf__q[open]::details-content { block-size: auto; }
.rsf__r p { max-width: 640px; margin-left: calc(18px + 2ch); padding: 0 56px 26px 4px; color: var(--ink-2); font-size: 17px; line-height: 1.65; }

/* ── Banda final ── */
@property --rsf-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.rsf__banda { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); align-items: end; gap: 24px; margin-top: clamp(64px, 8vw, 120px); padding: clamp(36px, 5vw, 72px) clamp(22px, 5vw, 72px) 0; border-radius: clamp(24px, 3vw, 40px); background: #140c18; color: #fff; box-shadow: 0 50px 100px -50px rgba(255, 61, 110, .65); }
.rsf__banda::before { content: ""; position: absolute; inset: -1.5px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--rsf-ang), transparent 0 55%, #FF3D6E 68%, #FF5B23 74%, var(--lima) 80%, transparent 90%); animation: rsf-gira 7s linear infinite; }
.rsf__banda::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #140c18; }
@keyframes rsf-gira { to { --rsf-ang: 360deg; } }
.rsf__luz { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.rsf__luz i { position: absolute; border-radius: 50%; filter: blur(60px); }
.rsf__luz i:nth-child(1) { right: 2%; bottom: -40%; width: 520px; height: 520px; background: radial-gradient(closest-side, rgba(255, 61, 110, .7), transparent); animation: rsf-flota 12s ease-in-out infinite alternate; }
.rsf__luz i:nth-child(2) { left: -10%; top: -50%; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(255, 91, 35, .4), transparent); animation: rsf-flota 15s ease-in-out infinite alternate-reverse; }
.rsf__luz i:nth-child(3) { right: 32%; top: -30%; width: 320px; height: 320px; background: radial-gradient(closest-side, rgba(123, 77, 255, .35), transparent); animation: rsf-flota 18s ease-in-out infinite alternate; }
@keyframes rsf-flota { to { transform: translate(-14%, 10%) scale(1.15); } }
.rsf__txt { position: relative; z-index: 1; align-self: center; padding-bottom: clamp(36px, 5vw, 72px); }
.rsf__banda h2 { max-width: 14ch; color: #fff; font-size: clamp(36px, 5.2vw, 78px); }
.rsf__txt > p { max-width: 480px; margin-top: 18px; color: rgba(255, 255, 255, .74); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; }
.rsf__cta { margin-top: 30px; box-shadow: 0 16px 34px -14px rgba(255, 91, 35, .9); }
.rsf__contacto { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; color: rgba(255, 255, 255, .7); font-size: 14px; }
.rsf__contacto li { display: inline-flex; align-items: center; gap: 22px; }
.rsf__contacto li + li::before { content: ""; width: 4px; height: 4px; margin-left: -12px; margin-right: -10px; border-radius: 50%; background: var(--accent); }
.rsf__contacto a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); transition: border-color .2s, color .2s; }
.rsf__contacto a:hover { color: var(--lima); border-color: var(--lima); }
.rsf__banda a:focus-visible { outline-color: var(--lima); }
.rsf__marko { position: relative; z-index: 1; width: 100%; max-width: 320px; height: auto; margin-top: -90px; justify-self: end; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; animation: rsf-saluda 5s ease-in-out infinite; }
@keyframes rsf-saluda { 50% { transform: rotate(-2deg) translateY(-8px); } }

.rsf.is-pausa *, .rsf.is-pausa *::before, .rsf.is-pausa *::after { animation-play-state: paused !important; }

/* El cierre de Redes es el suyo: sin repetir el del pie */
body:has(.rs-pag) .pf-cta { display: none; }

/* ── Tablet y celular: FAQ compacto, Marko pequeño en la esquina de la banda ── */
@media (max-width: 900px) {
	.rsf { padding-top: 56px; padding-bottom: 32px; }
	.rsf__faq { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.rsf__lado { position: static; }
	.rsf__lado > p:not(.rsf__ceja) { margin-top: 12px; }
	.rsf__duda { margin-top: 12px; }
	.rsf__q summary { min-height: 60px; padding-block: 12px; }
	.rsf__banda { grid-template-columns: minmax(0, 1fr); margin-top: 48px; }
	.rsf__txt { padding-bottom: 32px; }
	.rsf__contacto { padding-right: clamp(100px, 28vw, 180px); }
	.rsf__marko { position: absolute; right: 6px; bottom: 0; width: clamp(104px, 28vw, 180px); max-width: none; margin: 0; }
}
@media (max-width: 520px) {
	.rsf__q summary { gap: 12px; padding-inline: 0; }
	.rsf__mas { width: 36px; height: 36px; }
	.rsf__r p { margin-left: 0; padding: 0 0 22px; font-size: 16px; }
	.rsf__banda h2 { font-size: clamp(32px, 9.4vw, 42px); }
	.rsf__cta { width: 100%; white-space: normal; text-align: center; }
	.rsf__contacto { flex-direction: column; gap: 0; font-size: 13.5px; }
	.rsf__contacto li + li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rsf__banda::before, .rsf__luz i, .rsf__marko { animation: none; }
	.rsf__q::details-content, .rsf__mas { transition: none; }
}
