/* Hub /sistema-de-control-para-carwash/. Va encima de latam.css y videoguias.css: menú, migas,
   funciones con videoguías, tipos de negocio y pie salen de scripts/enlaces.py. */
.hub-pg{ font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif; color:#0b1220; background:#fff; overflow-x:hidden; }
.hub-pg h1,.hub-pg h2,.hub-pg .btn,.hub-pg .logo,.hub-pg .store b{ font-family:'Montserrat','Inter',system-ui,sans-serif; }
.hub-pg h2{ color:#0b1a4a; }
.hub-pg .eyebrow{ color:#1463f3; font-size:.78rem; }
.hub-pg .btn-green{ background:#22c55e; box-shadow:0 10px 24px rgba(34,197,94,.3); }
.hub-pg .btn-green span{ font-size:1.15em; line-height:1; }
.hub-pg section{ padding:64px 0; }
.hub-pg .lead{ margin-bottom:34px; }

/* HERO oscuro con el celular, el auto y el agua */
.hub-pg .hub-hero{ background:radial-gradient(ellipse 45% 80% at 80% 45%,rgba(37,99,235,.6) 0%,transparent 70%),radial-gradient(ellipse 30% 50% at 5% 100%,rgba(37,99,235,.35) 0%,transparent 70%),linear-gradient(120deg,#05122a 0%,#071d42 50%,#0a2a6e 100%); padding:0 24px 0; }
.hub-pg .hub-hero::before{ opacity:.45; }
.hub-top{ position:relative; z-index:2; max-width:1200px; margin:0 auto; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:end; gap:10px; }
.hub-copy{ padding:22px 0 92px; }
.hub-pg .hub-hero .badge{ background:none; border:0; padding:0; margin-bottom:10px; color:#fff; font-size:.8rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.hub-pg .hub-hero h1{ font-size:2.9rem; line-height:1.06; letter-spacing:-.03em; margin-bottom:14px; }
.hub-pg .hub-hero .sub{ margin:0 0 22px; max-width:500px; font-size:1.02rem; line-height:1.55; color:rgba(255,255,255,.85); }
.hub-pg .hub-hero .cta-row{ justify-content:flex-start; align-items:center; gap:10px; flex-wrap:nowrap; }
.hub-pg .hub-hero .btn{ padding:13px 20px; font-size:.95rem; white-space:nowrap; }
.hub-confianza{ list-style:none; display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:20px; color:rgba(255,255,255,.8); font-size:.82rem; }
.hub-confianza li{ display:inline-flex; align-items:center; gap:7px; }
.hub-confianza svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hub-visual{ margin:0; align-self:end; }
.hub-visual img{ display:block; width:150%; max-width:none; height:auto; filter:drop-shadow(0 24px 40px rgba(0,0,0,.35)); }

/* Tiendas: mismas insignias que /guias/ */
.hub-pg .stores{ display:flex; gap:8px; flex-wrap:nowrap; }
.hub-pg .store{ display:inline-flex; align-items:center; gap:9px; background:rgba(4,12,28,.85); color:#fff; border:1px solid rgba(255,255,255,.3); border-radius:12px; padding:7px 12px 7px 10px; line-height:1.1; }
.hub-pg .store:hover{ border-color:#fff; }
.hub-pg .store svg{ width:22px; height:22px; flex:none; }
.hub-pg .store span{ white-space:nowrap; }
.hub-pg .store small{ display:block; font-size:.6rem; text-transform:uppercase; letter-spacing:.04em; opacity:.85; }
.hub-pg .store b{ font-size:.9rem; font-weight:700; }

/* Franja de ventajas montada sobre el borde del hero */
.hub-ventajas{ position:relative; z-index:3; margin-top:-44px; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; background:#fff; border:1px solid #e3ecf8; border-radius:20px; box-shadow:0 18px 40px rgba(15,40,90,.12); padding:20px 26px; max-width:1200px; }
.hub-ventajas > div{ display:flex; align-items:center; gap:12px; }
.hv-ic{ flex:none; width:46px; height:46px; border-radius:50%; background:#e8f0ff; display:grid; place-items:center; color:#1463f3; }
.hv-ic svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.hub-ventajas p{ font-size:.8rem; line-height:1.4; color:#475569; }
.hub-ventajas b{ display:block; font-size:.86rem; color:#0b1a4a; }
.hub-ventajas a{ color:inherit; }

/* Todo tu carwash bajo control */
.hub-pg .hub-control{ padding-top:56px; }
.hub-cuatro{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; }
.hub-cuatro a{ display:flex; flex-direction:column; gap:8px; border:1px solid #e3ecf8; border-radius:16px; padding:22px 20px; background:#fff; color:#0b1220; box-shadow:0 8px 22px rgba(15,40,90,.05); transition:.15s; }
.hub-cuatro a:hover{ border-color:#93c5fd; transform:translateY(-2px); box-shadow:0 12px 28px rgba(20,99,243,.1); }
.hub-cuatro img{ width:52px; height:52px; margin-bottom:8px; }
.hub-cuatro b{ font-size:1.02rem; color:#0b1a4a; }
.hub-cuatro span{ font-size:.88rem; line-height:1.5; color:#64748b; }

/* Un solo registro: el ticket en un marco con burbujas */
.hub-pg .hub-registro{ background:linear-gradient(180deg,#f5f8ff 0%,#fff 100%); overflow:hidden; }
.conectado{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:56px; align-items:center; }
.conectado figure{ margin:0; text-align:center; }
.c-marco{ position:relative; display:block; padding:44px 26px; }
.c-marco::before{ content:''; position:absolute; left:50%; top:50%; width:118%; aspect-ratio:1; transform:translate(-50%,-50%); border-radius:50%; background:radial-gradient(circle,#bcd3ff 0%,#d6e5ff 45%,rgba(214,229,255,0) 70%); }
.c-marco::after{ content:''; position:absolute; left:-30px; top:-10px; width:46%; aspect-ratio:300/401; background:url(/assets/hub/burbujas.webp) no-repeat center / contain; transform:scaleX(-1); opacity:.95; pointer-events:none; }
.c-marco img{ position:relative; z-index:1; display:block; width:100%; height:auto; border-radius:18px; border:1px solid #e3ecf8; box-shadow:0 18px 40px rgba(4,16,31,.14); background:#fff; }
.conectado figcaption{ margin-top:4px; color:#64748b; font-size:.82rem; }
.conectado .eyebrow,.conectado h2{ text-align:left; }
.conectado h2{ margin-top:6px; }
.c-lead{ color:#475569; font-size:.98rem; line-height:1.6; margin:0 0 20px; }
.flujo{ list-style:none; display:grid; gap:10px; }
.flujo a{ display:grid; grid-template-columns:44px 1fr auto; gap:14px; align-items:center; border:1px solid #e3ecf8; border-radius:14px; padding:11px 16px; background:#fff; color:#0b1220; box-shadow:0 6px 16px rgba(15,40,90,.04); transition:.15s; }
.flujo a:hover{ border-color:#93c5fd; box-shadow:0 8px 24px rgba(37,99,235,.08); }
.flujo .ic{ width:40px; height:40px; border-radius:10px; background:#eff4ff; display:flex; align-items:center; justify-content:center; font-size:1.2rem; }
.flujo b{ display:block; font-size:.95rem; color:#0b1a4a; }
.flujo span.t{ color:#64748b; font-size:.86rem; line-height:1.45; }
.flujo .fl{ color:#1463f3; font-weight:800; }

/* Banda «Pruébalo» oscura con burbujas a los lados */
.hub-pg .seccion-banda{ padding:20px 0 56px; overflow:hidden; }
.banda{ position:relative; display:flex; align-items:center; gap:22px; background:linear-gradient(120deg,#071733 0%,#0b2350 100%); color:#fff; border-radius:22px; padding:26px 34px; box-shadow:0 18px 40px rgba(4,16,31,.2); }
.banda::before,.banda::after{ content:''; position:absolute; top:50%; width:110px; aspect-ratio:300/401; background:url(/assets/hub/burbujas.webp) no-repeat center / contain; transform:translateY(-50%); pointer-events:none; }
.banda::before{ left:-58px; transform:translateY(-50%) scaleX(-1); }
.banda::after{ right:-58px; }
.b-estrella{ flex:none; width:58px; height:58px; position:relative; z-index:1; }
.b-txt{ flex:1; min-width:0; position:relative; z-index:1; }
.banda h2{ color:#fff; text-align:left; margin:0 0 4px; font-size:1.5rem; }
.banda p{ color:rgba(255,255,255,.75); margin:0; font-size:.95rem; }
.banda .btn{ flex:none; position:relative; z-index:1; }

/* Funciones con videoguía: tarjetas horizontales en 3 columnas */
.hub-pg #funciones{ background:#fff; }
.hub-pg .vg-card{ grid-template-columns:72px minmax(0,1fr); border-color:#e3ecf8; box-shadow:0 8px 22px rgba(15,40,90,.05); }
.hub-pg .vg-fn b{ color:#0b1a4a; font-size:.95rem; }
.hub-pg .vg-fn span{ font-size:.84rem; }
.hub-pg .vg-ver{ font-size:.8rem; }

/* Tipos de negocio: tarjeta con ícono y flechas */
.hub-pg .negocios-grid{ max-width:none; gap:18px; }
.hub-pg .negocio-col{ border:1px solid #e3ecf8; border-radius:16px; padding:18px 18px 20px; background:#fff; box-shadow:0 8px 22px rgba(15,40,90,.05); }
.hub-pg .negocio-col .pie-tit{ display:flex; align-items:center; gap:12px; min-height:52px; color:#0b1a4a; font-size:.78rem; line-height:1.3; margin-bottom:12px; }
.hub-pg .negocio-col .pie-tit img{ flex:none; width:46px; height:auto; }
.hub-pg .negocio-col ul{ gap:4px; }
.hub-pg .negocio-col a{ display:flex; justify-content:space-between; gap:8px; padding:4px 0; font-size:.8rem; color:#1463f3; white-space:nowrap; }
.hub-pg .negocio-col a::after{ content:'→'; color:#475569; }
.hub-pg .negocio-col a:hover{ text-decoration:underline; }

/* Control a distancia */
.hub-pg .hub-distancia{ background:#f5f8ff; }
.hub-distancia .wrap{ display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:44px; align-items:center; }
.d-foto{ margin:0; border-radius:22px; background:radial-gradient(ellipse 70% 70% at 50% 60%,#cfe0ff 0%,#e8f0ff 60%,#f5f8ff 100%); overflow:hidden; }
.d-foto img{ display:block; width:100%; height:auto; }
.hub-distancia h2{ text-align:left; margin-top:0; }
.hub-distancia p{ color:#475569; line-height:1.6; margin-bottom:20px; }
.d-enlaces{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.d-enlaces a{ display:grid; grid-template-columns:40px 1fr auto; gap:12px; align-items:center; border:1px solid #e3ecf8; border-radius:14px; padding:12px 14px; background:#fff; color:#0b1a4a; box-shadow:0 6px 16px rgba(15,40,90,.04); transition:.15s; }
.d-enlaces a:hover{ border-color:#93c5fd; }
.d-enlaces img{ width:40px; height:auto; }
.d-enlaces b{ font-size:.88rem; line-height:1.3; }
.d-enlaces span{ color:#1463f3; font-weight:800; }

/* Preguntas frecuentes en dos columnas */
.hub-faq .wrap{ display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:40px; align-items:start; background:#f5f8ff; border-radius:22px; padding:34px 36px; }
.hub-pg .hub-faq{ padding-top:56px; }
.f-tit .eyebrow,.f-tit h2{ text-align:left; }
.f-tit h2{ font-size:1.6rem; }
.hub-pg .faq{ max-width:none; margin:0; }
.hub-pg .faq details{ background:#fff; border-color:#e3ecf8; padding:13px 18px; margin-bottom:8px; }
.hub-pg .faq summary{ font-size:.95rem; color:#0b1a4a; list-style:none; display:flex; justify-content:space-between; gap:12px; }
.hub-pg .faq summary::-webkit-details-marker{ display:none; }
.hub-pg .faq summary::after{ content:''; flex:none; width:9px; height:9px; margin-top:4px; border-right:2px solid #1463f3; border-bottom:2px solid #1463f3; transform:rotate(45deg); transition:.15s; }
.hub-pg .faq details[open] summary::after{ transform:rotate(-135deg); margin-top:9px; }
.hub-pg .faq p{ font-size:.92rem; line-height:1.55; }

/* Cierre oscuro pegado al pie */
.hub-pg .hub-cierre{ background:linear-gradient(120deg,#05122a 0%,#0a2350 100%); padding:30px 0; text-align:left; }
.hub-cierre .wrap{ display:flex; align-items:center; gap:28px; }
.hub-cierre .logo{ flex:none; display:flex; align-items:center; gap:8px; color:#fff; font-weight:800; font-size:1.1rem; margin:0; }
.hub-cierre .logo img{ border-radius:8px; }
.hub-cierre .logo span{ color:#60a5fa; }
.hub-cierre .c-txt{ flex:1; min-width:0; text-align:center; }
.hub-pg .hub-cierre h2{ color:#fff; font-size:1.35rem; margin:0 0 4px; }
.hub-pg .hub-cierre p{ font-size:.9rem; margin:0; color:rgba(255,255,255,.75); }
.hub-cierre .btn{ flex:none; }

@media(max-width:960px){
  .hub-top{ grid-template-columns:1fr; }
  .hub-copy{ text-align:center; padding:12px 0 0; }
  .hub-pg .hub-hero .sub{ margin:0 auto 18px; }
  .hub-pg .hub-hero .cta-row{ justify-content:center; flex-wrap:wrap; }
  .hub-pg .stores{ justify-content:center; }
  .hub-confianza{ justify-content:center; }
  .hub-visual{ max-width:600px; margin:10px auto 0; width:100%; }
  .hub-visual img{ width:100%; }
  .hub-ventajas{ grid-template-columns:1fr 1fr; margin-top:-24px; }
  .hub-cuatro{ grid-template-columns:1fr 1fr; }
  .conectado,.hub-distancia .wrap,.hub-faq .wrap{ grid-template-columns:1fr; gap:28px; }
  .conectado figure{ max-width:380px; margin:0 auto; }
  .hub-cierre .wrap{ flex-direction:column; text-align:center; gap:14px; }
  .d-foto{ max-width:460px; margin:0 auto; width:100%; }
  .hub-pg .negocios-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .hub-pg .negocio-col a{ white-space:normal; }
}
@media(max-width:760px){
  .hub-pg .hub-hero{ padding:0 16px; }
  .hub-pg .wrap{ padding:0 16px; }
  .hub-pg section{ padding:48px 0; }
  .hub-pg .hub-hero h1{ font-size:1.95rem; margin-bottom:8px; }
  .hub-pg .hub-hero .sub{ font-size:.95rem; line-height:1.45; }
  .hub-pg .hub-hero .btn{ padding:11px 18px; }
  .hub-pg h2{ font-size:1.55rem; }
  .hub-pg .hub-ventajas{ margin:-8px 16px 0; padding:18px 16px; gap:14px; }
  .hv-ic{ width:38px; height:38px; }
  .hub-cuatro{ gap:12px; }
  .hub-cuatro a{ padding:16px 14px; }
  .banda{ flex-direction:column; text-align:center; padding:24px 20px; gap:12px; }
  .banda h2{ text-align:center; font-size:1.3rem; }
  .banda::before,.banda::after{ width:56px; top:-26px; }
  .banda::before{ left:-22px; transform:scaleX(-1); } .banda::after{ right:-22px; transform:none; }
  .d-enlaces{ grid-template-columns:1fr; }
  .hub-faq .wrap{ padding:24px 18px; border-radius:0; }
  .hub-pg .negocio-col .pie-tit{ min-height:0; }
  .hub-pg .negocios-grid{ grid-template-columns:1fr; gap:12px; }
  .hub-pg .negocio-col a{ white-space:nowrap; font-size:.9rem; }
}
@media(max-width:480px){
  .hub-ventajas,.hub-cuatro{ grid-template-columns:1fr; }
  .hub-cuatro a{ display:grid; grid-template-columns:48px 1fr; column-gap:14px; row-gap:4px; align-items:start; }
  .hub-cuatro img{ grid-row:span 2; width:48px; height:48px; margin:0; }
  .flujo a{ grid-template-columns:40px 1fr; } .flujo .fl{ display:none; }
}
