/* ============================================================
   hto-recursos — Portal (SOLO index.html) — SHELL LIGHT
   css/portal.css — estética Acelerador + mezcla licensing.
   Fork consciente de css/style.css (que queda para las
   lecciones, dark). Las 14 páginas de recursos NO usan esto.
============================================================ */

:root {
  --bg:           #ffffff;
  --bg-soft:      #f8f6f1;
  --border:       #e6e8eb;
  --border-hover: #d0d5da;
  --text:         #0f172a;
  --text-sec:     #475569;
  --text-muted:   #94a3b8;
  --accent:       #6dd684;
  --accent-dark:  #48cb64;
  --accent-soft:  #bfedc9;
  --accent-tint:  #ebf9ee;
  --accent-text:  #15a34a;
  --gold:         #b45309;
  --font:         'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'Geist Mono', 'SF Mono', Consolas, monospace;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-feature-settings: "ss01", "cv11", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: rgba(109, 214, 132, 0.25); color: var(--text); }

/* ── Fondos: grid + auroras + grano (mismo sistema que /registro) ── */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(109, 214, 132, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(109, 214, 132, 0.5) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at center, black 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
          mask-image: radial-gradient(ellipse 95% 75% at center, black 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
  animation: grid-pulse 8s ease-in-out infinite;
  will-change: opacity;
}
@keyframes grid-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(109, 214, 132, 0.05), transparent 65%);
}
.ambient-bg::before,
.ambient-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  will-change: transform, opacity;
  pointer-events: none;
}
.ambient-bg::before {
  width: 620px; height: 620px;
  left: -10%; top: -8%;
  background: radial-gradient(circle, rgba(109, 214, 132, 0.22) 0%, rgba(109, 214, 132, 0.08) 45%, transparent 70%);
  animation: aurora-a 28s ease-in-out infinite;
}
.ambient-bg::after {
  width: 540px; height: 540px;
  right: -6%; top: 22%;
  background: radial-gradient(circle, rgba(72, 203, 100, 0.18) 0%, rgba(109, 214, 132, 0.07) 45%, transparent 70%);
  animation: aurora-b 34s ease-in-out infinite;
}
@keyframes aurora-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.75; }
  33%      { transform: translate(80px, 60px) scale(1.08); opacity: 0.95; }
  66%      { transform: translate(-40px, 120px) scale(0.95); opacity: 0.65; }
}
@keyframes aurora-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  40%      { transform: translate(-100px, 90px) scale(1.12); opacity: 0.95; }
  75%      { transform: translate(60px, -50px) scale(0.92); opacity: 0.6; }
}
.noise-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Layout ── */
.page-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 28px;
}
main { flex: 1; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
}
.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.header-brand .logo-mark { height: 15px; width: auto; display: block; }
.header-brand .logo-text { height: 17px; width: auto; display: block; }
.header-badge {
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  height: 38px;
  background: linear-gradient(180deg, #3ed47a 0%, #16a34a 60%, #0e7a3a 100%);
  border: none;
  border-radius: 11px;
  color: #ffffff;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.003em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 4px 14px rgba(22, 163, 74, 0.30);
  transition: transform .2s ease-out, box-shadow .2s ease-out, filter .2s ease-out;
}
.header-cta:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 7px 20px rgba(22, 163, 74, 0.38);
}
.header-cta:active { transform: translateY(0); }
.header-cta svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* User chip (auth.js lo inyecta con estilos inline dark — aquí se
   sobreescriben para el shell light; las lecciones lo dejan como está) */
#htoUserChip > span { color: var(--text-sec) !important; }
#htoUserChip #htoLogoutBtn {
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  color: var(--text-muted) !important;
}
#htoUserChip #htoLogoutBtn:hover {
  border-color: var(--accent-soft) !important;
  color: var(--accent-text) !important;
}

