/* Tipografías alojadas en el servidor (licencia SIL OFL, ver assets/fonts/OFL-*.txt) */
@font-face { font-family: "Plus Jakarta Sans"; src: url("../fonts/plus-jakarta-sans-latin.woff") format("woff"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin.woff") format("woff"); font-weight: 100 800; font-style: normal; font-display: swap; }

/* gesttic / forumtic — hoja de estilos (v3, corporativa)
   Layout: contenedor de 1200px, bandas a sangre, fotografía protagonista.
   Blanco y gris frío; azul grafito para bandas oscuras; naranja de marca solo como acento. */
:root {
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --surface: #ffffff;
  --ink: #141a22;
  --ink-2: #4a5462;
  --ink-3: #6b7480;
  --line: #e2e6eb;
  --accent: #f58220;
  --accent-ink: #b8560a;
  --accent-soft: #fef1e6;
  --on-accent: #141a22;
  --navy: #111823;
  --navy-2: #1a2330;
  --navy-ink: #e8ebef;
  --navy-dim: #a3adba;
  --ok: #2f9e55;
  --bad: #e5533d;
  --focus: #1f6fd1;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 30px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .06), 0 24px 48px rgba(16, 24, 40, .12);

  --f-head: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", Roboto, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --step-0: 1.0625rem;
  --step-1: 1.2rem;
  --step-2: 1.55rem;
  --step-3: clamp(1.9rem, 1.45rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 2.8vw, 3.6rem);
  --r: 12px;
  --r-sm: 8px;
  --wrap: 1200px;
  --gutter: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1218; --bg-alt: #131922; --surface: #171e28; --ink: #eceef1; --ink-2: #b3bcc8; --ink-3: #8f99a6; --line: #263040;
    --accent-ink: #ffa452; --accent-soft: #2c2014; --navy: #0a0e14; --navy-2: #141b25; --focus: #6aa8ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 24px 48px rgba(0,0,0,.45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1218; --bg-alt: #131922; --surface: #171e28; --ink: #eceef1; --ink-2: #b3bcc8; --ink-3: #8f99a6; --line: #263040;
  --accent-ink: #ffa452; --accent-soft: #2c2014; --navy: #0a0e14; --navy-2: #141b25; --focus: #6aa8ff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.3); --shadow-lg: 0 24px 48px rgba(0,0,0,.45); color-scheme: dark;
}
.ft { --accent: #4a8a2c; --accent-ink: #3a6e22; --accent-soft: #eaf3e4; --on-accent: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ft { --accent: #5d9e3d; --accent-ink: #8cc56b; --accent-soft: #1b2a15; --on-accent: #0f1a0a; } }
:root[data-theme="dark"] .ft { --accent: #5d9e3d; --accent-ink: #8cc56b; --accent-soft: #1b2a15; --on-accent: #0f1a0a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: var(--step-4); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: var(--step-3); font-weight: 750; line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { :root { --gutter: 32px; } }
.lead { font-size: var(--step-1); color: var(--ink-2); line-height: 1.6; max-width: 40em; }
.muted { color: var(--ink-2); }
.eyebrow { font-size: .95rem; font-weight: 700; color: var(--accent-ink); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.ico { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-box { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 50%; flex: none; }

/* ---------- Barra superior y cabecera ---------- */
.topbar { background: var(--navy); color: var(--navy-dim); font-size: .88rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: center; min-height: 38px; }
.topbar a { color: var(--navy-ink); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .sp { margin-left: auto; }
@media (max-width: 720px) { .topbar .hide-s { display: none; } }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 88px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 58px; width: auto; }
.ft .brand img { height: 58px; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-light { display: none !important; } :root:not([data-theme="light"]) .logo-dark { display: block !important; } }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .dd-btn { color: var(--ink); text-decoration: none; font: 600 .98rem/1.2 var(--f-body); padding: 10px 13px; border-radius: var(--r-sm); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .dd-btn:hover { color: var(--accent-ink); }
.nav > a[aria-current="page"], .dd-btn.current { color: var(--accent-ink); }
.dd { position: relative; }
.dd-btn svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2; }
.dd-menu { position: absolute; top: calc(100% + 14px); left: -24px; width: 600px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px; display: none; grid-template-columns: 1fr 1fr; gap: 2px; }
.dd-menu.open { display: grid; }
.dd-menu a { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 2px 14px; padding: 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); align-items: center; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--bg-alt); }
.dd-menu .ico-box { grid-row: span 2; width: 44px; height: 44px; border-radius: 10px; }
.dd-menu b { font-weight: 700; font-size: .98rem; }
.dd-menu span { font-size: .88rem; color: var(--ink-3); line-height: 1.35; }
.lang { display: flex; gap: 2px; margin-left: 6px; font-size: .88rem; font-weight: 700; border-left: 1px solid var(--line); padding-left: 10px; }
.lang a, .lang span { padding: 6px 8px; border-radius: 6px; text-decoration: none; color: var(--ink-3); }
.lang span { color: var(--ink); background: var(--bg-alt); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: var(--r-sm); padding: 9px 14px; font: 700 .98rem var(--f-body); cursor: pointer; }
@media (max-width: 1140px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); flex-direction: column; align-items: stretch; padding: 8px max(var(--gutter), env(safe-area-inset-right, 0px)) 20px max(var(--gutter), env(safe-area-inset-left, 0px)); gap: 0; max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-btn { display: none; }
  .dd-menu { display: grid; position: static; width: auto; box-shadow: none; border: 0; padding: 0; grid-template-columns: 1fr; gap: 0; background: none; }
  .dd-menu a { padding: 10px 6px; border-bottom: 1px solid var(--line); border-radius: 0; grid-template-columns: 36px minmax(0, 1fr); }
  .dd-menu .ico-box { width: 36px; height: 36px; grid-row: auto; }
  .dd-menu span { display: none; }
  .nav .btn { margin: 16px 0 0; }
  .lang { margin: 14px 0 0; border: 0; padding: 0; }
}

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 1rem/1 var(--f-body); padding: 16px 26px; border-radius: var(--r-sm); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(245, 130, 32, .28); }
.btn-primary:hover { background: #ff9235; }
.ft .btn-primary:hover { background: #57a034; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.04); }
.btn-light:hover { background: #fff; color: #141a22; }
.nav .btn { padding: 12px 20px; margin-left: 10px; box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.link { font-weight: 700; color: var(--accent-ink); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 8vw, 112px); }
.section.alt { background: var(--bg-alt); }
.section.tight { padding-block: clamp(48px, 6vw, 72px); }
.section-head { display: grid; gap: 14px; max-width: 46em; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* Fotos */
.ph { position: relative; overflow: hidden; border-radius: var(--r); background: linear-gradient(135deg, #dfe4ea, #c9d1db); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.empty::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(245,130,32,.18), transparent 60%); }

/* Hero de portada con foto a sangre */
.hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.hero .bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,15,22,.92) 0%, rgba(10,15,22,.78) 42%, rgba(10,15,22,.25) 100%); }
.hero .wrap { padding-block: clamp(80px, 11vw, 150px) clamp(110px, 12vw, 170px); display: grid; gap: 26px; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #d7dde5; max-width: 34em; }
@media (max-width: 720px) { .hero::before { background: linear-gradient(180deg, rgba(10,15,22,.86), rgba(10,15,22,.72)); } }

/* Barra de confianza que monta sobre el hero */
.trust { position: relative; z-index: 2; margin-top: -64px; }
.trust-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); }
.trust-card > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: center; padding: 26px 28px; }
.trust-card > div + div { border-left: 1px solid var(--line); }
.trust-card .ico-box { grid-row: span 2; }
.trust-card b { font-weight: 700; }
.trust-card span { color: var(--ink-3); font-size: .93rem; line-height: 1.4; }
@media (max-width: 860px) { .trust-card { grid-template-columns: 1fr; } .trust-card > div + div { border-left: 0; border-top: 1px solid var(--line); } .trust-card > div { padding: 20px; } }

/* Cabecera de página interior con foto */
.page-hero { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,15,22,.9), rgba(10,15,22,.62)); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 18px; }
.page-hero h1 { color: #fff; max-width: 20ch; }
.page-hero .lead { color: #d7dde5; }
.crumbs { font-size: .92rem; color: #b9c2cd; }
.crumbs a { color: #e8ebef; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero.plain { background: var(--bg-alt); color: var(--ink); }
.page-hero.plain::before { display: none; }
.page-hero.plain h1 { color: var(--ink); }
.page-hero.plain .lead { color: var(--ink-2); }
.page-hero.plain .crumbs, .page-hero.plain .crumbs a { color: var(--ink-3); }

/* Bloque texto + foto */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .text { display: grid; gap: 20px; min-width: 0; }
.split .ph { aspect-ratio: 5 / 4; box-shadow: var(--shadow-lg); }
.split .ph-wrap { position: relative; }
.badge-float { position: absolute; left: -24px; bottom: 28px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px 22px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; align-items: center; max-width: 300px; }
.badge-float .ico-box { grid-row: span 2; width: 46px; height: 46px; }
.badge-float b { font-size: 1rem; }
.badge-float span { font-size: .88rem; color: var(--ink-3); line-height: 1.35; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } .badge-float { left: 12px; bottom: 12px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { padding-left: 32px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 6px); width: 8px; height: 4.5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg); }

/* Tarjetas de servicio */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card { display: grid; gap: 14px; align-content: start; padding: 32px 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: box-shadow .2s, border-color .2s, transform .2s; }
.card:hover, .card:focus-visible { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-3px); }
.card p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.card .link { margin-top: 4px; font-size: .97rem; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }

/* Tarjetas con foto (sectores, cursos) */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pcard { display: grid; grid-template-rows: auto 1fr; background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.pcard .ph { aspect-ratio: 16 / 10; border-radius: 0; }
.pcard .body { padding: 26px 28px 30px; display: grid; gap: 10px; align-content: start; }
.pcard p { color: var(--ink-2); font-size: 1rem; }
@media (max-width: 900px) { .pcards { grid-template-columns: 1fr; } }

/* Destacados alternos */
.features { display: grid; gap: clamp(64px, 9vw, 120px); }
.feature-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 6px 14px; justify-self: start; }

/* Proceso */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; counter-reset: p; }
.process li { counter-increment: p; display: grid; gap: 10px; align-content: start; padding: 28px 24px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.process li::before { content: counter(p, decimal-leading-zero); font: 800 1.6rem/1 var(--f-head); color: var(--accent); }
.process p { color: var(--ink-2); font-size: .97rem; line-height: 1.55; }
@media (max-width: 1060px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* Partners */
.logos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logo-tile { height: 104px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.logo-tile img { max-height: 42px; max-width: 150px; width: auto; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile .word { font: 700 1.5rem/1 var(--f-body); color: var(--ink-2); letter-spacing: -.01em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-tile img { filter: grayscale(1) brightness(0) invert(.88); } }
:root[data-theme="dark"] .logo-tile img { filter: grayscale(1) brightness(0) invert(.88); }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.partners-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.partners-list .logo-tile { height: auto; display: grid; gap: 14px; place-items: start; align-content: start; padding: 24px; }
.partners-list .logo-tile > div { height: 44px; display: flex; align-items: center; }
.partners-list p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 1000px) { .partners-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .partners-list { grid-template-columns: 1fr; } }

/* Banda Forumtic */
.ft-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.ft-band .ph { border-radius: 0; min-height: 300px; }
.ft-band .body { padding: clamp(28px, 5vw, 56px); display: grid; gap: 18px; align-content: center; }
.ft-band .body img { height: 52px; width: auto; justify-self: start; }
@media (max-width: 860px) { .ft-band { grid-template-columns: 1fr; } .ft-band .ph { min-height: 220px; } }

/* CTA con foto */
.cta { position: relative; color: #fff; background: var(--navy); isolation: isolate; }
.cta .bg { position: absolute; inset: 0; z-index: -2; border-radius: 0; }
.cta .bg img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,15,22,.94), rgba(10,15,22,.75)); }
.cta .wrap { padding-block: clamp(64px, 8vw, 100px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta h2 { color: #fff; }
.cta p { color: #cfd6df; font-size: var(--step-1); max-width: 34em; margin-top: 12px; }
.cta .contact-lines { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 20px; font-size: 1.15rem; font-weight: 700; }
.cta .contact-lines a { color: #fff; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.cta .contact-lines .ico { color: var(--accent); }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } }

/* Bloques de detalle */
.details { display: grid; gap: 24px; }
.detail { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 40px; padding: 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.detail .head { display: grid; gap: 18px; align-content: start; }
.detail h2 { font-size: var(--step-2); }
.detail .body { display: grid; gap: 20px; min-width: 0; }
.detail .body > p { color: var(--ink-2); font-size: 1.08rem; }
.detail .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 18px; padding: 28px 24px; } .detail .ticks { grid-template-columns: 1fr; } }

/* Niveles de clúster */
.tiers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tier { border: 1px solid var(--line); border-radius: var(--r); padding: 28px 24px; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.tier.hl { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.tier .size { font-weight: 800; font-size: .95rem; color: var(--accent-ink); }
.tier p { color: var(--ink-2); font-size: 1rem; }
.tier ul { margin: 0; padding-left: 1.1em; font-size: .97rem; color: var(--ink-2); display: grid; gap: 5px; }
.tier .rec { font-size: .8rem; font-weight: 800; color: var(--on-accent); background: var(--accent); border-radius: 999px; padding: 3px 10px; justify-self: start; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiers { grid-template-columns: 1fr; } }

/* Demo de clúster HA (interfaz limpia) */
.cluster { background: var(--navy-2); border-radius: var(--r); font-family: var(--f-mono); font-size: .82rem; color: var(--navy-ink); overflow: hidden; box-shadow: var(--shadow-lg); }
.cluster-top { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2a3442; background: #1f2937; }
.cluster-top strong { font-weight: 600; color: #fff; }
.q { display: inline-flex; align-items: center; gap: 8px; color: var(--navy-dim); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.dot.bad { background: var(--bad); }
.nodes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px; }
@media (max-width: 520px) { .nodes { grid-template-columns: 1fr; } }
.node { border: 1px solid #334155; border-radius: 8px; padding: 12px; min-height: 150px; display: grid; grid-template-rows: auto 1fr; gap: 10px; transition: border-color .3s, opacity .3s; background: #18212d; }
.node.down { border-color: var(--bad); opacity: .55; }
.node-h { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.node-h b { color: #fff; font-weight: 600; }
.node-h small { color: var(--navy-dim); font-size: .74rem; }
.vms { display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.vm { display: inline-flex; gap: 6px; align-items: center; padding: 4px 8px; border-radius: 6px; background: #243041; border: 1px solid #3a4a5e; white-space: nowrap; }
.vm i { font-style: normal; color: #f58220; }
.vm.moved { border-color: #f58220; }
.cluster-log { border-top: 1px solid #2a3442; padding: 12px 18px; min-height: 96px; display: grid; gap: 2px; align-content: start; color: var(--navy-dim); }
.cluster-log .warn { color: #ff9a85; }
.cluster-log .info { color: #9fdcae; }
.cluster-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid #2a3442; flex-wrap: wrap; }
.cluster-foot span { color: var(--navy-dim); font-family: var(--f-body); font-size: .9rem; }
.cluster button { font: 700 .92rem var(--f-body); background: #f58220; color: #141a22; border: 0; border-radius: 8px; padding: 11px 16px; cursor: pointer; }
.cluster button:disabled { opacity: .6; cursor: progress; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.cols-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 860px) { .cols-3, .cols-2 { grid-template-columns: 1fr; } }
.panel { padding: 34px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 14px; align-content: start; }
.panel p { color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); justify-self: start; }
.chip .dot { background: var(--accent); }

/* Formularios */
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid #c4ccd6; border-radius: var(--r-sm); padding: 13px 14px; width: 100%; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); border-color: var(--focus); }
.check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; font-size: .94rem; color: var(--ink-2); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-weight: 700; min-height: 1.5em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
.form-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(24px, 4vw, 44px); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-card { display: grid; gap: 22px; padding: 34px; background: var(--navy); color: var(--navy-ink); border-radius: var(--r); }
.contact-card h3 { color: #fff; }
.contact-card dl { margin: 0; display: grid; gap: 18px; }
.contact-card dt { font-size: .88rem; color: var(--navy-dim); }
.contact-card dd { margin: 2px 0 0; font-size: 1.1rem; }
.contact-card a { color: #fff; font-weight: 700; }
.contact-card p { color: var(--navy-dim); font-size: .95rem; }

/* Textos legales */
.prose { max-width: 46em; display: grid; gap: 16px; }
.prose h2 { font-size: var(--step-2); margin-top: 24px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .96rem; }
.prose th, .prose td { text-align: left; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; vertical-align: top; }
.table-scroll { overflow-x: auto; }
.todo { background: #fff2c4; color: #4a3b00; padding: 0 4px; border-radius: 2px; }

/* Pie */
.site-footer { background: var(--navy); color: var(--navy-dim); padding-block: 72px 32px; font-size: .96rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-grid h2 { font-size: 1rem; margin-bottom: 16px; color: #fff; letter-spacing: 0; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--navy-dim); text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-brand { display: grid; gap: 18px; align-content: start; }
.foot-brand img { height: 46px; width: auto; }
.foot-brand address { font-style: normal; line-height: 1.7; }
.foot-brand address a { color: var(--navy-ink); }
.foot-legal { margin-top: 56px; padding-top: 22px; border-top: 1px solid #253041; font-size: .88rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }

/* Forumtic */
.agenda { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: 8px 28px 16px; display: grid; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.agenda h2 { font-size: var(--step-1); padding: 20px 0 8px; color: #fff; }
.agenda div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); }
.agenda b { font-size: .92rem; color: #b7e09e; }
.agenda span { color: #e3e8ee; }
@media (max-width: 420px) { .agenda div { grid-template-columns: 1fr; gap: 2px; } }
.hero-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-split > div:first-child { display: grid; gap: 26px; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; } }
.ft .hero::before { background: linear-gradient(90deg, rgba(10,18,10,.92), rgba(10,18,10,.7)); }
.course { display: grid; gap: 12px; align-content: start; padding: 30px 28px; background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.course small { color: var(--accent-ink); font-weight: 700; font-size: .9rem; }
.course p { color: var(--ink-2); font-size: 1rem; }
.modes { display: flex; flex-wrap: wrap; gap: 10px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.col { display: grid; gap: 14px; align-content: start; min-width: 0; }
.col p { color: var(--ink-2); }
.who { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.who > div { padding: 34px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.who .ico { width: 34px; height: 34px; color: var(--accent-ink); }
.who p { color: var(--ink-2); }
@media (max-width: 860px) { .who { grid-template-columns: 1fr; } }
.process.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) { .process.six { grid-template-columns: 1fr; } }
.inline-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 34px; border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 760px) { .inline-cta { grid-template-columns: 1fr; } }
.page-hero .wrap > .actions { margin-top: 8px; }
.section-head.split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: 16px 64px; }
@media (max-width: 860px) { .section-head.split { grid-template-columns: 1fr; } }
.tier .nodes-ico { display: flex; gap: 4px; height: 22px; align-items: end; }
.tier .nodes-ico i { width: 16px; height: 22px; border: 2px solid var(--accent-ink); border-radius: 3px; display: block; background: var(--accent-soft); }
.tier .nodes-ico i.q { width: 9px; height: 12px; }
.tier .nodes-ico i.gap { border: 0; width: 8px; background: none; }

/* Aviso de cookies */
.cookie-banner { position: fixed; z-index: 60; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 460px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 22px 24px; display: grid; gap: 12px; font-size: .95rem; line-height: 1.55; }
.cookie-banner[hidden] { display: none; }
.cookie-banner .cookie-title { font-weight: 800; font-size: 1.02rem; }
.cookie-banner p { color: var(--ink-2); }
.cookie-banner .cookie-title { color: var(--ink); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.btn-cookie { background: var(--ink); color: var(--bg); padding: 13px 16px; border-color: var(--ink); }
.btn-cookie:hover { background: var(--ink-2); border-color: var(--ink-2); }
@media (max-width: 520px) { .cookie-banner { right: max(16px, env(safe-area-inset-right, 0px)); max-width: none; } }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-dim); cursor: pointer; text-align: left; }
.link-btn:hover { color: #fff; text-decoration: underline; }

/* Nombres de marca en el menú, con la «t» como en el logo */
.nav .nav-brand { font-weight: 800; letter-spacing: -0.02em; gap: 0; display: inline-block; }
.t-gt { color: #F58220; }
.t-ft { color: #4A8A2C; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .t-ft { color: #7DBE5A; } }
:root[data-theme="dark"] .t-ft { color: #7DBE5A; }
@media (max-width: 1140px) { .brand img, .ft .brand img { height: 48px; } .site-header .wrap { min-height: 76px; } .nav { max-height: calc(100vh - 76px); } }
/* Botón de contacto en el menú (el estilo de los enlaces del menú no debe anularlo) */
.nav > a.btn-primary { background: var(--accent); color: var(--on-accent); border-radius: var(--r-sm); padding: 12px 20px; margin-left: 10px; }
.nav > a.btn-primary:hover { background: #ff9235; color: var(--on-accent); }
.ft .nav > a.btn-primary:hover { background: #57a034; }
@media (max-width: 1140px) { .nav > a.btn-primary { justify-content: center; margin: 16px 0 0; border-bottom: 0; } }
/* Etiqueta «Próximamente» junto al logo de Forumtic */
.soon { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: var(--accent-ink); background: var(--accent-soft); border-radius: 999px; padding: 6px 12px 6px 10px; white-space: nowrap; margin-left: -8px; }
.soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
@media (max-width: 480px) { .soon { font-size: .74rem; padding: 4px 9px 4px 8px; margin-left: -12px; } .ft .brand img { height: 40px; } }
@media (max-width: 480px) { .ft .site-header .wrap { gap: 10px; } .ft .brand img { height: 34px; } .soon { margin-left: -4px; font-size: .7rem; } .ft .menu-btn { padding: 8px 11px; } }
@media (max-width: 480px) { .topbar { font-size: .76rem; } .topbar .wrap { gap: 2px 12px; } }
/* Logos de partners: originales, a color y siempre sobre blanco (como piden las guías de marca) */
.logo-tile { background: #ffffff; }
.logo-tile img, .logo-tile:hover img { filter: none !important; opacity: 1; max-height: 46px; max-width: 160px; }
.partners-list .logo-tile p { color: #4a5462; }
.partners-list .logo-tile strong { color: #141a22; }
.ft-brandrow { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ft-band .soon-ft { margin-left: 0; color: #2f6a1a; background: #e6f1df; }
.ft-band .soon-ft::before { background: #4A8A2C; }
@media (prefers-color-scheme: dark) { .ft-band .soon-ft { color: #a9d88e; background: rgba(125,190,90,.16); } .ft-band .soon-ft::before { background: #7DBE5A; } }

/* ---------------------------------------------------------------- Blog (Forumtic) */
.blog-hero { background: var(--bg-alt); color: var(--ink); }
.blog-hero::before { display: none; }
.blog-hero h1 { color: var(--ink); }
.blog-hero .lead { color: var(--ink-2); max-width: 44em; }
.blog-hero .eyebrow { color: var(--accent-ink); }
.blog-section { padding-top: clamp(32px, 4vw, 48px); }
.blog-tools { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px 20px; align-items: end; margin-bottom: 18px; }
.blog-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .blog-tools { grid-template-columns: 1fr; } }
.blog-search input { padding-left: 42px !important; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7480' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 14px center / 18px; }
.chip-btn { font: inherit; font-size: .9rem; font-weight: 700; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 7px 14px; cursor: pointer; }
.chip-btn small { font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.chip-btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip-btn[aria-pressed="true"] small { color: inherit; opacity: .8; }
.blog-count { margin: 0 0 18px; font-size: .92rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post-card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg, var(--shadow)); }
.post-link { display: grid; grid-template-rows: auto 1fr; height: 100%; color: inherit; text-decoration: none; }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-img-empty { display: grid; place-items: center; background: linear-gradient(135deg, #2e5a1c, #4a8a2c 55%, #7dbe5a); }
.post-img-empty span { color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; opacity: .92; }
.post-body { padding: 20px 22px 24px; display: grid; gap: 10px; align-content: start; }
.post-body h2 { font-size: var(--step-1); margin: 0; line-height: 1.3; }
.post-body p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .86rem; color: var(--ink-3); margin: 0; }
.post-cat { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.cat-boletin { background: #4a8a2c; color: #fff; }
.post-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 0; padding: 0; }
.post-tags li { font-size: .8rem; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
.post-tags li::before { content: "#"; color: var(--ink-3); }
.blog-none { text-align: center; padding: 40px 0; }
.blog-feed { margin-top: 28px; font-size: .9rem; }
.blog-feed a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-weight: 600; text-decoration: none; }
.blog-feed a:hover span { text-decoration: underline; }
.blog-feed svg { flex: none; }
.blog-empty-state { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 40px 0; }
.blog-empty-state h2 { margin: 0; }
.wrap.narrow { max-width: 780px; }
.post-head { background: var(--bg-alt); padding-block: clamp(40px, 6vw, 72px) clamp(32px, 4vw, 48px); margin-bottom: 32px; }
.post-head .wrap { display: grid; gap: 14px; }
.post-head h1 { margin: 0; font-size: var(--step-4); line-height: 1.08; }
.post-head .lead { color: var(--ink-2); margin: 0; }
.post-head .crumb { margin: 0; font-size: .92rem; }
.post-head .crumb a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.post-head .crumb a::before { content: "← "; }
.post-cover { margin: 0 0 32px; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.post-cover img { width: 100%; display: block; }
.post > .wrap.narrow:last-of-type { padding-bottom: clamp(48px, 7vw, 88px); display: grid; gap: 28px; }
.prose { font-size: 1.08rem; line-height: 1.75; color: var(--ink); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.8em; line-height: 1.25; }
.prose h3 { font-size: var(--step-1); margin-top: 1.5em; }
.prose a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; display: block; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--ink-2); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .35em; }
.prose code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; background: var(--bg-alt); padding: .1em .35em; border-radius: 4px; }
.prose pre { background: #0f1720; color: #e6e9ee; padding: 16px 18px; border-radius: 10px; overflow-x: auto; font-size: .9rem; line-height: 1.6; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; }
.post-nav a:hover { border-color: var(--accent); }
.post-nav small { font-weight: 600; color: var(--ink-3); }
.post-nav .next { grid-column: 2; text-align: right; }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; } }
.post-subscribe { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--accent-soft); border-radius: var(--r); padding: 24px 26px; }
.post-subscribe h2 { font-size: var(--step-1); margin: 0 0 6px; }
.post-subscribe p { margin: 0; }
.preview-bar { background: #fff1e3; color: #8a4a0c; text-align: center; padding: 10px 16px; font-weight: 600; }
.preview-bar a { color: inherit; }

/* Distintivo «25 años» junto al logo de gesttic: misma altura que el logo */
.badge25 { display: inline-flex; flex: none; color: var(--ink); margin-left: -6px; padding-left: 18px; border-left: 1px solid var(--line); }
.badge25 svg { height: 58px; width: auto; display: block; font-family: "Plus Jakarta Sans", system-ui, sans-serif; overflow: visible; }
@media (max-width: 1140px) { .badge25 svg { height: 48px; } .badge25 { margin-right: auto; } }
@media (max-width: 480px) { .badge25 svg { height: 40px; } .badge25 { padding-left: 12px; margin-left: -10px; } }

/* Proxmox: productos de la plataforma */
.cards.px-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.px-products .card { padding: 28px 24px; }
.px-products .card h3 { margin: 0; font-size: var(--step-1); }
.px-products .ticks { font-size: .95rem; }
@media (max-width: 1140px) { .cards.px-products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards.px-products { grid-template-columns: 1fr; } }

/* «Colaboraciones» dentro del pie de gesttic, antes de la línea del © */
.colab { margin-top: 48px; padding-top: 28px; border-top: 1px solid #253041; }
.colab-in { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px 40px; }
.colab-in .eyebrow { margin: 0; color: #ffb06b; }
.colab-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 40px; }
.colab-list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: center; gap: 18px; }
.colab-list li > div { display: grid; gap: 6px; }
.colab-list h3 { margin: 0; font-size: 1rem; line-height: 1.4; color: #fff; font-weight: 700; }
.colab-logo { display: grid; place-items: center; justify-self: center; }
.colab-logo.round { width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: #fff; }
.colab-logo.round img { width: 100%; height: 100%; object-fit: cover; }
.colab-logo.wide { width: 130px; }
.colab-logo.wide img { width: 130px; height: auto; filter: brightness(1.35); }
.colab-links { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.colab-links a { display: inline-flex; align-items: center; gap: 7px; color: var(--navy-dim); font-weight: 500; font-size: .92rem; text-decoration: none; }
.colab-links a:hover, .colab-links a:focus-visible { color: #fff; }
.colab-links svg { flex: none; }
.colab + .foot-legal { margin-top: 32px; }
@media (max-width: 900px) { .colab-in, .colab-list { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .colab-list li { grid-template-columns: 100px minmax(0, 1fr); gap: 14px; } .colab-logo.wide, .colab-logo.wide img { width: 100px; } .colab-logo.round { width: 56px; height: 56px; } }

/* Logos de partners más discretos */
.logos { gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.logo-tile { height: 76px; padding: 12px 16px; }
.logo-tile img, .logo-tile:hover img { max-height: 28px; max-width: 112px; }
.partners-list .logo-tile > div { height: 32px; }
.partners-list .logo-tile img, .partners-list .logo-tile:hover img { max-height: 28px; max-width: 110px; }
@media (max-width: 900px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 560px) {
  .logo-tile { height: 56px; padding: 8px 10px; }
  .logo-tile img, .logo-tile:hover img { max-height: 20px; max-width: 84px; }
  .partners-list .logo-tile { padding: 18px 20px; gap: 10px; }
  .partners-list .logo-tile > div { height: 26px; }
  .partners-list .logo-tile img, .partners-list .logo-tile:hover img { max-height: 22px; max-width: 96px; }
}

/* Demo del clúster: compacta en móvil para que quepa entera en pantalla */
@media (max-width: 520px) {
  .cluster { font-size: .7rem; }
  .cluster-top { padding: 10px 12px; }
  .nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 10px; }
  .node { min-height: 0; padding: 7px; gap: 6px; }
  .node-h { flex-direction: column; align-items: flex-start; gap: 0; }
  .node-h small { font-size: .62rem; }
  .vms { flex-direction: column; flex-wrap: nowrap; gap: 4px; }
  .vm { padding: 2px 5px; gap: 4px; font-size: .66rem; }
  .cluster-log { padding: 8px 12px; min-height: 0; height: 5.6em; overflow: hidden; font-size: .66rem; line-height: 1.35; }
  .cluster-foot { padding: 10px 12px; gap: 8px; }
  .cluster-foot span { font-size: .8rem; }
  .cluster button { padding: 9px 12px; font-size: .85rem; width: 100%; }
}

/* Clientes: logos en gris, sin color, con el nombre debajo */
.clients { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); text-align: center; }
.clients h3 { margin: 0 0 28px; font-size: 1rem; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.clients-list { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 22px; max-width: 1140px; }
.clients-list li { width: 150px; }
.clients-list li { display: grid; gap: 10px; justify-items: center; align-content: center; }
.cl-logo { min-height: 64px; display: grid; place-items: center; text-decoration: none; transition: opacity .2s; }
.cl-logo:hover .cl-word, .cl-logo:hover img { opacity: 1; }
.cl-logo img { height: auto; max-width: 100%; filter: grayscale(1); opacity: .62; }
.cl-word { font-weight: 800; font-size: 1rem; line-height: 1.3; letter-spacing: -.01em; color: var(--ink-3); opacity: .85; }
.cl-name { font-size: .82rem; color: var(--ink-3); }
@media (max-width: 560px) { .clients-list { gap: 22px 12px; } .clients-list li { width: calc(50% - 6px); } .cl-logo img { max-width: 130px; } }

/* Clientes: siempre sobre fondo claro (también en modo oscuro) */
.clients { background: #f4f5f7; border: 0; border-radius: var(--r); padding: 36px 24px 40px; margin-top: 48px; }
.clients h3 { color: #6b7480; }
.clients .cl-word { color: #6b7480; }
@media (max-width: 560px) { .clients { padding: 28px 12px 32px; } }

/* Logos de partners sin color (en gris), como los de clientes */
.logo-tile img, .logo-tile:hover img { filter: grayscale(1) !important; opacity: .62; }
.partners-list .logo-tile img, .partners-list .logo-tile:hover img { filter: grayscale(1) !important; opacity: .62; }
.partners-strip { padding-block: 40px 48px; }
.partners-strip .section-head { margin-bottom: 20px; }

/* Cualquier elemento con el atributo hidden queda oculto (bloques que se muestran u ocultan con "web-gesttic mostrar") */
[hidden] { display: none !important; }
.colab-list h3 a { color: inherit; text-decoration: none; }
.colab-list h3 a:hover, .colab-list h3 a:focus-visible { text-decoration: underline; text-underline-offset: 3px; color: #ffb06b; }

/* ---------------------------------------------------------------- Foro */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.fo .btn-sm { padding: 8px 14px; font-size: .9rem; }
.fo .link-btn { color: var(--accent-ink); font-weight: 600; }
.fo .link-btn:hover { color: var(--ink); }
.fo-hero { padding-bottom: 28px; }
.fo-hero .eyebrow a { color: inherit; text-decoration: none; }
.fo-wrap { padding-block: 8px 72px; display: grid; gap: 22px; }
.fo-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.fo-bar a { font-weight: 600; }
.fo-bar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.fo-bar-r form { display: inline; }
.fo-hello { color: var(--ink-2); }
.fo-admin-link { font-size: .82rem; border: 1px dashed var(--line); border-radius: 6px; padding: 3px 8px; }
.fo-msg { margin: 0; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.fo-ok { background: #eaf3e4; color: #2f5d1a; }
.fo-err { background: #fdecea; color: #b42318; }
.fo-group h2 { font-size: var(--step-2); margin: 10px 0 14px; }
.fo-list { display: grid; gap: 14px; }
.fo-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.fo-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.fo-card h3 { margin: 6px 0; font-size: 1.25rem; }
.fo-card p { margin: 0; color: var(--ink-2); }
.fo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: .88rem; color: var(--ink-3) !important; margin: 0; }
.fo-count { margin-top: 10px !important; }
.fo-st { display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #eef0f3; color: #4a5462; }
.fo-st-open { background: #e3f3e6; color: #1f6b33; }
.fo-st-upcoming { background: #fff1e3; color: #8a4a0c; }
.fo-st-draft { background: #f1ecfb; color: #5b3aa0; }
.fo-st-pin { background: var(--accent-soft); color: var(--accent-ink); }
.fo-empty { color: var(--ink-3); }
.fo-join { background: var(--bg-alt); border-radius: 14px; padding: 24px; }
.fo-join h2 { margin-top: 0; font-size: var(--step-2); }
.fo-debate { display: grid; gap: 22px; max-width: 860px; }
.fo-dhead h1 { margin: 8px 0 0; font-size: var(--step-4, 2.2rem); line-height: 1.15; }
.fo-adminnote { font-size: .9rem; background: #f1ecfb; color: #5b3aa0; padding: 8px 12px; border-radius: 8px; margin: 0; }
.fo-concl { background: var(--accent-soft); border-radius: 14px; padding: 18px 22px; }
.fo-concl h2 { margin: 0 0 8px; font-size: var(--step-2); }
.fo-posts { display: grid; gap: 14px; }
.fo-posts > h2 { font-size: var(--step-1, 1.2rem); margin: 8px 0 0; }
.fo-follow { margin: -4px 0 4px; font-size: .92rem; }
.fo-post { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; scroll-margin-top: 90px; }
.fo-post:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fo-pinned { border-left: 4px solid var(--accent); }
.fo-hidden { background: var(--bg-alt); border-style: dashed; }
.fo-hidden p { margin: 0; font-size: .92rem; }
.fo-hidden-admin { opacity: .6; border-style: dashed; }
.fo-phead { margin: 0 0 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .9rem; }
.fo-who { font-weight: 700; color: var(--ink); }
.fo-when { color: var(--ink-3); text-decoration: none; }
.fo-quote { display: block; border-left: 3px solid var(--line); padding: 6px 12px; margin: 0 0 10px; color: var(--ink-2); font-size: .92rem; text-decoration: none; background: var(--bg-alt); border-radius: 0 8px 8px 0; }
.fo-body { font-size: 1rem; line-height: 1.65; gap: 10px; }
.fo-body blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--line); color: var(--ink-2); }
.fo-acts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 10px; font-size: .88rem; }
.fo-acts a, .fo-acts .link-btn { color: var(--ink-3); font-weight: 600; text-decoration: none; }
.fo-acts a:hover, .fo-acts .link-btn:hover { color: var(--accent-ink); }
.fo-acts form { display: inline; }
.fo-acts .fo-mod { color: #5b3aa0; }
.fo-report { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: .9rem; }
.fo-report input { flex: 1 1 260px; }
.fo-reply { scroll-margin-top: 90px; }
.fo-reply h2 { font-size: var(--step-2); margin: 10px 0 12px; }
.fo-compose { display: grid; gap: 10px; }
.fo-compose textarea { width: 100%; min-height: 150px; font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.fo-compose textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.fo-replying { margin: 0; font-size: .92rem; background: var(--bg-alt); padding: 6px 12px; border-radius: 8px; }
.fo-hint { display: block; color: var(--ink-3); font-size: .86rem; margin: 6px 0 0; }
.fo-cta { background: var(--bg-alt); border-radius: 12px; padding: 16px 20px; margin: 0; }
.fo-form { max-width: 640px; display: grid; gap: 16px; }
.fo-form h2 { margin: 0; font-size: var(--step-2); }
.fo-form h3 { margin: 10px 0 0; font-size: 1.05rem; }
.fo-form p { margin: 0; }
.fo-code { font-family: var(--f-mono, monospace); font-size: 1.6rem; letter-spacing: .3em; max-width: 12ch; }
.fo-inline { font-size: .92rem; color: var(--ink-2); }
.fo-inline .link-btn { color: var(--accent-ink); font-weight: 600; }
.fo-account { display: grid; gap: 20px; }
.fo-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.fo-dl dt { color: var(--ink-3); }
.fo-dl dd { margin: 0; font-weight: 600; word-break: break-word; }
.fo-subs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fo-subs li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.fo-subs form { display: inline; }
.fo-sep { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 10px; justify-items: start; }
.fo-danger { border: 1px solid #f3c7c1; }
.btn-danger { background: #b42318; color: #fff; border-color: #b42318; }
.btn-danger:hover { background: #8f1c13; }
.fo-rules ol { display: grid; gap: 12px; padding-left: 1.3em; }
@media (max-width: 640px) {
  .fo-bar { font-size: .9rem; }
  .fo-post { padding: 14px; }
  .fo-dl { grid-template-columns: 1fr; gap: 2px; }
  .fo-dl dd { margin-bottom: 8px; }
}

/* Ubiquiti: logo vertical (símbolo + nombre debajo); misma presencia visual que los demás */
.logo-tile img[alt="Ubiquiti"], .logo-tile:hover img[alt="Ubiquiti"] { max-height: 42px; }
.partners-list .logo-tile > div { height: 42px; }
.partners-list .logo-tile img[alt="Ubiquiti"], .partners-list .logo-tile:hover img[alt="Ubiquiti"] { max-height: 42px; }
@media (max-width: 560px) {
  .logo-tile img[alt="Ubiquiti"], .logo-tile:hover img[alt="Ubiquiti"] { max-height: 34px; }
  .partners-list .logo-tile > div { height: 34px; }
  .partners-list .logo-tile img[alt="Ubiquiti"], .partners-list .logo-tile:hover img[alt="Ubiquiti"] { max-height: 34px; }
}

/* Blog: texto y resumen de las entradas justificados (el título no) (con división de palabras para evitar huecos) */
.post-text > p, .post-sum { text-align: justify; -webkit-hyphens: auto; hyphens: auto; hyphenate-limit-chars: 7 3 3; }

/* Pie: último artículo y última noticia del blog */
.foot-blog { grid-column: 2 / -1; border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px; margin-top: -18px; }
.foot-blog h2 a { color: #fff; }
.fb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; }
.foot-grid a.fb-item { display: flex; gap: 14px; align-items: center; color: var(--navy-dim); min-width: 0; }
.fb-item[hidden] { display: none; }
.fb-img { flex: none; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: rgba(255,255,255,.06); }
.fb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fb-txt { display: grid; gap: 2px; min-width: 0; }
.fb-k { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, #F58220); }
.fb-t { color: #fff; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fb-d { font-size: .82rem; }
.foot-grid a.fb-item:hover .fb-t { text-decoration: underline; }
@media (max-width: 860px) { .foot-blog { grid-column: 1 / -1; margin-top: 0; } }
@media (max-width: 640px) { .fb-list { grid-template-columns: 1fr; } .fb-img { width: 80px; } }
