/* =====================================================================
   Gestiones Balance · propuesta de mejora v1 (21/10/2026)
   Un solo archivo para todos los bloques. Cada parte va marcada con su
   número de cambio: si os saltáis un bloque, podéis borrar su parte.
   Usa las variables que la web ya tiene en :root
   (--blue, --blue-d, --ink, --soft, --line) y añade solo --navy.
   Es el único archivo que necesitan todos los bloques (01, 02, 03, 04 y 06).
   Cargadlo en el <head> de la plantilla base, después de vuestro <style>:
   <link rel="stylesheet" href="/static/css/gb-mejoras.css">
   ===================================================================== */
:root{ --navy:#132a54; }

/* ---------- 01 · PORTADA ---------- */
.gb-hero__bg{ position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(60rem 30rem at 85% 10%, var(--soft) 0%, rgba(241,245,255,0) 70%),
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/48px 48px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/48px 48px;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 55%,transparent 100%);
          mask-image:linear-gradient(180deg,#000 0%,#000 55%,transparent 100%);
  opacity:.9; }
.gb-orb{ position:absolute; left:50%; top:50%; width:420px; height:420px; transform:translate(-50%,-50%);
  border-radius:9999px; background:radial-gradient(circle at 35% 30%, #dfe8ff 0%, var(--soft) 55%, rgba(241,245,255,0) 72%); }
.gb-phone{ width:250px; height:480px; border-radius:42px; background:var(--ink); padding:10px;
  box-shadow:0 40px 80px -30px rgba(19,42,84,.45), 0 0 0 1px rgba(255,255,255,.06) inset; }
.gb-phone__screen{ width:100%; height:100%; border-radius:33px; background:#fff; padding:22px 18px; overflow:hidden; }
.gb-doc{ position:relative; border:1px solid var(--line); border-radius:14px; padding:12px; overflow:hidden; }
.gb-bar{ display:inline-block; height:8px; border-radius:9999px; background:var(--line); }
.gb-row{ display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:12px; color:#64748b;
  border:1px solid var(--line); border-radius:10px; padding:8px 10px; }
.gb-row .gb-bar{ flex:0 1 auto; max-width:45%; }
.gb-scan{ position:absolute; left:0; right:0; top:0; height:2px; background:var(--blue); opacity:.55; }
.gb-float{ position:absolute; display:flex; align-items:center; gap:10px; background:#fff; border:1px solid var(--line);
  border-radius:16px; padding:10px 14px 10px 10px; box-shadow:0 18px 40px -18px rgba(19,42,84,.35); white-space:nowrap; }
.gb-float--a{ left:-64px; top:40%; }
.gb-float--b{ right:-56px; bottom:13%; }
@media (max-width:1100px){ .gb-float--a{ left:-20px; } .gb-float--b{ right:-20px; } }
@media (max-width:640px){
  .gb-phone{ width:210px; height:432px; border-radius:36px; }
  .gb-phone__screen{ border-radius:28px; padding:18px 14px; }
  .gb-row{ font-size:11px; padding:7px 9px; }
  .gb-orb{ width:320px; height:320px; }
  .gb-float--a{ left:0; top:0; }
  .gb-float--b{ right:0; bottom:0; }
}

/* ---------- 02 · TRAYECTORIA (cifras) ---------- */
.gb-stats{ background:var(--navy); color:#fff; }
.gb-stat__num{ font-weight:800; line-height:1; letter-spacing:-.04em; font-size:clamp(2.6rem,5vw,4.25rem); white-space:nowrap; }
.gb-stat__label{ color:rgba(255,255,255,.78); }
.gb-stats__rule{ border-color:rgba(255,255,255,.14); }

/* ---------- 03 · PLANES con selector ---------- */
.gb-seg{ display:inline-flex; padding:5px; border-radius:9999px; background:#fff; border:1px solid var(--line); }
.gb-seg button{ font-weight:700; font-size:14px; padding:10px 20px; border-radius:9999px; color:#475569; transition:background .2s,color .2s; }
.gb-seg button[aria-selected="true"]{ background:var(--ink); color:#fff; }
.gb-plan{ border:1px solid var(--line); border-radius:28px; background:#fff; padding:32px; display:flex; flex-direction:column; }
.gb-plan--top{ background:var(--blue); border-color:var(--blue); color:#fff; box-shadow:0 30px 60px -30px rgba(37,99,235,.6); }
.gb-plan--top .gb-muted{ color:#dbe6ff; }
.gb-muted{ color:#64748b; }

/* ---------- 04 · PREGUNTAS FRECUENTES ---------- */
.gb-faq details{ border-bottom:1px solid var(--line); }
.gb-faq summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:22px 0; font-weight:700; font-size:17px; }
.gb-faq summary::-webkit-details-marker{ display:none; }
.gb-faq__icon{ flex:0 0 auto; width:32px; height:32px; border-radius:9999px; display:flex; align-items:center; justify-content:center;
  background:var(--soft); color:var(--blue); transition:transform .25s ease, background .25s ease, color .25s ease; }
.gb-faq details[open] .gb-faq__icon{ transform:rotate(45deg); background:var(--blue); color:#fff; }
.gb-faq__body{ padding:0 56px 24px 0; color:#64748b; line-height:1.7; font-size:15px; }

/* ---------- 06 · CIERRE Y PIE ---------- */
.gb-cta{ background:var(--blue); color:#fff; }
.gb-cta__rings{ position:absolute; right:-120px; top:50%; width:520px; height:520px; transform:translateY(-50%); border-radius:9999px;
  box-shadow:0 0 0 60px rgba(255,255,255,.06), 0 0 0 120px rgba(255,255,255,.04), 0 0 0 180px rgba(255,255,255,.03); }
.gb-footer{ background:var(--navy); color:#cbd5e1; }
.gb-footer a{ color:#e2e8f0; transition:color .2s; }
.gb-footer a:hover{ color:#fff; }
.gb-footer h4{ color:#fff; }
.gb-footer__rule{ border-color:rgba(255,255,255,.12); }

/* ---------- 05 · MOVIMIENTO ---------- */
/* Solo se oculta lo animable cuando gb-movimiento.js ha arrancado (clase gb-motion en <html>).
   Sin JS, o con "reducir movimiento" activado en el sistema, todo se ve quieto y completo. */
.gb-motion [data-reveal]{ opacity:0; transform:translateY(18px);
  transition:opacity .6s cubic-bezier(.22,.61,.36,1), transform .6s cubic-bezier(.22,.61,.36,1);
  transition-delay:var(--gb-delay,0ms); }
.gb-motion [data-reveal].is-in{ opacity:1; transform:none; }
.gb-lift{ transition:transform .2s ease, box-shadow .2s ease; }
.gb-lift:hover{ transform:translateY(-4px); box-shadow:0 24px 48px -24px rgba(19,42,84,.28); }
/* Con el movimiento activo, la regla de aparición (.is-in) fija transform:none; esta la supera para que la tarjeta suba al pasar el ratón */
.gb-motion .gb-lift[data-reveal].is-in:hover{ transform:translateY(-4px); transition:transform .2s ease, box-shadow .2s ease; }
.gb-btn-arrow svg{ transition:transform .2s ease; }
.gb-btn-arrow:hover svg{ transform:translateX(3px); }
.gb-motion .gb-row .gb-bar{ flex:0 1 auto; max-width:45%; }
.gb-scan{ animation:gb-scan 2.8s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes gb-scan{ 0%{ top:0 } 50%{ top:calc(100% - 2px) } 100%{ top:0 } }
.gb-motion .gb-float--a{ animation:gb-float 6s ease-in-out infinite; }
.gb-motion .gb-float--b{ animation:gb-float 6s ease-in-out -3s infinite; }
@keyframes gb-float{ 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-8px) } }
header.gb-scrolled{ box-shadow:0 8px 24px -16px rgba(19,42,84,.25); }
@media (prefers-reduced-motion:reduce){
  .gb-motion [data-reveal]{ opacity:1; transform:none; transition:none; }
  .gb-scan, .gb-motion .gb-scan, .gb-motion .gb-float--a, .gb-motion .gb-float--b{ animation:none; }
  .gb-lift, .gb-lift:hover{ transition:none; transform:none; }
}
@media (max-width:640px){ .gb-faq__body{ padding-right:8px; } .gb-faq summary{ font-size:16px; } }
