/* ==========================================================================
   ivan.wismify.com · recurso.css — páginas de RECURSO GRATUITO (/recursos/<slug>), reutilizable
   Plantilla: src/recursos-<slug>.html (la enlaza a mano: no es una sección del ensamblador). JS: recurso.js.
   Todo prefijado con .s-recurso; el modal de descarga se clona FUERA (en #swModal), así que va con .rcm.
   Tema claro de la web: blanco + blanco roto (#f4f2ee / #f7f5f1), tinta #14181f, rejilla de puntos de 12 px,
   bordes rgba(15,20,30,.10), sombras cálidas rgba(60,50,35,…), radios 14-24 px, Inter + JetBrains Mono.
   Lima (#c2fc03, .btn-lime de base.css) SOLO en «Descargar gratis» / «Descargar ahora».
   GSAP: nada de translate/scale CSS de reposo en lo que GSAP mueve; hovers con translate → !important.
   PROHIBIDO -webkit-text-stroke y feTurbulence.
   ========================================================================== */

.s-recurso { position: relative; --rc-r: 20px; --rc-ink: #14181f; --rc-off: #f7f5f1; --rc-off-2: #f4f2ee; }
.s-recurso .rc-mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.02em; }

/* flecha hacia abajo (descarga): la .arrow de base girada */
.rc-arr-down { transform: rotate(90deg); }
.sw-roll .btn-arr > .rc-arr-down + .rc-arr-down { translate: 0 -24px; }
.sw-roll:focus-visible .btn-arr > .rc-arr-down:first-child { translate: 0 24px; }
.sw-roll:focus-visible .btn-arr > .rc-arr-down + .rc-arr-down { translate: 0 0; }
@media (hover: hover) {
  .sw-roll:hover .btn-arr > .rc-arr-down:first-child { translate: 0 24px; }
  .sw-roll:hover .btn-arr > .rc-arr-down + .rc-arr-down { translate: 0 0; }
}

/* Icono de ZIP (tinta, mono) */
.rc-zip {
  position: relative; display: grid; place-items: end center; width: 46px; height: 56px; padding-bottom: 8px; flex: none;
  border-radius: 9px 16px 9px 9px; background: var(--inv-bg); color: var(--inv-fg);
  box-shadow: 0 12px 26px rgba(20, 24, 31, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.rc-zip::before { /* esquina doblada */
  content: ''; position: absolute; right: 0; top: 0; width: 15px; height: 15px; border-radius: 0 16px 0 6px;
  background: linear-gradient(225deg, var(--bg-2) 50%, #3a3f48 50%);
}
.rc-zip::after { /* cremallera */
  content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 20px; margin-left: -2px;
  background: repeating-linear-gradient(180deg, rgba(247, 246, 243, 0.75) 0 3px, transparent 3px 6px);
}
.rc-zip b { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em; }
.rc-zip--sm { width: 38px; height: 46px; padding-bottom: 6px; border-radius: 8px 13px 8px 8px; }
.rc-zip--sm::before { width: 12px; height: 12px; border-radius: 0 13px 0 5px; }
.rc-zip--sm::after { top: 6px; height: 16px; }
.rc-zip--sm b { font-size: 8.5px; }

/* ---------- 1 · Hero ---------- */
.s-recurso .rc-hero { position: relative; padding: clamp(118px, 11vw, 158px) 0 clamp(40px, 6vw, 80px); }
.s-recurso .rc-hero-head { min-width: 0; }
.s-recurso .rc-hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 384px); gap: clamp(28px, 4vw, 64px); align-items: start;
  margin-top: clamp(18px, 2.2vw, 30px);
}
.s-recurso .rc-kicker { align-items: flex-start; }
.s-recurso .rc-kicker::before { margin-top: 0.62em; flex: none; }
.s-recurso .rc-title {
  margin-top: 18px; font-size: clamp(44px, 10.6vw, 156px); font-weight: 850; letter-spacing: -0.058em; line-height: 0.92; color: var(--fg); white-space: nowrap;
}
.s-recurso .rc-lead { max-width: 34em; font-size: clamp(16px, 1.32vw, 19px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.s-recurso .rc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.s-recurso .rc-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 10px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-1);
  background: #ffffff; border: 1px solid var(--line); box-shadow: 0 4px 12px rgba(60, 50, 35, 0.05);
}
.s-recurso .rc-chip::before { /* check */
  content: ''; width: 5px; height: 9px; margin: -3px 2px 0 3px; border-right: 1.6px solid var(--fg); border-bottom: 1.6px solid var(--fg); transform: rotate(45deg);
}
.s-recurso .rc-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ficha del archivo */
.s-recurso .rc-spec { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; padding: 18px 20px 6px 18px; border-radius: 22px; }
.s-recurso .rc-spec .rc-zip { margin-top: 2px; }
.s-recurso .rc-spec-dl > div:first-child { border-top: 0; padding-top: 0; }
.s-recurso .rc-spec-dl > div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-top: 1px solid rgba(15, 20, 30, 0.08); }
.s-recurso .rc-spec-dl dt { padding-top: 2px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); }
.s-recurso .rc-spec-dl dd { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }

