/* ThynkIA 26/11/2026: Recursos (lista /recursos/ y cada guía /recursos/<slug>). Va encima de site.css + blog.css + sol-casos.css. */

/* ---------- Menu: labels stay on one line ---------- */
.nav-links a { white-space: nowrap; }

/* ---------- Category colours (site palette, same as mockup v4) ---------- */
:root {
  --f-purple: #8b7cf0; --f-purple-2: #b3a8f6;
  --f-teal: #3fb3a0;   --f-teal-2: #87d4c6;
  --f-amber: #e9a83b;  --f-amber-2: #f3cd88;
  --f-coral: #ec7f6b;  --f-coral-2: #f5b2a5;
  --f-blue: #5b9be0;   --f-blue-2: #9fc4ee;
  --f-green: #6fb36a;  --f-green-2: #a9d6a5;
  --f-rose: #d878b0;   --f-rose-2: #ebb2d3;
}
[data-cat] { --c: var(--f-purple); --c2: var(--f-purple-2); }
[data-cat="webs"] { --c: var(--f-purple); --c2: var(--f-purple-2); }
[data-cat="claude"] { --c: var(--f-teal); --c2: var(--f-teal-2); }
[data-cat="agentes"] { --c: var(--f-blue); --c2: var(--f-blue-2); }
[data-cat="prompts"] { --c: var(--f-amber); --c2: var(--f-amber-2); }
[data-cat="gratis"] { --c: var(--f-green); --c2: var(--f-green-2); }
[data-cat="marketing"] { --c: var(--f-coral); --c2: var(--f-coral-2); }
[data-cat="video"] { --c: var(--f-rose); --c2: var(--f-rose-2); }

/* ---------- List hero: blog cover with the meadow photo ---------- */
body.blog .r-cover .bl-crumbs, body.blog .r-cover .bl-hero { margin: 0 auto; }
body.blog .r-cover .bl-crumbs nav span { margin: 0 8px; }
body.blog .r-cover .bl-crumbs nav b { font-weight: 400; color: var(--ink); }
.r-cover .bl-media { background-image: url('/img/recursos/hero-meadow-1280.webp'); background-position: 20% 62%; background-size: cover; }
@media (min-width: 1500px), (min-width: 760px) and (min-resolution: 1.5dppx) {
  .r-cover .bl-media { background-image: url('/img/recursos/hero-meadow.webp'); }
}
.r-cover .bl-wash { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(232,236,240,.96) 0%, rgba(232,236,240,.88) 30%, rgba(232,236,240,.45) 48%, rgba(232,236,240,0) 64%); }
.r-cover .bl-eyebrow b { font-weight: 500; }
.r-cover .bl-eyebrow span[hidden] { display: none; }
@media (max-width: 760px) {
  .r-cover .bl-media { background-position: 30% 70%; }
  .r-cover .bl-wash { background: linear-gradient(180deg, rgba(232,236,240,.95) 0%, rgba(232,236,240,.85) 62%, rgba(232,236,240,0) 92%); }
}

