/* ==========================================================================
   sotowismify · 80-resources (v1) — ruleta 3D con la cámara dentro del cilindro
   - .rs-stage = perspectiva (sin preserve-3d: aquí sí puede haber overflow y máscara).
   - .rs-tilt  = eje del cilindro (preserve-3d): NUNCA opacity/filter/overflow aquí.
   - .rs-card  = hoja en la pared interior (transform por JS); opacidad por tarjeta.
   - Hover: se mueve el contenido (.rs-body con translate/scale), no la caja 3D → sin parpadeo.
   - Portadas tipográficas (.rc) compartidas con el modal (.rsm) y el vuelo FLIP (.rsm-fly):
     todo escala con --cw (ancho de la portada).
   - TEMA CLARO (17-oct-2026): libros en una estantería clara. Portadas alternas en tinta (#14181f: ink, line)
     y blanco roto (paper, graphite = piedra clara); sombras cálidas suaves; trazos en tinta con alfa.
   ========================================================================== */
.s-resources { padding-bottom: calc(var(--sec) * 0.55); }
.s-resources .rs-head { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px 56px; align-items: end; }
.s-resources .rs-head-main { display: grid; gap: 18px; justify-items: start; }
.s-resources .rs-title { font-size: clamp(36px, 5.2vw, 76px); max-width: 13ch; }
.s-resources .rs-lead { justify-self: end; max-width: 46ch; }

/* ---------- Escenario ---------- */
.s-resources .rs-ring { position: relative; margin-top: clamp(30px, 4.4vw, 60px); }
.s-resources .rs-from-row { position: relative; z-index: 4; display: flex; justify-content: center; padding: 0 var(--gutter); margin-bottom: -26px; pointer-events: none; }
.s-resources .rs-from {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  min-height: 46px; padding: 6px 20px 6px 7px; border-radius: var(--pill);
  font-size: 13px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: var(--fg-1);
  pointer-events: auto; transition: border-color 0.4s ease, color 0.4s ease;
}
.s-resources .rs-from-t { text-wrap: balance; }
.s-resources .rs-from-ico { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--inv-bg); box-shadow: 0 6px 16px rgba(60, 50, 35, 0.22); }
.s-resources .rs-from-ico::before {
  content: ''; position: absolute; left: 50%; top: 50%; margin: -5px 0 0 -3px;
  border-left: 9px solid var(--inv-fg); border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}
.s-resources .rs-from-ico::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid rgba(20, 24, 31, 0.4); opacity: 0; }
/* Llega desde YouTube (?ref=yt / utm_source=youtube): la píldora se enciende (sin color) */
.s-resources .rs-from.is-yt { color: var(--fg); border-color: rgba(15, 20, 30, 0.3); }
.s-resources .rs-from.is-yt .rs-from-ico::after { animation: rs-pulse 2.4s var(--ease-out) infinite; }
@keyframes rs-pulse { 0% { opacity: 0.75; scale: 0.82; } 100% { opacity: 0; scale: 1.5; } }