/* captura en un marco de cristal (recurso.js: se endereza con el scroll) */
.s-recurso .rc-shot { margin: clamp(40px, 5vw, 68px) 0 0; }
.s-recurso .rc-frame {
  padding: 10px; border-radius: 26px; transform-origin: 50% 0%;
  box-shadow: 0 40px 100px rgba(60, 50, 35, 0.16), 0 10px 30px rgba(60, 50, 35, 0.08), inset 0 1px 0 #fff;
}
.s-recurso .rc-frame-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px 8px; }
.s-recurso .rc-frame-bar > i { width: 10px; height: 10px; border-radius: 50%; background: rgba(15, 20, 30, 0.12); }
.s-recurso .rc-frame-url {
  margin: 0 auto; padding: 4px 14px; border-radius: var(--pill); background: var(--rc-off-2); border: 1px solid rgba(15, 20, 30, 0.06);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--fg-3); translate: -20px 0;
}
.s-recurso .rc-frame-img { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(15, 20, 30, 0.08); background: #e9e7e3; }
.s-recurso .rc-frame-img img { width: 100%; height: auto; }
.s-recurso .rc-shot-note { margin-top: 18px; text-align: center; color: var(--fg-3); }

/* ---------- Qué hace ---------- */
.s-recurso .rc-what { padding: clamp(56px, 7vw, 110px) 0 clamp(20px, 3vw, 40px); }
.s-recurso .rc-what-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: clamp(30px, 4vw, 52px); }
.s-recurso .rc-h2 { font-size: clamp(28px, 3.3vw, 46px); font-weight: 780; letter-spacing: -0.04em; line-height: 1.04; color: var(--fg); text-wrap: balance; }
.s-recurso .rc-what-lead { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--fg-2); max-width: 46em; }
.s-recurso .rc-feats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto;
  gap: clamp(12px, 1.4vw, 18px);
}
.s-recurso .rc-feat {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 8px; min-width: 0;
  padding: clamp(18px, 1.8vw, 24px); border-radius: var(--rc-r);
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 45%, #faf8f4 100%);
  border: 1px solid rgba(15, 20, 30, 0.10);
  box-shadow: 0 14px 36px rgba(60, 50, 35, 0.07), inset 0 1px 0 #fff;
  transition: border-color 0.4s ease, box-shadow 0.5s ease;
}
@media (hover: hover) {
  .s-recurso .rc-feat:hover { border-color: rgba(15, 20, 30, 0.2); box-shadow: 0 26px 60px rgba(60, 50, 35, 0.13), inset 0 1px 0 #fff; }
}
.s-recurso .rc-feat--big { grid-row: span 3; }
.s-recurso .rc-feat-n { color: var(--fg-3); }
.s-recurso .rc-feat-t { margin-top: 6px; font-size: clamp(17px, 1.35vw, 20px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.2; color: var(--fg); }
.s-recurso .rc-feat-d { font-size: 13.5px; line-height: 1.6; color: var(--fg-2); }
.s-recurso .rc-feat-d strong { font-weight: 600; color: var(--fg); }

/* muestrario de las 5 plantillas (sin blur real: velos translúcidos sobre un fondo suave) */
.s-recurso .rc-sw {
  position: relative; flex: 1; min-height: 300px; margin-top: 18px; padding: 18px; overflow: hidden; border-radius: 14px;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: 1fr 1fr; gap: 10px; align-content: center;
  border: 1px solid rgba(15, 20, 30, 0.07);
  background:
    linear-gradient(180deg, rgba(244, 242, 238, 0.10), rgba(20, 24, 31, 0.10)),
    url('/assets/img/recursos/glass-capture.webp') 2% 52% / auto 250% no-repeat,
    #cfcac2;
}
.s-recurso .rc-sw-tile {
  position: relative; display: grid; align-content: end; gap: 7px; min-height: 108px; padding: 12px; border-radius: 12px; grid-column: span 2;
  font-size: 11.5px; line-height: 1.2;
}
.s-recurso .rc-sw-tile:nth-child(5), .s-recurso .rc-sw-tile:nth-child(6) { grid-column: span 3; }
.s-recurso .rc-sw-tile b { font-weight: 700; letter-spacing: -0.01em; }
.s-recurso .rc-sw-tile i { height: 18px; border-radius: 6px; background: rgba(255, 255, 255, 0.7); border: 1px solid rgba(15, 20, 30, 0.08); }
.s-recurso .rc-sw-tile em { justify-self: start; padding: 4px 9px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 600; background: var(--inv-bg); color: var(--inv-fg); }
.s-recurso .rc-sw--blur { background: linear-gradient(160deg, rgba(255, 255, 255, 0.78), rgba(250, 248, 244, 0.62)); border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 14px 30px rgba(60, 50, 35, 0.14), inset 0 1px 0 #fff; color: var(--fg); }
.s-recurso .rc-sw--liquid { background: linear-gradient(160deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)); border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset -2px -2px 0 rgba(20, 24, 31, 0.12), 0 12px 26px rgba(60, 50, 35, 0.12); color: var(--fg); }
.s-recurso .rc-sw--liquid i { background: rgba(255, 255, 255, 0.4); }
.s-recurso .rc-sw--smoke { background: linear-gradient(160deg, rgba(20, 24, 31, 0.62), rgba(20, 24, 31, 0.78)); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 14px 30px rgba(20, 24, 31, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14); color: #f7f6f3; }
.s-recurso .rc-sw--smoke i { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.16); }
.s-recurso .rc-sw--smoke em { background: #f7f6f3; color: var(--fg); }
.s-recurso .rc-sw--black { background: #0d0f13; color: #f7f6f3; box-shadow: 0 14px 30px rgba(20, 24, 31, 0.28); }
.s-recurso .rc-sw--black i { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.14); }
.s-recurso .rc-sw--black em { background: #f7f6f3; color: var(--fg); }
.s-recurso .rc-sw--white { background: #ffffff; color: var(--fg); border: 1px solid rgba(15, 20, 30, 0.08); box-shadow: 0 14px 30px rgba(60, 50, 35, 0.14); }
.s-recurso .rc-sw--white i { background: var(--rc-off-2); }

/* ---------- 2 · Guía + índice ---------- */
.s-recurso .rc-guide {
  display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: clamp(32px, 5vw, 84px); align-items: start;
  padding-top: clamp(60px, 8vw, 120px);
}
.s-recurso .rc-toc-col { position: relative; min-width: 0; height: 100%; }
/* sin ScrollSmoother (táctil / movimiento reducido): sticky nativo. Con él, recurso.js lo fija con pin (.is-pinned) */
.s-recurso .rc-toc { position: sticky; top: 100px; padding: 18px 16px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.82); border: 1px solid var(--line); box-shadow: 0 14px 40px rgba(60, 50, 35, 0.07), inset 0 1px 0 #fff; }
.s-recurso .rc-toc.is-pinned { position: relative; top: 0; }
.s-recurso .rc-toc-t { padding: 0 10px 10px 22px; color: var(--fg-3); }
.s-recurso .rc-toc-list { position: relative; display: grid; gap: 1px; padding-left: 12px; }
.s-recurso .rc-toc-list a {
  position: relative; display: flex; align-items: baseline; gap: 10px; padding: 7px 10px; border-radius: 9px;
  font-size: 13.5px; line-height: 1.35; color: var(--fg-2); transition: color 0.25s ease, background 0.25s ease;
}
.s-recurso .rc-toc-n { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; color: var(--fg-4); transition: color 0.25s ease; }
@media (hover: hover) { .s-recurso .rc-toc-list a:hover { color: var(--fg); background: rgba(15, 20, 30, 0.04); } }
.s-recurso .rc-toc-list a.is-active { color: var(--fg); font-weight: 600; }
.s-recurso .rc-toc-list a.is-active .rc-toc-n { color: var(--fg); }
/* raíl a la izquierda: progreso de lectura + indicador del apartado activo (recurso.js) */
.s-recurso .rc-toc-track { position: absolute; left: 22px; top: 44px; bottom: 70px; width: 1px; background: rgba(15, 20, 30, 0.10); pointer-events: none; }
.s-recurso .rc-toc-fill { position: absolute; inset: 0; background: rgba(20, 24, 31, 0.45); transform-origin: 50% 0%; transform: scaleY(0); }
.s-recurso .rc-toc-ind { position: absolute; left: -1.5px; top: 0; width: 4px; height: 18px; border-radius: 4px; background: var(--fg); opacity: 0; }
.s-recurso .rc-toc-cta { width: 100%; margin-top: 14px; }

.s-recurso .rc-doc { min-width: 0; max-width: 800px; }
.s-recurso .rc-sec { position: relative; padding: clamp(40px, 5vw, 64px) 0 0; }
/* SW.scrollTo enfoca el apartado al llegar (lectores de pantalla): sin anillo alrededor de toda la sección */
.s-recurso .rc-sec:focus, .s-recurso .rc-sec:focus-visible { outline: none; }
.s-recurso .rc-sec + .rc-sec { margin-top: clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); }
.s-recurso .rc-sec:first-child { padding-top: 0; }
.s-recurso .rc-sec > .kicker { margin-bottom: 14px; }
.s-recurso .rc-sec > .rc-h2 { margin-bottom: clamp(20px, 2.4vw, 30px); }
.s-recurso .rc-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: clamp(22px, 2.6vw, 34px); }
.s-recurso .rc-sec-head .kicker { margin-bottom: 14px; }
.s-recurso .rc-total { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--pill); background: #fff; border: 1px solid var(--line); color: var(--fg-2); }

/* Texto de la guía */
.s-recurso .rc-prose { font-size: 15px; line-height: 1.7; color: var(--fg-2); }
.s-recurso .rc-prose > * + * { margin-top: 14px; }
.s-recurso .rc-prose h3 { margin-top: clamp(26px, 3vw, 36px); font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.3; color: var(--fg); }
.s-recurso .rc-prose > h3:first-child { margin-top: 0; }
.s-recurso .rc-prose strong { font-weight: 600; color: var(--fg); }
.s-recurso .rc-prose em { font-style: normal; color: var(--fg-1); }
.s-recurso :is(code, pre), .rcm code { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.s-recurso :is(.rc-prose, .rc-note, .rc-acc) code, .rcm code {
  padding: 1px 6px; border-radius: 6px; background: var(--rc-off-2); border: 1px solid rgba(15, 20, 30, 0.08);
  font-family: var(--mono); font-size: 0.84em; color: var(--fg); overflow-wrap: anywhere; white-space: normal;
}
.s-recurso .rc-prose ol, .s-recurso .rc-prose ul, .s-recurso .rc-note ul { display: grid; gap: 9px; }
.s-recurso .rc-prose ol { counter-reset: rc-ol; }
.s-recurso .rc-prose ol > li { position: relative; padding-left: 36px; counter-increment: rc-ol; }
.s-recurso .rc-prose ol > li::before {
  content: counter(rc-ol); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px;
  display: grid; place-items: center; font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--fg);
  background: #ffffff; border: 1px solid var(--line-2);
}
.s-recurso .rc-prose ul > li, .s-recurso .rc-note ul > li { position: relative; padding-left: 20px; }
.s-recurso .rc-prose ul > li::before, .s-recurso .rc-note ul > li::before {
  content: ''; position: absolute; left: 4px; top: 0.72em; width: 6px; height: 6px; border-radius: 50%; background: var(--fg); opacity: 0.75;
}
.s-recurso .rc-prose li > ul { margin-top: 9px; }

/* Avisos (nota / consejo) */
.s-recurso .rc-note {
  display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 20px;
  padding: 16px 18px; border-radius: 16px; font-size: 14px; line-height: 1.65; color: var(--fg-2);
  background: var(--rc-off); border: 1px solid rgba(15, 20, 30, 0.10);
}
.s-recurso .rc-note p + ul { margin-top: 8px; }
.s-recurso .rc-note strong { font-weight: 650; color: var(--fg); }
.s-recurso .rc-note-ic { position: relative; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px; }
.s-recurso .rc-note--warn { background: linear-gradient(165deg, #f7f5f1, #f1eee8); border-color: rgba(15, 20, 30, 0.14); }
.s-recurso .rc-note--warn .rc-note-ic { background: var(--inv-bg); }
.s-recurso .rc-note--warn .rc-note-ic::before { content: ''; position: absolute; left: 50%; top: 6px; width: 2px; height: 9px; margin-left: -1px; border-radius: 2px; background: var(--inv-fg); }
.s-recurso .rc-note--warn .rc-note-ic::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 2.4px; height: 2.4px; margin-left: -1.2px; border-radius: 50%; background: var(--inv-fg); }
.s-recurso .rc-note--tip { background: #ffffff; }
.s-recurso .rc-note--tip .rc-note-ic { border: 1.5px solid rgba(20, 24, 31, 0.7); }
.s-recurso .rc-note--tip .rc-note-ic::before { content: ''; position: absolute; left: 50%; top: 5px; width: 2.2px; height: 2.2px; margin-left: -1.1px; border-radius: 50%; background: var(--fg); }
.s-recurso .rc-note--tip .rc-note-ic::after { content: ''; position: absolute; left: 50%; bottom: 5px; width: 2px; height: 8px; margin-left: -1px; border-radius: 2px; background: var(--fg); }

/* Bloques de código */
.s-recurso .rc-code { margin-top: 20px; border-radius: 16px; overflow: hidden; background: linear-gradient(165deg, #fbfaf7, #f5f3ee); border: 1px solid rgba(15, 20, 30, 0.10); box-shadow: inset 0 1px 0 #fff; }
.s-recurso .rc-code + .rc-prose { margin-top: 22px; }
.s-recurso .rc-code-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-bottom: 1px solid rgba(15, 20, 30, 0.08); }
.s-recurso .rc-code-bar .label { color: var(--fg-3); }
.s-recurso .rc-copy {
  position: relative; height: 28px; padding: 0 12px; border-radius: 8px; background: #ffffff; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-1);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
@media (hover: hover) { .s-recurso .rc-copy:hover { border-color: var(--line-3); } }
.s-recurso .rc-copy.is-done { background: var(--inv-bg); border-color: var(--inv-bg); color: var(--inv-fg); }
.s-recurso .rc-code pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--fg-1); tab-size: 2; }
.s-recurso .rc-code pre code { font: inherit; }

/* Pasos de instalación: raíl con progreso (recurso.js) + tarjetas */
.s-recurso .rc-steps { position: relative; display: grid; gap: 14px; --rail: 23px; }
.s-recurso .rc-steps::before, .s-recurso .rc-steps::after { content: ''; position: absolute; left: var(--rail); top: 30px; bottom: 30px; width: 1px; background: rgba(15, 20, 30, 0.12); }
.s-recurso .rc-steps::after { background: var(--fg); transform-origin: 50% 0%; transform: scaleY(var(--fill, 0)); }
.s-recurso .rc-step { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: clamp(12px, 1.8vw, 20px); align-items: start; }
.s-recurso .rc-step-n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-top: 10px; border-radius: 50%;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--fg); background: #ffffff; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 6px var(--bg), 0 8px 18px rgba(60, 50, 35, 0.08);
  transition: background 0.5s var(--ease), color 0.4s ease, border-color 0.4s ease;
}
.s-recurso .rc-step.is-done .rc-step-n { background: var(--inv-bg); color: var(--inv-fg); border-color: var(--inv-bg); }
.s-recurso .rc-step-card {
  position: relative; min-width: 0; padding: clamp(18px, 2vw, 26px); border-radius: var(--rc-r);
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 45%, #faf8f4 100%);
  border: 1px solid rgba(15, 20, 30, 0.10); box-shadow: 0 14px 36px rgba(60, 50, 35, 0.06), inset 0 1px 0 #fff;
}
.s-recurso .rc-step-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.s-recurso .rc-step-head h3 { font-size: clamp(17px, 1.45vw, 20px); font-weight: 700; letter-spacing: -0.022em; line-height: 1.25; color: var(--fg); }
.s-recurso .rc-time {
  flex: none; display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px; border-radius: var(--pill);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--fg-2); background: var(--rc-off-2); border: 1px solid rgba(15, 20, 30, 0.06); white-space: nowrap;
}
.s-recurso .rc-clock { position: relative; width: 12px; height: 12px; border-radius: 50%; border: 1.4px solid currentColor; flex: none; }
.s-recurso .rc-clock::before { content: ''; position: absolute; left: 4.2px; top: 1.6px; width: 1.4px; height: 4px; background: currentColor; border-radius: 1px; }
.s-recurso .rc-clock::after { content: ''; position: absolute; left: 4.2px; top: 4.6px; width: 3.2px; height: 1.4px; background: currentColor; border-radius: 1px; }
.s-recurso .rc-step-card .rc-prose { font-size: 14.5px; }
.s-recurso .rc-step-card .rc-note { margin-top: 16px; font-size: 13.5px; }

/* Tablas */
.s-recurso .rc-table-wrap { margin: 18px 0 6px; border-radius: 16px; border: 1px solid rgba(15, 20, 30, 0.10); background: #ffffff; overflow: hidden; box-shadow: 0 10px 30px rgba(60, 50, 35, 0.05); }
.s-recurso .rc-table-wrap + .rc-prose { margin-top: 22px; }
.s-recurso .rc-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.55; }
.s-recurso .rc-table thead th {
  padding: 12px 16px; text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-3); background: var(--rc-off); border-bottom: 1px solid rgba(15, 20, 30, 0.08);
}
.s-recurso .rc-table tbody th, .s-recurso .rc-table td { padding: 13px 16px; vertical-align: top; text-align: left; border-top: 1px solid rgba(15, 20, 30, 0.07); }
.s-recurso .rc-table tbody tr:first-child > * { border-top: 0; }
.s-recurso .rc-table tbody th { font-weight: 650; color: var(--fg); white-space: nowrap; }
.s-recurso .rc-table--2 tbody th { width: 34%; white-space: normal; }
.s-recurso .rc-table td { color: var(--fg-2); }
.s-recurso .rc-table code { padding: 1px 5px; border-radius: 5px; background: var(--rc-off-2); border: 1px solid rgba(15, 20, 30, 0.08); font-family: var(--mono); font-size: 0.84em; color: var(--fg); white-space: nowrap; }
@media (hover: hover) { .s-recurso .rc-table tbody tr { transition: background 0.25s ease; } .s-recurso .rc-table tbody tr:hover { background: rgba(244, 242, 238, 0.55); } }
.s-recurso .rc-dot { display: inline-block; width: 12px; height: 12px; margin-right: 10px; border-radius: 4px; vertical-align: -1px; border: 1px solid rgba(15, 20, 30, 0.14); }
.s-recurso .rc-dot--blur { background: linear-gradient(160deg, #ffffff, #e9e6e0); }
.s-recurso .rc-dot--liquid { background: linear-gradient(135deg, #fff 0 30%, #d6d2ca 30% 60%, #fff 60%); }
.s-recurso .rc-dot--smoke { background: linear-gradient(160deg, #4a4e56, #23272e); }
.s-recurso .rc-dot--black { background: #0d0f13; }
.s-recurso .rc-dot--white { background: #ffffff; }

/* Datos: texto + ficha de cliente de ejemplo */
.s-recurso .rc-data { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.s-recurso .rc-cust {
  padding: 16px; border-radius: 18px; background: linear-gradient(165deg, #ffffff, #faf8f4); border: 1px solid rgba(15, 20, 30, 0.10);
  box-shadow: 0 22px 50px rgba(60, 50, 35, 0.12), inset 0 1px 0 #fff;
}
.s-recurso .rc-cust-k { color: var(--fg-3); }
.s-recurso .rc-cust-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.s-recurso .rc-cust-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none; background: var(--inv-bg); color: var(--inv-fg); font-size: 12px; font-weight: 700; }
.s-recurso .rc-cust-id { display: grid; min-width: 0; line-height: 1.3; }
.s-recurso .rc-cust-id b { font-size: 14px; font-weight: 650; color: var(--fg); }
.s-recurso .rc-cust-id em { font-style: normal; font-size: 12.5px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-recurso .rc-cust-st { display: inline-flex; align-items: center; gap: 7px; margin-top: 14px; padding: 5px 10px; border-radius: var(--pill); background: var(--rc-off-2); font-size: 12px; font-weight: 600; color: var(--fg); }
.s-recurso .rc-cust-st i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg); }
.s-recurso .rc-cust-tk { margin-top: 16px; color: var(--fg-3); }
.s-recurso .rc-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.s-recurso .rc-tags code {
  display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 7px; white-space: nowrap;
  font-family: var(--mono); font-size: 11px; color: var(--fg); background: #ffffff; border: 1px solid var(--line-2);
}
.s-recurso .rc-tags--fields { margin-top: 12px; }
.s-recurso .rc-tags--fields code { background: var(--rc-off); }

/* Acordeones (problemas, FAQ): servidos abiertos; recurso.js añade .is-armed y cierra */
.s-recurso .rc-acc { border-radius: var(--rc-r); background: linear-gradient(165deg, #ffffff 0%, #ffffff 45%, #faf8f4 100%); border: 1px solid rgba(15, 20, 30, 0.10); box-shadow: 0 14px 36px rgba(60, 50, 35, 0.06), inset 0 1px 0 #fff; }
.s-recurso .rc-acc-item + .rc-acc-item { border-top: 1px solid rgba(15, 20, 30, 0.08); }
.s-recurso .rc-acc-h { margin: 0; font: inherit; }
.s-recurso .rc-acc-q {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 12px; align-items: center; width: 100%; padding: 17px clamp(14px, 2vw, 22px);
  text-align: left; font-size: 15.5px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.4; color: var(--fg); border-radius: var(--rc-r);
}
.s-recurso .rc-acc-n { color: var(--fg-4); transition: color 0.3s ease; }
.s-recurso .rc-acc-item.is-open .rc-acc-n { color: var(--fg); }
.s-recurso .rc-acc-ic { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; transition: background 0.35s var(--ease), border-color 0.35s ease, rotate 0.55s var(--ease); }
.s-recurso .rc-acc-ic::before, .s-recurso .rc-acc-ic::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -0.75px 0 0 -5.5px; border-radius: 2px; background: var(--fg); transition: background 0.3s ease, scale 0.45s var(--ease); }
.s-recurso .rc-acc-ic::after { rotate: 90deg; }
.s-recurso .rc-acc-item.is-open .rc-acc-ic { background: var(--inv-bg); border-color: var(--inv-bg); rotate: 180deg; }
.s-recurso .rc-acc-item.is-open .rc-acc-ic::before, .s-recurso .rc-acc-item.is-open .rc-acc-ic::after { background: var(--inv-fg); }
.s-recurso .rc-acc-item.is-open .rc-acc-ic::after { scale: 0 1; }
@media (hover: hover) { .s-recurso .rc-acc-q:hover .rc-acc-ic { border-color: var(--line-3); } .s-recurso .rc-acc-q:hover .rc-acc-n { color: var(--fg); } }
.s-recurso .rc-acc-a { display: grid; grid-template-rows: 1fr; }
.s-recurso .rc-acc-in { min-height: 0; overflow: hidden; }
.s-recurso .rc-acc-in p { padding: 0 clamp(14px, 2vw, 22px) 20px calc(clamp(14px, 2vw, 22px) + 42px); max-width: 66ch; font-size: 14.5px; line-height: 1.7; color: var(--fg-2); }
.s-recurso .rc-acc-in strong { font-weight: 600; color: var(--fg); }
.s-recurso .rc-acc.is-armed .rc-acc-a { grid-template-rows: 0fr; transition: grid-template-rows 0.6s var(--ease); }
.s-recurso .rc-acc.is-armed .rc-acc-in { visibility: hidden; transition: visibility 0s linear 0.6s; }
.s-recurso .rc-acc.is-armed .rc-acc-item.is-open .rc-acc-a { grid-template-rows: 1fr; }
.s-recurso .rc-acc.is-armed .rc-acc-item.is-open .rc-acc-in { visibility: visible; transition-delay: 0s; }
.s-recurso .rc-acc.rc-acc--init :is(.rc-acc-a, .rc-acc-in, .rc-acc-ic, .rc-acc-ic::before, .rc-acc-ic::after) { transition: none !important; }

/* ---------- 3 · Descarga final ---------- */
.s-recurso .rc-get-sec { padding: clamp(80px, 10vw, 150px) 0 clamp(40px, 5vw, 70px); }
.s-recurso .rc-get { padding: 10px; border-radius: 30px; box-shadow: 0 40px 100px rgba(60, 50, 35, 0.12), inset 0 1px 0 #fff; }
.s-recurso .rc-get-in {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 300px); gap: clamp(24px, 4vw, 60px); align-items: center;
  padding: clamp(26px, 4vw, 56px); border-radius: 21px; overflow: hidden;
  background:
    radial-gradient(rgba(40, 34, 24, 0.10) 0.9px, transparent 1.25px) 0 0 / 12px 12px,
    linear-gradient(165deg, #faf9f6, #f4f2ee 60%, #efece6);
}
.s-recurso .rc-get-t { margin-top: 14px; font-size: clamp(30px, 4vw, 58px); }
.s-recurso .rc-get-p { margin-top: 16px; max-width: 34em; font-size: clamp(15px, 1.15vw, 17px); line-height: 1.6; color: var(--fg-2); }
.s-recurso .rc-get-act { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 18px; margin-top: 28px; }
.s-recurso .rc-get-meta { color: var(--fg-3); }
.s-recurso .rc-noscript { margin-top: 14px; font-size: 13px; color: var(--fg); }
.s-recurso .rc-get-art { position: relative; display: grid; place-items: center; }
.s-recurso .rc-get-tilt { width: min(100%, 260px); }
.s-recurso .rc-get-cover {
  display: block; width: 100%; height: auto; border-radius: 16px; rotate: 4deg;
  box-shadow: 0 30px 70px rgba(60, 50, 35, 0.24), 0 0 0 1px rgba(15, 20, 30, 0.08);
}
.rc-upsell { margin-top: 22px; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.rc-upsell-a { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--fg); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(20, 24, 31, 0.35); transition: text-decoration-color 0.25s ease; }
@media (hover: hover) { .rc-upsell-a:hover { text-decoration-color: currentColor; } }
.s-recurso .rc-foot-note { margin-top: 26px; text-align: center; color: var(--fg-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .s-recurso .rc-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-recurso .rc-feat--big { grid-column: 1 / -1; grid-row: auto; }
  .s-recurso .rc-sw { min-height: 0; }
}
@media (max-width: 1024px) {
  .s-recurso .rc-guide { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .s-recurso .rc-toc-col { height: auto; }
  .s-recurso .rc-toc, .s-recurso .rc-toc.is-pinned { position: relative; top: 0; }
  .s-recurso .rc-toc-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 10px; padding-left: 0; }
  .s-recurso .rc-toc-t { padding-left: 10px; }
  .s-recurso .rc-toc-track { display: none; }
  .s-recurso .rc-toc-cta { width: auto; }
  .s-recurso .rc-doc { max-width: none; }
}
@media (max-width: 860px) {
  .s-recurso .rc-hero-grid { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .s-recurso .rc-spec { max-width: 460px; }
  .s-recurso .rc-data { grid-template-columns: minmax(0, 1fr); }
  .s-recurso .rc-cust { max-width: 380px; }
  .s-recurso .rc-get-in { grid-template-columns: minmax(0, 1fr); }
  .s-recurso .rc-get-art { justify-items: start; }
  .s-recurso .rc-get-tilt { width: 180px; }
}
@media (max-width: 640px) {
  .s-recurso .rc-hero { padding-top: 112px; }
  .s-recurso .rc-kicker { font-size: 10px; letter-spacing: 0.11em; gap: 8px; }
  .s-recurso .rc-kicker::before { width: 12px; }
  .s-recurso .rc-get-art { display: none; }
  .s-recurso .rc-spec-dl dd.rc-mono { font-size: 11.5px; }
  .s-recurso .rc-ctas .btn { flex: 1 1 auto; }
  .s-recurso .rc-frame { padding: 6px; border-radius: 18px; }
  .s-recurso .rc-frame-bar { height: 26px; padding: 0 6px 6px; gap: 5px; }
  .s-recurso .rc-frame-bar > i { width: 7px; height: 7px; }
  .s-recurso .rc-frame-url { font-size: 9.5px; padding: 3px 10px; translate: -12px 0; }
  .s-recurso .rc-frame-img { border-radius: 12px; }
  .s-recurso .rc-feats { grid-template-columns: minmax(0, 1fr); }
  .s-recurso .rc-sw { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; padding: 12px; gap: 8px; }
  .s-recurso .rc-sw-tile, .s-recurso .rc-sw-tile:nth-child(5), .s-recurso .rc-sw-tile:nth-child(6) { grid-column: span 1; min-height: 96px; }
  .s-recurso .rc-sw-tile:last-child { grid-column: 1 / -1; }
  .s-recurso .rc-toc-list { grid-template-columns: minmax(0, 1fr); }
  .s-recurso .rc-steps { --rail: 17px; }
  .s-recurso .rc-step { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
  .s-recurso .rc-step-n { width: 36px; height: 36px; margin-top: 14px; font-size: 11px; box-shadow: 0 0 0 4px var(--bg); }
  .s-recurso .rc-step-head { flex-direction: column; gap: 10px; }
  .s-recurso .rc-prose ol > li { padding-left: 32px; }
  .s-recurso .rc-step-card { padding: 16px 14px; }
  .s-recurso .rc-note { gap: 10px; padding: 14px; }
  .s-recurso .rc-step-card .rc-note ul > li { padding-left: 16px; }
  .s-recurso .rc-step-card .rc-note ul > li::before { left: 2px; }
  /* tablas apiladas: cada fila es una tarjeta y cada celda lleva su encabezado (data-label) */
  .s-recurso .rc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .s-recurso .rc-table, .s-recurso .rc-table tbody, .s-recurso .rc-table tr, .s-recurso .rc-table tbody th, .s-recurso .rc-table td { display: block; width: auto; }
  .s-recurso .rc-table tbody tr { padding: 12px 14px; border-top: 1px solid rgba(15, 20, 30, 0.08); }
  .s-recurso .rc-table tbody tr:first-child { border-top: 0; }
  .s-recurso .rc-table tbody th, .s-recurso .rc-table td { padding: 0; border: 0; white-space: normal; }
  .s-recurso .rc-table--2 tbody th { width: auto; }
  .s-recurso .rc-table td { margin-top: 6px; }
  .s-recurso .rc-table td::before { content: attr(data-label); display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 1px; }
  .s-recurso .rc-table--2 td::before { display: none; }
  .s-recurso .rc-acc-q { grid-template-columns: minmax(0, 1fr) 30px; font-size: 15px; }
  .s-recurso .rc-acc-n { display: none; }
  .s-recurso .rc-acc-in p { padding-left: clamp(14px, 2vw, 22px); }
  .s-recurso .rc-get-act .btn { flex: 1 1 100%; }
}

/* sin JS / efectos desactivados: el índice no se fija con pin, nada oculto */
.no-js .s-recurso .rc-toc-track { display: none; }

@media (prefers-reduced-motion: reduce) {
  .s-recurso .rc-acc.is-armed .rc-acc-a, .s-recurso .rc-acc-ic, .s-recurso .rc-step-n { transition: none !important; }
}

/* ==========================================================================
   Modal de descarga (.rcm) — se clona en #swModal (fuera de .s-recurso)
   ========================================================================== */
.rcm { display: grid; }
.rcm-k { margin-bottom: 12px; }
.rcm-title { padding-right: 40px; font-size: clamp(22px, 3vw, 28px); font-weight: 780; letter-spacing: -0.035em; line-height: 1.12; color: var(--fg); }
.rcm-title:focus { outline: none; }
.rcm-text { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.rcm-file { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid rgba(15, 20, 30, 0.07); }
.rcm-file-t { display: grid; min-width: 0; line-height: 1.35; }
.rcm-file-t b { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }
.rcm-file-t em { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-3); }
.rcm-form { display: grid; gap: 16px; margin-top: 20px; }
.rcm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rcm-fld { display: grid; gap: 7px; align-content: start; min-width: 0; }
.rcm-lbl { font-size: 12.5px; font-weight: 600; color: var(--fg-1); }
.rcm-opt { margin-left: 6px; font-family: var(--mono); font-size: 9px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-4); }
.rcm-ctl { position: relative; }
.rcm-ctl input {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 12px; background: #ffffff; border: 1px solid rgba(15, 20, 30, 0.16); color: var(--fg); caret-color: var(--fg);
  box-shadow: 0 1px 2px rgba(60, 50, 35, 0.04); font-size: 15px; outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.35s ease;
}
.rcm-ctl input::placeholder { color: rgba(20, 24, 31, 0.6); opacity: 1; }
@media (hover: hover) { .rcm-ctl input:hover { border-color: var(--line-3); } }
.rcm-ctl input:focus { border-color: rgba(20, 24, 31, 0.7); box-shadow: 0 0 0 4px rgba(20, 24, 31, 0.08), 0 10px 26px rgba(60, 50, 35, 0.08); }
.rcm-ctl input:-webkit-autofill, .rcm-ctl input:-webkit-autofill:hover, .rcm-ctl input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--fg); -webkit-box-shadow: 0 0 0 1000px #ffffff inset; box-shadow: 0 0 0 1000px #ffffff inset; transition: background-color 600000s 0s, color 600000s 0s;
}
.rcm-err { display: none; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 1.45; color: var(--fg); }
.rcm-err::before, .rcm-formerr::before {
  content: '!'; flex: none; display: grid; place-items: center; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%;
  background: var(--fg); color: var(--bg); font-family: var(--font); font-size: 10px; font-weight: 800; line-height: 1;
}
.rcm-err.is-on { display: flex; animation: rcm-in 0.4s var(--ease-out); }
.rcm-fld.is-err .rcm-ctl input { border-color: rgba(20, 24, 31, 0.78); box-shadow: 0 0 0 3px rgba(20, 24, 31, 0.07); }
@keyframes rcm-in { from { opacity: 0; translate: 0 -4px; } }
.rcm-checks { gap: 12px; }
.rcm-check { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; cursor: pointer; }
.rcm-check input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.rcm-cb { position: relative; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid rgba(15, 20, 30, 0.3); background: #ffffff; transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease, scale 0.3s var(--ease); }
.rcm-cb::after { content: ''; position: absolute; left: 6.5px; top: 2.5px; width: 5px; height: 10px; border-right: 2px solid var(--inv-fg); border-bottom: 2px solid var(--inv-fg); transform: rotate(45deg) scale(0); transition: transform 0.35s var(--ease) 0.05s; }
.rcm-check input:checked + .rcm-cb { background: var(--inv-bg); border-color: var(--inv-bg); }
.rcm-check input:checked + .rcm-cb::after { transform: rotate(45deg) scale(1); }
.rcm-check input:focus-visible + .rcm-cb { outline: 2px solid rgba(20, 24, 31, 0.8); outline-offset: 2px; }
.rcm-check:active .rcm-cb { scale: 0.9; }
@media (hover: hover) { .rcm-check:hover .rcm-cb { border-color: rgba(20, 24, 31, 0.55); } }
.rcm-ct { font-size: 13px; line-height: 1.55; color: var(--fg-2); padding-top: 1px; }
.rcm-ct a, .rcm-legal a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20, 24, 31, 0.4); }
.rcm-checks.is-err .rcm-check:first-child .rcm-cb { border-color: var(--fg); box-shadow: 0 0 0 4px rgba(20, 24, 31, 0.08); }
.rcm-hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.rcm-submit-row { margin-top: 4px; }
.rcm-submit { width: 100%; }
.rcm-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(20, 24, 31, 0.25); border-top-color: var(--fg); animation: rcm-rot 0.8s linear infinite; }
.rcm-submit.is-busy .rcm-spin { display: inline-block; }
.rcm-submit.is-busy .btn-arr, .rcm-submit.is-busy > .arrow { display: none; }
.rcm-submit.is-busy { pointer-events: none; }
@keyframes rcm-rot { to { rotate: 360deg; } }
.rcm-formerr { display: flex; align-items: flex-start; gap: 8px; padding: 11px 13px; border-radius: 12px; background: var(--bg-2); border: 1px solid rgba(15, 20, 30, 0.14); font-size: 13px; line-height: 1.5; color: var(--fg); }
.rcm-formerr[hidden] { display: none; }
.rcm-legal { font-size: 11.5px; line-height: 1.6; color: var(--fg-3); }
.rcm-legal b { font-weight: 600; color: var(--fg-2); }
/* éxito */
.rcm-ok { display: grid; justify-items: start; gap: 0; }
.rcm-ok[hidden] { display: none; }
.rcm-check-ok { position: relative; width: 54px; height: 54px; margin-bottom: 18px; border-radius: 50%; background: var(--inv-bg); box-shadow: 0 0 0 8px rgba(20, 24, 31, 0.05), 0 16px 40px rgba(60, 50, 35, 0.16); }
.rcm-check-ok::after { content: ''; position: absolute; left: 20px; top: 13px; width: 11px; height: 20px; border-right: 3px solid var(--inv-fg); border-bottom: 3px solid var(--inv-fg); transform: rotate(45deg); }
.rcm-ok-t b { font-weight: inherit; overflow-wrap: anywhere; }
.rcm-dl { margin-top: 22px; }
.rcm-spam { margin-top: 12px; }
.rcm-upsell { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
@media (max-width: 520px) {
  .rcm-row { grid-template-columns: minmax(0, 1fr); }
  .rcm-dl { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .rcm-spin { animation-duration: 2.4s; } }

/* ---------- Las 5 plantillas sobre una tienda real (caja ancha) ---------- */
.s-recurso .rc-tpls {
  position: relative; isolation: isolate; margin-bottom: clamp(14px, 1.6vw, 20px); padding: 10px; border-radius: 26px;
  background: linear-gradient(165deg, #ffffff 0%, #ffffff 45%, #faf8f4 100%);
  border: 1px solid rgba(15, 20, 30, 0.10); box-shadow: 0 22px 60px rgba(60, 50, 35, 0.10), inset 0 1px 0 #fff;
}
.s-recurso .rc-tpls-head { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 6px 16px; padding: 14px 16px 16px; }
.s-recurso .rc-tpls-head .rc-feat-t { margin: 0; }
.s-recurso .rc-tpls-head .rc-feat-d { margin: 0; justify-self: end; text-align: right; max-width: 40em; }
.s-recurso .rc-tpls-stage {
  position: relative; overflow: hidden; border-radius: 18px;
  padding: clamp(28px, 4vw, 64px) clamp(16px, 3vw, 44px);
  /* solo la foto del hero de la tienda (ni la nav ni «Featured»): fondo algo ampliado y encuadre 16-34 % */
  background: #9a958e url('/assets/img/recursos/glass-capture-fondo.webp') 50% 24% / 125% auto no-repeat;
}
/* velo suave abajo para que las cajas claras se lean */
.s-recurso .rc-tpls-stage::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(20, 24, 31, 0.10), rgba(20, 24, 31, 0.28)); }
.s-recurso .rc-tpls-row { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.4vw, 18px); align-items: stretch; }
.s-recurso .rc-tp {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-height: clamp(220px, 21vw, 290px); padding: 16px; border-radius: 16px;
  font-size: 13px; line-height: 1.2; overflow: hidden;
  transition: translate 0.5s var(--ease), box-shadow 0.5s ease;
}
.s-recurso .rc-tp b { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; }
.s-recurso .rc-tp small { font-size: 12px; opacity: 0.72; margin-top: -2px; }
.s-recurso .rc-tp i { display: block; height: 30px; margin-top: 8px; border-radius: 9px; }
.s-recurso .rc-tp em { align-self: flex-start; padding: 8px 14px; border-radius: 9px; font-style: normal; font-size: 12.5px; font-weight: 650; }
@media (hover: hover) { .s-recurso .rc-tp:hover { translate: 0 -6px !important; box-shadow: 0 28px 50px rgba(0, 0, 0, 0.28); } }
/* Blur: cristal esmerilado claro (blur real sobre la foto) */
.s-recurso .rc-tp--blur {
  color: #14181f; background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.75); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.s-recurso .rc-tp--blur i { background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.9); }
.s-recurso .rc-tp--blur em { background: #14181f; color: #f7f6f3; }
/* Liquid: casi transparente, bisel brillante en los bordes */
.s-recurso .rc-tp--liquid {
  color: #14181f; background: linear-gradient(160deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.04));
  -webkit-backdrop-filter: blur(3px) saturate(170%) brightness(1.06); backdrop-filter: blur(3px) saturate(170%) brightness(1.06);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  box-shadow: inset 3px 3px 2px rgba(255, 255, 255, 0.65), inset -3px -3px 3px rgba(20, 24, 31, 0.22), 0 18px 40px rgba(0, 0, 0, 0.16);
}
.s-recurso .rc-tp--liquid i { background: rgba(255, 255, 255, 0.38); border: 1px solid rgba(255, 255, 255, 0.7); }
.s-recurso .rc-tp--liquid em { background: #14181f; color: #f7f6f3; }
/* Smoke: cristal ahumado oscuro */
.s-recurso .rc-tp--smoke {
  color: #f7f6f3; background: rgba(16, 18, 22, 0.52);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}
.s-recurso .rc-tp--smoke i { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); }
.s-recurso .rc-tp--smoke em { background: #f7f6f3; color: #14181f; }
/* Black y White: sólidos */
.s-recurso .rc-tp--black { color: #f7f6f3; background: #0e1014; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32); }
.s-recurso .rc-tp--black i { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); }
.s-recurso .rc-tp--black em { background: #f7f6f3; color: #14181f; text-transform: uppercase; letter-spacing: 0.04em; }
.s-recurso .rc-tp--white { color: #14181f; background: #ffffff; border: 1px solid rgba(15, 20, 30, 0.08); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18); }
.s-recurso .rc-tp--white i { background: #f2f0ec; border: 1px solid rgba(15, 20, 30, 0.08); }
.s-recurso .rc-tp--white em { background: #14181f; color: #f7f6f3; }
@media (max-width: 980px) {
  .s-recurso .rc-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-recurso .rc-tpls-head { grid-template-columns: auto 1fr; }
  .s-recurso .rc-tpls-head .rc-feat-d { grid-column: 1 / -1; justify-self: start; text-align: left; }
  .s-recurso .rc-tpls-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .s-recurso .rc-feats { grid-template-columns: minmax(0, 1fr); }
  .s-recurso .rc-tpls-stage { background-size: cover; background-position: 50% 30%; }
  .s-recurso .rc-tpls-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .s-recurso .rc-tp { min-height: 170px; padding: 13px; }
  .s-recurso .rc-tp:last-child { grid-column: 1 / -1; }
}