/* ---------- Folder grid ---------- */
.r-desk .wrap { padding-top: clamp(40px, 4.5vw, 64px); padding-bottom: clamp(24px, 3vw, 40px); }
.r-desk-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 36px; }
.r-all { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 500; color: var(--ink); box-shadow: 0 1px 2px rgba(11,15,26,.05); transition: background-color .2s, color .2s; }
.r-all:hover { background: var(--ink); color: #fff; }
.r-all[hidden] { display: none; }
.r-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 56px 36px; }
.r-card { display: block; min-width: 0; text-decoration: none; color: var(--ink); transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease); }
.r-card[hidden] { display: none; }
.r-grid > .r-card:nth-child(6n+1) { --tilt: -2.2deg; }
.r-grid > .r-card:nth-child(6n+2) { --tilt: 1.6deg; }
.r-grid > .r-card:nth-child(6n+3) { --tilt: -1deg; }
.r-grid > .r-card:nth-child(6n+4) { --tilt: 2.4deg; }
.r-grid > .r-card:nth-child(6n+5) { --tilt: -1.8deg; }
.r-grid > .r-card:nth-child(6n+6) { --tilt: 1.2deg; }
.r-card:hover, .r-card:focus-visible { transform: rotate(0deg) translateY(-6px); }
.fold-art { position: relative; aspect-ratio: 1.28; margin-bottom: 16px; }
.fold-art .stack { position: absolute; inset: 14% 4% 0 6%; border-radius: 14px; background: var(--c2); opacity: .45; transform: rotate(5deg) translate(8px, 4px); }
.fold-art .back { position: absolute; inset: 8% 0 0 0; border-radius: 14px; background: var(--c2); }
.fold-art .back::before { content: ""; position: absolute; left: 0; top: -11%; width: 42%; height: 16%; border-radius: 12px 14px 0 0; background: var(--c2); }
.fold-art .paper { position: absolute; left: 10%; right: 10%; top: 2%; height: 70%; border-radius: 8px; background: #fff; box-shadow: 0 4px 12px -6px rgba(11,15,26,.3); padding: 14px; transition: transform .4s var(--ease); }
.fold-art .paper i { display: block; height: 5px; border-radius: 3px; background: #e4e3de; margin-bottom: 7px; }
.fold-art .paper i:nth-child(1) { width: 60%; background: var(--c); opacity: .6; }
.fold-art .paper i:nth-child(3) { width: 80%; }
.fold-art .paper i:nth-child(4) { width: 50%; }
.r-card:hover .paper, .r-card:focus-visible .paper { transform: translateY(-26%) rotate(-2deg); }
.fold-art .front { position: absolute; left: 0; right: 0; bottom: 0; height: 68%; border-radius: 12px 12px 14px 14px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 82%, #000)); box-shadow: 0 18px 30px -18px rgba(11,15,26,.5), inset 0 1px 0 rgba(255,255,255,.35); transform-origin: bottom; transition: transform .35s var(--ease); }
.r-card:hover .front, .r-card:focus-visible .front { transform: perspective(600px) rotateX(-10deg); }
.fold-art .front span { position: absolute; left: 16px; right: 54px; bottom: 14px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; line-height: 1.3; color: rgba(255,255,255,.95); letter-spacing: .01em; }
.fold-art .front span i { font-size: 11px; color: #fff; }
.fold-art .front em { position: absolute; right: 14px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; color: #fff; }
.fold-art .front em svg { width: 14px; height: 14px; }
.r-card time { display: block; font-size: 13px; color: var(--muted); }
.r-card h3 { font-size: 18px; line-height: 1.25; font-weight: 500; letter-spacing: -.015em; margin-top: 4px; }
.r-empty { padding: 20px 0 40px; color: var(--muted); font-size: 16px; }
.r-empty[hidden], .r-grid:has(.r-card) ~ #rNone { display: none; }
@media (max-width: 560px) {
  .r-desk-head { margin-bottom: 26px; }
  .r-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 16px; }
  .fold-art .front span { left: 10px; right: 40px; bottom: 9px; font-size: 10.5px; }
  .fold-art .front span i { display: none; }
  .fold-art .front em { right: 8px; bottom: 7px; width: 24px; height: 24px; }
  .fold-art .paper { padding: 9px; }
  .r-card h3 { font-size: 15.5px; }
}

/* ---------- Book a call ---------- */
.r-call { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 72px) var(--gutter) 0; }
.r-call-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: clamp(32px, 4vw, 56px); border-radius: var(--r-xl); background: var(--ink); color: #f3f3f0; }
.r-call-box h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; font-weight: 500; letter-spacing: -.03em; color: #fff; }
.r-call-box p { margin-top: 12px; max-width: 46ch; color: #c9ccd4; font-size: 17px; }
.r-call-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.r-call-btns .alt { color: #c9ccd4; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.r-call-btns .alt:hover { color: #fff; }

/* ---------- Guide page ---------- */
.copy-claude { position: fixed; z-index: 120; top: 96px; right: 28px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 7px 7px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 500; box-shadow: 0 16px 34px -14px rgba(11,15,26,.55); transition: background-color .2s, transform .2s var(--ease); }
.copy-claude:hover { background: #1c2233; }
.copy-claude:active { transform: scale(.97); }
.copy-claude .cc-txt { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.copy-claude .cc-ai { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.7); }
.copy-claude .cc-ai img { width: 12px; height: 12px; filter: invert(1); opacity: .85; }
.copy-claude .cc-ai img:not(:first-child) { margin-left: 6px; }
.copy-claude .dot { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; transition: background-color .2s; }
.copy-claude .dot i { font-size: 13px; color: #fff; }
.copy-claude.done .dot { background: var(--ok); }
@media (max-width: 900px) { .copy-claude { top: auto; bottom: 16px; right: 16px; } }

body.blog .blog-article-view .g-cat { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }
body.blog .blog-article-view .g-cat i { color: var(--c); }
body.blog .blog-article-view a.g-back { color: var(--ink) !important; background: var(--surface); padding: 8px 14px; border-radius: 999px; font-size: 13.5px; text-decoration: none; }
.g-cover { margin: 0 0 28px; border-radius: var(--r-l); background: var(--surface); display: grid; place-items: center; padding: 44px 0 36px; }
.g-cover .fold-art { width: 220px; max-width: 70%; transform: rotate(-3deg); margin: 0; }
.protip { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; border-radius: var(--r-m); background: var(--accent-soft); color: #2d2470; margin: 0 0 28px; font-size: 15.5px; line-height: 1.55; }
.protip i { color: var(--accent) !important; margin-top: 4px; }
body.blog .protip b { color: #2d2470 !important; }

/* contents list: inline box, sticky in the left margin on wide screens */
.g-toc { margin: 0 0 32px; padding: 18px 22px; border-radius: var(--r-l); background: var(--surface); }
.g-toc p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.g-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.g-toc li { counter-increment: toc; }
.g-toc a { display: flex; gap: 10px; padding: 6px 10px; margin: 0 -10px; border-radius: 10px; font-size: 15px; line-height: 1.35; color: var(--ink-2); text-decoration: none; transition: background-color .2s, color .2s; }
.g-toc a::before { content: counter(toc); min-width: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.g-toc a:hover { background: var(--ground); color: var(--ink); }
.g-toc a.on { background: var(--accent-soft); color: var(--accent); }
.g-toc a.on::before { color: var(--accent); }
.g-toc[hidden] { display: none; }
@media (min-width: 1440px) {
  .g-toc { float: left; position: sticky; top: 120px; width: 220px; margin: 0 0 0 -260px; padding: 0; background: none; }
  .g-toc a { font-size: 14px; }
}

body.blog .article-content a { color: var(--accent); text-underline-offset: 3px; }
body.blog .article-content code { font: .9em/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: var(--tint); color: var(--ink); }
body.blog .article-content pre { margin: 16px 0 22px; padding: 18px; border-radius: var(--r-m); background: var(--ink); color: #e9e9e4; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font: 14px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
body.blog .article-content pre code { padding: 0; background: none; color: inherit; font: inherit; }
.code { margin: 16px 0 22px; border-radius: var(--r-m); background: var(--ink); overflow: hidden; }
.code-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px 10px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #9aa0ad; }
.code-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 500; transition: background-color .2s; }
.code-bar button i { color: #fff !important; }
.code-bar button:hover { background: rgba(255,255,255,.18); }
body.blog .article-content .code pre { margin: 0; border-radius: 0; }
/* blog.css turns the article's last paragraph into a dark box; guides end however they want */
body.blog .article-content > p:last-of-type { margin-top: 0; padding: 0; border-radius: 0; background: none; color: var(--ink-2) !important; font-size: inherit; }
body.blog .article-content > p:last-of-type strong { color: var(--ink) !important; }

.more-g { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 6vw, 88px) var(--gutter) 0; }
.more-g h2 { font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.03em; margin-bottom: 34px; }
.more-g[hidden] { display: none; }

.r-toast { position: fixed; left: 50%; bottom: 28px; z-index: 400; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14.5px; white-space: nowrap; transition: opacity .25s, transform .3s var(--ease); }
.r-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) { .r-toast { bottom: 80px; } }

@media (prefers-reduced-motion: reduce) {
  .r-card, .r-card .paper, .r-card .front, .r-toast { transition: none; }
  .r-card:hover, .r-card:focus-visible { transform: rotate(var(--tilt, 0deg)); }
}