/* ── Hero ── */
.hero { padding: 64px 0 48px; text-align: center; }
.hero-greeting {
  display: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hero-greeting .hg-name { color: var(--accent-text); font-weight: 700; }
.hero-greeting.visible { display: block; animation: greetIn .6s var(--ease-out) backwards; }
@keyframes greetIn { from { opacity: 0; transform: translateY(-6px); } }

.hero-title-label {
  font-family: var(--font-mono);
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 12px;
}
.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 4.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-bottom: 1.4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title .line { display: block; }
.hero-title .line-1 { color: var(--text); }
.hero-title .line-2 {
  background: linear-gradient(94deg, #0c7c3e 0%, #16a34a 28%, #3ecf7a 50%, #16a34a 72%, #0c7c3e 100%);
  background-size: 220% 100%;
  background-position: 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0f8a43;
  animation: gradient-pan 5.5s ease-in-out infinite;
  will-change: background-position;
}
@keyframes gradient-pan {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.hero-subtitle {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  color: var(--text-sec);
  max-width: 500px;
  margin: 0 auto;
  letter-spacing: -.005em;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-text);
  letter-spacing: -.02em;
  line-height: 1.5rem;
}
.hero-stat-lbl {
  font-size: .66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ── Featured (accent IA cian legible en light) ── */
.featured {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  margin: 0 0 40px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(150deg, rgba(14, 116, 144, 0.45), rgba(14, 116, 144, 0.12) 40%, var(--border) 100%) border-box;
  box-shadow: 0 8px 34px rgba(15, 23, 42, 0.07);
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s, transform .2s;
}
.featured:hover {
  box-shadow: 0 14px 44px rgba(14, 116, 144, 0.14), 0 6px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.featured-body { padding: 38px 40px 34px; display: flex; flex-direction: column; }
.featured-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 18px;
}
.featured-kicker::before {
  content: '';
  width: 26px; height: 2px;
  background: #0e7490;
  border-radius: 2px;
}
.featured-title {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.6px;
  line-height: 1.18;
  margin: 0 0 12px;
}
.featured-desc {
  font-size: .92rem;
  color: var(--text-sec);
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 46ch;
}
.featured-loot { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 8px; }
.featured-loot li {
  display: flex;
  gap: 10px;
  font-size: .84rem;
  color: var(--text-sec);
}
.featured-loot svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 2px; fill: none; stroke: #0e7490; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.featured-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 13px 24px;
  border-radius: 11px;
  background: #0e7490;
  color: #ffffff;
  font-weight: 800;
  font-size: .88rem;
  letter-spacing: .2px;
  box-shadow: 0 4px 16px rgba(14, 116, 144, 0.28);
  transition: transform .2s, box-shadow .25s;
}
.featured:hover .featured-cta { transform: translateX(3px); box-shadow: 0 8px 24px rgba(14, 116, 144, 0.35); }
.featured-cta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Terminal del featured — light, como el de /registro */
.featured-visual {
  position: relative;
  padding: 34px 34px 0 10px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(14, 116, 144, 0.05), transparent 60%);
}
.term {
  width: 100%;
  border-radius: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: #ffffff;
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.75;
  box-shadow: 0 -8px 34px rgba(15, 23, 42, 0.08);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.term-dot { width: 9px; height: 9px; border-radius: 50%; }
.term-dot:first-child { background: #ff5f57; }
.term-dot:nth-child(2) { background: #febc2e; }
.term-dot:nth-child(3) { background: #28c840; }
.term-title { margin-left: 8px; font-size: .6rem; color: var(--text-muted); letter-spacing: .5px; }
.term-body { padding: 14px 16px 18px; color: var(--text-sec); }
.term-body .t-cmd { color: var(--text); font-weight: 600; }
.term-body .t-cmd::before { content: '> '; color: #0e7490; }
.term-body .t-ok { color: var(--accent-text); }
.term-body .t-warn { color: #c2410c; }
.term-body .t-dim { color: var(--text-muted); }
.term-body .t-cyan { color: #0e7490; font-weight: 600; }

/* ── Filter pills ── */
.filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 36px 0 24px;
}
.filter-pill {
  height: 32px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-sec);
  font-family: var(--font);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: -.003em;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.filter-pill:hover { color: var(--text); border-color: var(--border-hover); }
.filter-pill.active {
  background: var(--accent-tint);
  border-color: var(--accent-soft);
  color: var(--accent-text);
}

/* ── Grid + cards ── */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

/* Colores de categoría legibles sobre blanco */
.res-card { --cat: #15a34a; --cat-rgb: 21, 163, 74; }
.res-card[data-cat~="adquisicion"] { --cat: #15a34a; --cat-rgb: 21, 163, 74; }
.res-card[data-cat~="ventas"]      { --cat: #15a34a; --cat-rgb: 21, 163, 74; }
.res-card[data-cat~="contenido"]   { --cat: #7c3aed; --cat-rgb: 124, 58, 237; }
.res-card[data-cat~="operaciones"] { --cat: #b45309; --cat-rgb: 180, 83, 9; }
.res-card[data-cat~="ia"]          { --cat: #0e7490; --cat-rgb: 14, 116, 144; }

.res-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-top: 3px solid rgba(var(--cat-rgb), .55);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: 0 3px 14px rgba(15, 23, 42, 0.04);
  transition: border-color .2s ease, box-shadow .25s ease, transform .22s ease, opacity .2s ease;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.res-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 80% 0%, rgba(var(--cat-rgb), .05), transparent 60%);
  z-index: 0;
}
.res-card > * { position: relative; z-index: 1; }
.res-card:hover {
  border-color: rgba(var(--cat-rgb), .35);
  border-top-color: var(--cat);
  box-shadow: 0 12px 34px rgba(var(--cat-rgb), .12), 0 5px 16px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.res-card:active { transform: translateY(0) scale(.988); transition-duration: .1s; }

.res-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.res-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(var(--cat-rgb), .08);
  border: 1px solid rgba(var(--cat-rgb), .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform .25s var(--ease-out);
}
.res-card:hover .res-card-icon { transform: scale(1.07) rotate(-3deg); }
.res-card-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--cat);
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.res-card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.res-card-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  background: rgba(var(--cat-rgb), .07);
  border: 1px solid rgba(var(--cat-rgb), .25);
  border-radius: 999px;
  color: var(--cat);
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.res-card-tag.is-new {
  background: var(--cat);
  border-color: var(--cat);
  color: #ffffff;
  font-weight: 700;
}
.res-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.018em;
  margin: 0;
  line-height: 1.25;
}
.res-card-desc {
  flex: 1;
  font-size: .875rem;
  line-height: 1.55;
  color: var(--text-sec);
  letter-spacing: -.005em;
  margin: 0;
}
.res-card-loot {
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  color: var(--cat);
  letter-spacing: .2px;
}
.res-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0 0;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -.003em;
  transition: color .2s ease, gap .2s ease;
}
.res-card-cta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s ease;
}
.res-card:hover .res-card-cta { color: var(--cat); gap: 10px; }
.res-card:hover .res-card-cta svg { transform: translateX(3px); }

/* Card de petición */
.res-card-request {
  border-style: dashed;
  border-top-style: dashed;
  border-color: var(--accent-soft);
  border-top-width: 1px;
  background: linear-gradient(165deg, rgba(235, 249, 238, .6), #ffffff 60%);
}
.res-card-request:hover { border-color: var(--accent-dark); }

/* Filtrado */
.res-card.is-hidden { opacity: 0; transform: scale(.96); pointer-events: none; }

/* Stagger de entrada */
@media (prefers-reduced-motion: no-preference) {
  .res-grid .res-card { animation: cardIn .55s var(--ease-out) backwards; }
  .res-grid .res-card:nth-child(1)  { animation-delay: .02s; }
  .res-grid .res-card:nth-child(2)  { animation-delay: .06s; }
  .res-grid .res-card:nth-child(3)  { animation-delay: .10s; }
  .res-grid .res-card:nth-child(4)  { animation-delay: .14s; }
  .res-grid .res-card:nth-child(5)  { animation-delay: .18s; }
  .res-grid .res-card:nth-child(6)  { animation-delay: .22s; }
  .res-grid .res-card:nth-child(7)  { animation-delay: .26s; }
  .res-grid .res-card:nth-child(8)  { animation-delay: .30s; }
  .res-grid .res-card:nth-child(9)  { animation-delay: .34s; }
  .res-grid .res-card:nth-child(10) { animation-delay: .38s; }
  .res-grid .res-card:nth-child(11) { animation-delay: .42s; }
  .res-grid .res-card:nth-child(12) { animation-delay: .46s; }
  .featured { animation: cardIn .6s var(--ease-out) backwards; }
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }

/* ── Final CTA ── */
.final-cta {
  margin: 64px 0 24px;
  padding: 52px 36px;
  border-radius: 22px;
  text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(165deg, #ffffff, #ffffff) padding-box,
    linear-gradient(165deg, rgba(109, 214, 132, 0.6), rgba(191, 237, 201, 0.3) 45%, var(--border) 100%) border-box;
  box-shadow: 0 10px 44px rgba(109, 214, 132, 0.12);
}
.final-cta-kicker {
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 14px;
}
.final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.6px;
  margin: 0 0 12px;
  line-height: 1.2;
}
.final-cta p {
  font-size: .95rem;
  color: var(--text-sec);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 22px;
}
.final-cta-proof {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-tint);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--text-sec);
}
.final-cta-proof .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
  animation: proofPing 2s ease-in-out infinite;
}
@keyframes proofPing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .45); }
  50% { box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}
.final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 13px;
  background: linear-gradient(180deg, #3ed47a 0%, #16a34a 60%, #0e7a3a 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: .2px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 6px 20px rgba(22, 163, 74, 0.38);
  transition: transform .2s, box-shadow .25s, filter .2s;
  -webkit-tap-highlight-color: transparent;
}
.final-cta-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.final-cta-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.36), 0 10px 32px rgba(22, 163, 74, 0.45);
}
.final-cta-sub {
  margin-top: 16px;
  font-size: .76rem;
  color: var(--text-muted);
}

/* ── Admin panel (gold licensing sobre light) ── */
.admin-panel {
  margin: 0 0 40px;
  padding: 30px 32px 26px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(155deg, rgba(180, 83, 9, 0.4), rgba(212, 168, 67, 0.18) 45%, var(--border) 100%) border-box;
  box-shadow: 0 8px 34px rgba(180, 83, 9, 0.08);
}
.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ap-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.ap-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: proofPing 2s ease-in-out infinite; }
.ap-title { font-size: 1.3rem; font-weight: 800; color: var(--text); letter-spacing: -.4px; margin: 0; }
.ap-actions { display: flex; gap: 9px; }
.ap-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid rgba(180, 83, 9, .3);
  background: rgba(180, 83, 9, .06);
  color: var(--gold);
  font-family: var(--font);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .2s;
}
.ap-btn:hover { background: rgba(180, 83, 9, .12); }
.ap-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ap-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 18px; }
.ap-stat {
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.ap-stat-val { font-size: 1.5rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.ap-stat-lbl { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.3px; color: var(--text-muted); margin-top: 4px; }
.ap-tools { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ap-search {
  flex: 1;
  padding: 10px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: var(--font);
  font-size: .82rem;
}
.ap-search::placeholder { color: var(--text-muted); }
.ap-search:focus { outline: none; border-color: rgba(180, 83, 9, .4); box-shadow: 0 0 0 3px rgba(180, 83, 9, .08); }
.ap-count { font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted); white-space: nowrap; }
.ap-table-wrap { max-height: 380px; overflow-y: auto; border-radius: 12px; border: 1px solid var(--border); }
.ap-table { width: 100%; border-collapse: collapse; }
.ap-table thead { position: sticky; top: 0; background: var(--bg-soft); z-index: 2; }
.ap-table th {
  text-align: left;
  padding: 11px 14px;
  font-family: var(--font-mono);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.ap-table td {
  padding: 11px 14px;
  font-size: .8rem;
  color: var(--text-sec);
  border-bottom: 1px solid #f1f3f5;
}
.ap-table tbody tr:hover td { background: var(--bg-soft); }
.ap-mono { font-family: var(--font-mono); font-size: .72rem; }
.ap-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
}
.ap-badge.ht { color: var(--accent-text); background: var(--accent-tint); border: 1px solid var(--accent-soft); }
.ap-badge.lic { color: var(--gold); background: rgba(180, 83, 9, .07); border: 1px solid rgba(180, 83, 9, .28); }
.ap-empty { padding: 36px 16px !important; text-align: center; color: var(--text-muted); }
.ap-links { display: flex; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.ap-link {
  display: inline-flex;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-sec);
  font-size: .7rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.ap-link:hover { border-color: rgba(180, 83, 9, .4); color: var(--gold); }
@media (max-width: 860px) {
  .ap-stats { grid-template-columns: 1fr 1fr; }
  .ap-table th:nth-child(4), .ap-table td:nth-child(4) { display: none; }
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border);
  background: #ffffff;
  padding: 28px;
  text-align: center;
}
.site-footer p {
  font-size: .78rem;
  color: var(--text-muted);
  letter-spacing: -.003em;
}

/* ── A11y ── */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Mobile ── */
@media (max-width: 900px) {
  .featured { grid-template-columns: 1fr; }
  .featured-visual { padding: 0 24px; max-height: 230px; }
  .featured-body { padding: 28px 24px 26px; }
}
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .hero { padding: 48px 0 34px; }
  .res-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 5px; }
  .filter-pill { height: 30px; font-size: .74rem; padding: 0 12px; }
  .hero-stats { gap: 22px; }
  .final-cta { padding: 38px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .grid-bg, .ambient-bg::before, .ambient-bg::after,
  .hero-title .line-2, .auth-badge-dot, .ap-dot,
  .final-cta-proof .dot { animation: none !important; }
  .res-card, .res-card-cta, .res-card-cta svg, .res-card-icon { transition: none !important; }
}
