/* ===================================================================
   Wuama · /integraciones (HOME-LANDING E6, 12-sep-2026; la ruta se mudó de /conectores en E6b)
   El catálogo público de conectores, vestido con el sistema editorial de
   la home (E5): monocromo + un acento, blanco y crema, Satoshi para
   títulos y UNA serif (Sentient) para el párrafo de entrada, botón tinta
   en píldora, tarjetas con borde de 1 px y una sola sombra suave.
   Los tokens son los de web/styles.css, copiados: esta página viaja por
   otra ruta de la concha y no puede importar aquella hoja, pero tiene
   que vestir igual. Una sola hoja, sin <style> ni JS en el HTML (CSP).
   =================================================================== */

:root {
  color-scheme: light;
  --brand: #2075FF;
  --blue: #2261dd;
  --accent-text: #1554cf;     /* texto azul sobre blanco 6,3:1 · sobre crema 5,9:1 */
  --accent-soft: #e8effd;
  --ink: #16181a;
  --ink-text: #ffffff;
  --ink-hover: #2b2e33;
  --bg: #ffffff;
  --bg-alt: #f7f5f0;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --text: #16181a;
  --text-soft: #5b5e63;       /* sobre blanco 6,4:1 · sobre crema 5,9:1 */
  --border: #e6e2da;
  --border-strong: #d3cfc6;
  --chip: #ffffff;
  --shadow-sm: 0 1px 2px rgba(22, 24, 26, .05), 0 6px 16px -10px rgba(22, 24, 26, .16);
  --shadow: 0 1px 2px rgba(22, 24, 26, .04), 0 24px 48px -28px rgba(22, 24, 26, .28);
  --show-sun: inline-block;
  --show-moon: none;

  --sans: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Sentient", Georgia, "Times New Roman", serif;
  --fs-h1: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);
  --fs-h2: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-serif-lead: clamp(1.1875rem, 1.05rem + .55vw, 1.4375rem);
  --fs-body: 1rem;
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --radius-lg: 24px; --radius: 18px; --radius-sm: 12px; --radius-pill: 999px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 160ms; --t-base: 260ms;
  --nav-h: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --blue: #2867e4;
    --accent-text: #91c0ff; --accent-soft: #142039;
    --ink: #f3f1ec; --ink-text: #111111; --ink-hover: #ffffff;
    --bg: #0f0f0e; --bg-alt: #161513;
    --surface: #1a1917; --surface-2: #242320;
    --text: #f3f1ec; --text-soft: #aaa69e;
    --border: #2c2a26; --border-strong: #3d3a34;
    --chip: #f3f6fb;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 24px -12px rgba(0, 0, 0, .7);
    --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 32px 64px -30px rgba(0, 0, 0, .8);
    --show-sun: none; --show-moon: inline-block;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --blue: #2867e4;
  --accent-text: #91c0ff; --accent-soft: #142039;
  --ink: #f3f1ec; --ink-text: #111111; --ink-hover: #ffffff;
  --bg: #0f0f0e; --bg-alt: #161513;
  --surface: #1a1917; --surface-2: #242320;
  --text: #f3f1ec; --text-soft: #aaa69e;
  --border: #2c2a26; --border-strong: #3d3a34;
  --chip: #f3f6fb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45), 0 10px 24px -12px rgba(0, 0, 0, .7);
  --shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 32px 64px -30px rgba(0, 0, 0, .8);
  --show-sun: none; --show-moon: inline-block;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.02; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { list-style: none; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; }
[hidden] { display: none !important; }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; border-radius: var(--radius-sm); background: var(--ink); color: var(--ink-text); font-weight: 600; transition: top var(--t-fast); }
.skip:focus { top: 12px; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--space-5); }
.serif, em.serif { font-family: var(--sans); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--accent-text, #1554cf); }
.serif-lead { font-family: var(--sans); font-size: var(--fs-serif-lead); line-height: 1.5; color: var(--text-soft); max-width: 40rem; }
.eyebrow { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-soft); }

