/* ═══════════════════════════════════════════════════════════════════
   brand-hub.css — Hub corporativo: /empresa · /marca · /prensa · /papers
   Manual de marca navegable, kit de prensa y papers de investigación.
   ═══════════════════════════════════════════════════════════════════ */

/* ---------- Hero del hub (compartido) ---------- */
.bh-hero { background: linear-gradient(160deg, var(--navy, #030D19) 0%, #07162A 70%, #0A1F3A 100%); color: #fff; padding: 84px 0 64px; position: relative; overflow: hidden; }
.bh-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(23,139,239,.14) 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.bh-hero .container { position: relative; z-index: 1; }
.bh-hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue-light, #5BB6FF); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.bh-hero__eyebrow svg { width: 17px; height: 17px; flex: 0 0 auto; }
.bh-hero h1 { color: #fff; font-family: var(--font-head, inherit); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.08; margin: 0 0 16px; max-width: 820px; }
.bh-hero h1 .bh-accent { color: var(--blue, #178BEF); }
.bh-hero__lead { color: #CBD5E1; font-size: clamp(1rem, 1.6vw, 1.15rem); line-height: 1.65; max-width: 720px; margin: 0 0 26px; }
.bh-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; }
.bh-hero__chip { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(91,182,255,.25); color: #E2E8F0; border-radius: 999px; padding: 7px 14px; font-size: .85rem; }
.bh-hero__chip svg { width: 15px; height: 15px; color: var(--blue-light, #5BB6FF); }

/* ---------- Sub-navegación del hub (pastillas entre páginas) ---------- */
.bh-subnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.bh-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(91,182,255,.3); color: #E2E8F0; font-size: .9rem; font-weight: 600; text-decoration: none; transition: all .2s ease; }
.bh-subnav a:hover { border-color: var(--blue, #178BEF); color: #fff; background: rgba(23,139,239,.15); }
.bh-subnav a.is-active { background: var(--blue, #178BEF); border-color: var(--blue, #178BEF); color: #fff; }

/* ---------- Índice lateral pegajoso (manual navegable) ---------- */
.bh-layout { display: grid; grid-template-columns: 230px 1fr; gap: 44px; align-items: start; }
.bh-toc { position: sticky; top: 92px; }
.bh-toc__title { font-weight: 800; color: var(--navy, #030D19); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; }
.bh-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border, #E5E7EB); }
.bh-toc a { display: block; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted, #6B7280); font-size: .9rem; text-decoration: none; transition: all .15s ease; }
.bh-toc a:hover { color: var(--navy, #030D19); }
.bh-toc a.is-current { color: var(--blue, #178BEF); border-left-color: var(--blue, #178BEF); font-weight: 600; }
@media (max-width: 900px) { .bh-layout { grid-template-columns: 1fr; } .bh-toc { position: static; display: flex; overflow-x: auto; gap: 4px; padding-bottom: 8px; } .bh-toc__title { display: none; } .bh-toc ol { display: flex; border-left: 0; gap: 4px; } .bh-toc a { white-space: nowrap; border: 1px solid var(--border, #E5E7EB); border-radius: 999px; padding: 7px 14px; margin: 0; } .bh-toc a.is-current { border-color: var(--blue, #178BEF); } }

/* ---------- Bloques de sección del manual ---------- */
.bh-block { margin-bottom: 58px; scroll-margin-top: 90px; }
.bh-block__num { color: var(--blue, #178BEF); font-family: var(--font-head, inherit); font-weight: 800; font-size: .9rem; letter-spacing: .08em; }
.bh-block h2 { font-family: var(--font-head, inherit); font-weight: 800; color: var(--navy, #030D19); font-size: clamp(1.35rem, 2.6vw, 1.8rem); margin: 6px 0 14px; }
.bh-block > p { color: #374151; line-height: 1.65; max-width: 760px; }
.bh-note { display: flex; gap: 10px; background: var(--cloud, #F8FAFC); border: 1px solid var(--border, #E5E7EB); border-left: 3px solid var(--blue, #178BEF); border-radius: 10px; padding: 14px 16px; margin-top: 18px; color: #374151; font-size: .92rem; line-height: 1.55; max-width: 760px; }

/* ---------- Tarjetas de logo (fondo intercambiable) ---------- */
.bh-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.bh-logo-card { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; overflow: hidden; background: #fff; }
.bh-logo-card__stage { display: flex; align-items: center; justify-content: center; height: 170px; padding: 24px; transition: background .25s ease; }
.bh-logo-card__stage img { max-width: 82%; max-height: 100%; }
.bh-logo-card__stage.is-dark { background: var(--navy, #030D19); }
.bh-logo-card__stage.is-blue { background: #0A1F3A; }
.bh-logo-card__stage.is-cloud { background: var(--cloud, #F8FAFC); }
.bh-logo-card__body { padding: 14px 16px; border-top: 1px solid var(--border, #E5E7EB); }
.bh-logo-card__body h3 { font-size: .98rem; font-weight: 700; color: var(--navy, #030D19); margin: 0 0 4px; }
.bh-logo-card__body p { font-size: .84rem; color: var(--muted, #6B7280); margin: 0 0 10px; line-height: 1.45; }
.bh-logo-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bh-mini-btn { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--blue, #178BEF); border: 1px solid rgba(23,139,239,.35); border-radius: 8px; padding: 5px 10px; background: #fff; cursor: pointer; text-decoration: none; transition: all .15s ease; }
.bh-mini-btn:hover { background: rgba(23,139,239,.08); }
.bh-mini-btn svg { width: 13px; height: 13px; }

/* ---------- Paleta de color (swatches copiables) ---------- */
.bh-swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-top: 22px; }
.bh-swatch { border: 1px solid var(--border, #E5E7EB); border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; padding: 0; transition: transform .15s ease, box-shadow .15s ease; }
.bh-swatch:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(3,13,25,.09); }
.bh-swatch__color { height: 86px; position: relative; }
.bh-swatch__color--bordered { border-bottom: 1px solid var(--border, #E5E7EB); }
.bh-swatch__copy { position: absolute; right: 10px; bottom: 8px; font-size: .68rem; font-weight: 700; letter-spacing: .06em; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.9); color: var(--navy, #030D19); opacity: 0; transition: opacity .15s ease; }
.bh-swatch:hover .bh-swatch__copy { opacity: 1; }
.bh-swatch__body { padding: 12px 14px; }
.bh-swatch__body strong { display: block; color: var(--navy, #030D19); font-size: .9rem; }
.bh-swatch__body code { font-size: .8rem; color: var(--blue, #178BEF); font-weight: 700; }
.bh-swatch__body span { display: block; font-size: .76rem; color: var(--muted, #6B7280); margin-top: 3px; line-height: 1.4; }
.bh-proportion { display: flex; border-radius: 10px; overflow: hidden; height: 46px; margin-top: 22px; border: 1px solid var(--border, #E5E7EB); }
.bh-proportion > div { display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }

/* ---------- Tipografía (muestrario) ---------- */
.bh-typespec { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; overflow: hidden; margin-top: 22px; }
.bh-typespec__row { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border, #E5E7EB); }
.bh-typespec__row:last-child { border-bottom: 0; }
.bh-typespec__meta { font-size: .8rem; color: var(--muted, #6B7280); line-height: 1.5; }
.bh-typespec__meta strong { display: block; color: var(--navy, #030D19); font-size: .86rem; }
.bh-typespec__sample { color: var(--navy, #030D19); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 700px) { .bh-typespec__row { grid-template-columns: 1fr; gap: 8px; } .bh-typespec__sample { white-space: normal; } }

/* ---------- Listas permitido / prohibido ---------- */
.bh-dos { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 22px; }
.bh-dos__col { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; padding: 20px; background: #fff; }
.bh-dos__col h3 { font-size: 1rem; font-weight: 800; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.bh-dos__col--ok h3 { color: #067647; }
.bh-dos__col--no h3 { color: #B42318; }
.bh-dos__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.bh-dos__col li { position: relative; padding-left: 24px; color: #374151; font-size: .92rem; line-height: 1.5; }
.bh-dos__col--ok li::before { content: "✓"; position: absolute; left: 0; color: #067647; font-weight: 800; }
.bh-dos__col--no li::before { content: "✕"; position: absolute; left: 0; color: #B42318; font-weight: 800; }

/* ---------- Guías por red social ---------- */
.bh-socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 22px; }
.bh-social { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; padding: 20px; background: #fff; }
.bh-social__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bh-social__head svg { width: 20px; height: 20px; color: var(--blue, #178BEF); }
.bh-social__head h3 { font-size: 1.02rem; font-weight: 800; color: var(--navy, #030D19); margin: 0; }
.bh-social__formats { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.bh-social__formats span { font-size: .74rem; font-weight: 600; color: var(--navy, #030D19); background: var(--cloud, #F8FAFC); border: 1px solid var(--border, #E5E7EB); border-radius: 6px; padding: 3px 8px; }
.bh-social ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.bh-social li { position: relative; padding-left: 20px; font-size: .87rem; color: #374151; line-height: 1.5; }
.bh-social li::before { content: "→"; position: absolute; left: 0; color: var(--blue, #178BEF); font-weight: 700; }

/* ---------- Kit de prensa: fichas y descargas ---------- */
.bh-facts { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; overflow: hidden; margin-top: 22px; }
.bh-facts__row { display: grid; grid-template-columns: 220px 1fr; border-bottom: 1px solid var(--border, #E5E7EB); }
.bh-facts__row:last-child { border-bottom: 0; }
.bh-facts__row:nth-child(odd) { background: var(--cloud, #F8FAFC); }
.bh-facts__row dt { padding: 13px 18px; font-weight: 700; color: var(--navy, #030D19); font-size: .88rem; }
.bh-facts__row dd { padding: 13px 18px; margin: 0; color: #374151; font-size: .92rem; line-height: 1.5; }
@media (max-width: 640px) { .bh-facts__row { grid-template-columns: 1fr; } .bh-facts__row dt { padding-bottom: 0; } }

.bh-copyblock { position: relative; background: var(--cloud, #F8FAFC); border: 1px solid var(--border, #E5E7EB); border-radius: 12px; padding: 18px 20px; margin-top: 16px; max-width: 800px; }
.bh-copyblock p { margin: 0; color: #374151; font-size: .94rem; line-height: 1.65; }
.bh-copyblock__btn { position: absolute; top: 10px; right: 10px; }
.bh-copyblock__label { display: block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue, #178BEF); margin-bottom: 8px; }

.bh-downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 22px; }
.bh-download { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--border, #E5E7EB); border-radius: 14px; padding: 18px; background: #fff; text-decoration: none; transition: all .15s ease; }
.bh-download:hover { border-color: var(--blue, #178BEF); box-shadow: 0 8px 24px rgba(3,13,25,.08); }
.bh-download__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 10px; background: rgba(23,139,239,.1); display: flex; align-items: center; justify-content: center; color: var(--blue, #178BEF); }
.bh-download__icon svg { width: 20px; height: 20px; }
.bh-download strong { display: block; color: var(--navy, #030D19); font-size: .95rem; margin-bottom: 3px; }
.bh-download span { font-size: .8rem; color: var(--muted, #6B7280); line-height: 1.45; }

/* ---------- Papers ---------- */
.bh-papers { display: grid; gap: 18px; margin-top: 26px; }
.bh-paper-card { display: block; border: 1px solid var(--border, #E5E7EB); border-radius: 16px; padding: 26px 28px; background: #fff; text-decoration: none; transition: all .18s ease; }
.bh-paper-card:hover { border-color: var(--blue, #178BEF); box-shadow: 0 12px 32px rgba(3,13,25,.09); transform: translateY(-2px); }
.bh-paper-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; font-size: .8rem; color: var(--muted, #6B7280); }
.bh-paper-card__badge { font-family: var(--font-head, inherit); font-weight: 800; font-size: .74rem; letter-spacing: .1em; color: var(--blue, #178BEF); border: 1px solid rgba(23,139,239,.35); border-radius: 6px; padding: 3px 9px; }
.bh-paper-card h2, .bh-paper-card h3 { font-family: var(--font-head, inherit); font-weight: 800; color: var(--navy, #030D19); font-size: 1.3rem; line-height: 1.25; margin: 0 0 10px; }
.bh-paper-card p { color: #4B5563; font-size: .95rem; line-height: 1.6; margin: 0 0 14px; }
.bh-paper-card__cta { color: var(--blue, #178BEF); font-weight: 700; font-size: .9rem; }

.bh-paper-hero { background: var(--navy, #030D19); color: #fff; padding: 72px 0 52px; }
.bh-paper-hero__badge { display: inline-block; font-family: var(--font-head, inherit); font-weight: 800; font-size: .76rem; letter-spacing: .12em; color: var(--blue-light, #5BB6FF); border: 1px solid rgba(91,182,255,.4); border-radius: 6px; padding: 4px 10px; margin-bottom: 16px; }
.bh-paper-hero h1 { font-family: var(--font-head, inherit); font-weight: 800; font-size: clamp(1.7rem, 3.8vw, 2.6rem); line-height: 1.12; max-width: 860px; margin: 0 0 14px; }
.bh-paper-hero__sub { color: #CBD5E1; font-size: 1.05rem; line-height: 1.6; max-width: 760px; margin: 0 0 20px; }
.bh-paper-hero__meta { display: flex; flex-wrap: wrap; gap: 16px; color: #94A3B8; font-size: .86rem; }
.bh-paper-hero__meta strong { color: #E2E8F0; }

.bh-paper-body { max-width: 780px; }
.bh-paper-body .bh-abstract { background: var(--cloud, #F8FAFC); border: 1px solid var(--border, #E5E7EB); border-left: 3px solid var(--blue, #178BEF); border-radius: 12px; padding: 22px 24px; margin: 0 0 36px; }
.bh-paper-body .bh-abstract h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue, #178BEF); margin: 0 0 10px; }
.bh-paper-body .bh-abstract p { margin: 0; color: #374151; line-height: 1.7; }
.bh-paper-body h2 { font-family: var(--font-head, inherit); font-weight: 800; color: var(--navy, #030D19); font-size: 1.45rem; margin: 40px 0 14px; scroll-margin-top: 90px; }
.bh-paper-body p { color: #374151; line-height: 1.75; margin: 0 0 16px; }
.bh-paper-body ul, .bh-paper-body ol { color: #374151; line-height: 1.7; margin: 0 0 16px; padding-left: 22px; }
.bh-paper-body li { margin-bottom: 6px; }
.bh-paper-body blockquote { border-left: 3px solid var(--blue, #178BEF); margin: 24px 0; padding: 4px 0 4px 20px; color: var(--navy, #030D19); font-weight: 600; font-size: 1.05rem; line-height: 1.6; }
.bh-takeaways { background: var(--navy, #030D19); border-radius: 16px; padding: 26px 28px; margin: 36px 0; }
.bh-takeaways h2 { color: #fff; font-size: 1.1rem; margin: 0 0 16px; }
.bh-takeaways ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.bh-takeaways li { position: relative; padding-left: 26px; color: #CBD5E1; font-size: .94rem; line-height: 1.55; }
.bh-takeaways li::before { content: "▸"; position: absolute; left: 2px; color: var(--blue, #178BEF); font-weight: 800; }

/* ---------- Tarjetas hub /empresa ---------- */
.bh-hubcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 26px; }
.bh-hubcard { display: block; border: 1px solid var(--border, #E5E7EB); border-radius: 16px; padding: 24px; background: #fff; text-decoration: none; transition: all .18s ease; }
.bh-hubcard:hover { border-color: var(--blue, #178BEF); box-shadow: 0 12px 32px rgba(3,13,25,.09); transform: translateY(-2px); }
.bh-hubcard__icon { width: 44px; height: 44px; border-radius: 11px; background: rgba(23,139,239,.1); display: flex; align-items: center; justify-content: center; color: var(--blue, #178BEF); margin-bottom: 14px; }
.bh-hubcard__icon svg { width: 21px; height: 21px; }
.bh-hubcard strong { display: block; font-family: var(--font-head, inherit); font-weight: 800; color: var(--navy, #030D19); font-size: 1.05rem; margin-bottom: 6px; }
.bh-hubcard span { font-size: .88rem; color: var(--muted, #6B7280); line-height: 1.5; }

/* Línea de tiempo de historia */
.bh-timeline { position: relative; margin-top: 26px; padding-left: 26px; max-width: 780px; }
.bh-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--border, #E5E7EB); }
.bh-timeline__item { position: relative; padding-bottom: 26px; }
.bh-timeline__item::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--blue, #178BEF); }
.bh-timeline__item h3 { font-weight: 800; color: var(--navy, #030D19); font-size: 1.05rem; margin: 0 0 6px; }
.bh-timeline__item p { color: #374151; font-size: .94rem; line-height: 1.65; margin: 0; }

/* Pilares éticos y principios */
.bh-pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 22px; }
.bh-pillar { border: 1px solid var(--border, #E5E7EB); border-radius: 14px; padding: 20px; background: #fff; }
.bh-pillar__num { font-family: var(--font-head, inherit); font-weight: 800; color: rgba(23,139,239,.4); font-size: 1.3rem; }
.bh-pillar h3 { font-weight: 800; color: var(--navy, #030D19); font-size: .98rem; margin: 6px 0 8px; }
.bh-pillar p { color: #4B5563; font-size: .88rem; line-height: 1.55; margin: 0; }

/* Feedback visual del botón copiar */
.bh-mini-btn.is-copied { background: #067647; border-color: #067647; color: #fff; }

@media (max-width: 640px) {
  .bh-hero { padding: 64px 0 46px; }
  .bh-block { margin-bottom: 44px; }
}
