/* ============================================================
   Yoy Trust Center — estilos de la landing (public/index.html y
   la landing de cada idioma, p. ej. /en/). Complementa a
   yoy_doc_brand.css, que ya trae el sistema visual compartido.
   ============================================================ */

body { background: #eef1f6; }

/* ---- hero ---- */
.hub-hero { background: #0f2d5e; color: #fff; padding: 56px 20px 48px; }
.hub-hero-inner { max-width: 920px; margin: 0 auto; }
.hub-hero .brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 40px; }
.hub-hero .brand-row img { height: 26px; }
.hub-hero .doc-kind { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: #93b8e8; }
.hub-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.hub-hero p { font-size: 14.5px; color: #b8d0ef; max-width: 620px; line-height: 1.6; }

/* ---- selector de idioma del hero (sobre fondo navy) ---- */
.hub-lang {
  margin-left: auto; display: inline-flex; gap: 2px; padding: 2px;
  border: 1px solid rgba(255,255,255,0.22); border-radius: 20px;
}
.hub-lang .lang-opt { color: #b8d0ef; }
.hub-lang .lang-opt:hover { color: #fff; background: rgba(255,255,255,0.12); }
.hub-lang .lang-opt.active { color: #0f2d5e; background: #fff; }
.hub-lang .lang-opt.unavailable { color: rgba(184,208,239,0.45); }
.hub-lang .lang-opt.unavailable:hover { color: #b8d0ef; background: rgba(255,255,255,0.08); }
.hub-lang .lang-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---- banner "también disponible en ..." ---- */
.lang-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: #1a56db; color: #fff; padding: 10px 20px;
  font-size: 12.5px; line-height: 1.5;
}
.lang-banner[hidden] { display: none; }
.lang-banner .lb-cta {
  color: #0f2d5e; background: #fff; text-decoration: none;
  font-weight: 700; padding: 5px 13px; border-radius: 20px; white-space: nowrap;
}
.lang-banner .lb-cta:hover { background: #dbeafe; }
.lang-banner .lb-close {
  margin-left: auto; background: none; border: none; color: #c7dcff;
  font-size: 18px; line-height: 1; cursor: pointer; padding: 0 2px; font-family: inherit;
}
.lang-banner .lb-close:hover { color: #fff; }

/* ---- tabs de categoría ---- */
.hub-tabs { background: #fff; border-bottom: 1px solid #e2e6ee; }
.hub-tabs-inner {
  max-width: 920px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 2px; overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-tabs-inner::-webkit-scrollbar { display: none; }
.hub-tab {
  flex-shrink: 0; padding: 15px 14px; font-size: 12.5px; font-weight: 700;
  color: #64748b; background: none; border: none; border-bottom: 2px solid transparent;
  white-space: nowrap; cursor: pointer; font-family: inherit;
  transition: color .15s, border-color .15s;
}
.hub-tab:hover { color: #0f2d5e; }
.hub-tab.active { color: #1a56db; border-color: #1a56db; }
.hub-tab:focus-visible { outline: 2px solid #1a56db; outline-offset: -2px; }

/* ---- listado ---- */
.hub-wrap { max-width: 920px; margin: 0 auto 60px; padding: 32px 20px 0; }

.hub-panel-head { display: flex; align-items: baseline; gap: 10px; margin: 0 4px 14px; }
.hub-panel-head h2 { font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #64748b; }
.hub-panel-head .count { font-size: 11.5px; color: #9ca3af; }

.hub-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px; align-items: start;
}

.doc-card {
  background: #fff; border-radius: 10px; box-shadow: 0 4px 20px rgba(15,45,94,0.10);
  padding: 24px 28px; display: flex; flex-direction: column; gap: 10px; height: 100%;
}
.doc-card .dc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.doc-card h3 { font-size: 18px; color: #0f2d5e; font-weight: 700; margin: 0; }
.doc-card p.desc { font-size: 13px; color: #4b5563; line-height: 1.6; flex-grow: 1; }
.doc-card .dc-meta { font-size: 11.5px; color: #9ca3af; white-space: nowrap; text-align: right; }
.doc-card .dc-meta strong { color: #374151; }
.doc-card .dc-actions { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.doc-card a.btn {
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  font-size: 12.5px; font-weight: 700; padding: 9px 16px; border-radius: 20px;
}
.doc-card a.btn.primary { background: #0f2d5e; color: #fff; }
.doc-card a.btn.primary:hover { background: #1a56db; }
.doc-card a.btn.ghost { background: #eef2f7; color: #0f2d5e; }
.doc-card a.btn.ghost:hover { background: #dde3ee; }

.hub-footer { text-align: center; padding: 40px 20px 50px; font-size: 11.5px; color: #9ca3af; }
.hub-footer a { color: #1a56db; text-decoration: none; }

@media (max-width: 620px) {
  .hub-hero .brand-row { flex-wrap: wrap; }
  .hub-lang { margin-left: 0; width: 100%; justify-content: flex-start; }
  .doc-card .dc-top { flex-direction: column; }
  .doc-card .dc-meta { text-align: left; }
  .hub-list { grid-template-columns: 1fr; }
}