/* ===== Botones (sistema): tinta en píldora; secundario blanco con borde ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 650; font-size: var(--fs-body); line-height: 1; white-space: nowrap;
  transition: transform var(--t-base) var(--ease), background-color var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: 80ms; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: var(--fs-sm); }
.btn--lg { min-height: 56px; padding: 16px 28px; font-size: 1.0625rem; }
.btn--primary { background: var(--ink); color: var(--ink-text); }
.btn--primary:hover { background: var(--ink-hover); transform: translateY(-1px); }
.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-1px); border-color: var(--text); }

/* ===== Nav: wordmark, «← Volver a la home», idioma, tema y Entrar ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), background-color var(--t-base);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: var(--space-4); }
.nav__left { display: flex; align-items: center; gap: var(--space-4); min-width: 0; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; color: var(--text); min-height: 44px; }
.brand__logo { width: 119px; height: 30px; }
.nav__back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: var(--fs-sm); font-weight: 550; color: var(--text-soft); white-space: nowrap; transition: color var(--t-fast), background-color var(--t-fast); }
.nav__back:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--text-soft); border: 1px solid var(--border); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .02em; transition: color var(--t-fast), border-color var(--t-fast); }
.icon-btn:hover { color: var(--text); border-color: var(--text); }
.theme-toggle { width: 44px; padding: 0; }
.icon-sun { display: var(--show-sun); }
.icon-moon { display: var(--show-moon); }

/* ===== Cabecera de la página ===== */
.head { padding-block: clamp(40px, 5vw, 80px) clamp(24px, 3vw, 40px); }
.head h1 { font-size: var(--fs-h1); max-width: 22ch; margin-top: 14px; }
.head .serif-lead { margin-top: var(--space-5); }
.head__note { display: inline-flex; align-items: flex-start; gap: 10px; margin-top: var(--space-4); font-size: var(--fs-sm); color: var(--text-soft); max-width: 40rem; }
.head__note::before { content: ""; flex-shrink: 0; margin-top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232261dd' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 10px no-repeat; }

/* ===== Buscador (pegajoso bajo la nav) y chips de categoría ===== */
.search { position: sticky; top: var(--nav-h); z-index: 40; background: var(--bg); box-shadow: 0 1px 0 var(--border); }
.search__row { display: flex; align-items: center; gap: var(--space-4); padding-block: 12px; }
.search__box { position: relative; flex: 1 1 auto; min-width: 0; }
.search__ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-soft); pointer-events: none; }
.search__input {
  width: 100%; height: 56px; padding: 0 20px 0 52px;
  border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface);
  font-size: 1.0625rem; color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.search__input::placeholder { color: var(--text-soft); opacity: 1; }
.search__input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px var(--accent-soft); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 16px; height: 16px; cursor: pointer; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b5e63' stroke-width='2.4' stroke-linecap='round'><path d='M6 6l12 12M18 6 6 18'/></svg>") center / 16px no-repeat; }
.search__count { flex-shrink: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--text-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-block: var(--space-4) var(--space-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: var(--fs-xs); color: var(--text-soft); text-align: left; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast); }
.chip:hover { color: var(--text); border-color: var(--text); }
.chip__n { font-variant-numeric: tabular-nums; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ink-text); }
.chip[aria-pressed="true"] .chip__n { color: var(--ink-text); }

