/* ============================================================
   hub.css — Identidad propia del HUB sicaja.com
   (independiente de styles.css; solo lo carga la home del hub)
   Win = página de producto clara/azul.  Hub = portal oscuro de marca.
   ============================================================ */

:root {
  --hub-ink: #0d0f1f;
  --hub-soft: #f5f6fb;
  --hub-line: #e7e8f0;
  --hub-muted: #5b6178;
  --hub-blue: #1FA9DE;    /* Win    */
  --hub-amber: #E8930C;   /* Exprés */
  --hub-violet: #8B3DE6;  /* Forte  */
  --hub-dark1: #0b0d20;
  --hub-dark2: #191c40;
  --hub-grad: linear-gradient(100deg, #27B7EA 0%, #6D5CF6 52%, #A23DE8 100%);
}

body.hub-page { background: #fff; }
body.hub-page h1,
body.hub-page h2,
body.hub-page h3,
body.hub-page .hub-kicker { font-family: 'Sora', 'Inter', system-ui, sans-serif; letter-spacing: -0.02em; }

/* ---------- NAV sobre fondo oscuro ---------- */
body.hub-page .navbar { position: sticky; top: 0; z-index: 60; }
body.hub-page .nav-container {
  background: #ffffff;
  border-bottom: 1px solid var(--hub-line);
  box-shadow: 0 2px 14px rgba(20,22,50,.05);
}
body.hub-page .nav-links a { color: #2a2f45; font-weight: 600; }
body.hub-page .nav-links a:hover { color: var(--hub-violet); }
body.hub-page .nav-links .btn-primary { color: #fff; background: var(--hub-grad); border: none; }
body.hub-page .nav-links .btn-primary:hover { filter: brightness(1.07); }
body.hub-page .nav-toggle { color: #0d0f1f; }

/* ---------- HERO oscuro tipo portal ---------- */
.hub-hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(124,92,246,.40), transparent 60%),
    radial-gradient(720px 420px at 8% 12%, rgba(39,183,234,.30), transparent 60%),
    linear-gradient(160deg, var(--hub-dark2) 0%, var(--hub-dark1) 60%);
  color: #eef0fb;
  padding: 4.5rem 0 5rem;
}
.hub-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hub-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
}
.hub-kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
  color: #b9c0ff; background: rgba(124,92,246,.16); border: 1px solid rgba(124,92,246,.34);
  padding: .4rem .85rem; border-radius: 999px;
}
.hub-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #8b7bff; box-shadow: 0 0 10px #8b7bff; }
.hub-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.04; font-weight: 800;
  margin: 1.1rem 0 1rem; color: #fff;
}
.hub-hero h1 .grad {
  background: var(--hub-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hub-hero p.lead { font-size: 1.12rem; line-height: 1.65; color: #c4c9e6; max-width: 38rem; margin: 0 0 1.9rem; }
.hub-hero p.lead strong { color: #fff; font-weight: 700; }
.hub-hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; }
.hub-hero-cta .btn-primary {
  background: var(--hub-grad); border: none; color: #fff; box-shadow: 0 12px 30px rgba(109,92,246,.45);
}
.hub-hero-cta .btn-primary:hover { filter: brightness(1.07); transform: translateY(-2px); }
.hub-hero-cta .btn-ghost { color: #fff; border: 1.5px solid rgba(255,255,255,.35); background: transparent; }
.hub-hero-cta .btn-ghost:hover { background: rgba(255,255,255,.10); border-color: #fff; }
.hub-hero-trust { display: flex; align-items: center; gap: 1rem; margin-top: 1.9rem; color: #aeb4d6; font-size: .92rem; flex-wrap: wrap; }
.hub-hero-trust .stars { color: #ffc24b; letter-spacing: 1px; }
.hub-hero-trust strong { color: #fff; }
.hub-hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: #5b6190; }

/* Triada de productos (visual del hero) */
.hub-triad { position: relative; height: 340px; }
.triad-card {
  position: absolute; width: 220px; border-radius: 18px; padding: 1.15rem 1.2rem;
  background: rgba(26,30,64,.92);
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 24px 60px rgba(0,0,0,.45);
  transition: transform .3s ease;
}
.triad-card:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.triad-card .tc-ico { font-size: 1.5rem; }
.triad-card .tc-name { font-family: 'Sora', sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; margin-top: .5rem; }
.triad-card .tc-tag { font-size: .82rem; color: #b6bce0; margin-top: .15rem; }
.triad-card .tc-bar { height: 4px; border-radius: 4px; margin-top: .9rem; }
.tc-win    { top: 8px;   left: 6%;  transform: rotate(-6deg); }
.tc-win    .tc-bar { background: var(--hub-blue);   box-shadow: 0 0 16px rgba(31,169,222,.6); }
.tc-expres { top: 96px;  right: 2%; transform: rotate(5deg); }
.tc-expres .tc-bar { background: var(--hub-amber);  box-shadow: 0 0 16px rgba(232,147,12,.6); }
.tc-forte  { top: 192px; left: 20%; transform: rotate(-2deg);
  border-color: rgba(162,61,232,.5); box-shadow: 0 24px 70px rgba(124,61,232,.5); }
.tc-forte  .tc-bar { background: var(--hub-violet); box-shadow: 0 0 18px rgba(139,61,230,.75); }
.tc-forte .tc-flag { position: absolute; top: -11px; right: 14px; background: var(--hub-violet); color: #fff;
  font-size: .65rem; font-weight: 700; letter-spacing: .05em; padding: .2rem .55rem; border-radius: 999px; }

/* ---------- Banda de métricas (oscura, pegada al hero) ---------- */
.hub-metrics { background: var(--hub-dark1); border-top: 1px solid rgba(255,255,255,.06); }
.hub-metrics .container { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; padding: 1.6rem 0; }
.hub-metric { text-align: center; color: #aeb4d6; }
.hub-metric strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.7rem; color: #fff; }
.hub-metric span { font-size: .82rem; }

/* ---------- Secciones ---------- */
.hub-section { padding: 4.5rem 0; }
.hub-section.soft { background: var(--hub-soft); }
.hub-head { text-align: center; max-width: 44rem; margin: 0 auto 2.6rem; }
.hub-head .eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--hub-violet); }
.hub-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); color: var(--hub-ink); margin: .5rem 0 .7rem; }
.hub-head p { color: var(--hub-muted); font-size: 1.05rem; line-height: 1.6; }

/* ---------- Carriles de producto (distintos a las cards de Win) ---------- */
.lanes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.lane {
  position: relative; background: #fff; border: 1px solid var(--hub-line); border-radius: 20px;
  padding: 2rem 1.7rem 1.8rem; display: flex; flex-direction: column;
  box-shadow: 0 6px 24px rgba(20,22,50,.06); transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.lane::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; }
.lane:hover { transform: translateY(-8px); box-shadow: 0 22px 50px rgba(20,22,50,.14); }
.lane-win::before    { background: var(--hub-blue); }
.lane-expres::before { background: var(--hub-amber); }
.lane-forte::before  { background: var(--hub-grad); }
.lane-forte { border-color: rgba(139,61,230,.35); box-shadow: 0 14px 40px rgba(124,61,232,.14); }
.lane-badge { position: absolute; top: 1.3rem; right: 1.3rem; font-size: .68rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; padding: .28rem .6rem; border-radius: 999px; }
.lane-win .lane-badge    { background: rgba(31,169,222,.12);  color: #0f7faa; }
.lane-expres .lane-badge { background: rgba(232,147,12,.14);  color: #9c6304; }
.lane-forte .lane-badge  { background: var(--hub-violet); color: #fff; }
.lane .lane-ico { font-size: 1.9rem; }
.lane .lane-who { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #8a90ad; margin-top: 1rem; }
.lane h3 { font-size: 1.45rem; color: var(--hub-ink); margin: .15rem 0 .6rem; }
.lane .lane-desc { color: var(--hub-muted); line-height: 1.55; font-size: .96rem; margin-bottom: 1.1rem; }
.lane ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .55rem; }
.lane ul li { position: relative; padding-left: 1.6rem; color: #3c4257; font-size: .93rem; line-height: 1.45; }
.lane ul li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.lane-win ul li::before    { color: var(--hub-blue); }
.lane-expres ul li::before { color: var(--hub-amber); }
.lane-forte ul li::before  { color: var(--hub-violet); }
.lane .btn { margin-top: auto; }
.lane-win .btn    { background: var(--hub-blue); border-color: var(--hub-blue); color: #fff; }
.lane-expres .btn { background: var(--hub-amber); border-color: var(--hub-amber); color: #fff; }
.lane-forte .btn  { background: var(--hub-grad); border: none; color: #fff; }
.lane .btn:hover { filter: brightness(1.06); }

/* ---------- Tabla comparativa (estética hub) ---------- */
.hub-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hub-compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 740px;
  background: #fff; border: 1px solid var(--hub-line); border-radius: 18px; overflow: hidden; }
.hub-compare th, .hub-compare td { padding: 1rem 1.15rem; text-align: left; border-bottom: 1px solid var(--hub-line); vertical-align: top; font-size: .95rem; }
.hub-compare thead th { background: var(--hub-ink); color: #fff; font-family: 'Sora', sans-serif; font-size: 1.05rem; border-bottom: none; }
.hub-compare thead th small { display: block; font-weight: 400; font-size: .78rem; color: #aeb4d6; margin-top: .15rem; }
.hub-compare thead .h-forte { background: linear-gradient(180deg, #5a2da0, #3f1f74); }
.hub-compare tbody tr:last-child td { border-bottom: none; }
.hub-compare .c-feat { font-weight: 700; color: var(--hub-ink); white-space: nowrap; }
.hub-compare .col-forte { background: rgba(139,61,230,.05); }
.hub-compare .yes { color: #1796C8; font-weight: 800; }
.hub-compare .no { color: #c2c4d0; }
.hub-compare .cta td { padding-top: 1.2rem; padding-bottom: 1.2rem; }

/* ---------- Chooser ---------- */
.hub-chooser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.4rem; }
.hub-chooser .qc { background: #fff; border: 1px solid var(--hub-line); border-left: 4px solid; border-radius: 14px; padding: 1.3rem 1.25rem; }
.hub-chooser .qc.win    { border-left-color: var(--hub-blue); }
.hub-chooser .qc.expres { border-left-color: var(--hub-amber); }
.hub-chooser .qc.forte  { border-left-color: var(--hub-violet); }
.hub-chooser .qc p.q { font-weight: 700; color: var(--hub-ink); margin: 0 0 .5rem; font-size: 1rem; }
.hub-chooser .qc p.a { margin: 0; color: var(--hub-muted); font-size: .93rem; line-height: 1.5; }
.hub-chooser .qc p.a a { font-weight: 700; }

/* ---------- Footer oscuro ---------- */
body.hub-page .footer { background: var(--hub-dark1); color: #aeb4d6; border-top: 1px solid rgba(255,255,255,.06); }
body.hub-page .footer h4 { color: #fff; font-family: 'Sora', sans-serif; }
body.hub-page .footer a { color: #c4c9e6; }
body.hub-page .footer a:hover { color: #fff; }
body.hub-page .footer-bottom { border-top: 1px solid rgba(255,255,255,.08); color: #8a90ad; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hub-hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hub-triad { height: 300px; max-width: 460px; margin: 0 auto; }
  .lanes { grid-template-columns: 1fr; }
  .hub-chooser { grid-template-columns: 1fr; }
  .hub-metrics .container { grid-template-columns: repeat(3, 1fr); row-gap: 1.4rem; }
}
@media (max-width: 560px) {
  .hub-metrics .container { grid-template-columns: repeat(2, 1fr); }
  .triad-card { width: 180px; }
  .hub-hero { padding: 3rem 0 3.5rem; }
}