.s-resources .rs-stage {
  --cw: 220px;
  position: relative; width: 100%; height: var(--sh, clamp(540px, 72vh, 700px));
  overflow: hidden; perspective: 900px; perspective-origin: 50% 50%;
  touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; outline: none;
  cursor: grab !important;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.s-resources .rs-stage.is-dragging { cursor: grabbing !important; }
.has-cursor .s-resources .rs-stage.is-cursor-zone { cursor: none !important; }
.s-resources .rs-stage:focus-visible::after {
  content: ''; position: absolute; inset: 14px 8%; border-radius: 28px; pointer-events: none;
  border: 1px solid rgba(20, 24, 31, 0.5); box-shadow: inset 0 0 0 3px rgba(20, 24, 31, 0.05);
}
.s-resources .rs-tilt { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }
.s-resources .rs-proxy { position: absolute; left: 0; top: 0; width: 1px; height: 1px; visibility: hidden; pointer-events: none; }
.s-resources .rs-empty { position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; max-width: 34ch; }

/* ---------- Tarjeta ---------- */
.s-resources .rs-card {
  position: absolute; left: 0; top: 0; width: var(--cw); transform-origin: 0 0;
  visibility: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; will-change: transform;
}
.s-resources .rs-body {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: translate 0.65s var(--ease), scale 0.65s var(--ease);
}
.s-resources .rs-stage.is-dragging .rs-body { pointer-events: none; }
.s-resources .rs-tag {
  display: inline-flex; align-items: center; gap: 7px; height: 24px; padding: 0 11px; margin-bottom: 13px; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.72);
  font-family: var(--mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-3);
  white-space: nowrap; transition: color 0.45s ease, border-color 0.45s ease, background 0.45s ease;
}
.s-resources .rs-tag i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.s-resources .rs-cover {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; padding: 0; overflow: hidden;
  border-radius: 6px 14px 14px 6px; background: #14181f; cursor: pointer;
  box-shadow: 0 34px 56px -28px rgba(60, 50, 35, 0.42), 0 10px 22px -14px rgba(60, 50, 35, 0.22), 0 0 0 1px rgba(15, 20, 30, 0.07);
  transition: box-shadow 0.5s ease;
}
.s-resources .rs-cover:focus-visible { outline: 2px solid var(--fg); outline-offset: 5px; border-radius: 6px 14px 14px 6px; }
.s-resources .rs-sheen {
  position: absolute; inset: -10% -70%; z-index: 4; pointer-events: none; translate: -110% 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.2) 50%, transparent 58%);
}
.s-resources .rs-name {
  margin-top: 15px; max-width: 96%; min-height: 2.5em;
  font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--fg);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity 0.45s ease;
}
.s-resources .rs-desc {
  margin-top: 6px; max-width: 94%; height: 3em;
  font-size: 12px; line-height: 1.5; color: var(--fg-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  transition: opacity 0.45s ease;
}
.s-resources .rs-go {
  position: relative; margin-top: 12px; padding-bottom: 5px; display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-1);
  transition: opacity 0.45s ease;
}
.s-resources .rs-go::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; opacity: 0.35; transform-origin: 0 50%; transition: opacity 0.35s ease, scale 0.6s var(--ease); }
.s-resources .rs-card:not(.is-front) :is(.rs-name, .rs-desc, .rs-go) { opacity: 0.5; }
.s-resources .rs-card.is-front .rs-tag { color: var(--fg-1); border-color: var(--line-3); background: #ffffff; }
.s-resources .rs-card.is-front .rs-cover { box-shadow: 0 42px 66px -26px rgba(60, 50, 35, 0.5), 0 12px 26px -14px rgba(60, 50, 35, 0.26), 0 0 0 1px rgba(15, 20, 30, 0.09); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .s-resources .rs-card:hover .rs-body { translate: 0 -16px; scale: 1.035; }
  .s-resources .rs-card:hover .rs-sheen { translate: 110% 0; transition: translate 1s var(--ease); }
  .s-resources .rs-card:hover .rc-letter { translate: -4% -3%; }
  .s-resources .rs-card:hover .rs-go::before { opacity: 0.9; }
  .s-resources .rs-card:hover .rs-go .arrow { translate: 4px 0; }
}
/* teclado: la frontal enfocada se levanta igual que con el ratón */
@media (prefers-reduced-motion: no-preference) {
  .s-resources .rs-body:has(.rs-cover:focus-visible) { translate: 0 -12px; scale: 1.02; }
}
@media (hover: hover) {
  .s-resources .rs-card:hover :is(.rs-name, .rs-desc, .rs-go) { opacity: 1; }
  .s-resources .rs-card:hover .rs-tag { color: var(--fg); border-color: rgba(15, 20, 30, 0.3); }
  .s-resources .rs-card:hover .rs-cover { box-shadow: 0 50px 76px -24px rgba(60, 50, 35, 0.55), 0 14px 30px -14px rgba(60, 50, 35, 0.28), 0 0 0 1px rgba(15, 20, 30, 0.12); }
}

/* ---------- Portada tipográfica (ruleta + modal + vuelo) ---------- */
:is(.s-resources, .rsm, .rsm-fly) .rc {
  --pad: calc(var(--cw) * 0.07);
  position: absolute; inset: 0; display: block; overflow: hidden; border-radius: inherit;
  color: #f7f6f3; background: #14181f; font-family: var(--mono); text-align: left;
}
/* lomo del libro */
:is(.s-resources, .rsm, .rsm-fly) .rc::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--cw) * 0.045); z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 7, 10, 0.5), rgba(255, 255, 255, 0.1) 58%, rgba(5, 7, 10, 0.18));
}
/* firma de cristal: brillo en esquinas diagonales opuestas + borde fino */
:is(.s-resources, .rsm, .rsm-fly) .rc::after {
  content: ''; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit;
  background:
    radial-gradient(calc(var(--cw) * 0.8) calc(var(--cw) * 0.55) at 0% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04) 45%, transparent 75%),
    radial-gradient(calc(var(--cw) * 0.8) calc(var(--cw) * 0.55) at 100% 100%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 45%, transparent 75%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}