/* ===== Las tarjetas: logo en chip claro (las marcas están dibujadas para fondo blanco), nombre y categoría ===== */
.cat { padding-block: var(--space-4) 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 10px; }
.c {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  min-height: 72px; padding: 9px 14px 9px 9px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface);
  content-visibility: auto; contain-intrinsic-size: auto 72px;
}
.c > img { grid-column: 1; grid-row: 1 / 3; box-sizing: content-box; width: 40px; height: 40px; padding: 6px; border-radius: 12px; background: var(--chip); box-shadow: 0 0 0 1px var(--border); object-fit: contain; }
.c > b { grid-column: 2; grid-row: 1; font-weight: 650; font-size: var(--fs-sm); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* La categoría se rotula desde la hoja (una regla por clave, abajo) para no repetirla en 1.521 tarjetas */
.c::after { grid-column: 2; grid-row: 2; content: ""; font-size: var(--fs-xs); line-height: 1.3; color: var(--text-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c > i { grid-column: 3; grid-row: 1 / 3; align-self: center; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-text); font-style: normal; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.c[data-k="dev"]::after { content: "Desarrollo y DevOps"; }
.c[data-k="col"]::after { content: "Colaboración y comunicación"; }
.c[data-k="ia"]::after { content: "IA"; }
.c[data-k="doc"]::after { content: "Documentos y archivos"; }
.c[data-k="pro"]::after { content: "Productividad y proyectos"; }
.c[data-k="crm"]::after { content: "CRM"; }
.c[data-k="dat"]::after { content: "Datos y analítica"; }
.c[data-k="med"]::after { content: "Medios y entretenimiento"; }
.c[data-k="edu"]::after { content: "Educación"; }
.c[data-k="dis"]::after { content: "Diseño y creatividad"; }
.c[data-k="mkt"]::after { content: "Marketing y redes sociales"; }
.c[data-k="age"]::after { content: "Agenda y reservas"; }
.c[data-k="tie"]::after { content: "Tienda online"; }
.c[data-k="fin"]::after { content: "Finanzas y contabilidad"; }
.c[data-k="ven"]::after { content: "Ventas y atención al cliente"; }
.c[data-k="per"]::after { content: "Personas y contratación"; }
.c[data-k="aut"]::after { content: "Automatización"; }
:root[lang="en"] .c[data-k="dev"]::after { content: "Development & DevOps"; }
:root[lang="en"] .c[data-k="col"]::after { content: "Collaboration & communication"; }
:root[lang="en"] .c[data-k="ia"]::after { content: "AI"; }
:root[lang="en"] .c[data-k="doc"]::after { content: "Documents & files"; }
:root[lang="en"] .c[data-k="pro"]::after { content: "Productivity & projects"; }
:root[lang="en"] .c[data-k="crm"]::after { content: "CRM"; }
:root[lang="en"] .c[data-k="dat"]::after { content: "Data & analytics"; }
:root[lang="en"] .c[data-k="med"]::after { content: "Media & entertainment"; }
:root[lang="en"] .c[data-k="edu"]::after { content: "Education"; }
:root[lang="en"] .c[data-k="dis"]::after { content: "Design & creativity"; }
:root[lang="en"] .c[data-k="mkt"]::after { content: "Marketing & social media"; }
:root[lang="en"] .c[data-k="age"]::after { content: "Scheduling & booking"; }
:root[lang="en"] .c[data-k="tie"]::after { content: "Online store"; }
:root[lang="en"] .c[data-k="fin"]::after { content: "Finance & accounting"; }
:root[lang="en"] .c[data-k="ven"]::after { content: "Sales & customer support"; }
:root[lang="en"] .c[data-k="per"]::after { content: "People & hiring"; }
:root[lang="en"] .c[data-k="aut"]::after { content: "Automation"; }
.empty { margin-top: var(--space-5); padding: 40px 24px; text-align: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); color: var(--text-soft); }
.empty a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== «¿No ves la tuya en el panel?» ===== */
.ask { margin-top: clamp(56px, 7vw, 96px); padding-block: clamp(48px, 6vw, 88px); border-top: 1px solid var(--border); background: var(--bg-alt); }
.ask__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5); }
.ask h2 { font-size: var(--fs-h2); max-width: 16ch; }

/* ===== Pie: marca, tres columnas y el wordmark grande ===== */
.footer { border-top: 1px solid var(--border); padding-block: var(--space-8) var(--space-5); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: var(--space-6); padding-bottom: var(--space-8); }
.footer__tag { color: var(--text-soft); margin-top: 12px; max-width: 280px; font-size: var(--fs-sm); }
.footer__col h3 { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin-bottom: 8px; font-weight: 700; }
.footer__col a { display: flex; align-items: center; min-height: 40px; color: var(--text-soft); font-size: var(--fs-sm); transition: color var(--t-fast); }
.footer__col a:hover { color: var(--text); }
.footer__btn { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 550; text-align: left; transition: color var(--t-fast); }
.footer__btn:hover { color: var(--text); }
.footer__btn svg { width: 16px; height: 16px; }
.footer__wordmark { padding-block: var(--space-6) var(--space-5); border-top: 1px solid var(--border); color: var(--text); }
.footer__wordmark svg { width: 100%; height: auto; }
.footer__bottom { padding-top: var(--space-4); font-size: var(--fs-xs); color: var(--text-soft); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  :root { --nav-h: 64px; }
  .brand__logo { width: 103px; height: 26px; }
  .nav__login { display: none; }
  .nav__back { padding: 0 10px; }
  .nav__back-txt { display: none; }
  .search__row { flex-wrap: wrap; gap: 8px; padding-block: 10px; }
  .search__input { height: 50px; font-size: 1rem; }
  .search__count { width: 100%; text-align: right; font-size: var(--fs-xs); }
  .grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .ask h2 { max-width: none; }
  .ask .btn { width: 100%; }
}
@media (max-width: 480px) {
  .footer__grid { grid-template-columns: 1fr; }
}