:is(.s-resources, .rsm, .rsm-fly) .rc-tex { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
:is(.s-resources, .rsm, .rsm-fly) .rc-top,
:is(.s-resources, .rsm, .rsm-fly) .rc-bottom {
  position: absolute; z-index: 2; left: calc(var(--pad) + var(--cw) * 0.03); right: var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: calc(var(--cw) * 0.04); font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
}
:is(.s-resources, .rsm, .rsm-fly) .rc-top { top: var(--pad); opacity: 0.66; }
:is(.s-resources, .rsm, .rsm-fly) .rc-bottom { bottom: var(--pad); }
:is(.s-resources, .rsm, .rsm-fly) .rc-step { opacity: 0.8; overflow: hidden; text-overflow: ellipsis; }
:is(.s-resources, .rsm, .rsm-fly) .rc-stamp {
  flex: none; padding: calc(var(--cw) * 0.017) calc(var(--cw) * 0.036); border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(10, 12, 16, 0.3); font-size: calc(var(--cw) * 0.036);
}
:is(.s-resources, .rsm, .rsm-fly) .rc-steps {
  position: absolute; z-index: 2; left: calc(var(--pad) + var(--cw) * 0.03); top: calc(var(--pad) + var(--cw) * 0.1);
  display: flex; gap: calc(var(--cw) * 0.022);
}
:is(.s-resources, .rsm, .rsm-fly) .rc-steps i {
  display: grid; place-items: center; width: calc(var(--cw) * 0.09); height: calc(var(--cw) * 0.09);
  border: 1px solid rgba(255, 255, 255, 0.24); border-radius: calc(var(--cw) * 0.022);
  font-style: normal; font-size: calc(var(--cw) * 0.044); font-weight: 600; line-height: 1; color: rgba(247, 246, 243, 0.55);
}
:is(.s-resources, .rsm, .rsm-fly) .rc-steps i.on { background: #f7f6f3; border-color: #f7f6f3; color: #14181f; }
/* La letra del método, gigante y recortada (relleno degradado: nunca -webkit-text-stroke) */
:is(.s-resources, .rsm, .rsm-fly) .rc-letter {
  position: absolute; z-index: 1; right: -0.07em; bottom: -0.235em;
  font-family: var(--font); font-weight: 900; font-size: calc(var(--cw) * 1.36); line-height: 1; letter-spacing: -0.06em;
  background-image: linear-gradient(172deg, #fff 22%, rgba(255, 255, 255, 0.07) 84%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  transition: translate 0.9s var(--ease);
}
:is(.s-resources, .rsm, .rsm-fly) .rc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* 4 variantes monocromas, alternas en la ruleta: tinta (ink) · blanco roto (paper) · tinta rayada (line) ·
   piedra clara (graphite). Las claras comparten tinta, sellos y lomo (bloque :is(.rc--paper, .rc--graphite)). */
:is(.s-resources, .rsm, .rsm-fly) .rc--ink { background: radial-gradient(125% 85% at 16% 0%, #2f343d 0%, #181c23 46%, #0f1217 100%); }
:is(.s-resources, .rsm, .rsm-fly) .rc--ink .rc-tex {
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1.4px); background-size: calc(var(--cw) * 0.056) calc(var(--cw) * 0.056);
  -webkit-mask-image: linear-gradient(180deg, transparent 12%, #000 52%, transparent 96%); mask-image: linear-gradient(180deg, transparent 12%, #000 52%, transparent 96%);
}
:is(.s-resources, .rsm, .rsm-fly) .rc--paper { background: linear-gradient(162deg, #fdfcfa 0%, #f3f0ea 56%, #e6e2da 100%); }
:is(.s-resources, .rsm, .rsm-fly) .rc--paper .rc-tex {
  background-image: linear-gradient(rgba(20, 24, 31, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 24, 31, 0.07) 1px, transparent 1px);
  background-size: calc(var(--cw) * 0.1) calc(var(--cw) * 0.1);
  -webkit-mask-image: linear-gradient(200deg, #000 10%, transparent 70%); mask-image: linear-gradient(200deg, #000 10%, transparent 70%);
}
:is(.s-resources, .rsm, .rsm-fly) .rc--paper .rc-letter { background-image: linear-gradient(172deg, #14181f 24%, rgba(20, 24, 31, 0.1) 86%); }
/* portadas claras (paper + graphite): tinta, sellos, pasos, lomo y canto */
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite) { color: #14181f; }
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite) .rc-steps i { border-color: rgba(20, 24, 31, 0.3); color: rgba(20, 24, 31, 0.62); }
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite) .rc-steps i.on { background: #14181f; border-color: #14181f; color: #f7f6f3; }
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite) .rc-stamp { border-color: rgba(20, 24, 31, 0.32); background: rgba(255, 255, 255, 0.5); }
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite)::before { background: linear-gradient(90deg, rgba(60, 50, 35, 0.2), rgba(255, 255, 255, 0.65) 58%, rgba(60, 50, 35, 0.06)); }
:is(.s-resources, .rsm, .rsm-fly) :is(.rc--paper, .rc--graphite)::after {
  background:
    radial-gradient(calc(var(--cw) * 0.8) calc(var(--cw) * 0.55) at 0% 0%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.2) 45%, transparent 75%),
    radial-gradient(calc(var(--cw) * 0.8) calc(var(--cw) * 0.55) at 100% 100%, rgba(60, 50, 35, 0.06), transparent 70%);
  box-shadow: inset 0 0 0 1px rgba(15, 20, 30, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
:is(.s-resources, .rsm, .rsm-fly) .rc--line { background: linear-gradient(166deg, #20252d 0%, #12151b 58%, #191d24 100%); }
:is(.s-resources, .rsm, .rsm-fly) .rc--line .rc-tex {
  background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px calc(var(--cw) * 0.045));
  -webkit-mask-image: linear-gradient(180deg, transparent 20%, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, transparent 20%, #000 60%, transparent 100%);
}
:is(.s-resources, .rsm, .rsm-fly) .rc--line .rc-letter { background-image: linear-gradient(176deg, rgba(255, 255, 255, 0.62) 18%, rgba(255, 255, 255, 0.03) 82%); }
:is(.s-resources, .rsm, .rsm-fly) .rc--line::after { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
:is(.s-resources, .rsm, .rsm-fly) .rc--graphite { background: linear-gradient(158deg, #eeece8 0%, #dfdcd5 52%, #cfcbc3 100%); }
:is(.s-resources, .rsm, .rsm-fly) .rc--graphite .rc-tex {
  background-image: repeating-radial-gradient(circle at 100% 100%, rgba(20, 24, 31, 0.1) 0 1px, transparent 1px calc(var(--cw) * 0.05));
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 20%, transparent 75%); mask-image: radial-gradient(circle at 100% 100%, #000 20%, transparent 75%);
}
:is(.s-resources, .rsm, .rsm-fly) .rc--graphite .rc-letter { background-image: linear-gradient(172deg, rgba(20, 24, 31, 0.9) 20%, rgba(20, 24, 31, 0.08) 84%); }

/* ---------- Controles ---------- */
.s-resources .rs-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: clamp(6px, 1.2vw, 16px); }
.s-resources .rs-nav { display: inline-flex; align-items: center; gap: 10px; }
.s-resources .rs-btn {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%;
  background: var(--glass-bg); border: 1px solid var(--line-2);
  box-shadow: 0 10px 26px rgba(60, 50, 35, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: border-color 0.35s ease, background 0.35s ease, translate 0.45s var(--ease);
}
.s-resources .rs-prev::before, .s-resources .rs-next::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -6px;
  border-top: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg); rotate: 45deg; transition: translate 0.45s var(--ease);
}
.s-resources .rs-prev::before { margin-left: -2.5px; rotate: -135deg; }
.s-resources .rs-play { width: 40px; height: 40px; margin-left: 6px; }
.s-resources .rs-play::before, .s-resources .rs-play::after {
  content: ''; position: absolute; top: 50%; width: 2px; height: 11px; margin-top: -5.5px; border-radius: 2px; background: var(--fg-1);
}
.s-resources .rs-play::before { left: calc(50% - 4px); }
.s-resources .rs-play::after { left: calc(50% + 2px); }
.s-resources .rs-play.is-paused::before {
  left: 50%; width: 0; height: 0; margin: -5.5px 0 0 -3px; border-radius: 0; background: none;
  border-left: 9px solid var(--fg-1); border-top: 5.5px solid transparent; border-bottom: 5.5px solid transparent;
}
.s-resources .rs-play.is-paused::after { display: none; }
@media (hover: hover) {
  .s-resources .rs-btn:hover { border-color: rgba(15, 20, 30, 0.3); background: var(--bg-1); translate: 0 -2px; }
  .s-resources .rs-next:hover::before { translate: 3px -3px; }
  .s-resources .rs-prev:hover::before { translate: -3px 3px; }
}
.s-resources .rs-count { display: inline-flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 74px; font-variant-numeric: tabular-nums; color: var(--fg-3); }
.s-resources .rs-cur { display: inline-block; overflow: hidden; padding: 0.15em 0; margin: -0.15em 0; color: var(--fg); }
.s-resources .rs-cur-n { display: inline-block; }
.s-resources .rs-sep { color: var(--fg-4); }
.s-resources .rs-hint { color: var(--fg-4); }
.s-resources .rs-hint-m { display: none; }
@media (hover: none) {
  .s-resources .rs-hint-d { display: none; }
  .s-resources .rs-hint-m { display: inline; }
}
/* Canal pendiente de URL: texto, sin interacción */
.s-resources .rs-channel { color: var(--fg-3); cursor: default; }
.s-resources .rs-channel::before { opacity: 0.2; }

/* ---------- Puente: caja exterior + caja interior ---------- */
.s-resources .rs-bridge-wrap { margin-top: clamp(40px, 6vw, 84px); }
.s-resources .rs-bridge { padding: 10px; border-radius: 26px; }
.s-resources .rs-bridge-in {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px 48px;
  padding: clamp(22px, 3.2vw, 40px); border-radius: 17px;
}
.s-resources .rs-bridge-t { font-size: clamp(22px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; color: var(--fg); max-width: 21ch; text-wrap: balance; }
.s-resources .rs-bridge-cta { display: grid; justify-items: end; gap: 10px; text-align: right; }
.s-resources .rs-bridge-micro { max-width: 34ch; }

/* ---------- Respaldo (sin JS / si falla la ruleta) ---------- */
.s-resources .rs-fallback { display: none; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 34px; }
.s-resources .rs-fb { display: grid; align-content: start; gap: 8px; padding: 18px 18px 20px; border-radius: var(--r); }
.s-resources .rs-fb-title { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; color: var(--fg); }
.s-resources .rs-fb-desc { font-size: 12.5px; line-height: 1.55; color: var(--fg-3); }
.s-resources .rs-noscript { margin-top: 14px; }
.no-js .s-resources .rs-fallback,
.s-resources.is-fallback .rs-fallback,
.s-resources.sw-nofx:not(.is-ready) .rs-fallback,
html.sw-nofx:not(.sw-booted) .s-resources .rs-fallback { display: grid; }
.no-js .s-resources :is(.rs-stage, .rs-nav, .rs-hint),
.s-resources.is-fallback :is(.rs-stage, .rs-nav, .rs-hint),
.s-resources.sw-nofx:not(.is-ready) :is(.rs-stage, .rs-nav, .rs-hint),
html.sw-nofx:not(.sw-booted) .s-resources :is(.rs-stage, .rs-nav, .rs-hint) { display: none; }
.no-js .s-resources .rs-from-row,
.s-resources.is-fallback .rs-from-row,
.s-resources.sw-nofx:not(.is-ready) .rs-from-row,
html.sw-nofx:not(.sw-booted) .s-resources .rs-from-row { margin-bottom: 0; }

/* ---------- Detalle (contenido del modal de core) ---------- */
.rsm { position: relative; display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 26px; align-items: start; }
.rsm-cover {
  --cw: 184px;
  position: relative; width: var(--cw); aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 28px 52px -22px rgba(60, 50, 35, 0.45), 0 10px 22px -14px rgba(60, 50, 35, 0.2), 0 0 0 1px rgba(15, 20, 30, 0.08);
}
.rsm-body { display: grid; gap: 12px; padding-right: 28px; }
.rsm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rsm-step { color: var(--fg-3); }
.rsm-step b { color: var(--fg); font-weight: 600; }
.rsm-title { font-size: clamp(20px, 2.4vw, 25px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; color: var(--fg); text-wrap: balance; }
.rsm-desc { font-size: 13.5px; line-height: 1.65; color: var(--fg-2); }
.rsm-soon { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; }
.rsm-soon-t { font-size: 13px; font-weight: 600; color: var(--fg); }
.rsm-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
@media (max-width: 560px) {
  .rsm { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rsm-cover { --cw: 136px; }
  .rsm-body { padding-right: 0; }
  .rsm-ctas .btn { flex: 1 1 auto; }
}
/* Vuelo FLIP de la portada (clon fijo en <body>, fuera de #smooth-content) */
.rsm-fly {
  position: fixed; z-index: 450; pointer-events: none; overflow: hidden; border-radius: 6px 14px 14px 6px;
  box-shadow: 0 36px 80px -24px rgba(60, 50, 35, 0.45); will-change: transform;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .s-resources .rs-head { grid-template-columns: minmax(0, 1fr); }
  .s-resources .rs-lead { justify-self: start; }
  .s-resources .rs-bridge-in { grid-template-columns: minmax(0, 1fr); }
  .s-resources .rs-bridge-cta { justify-items: start; text-align: left; }
}
@media (max-width: 700px) {
  .s-resources .rs-from { font-size: 12.5px; padding-right: 16px; }
  .s-resources .rs-from-row { margin-bottom: -18px; }
  .s-resources .rs-name { font-size: 14px; }
  .s-resources .rs-desc { font-size: 11.5px; }
  .s-resources .rs-controls { justify-content: center; }
  .s-resources .rs-hint { order: 3; width: 100%; text-align: center; }
  .s-resources .rs-channel { order: 2; }
  .s-resources .rs-nav { width: 100%; justify-content: center; }
  .s-resources .rs-bridge .btn { width: 100%; }
  .s-resources .rs-bridge-cta { justify-items: stretch; }
}
/* Píldora en móvil: el texto «muy pronto» (por defecto, sin JS y con 0 recursos live) ocupa 2-3 líneas
   equilibradas a todo el ancho; radio fijo = cápsula con 1-2 líneas y caja redondeada con 3. */
@media (max-width: 700px) {
  .s-resources .rs-from { border-radius: 24px; }
}
/* Con recursos live, el texto corto en EN pide 2 líneas: cápsula compacta (ES cabe en 1) */
@media (max-width: 420px) {
  html[lang='en'] .s-resources.has-live .rs-from-t { max-width: 26ch; }
}
@media (prefers-reduced-motion: reduce) {
  .s-resources .rs-body, .s-resources .rs-sheen, .s-resources .rc-letter, .s-resources .rs-btn { transition: none !important; }
  .s-resources .rs-play { display: none; }
}
