/* ===== Marca Posup Pyme =====
   Azul   #0066c8  (isotipo / wordmark)
   Amarillo #fcb827 (rayo del bombillo, acentos)
   Tomados del logo oficial de Posup. */
:root {
  --posup-blue: #0066c8;
  --posup-blue-dark: #00539f;
  --posup-blue-soft: #e8f2fd;
  --posup-yellow: #fcb827;
  --posup-navy: #0b2440;

  --bs-primary: #0066c8;
  --bs-primary-rgb: 0, 102, 200;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1f2937; }

.btn-primary { --bs-btn-bg: #0066c8; --bs-btn-border-color: #0066c8; --bs-btn-hover-bg: #00539f; --bs-btn-hover-border-color: #00539f; }
.text-primary { color: #0066c8 !important; }
.border-primary { border-color: #0066c8 !important; }
.bg-primary-subtle { background-color: #e8f2fd !important; }

.hero { background: linear-gradient(180deg, #e8f2fd 0%, #ffffff 100%); }

/* Hero con foto: recorte responsive para mostrar a la persona y ocultar el
   espacio negativo izquierdo de la imagen */
.hero-visual { max-width: 640px; margin-inline: auto; }
.hero-photo {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 72% center;
}
.hero-stats {
  position: absolute;
  left: 12px; bottom: 12px;
  width: 230px;
  border: 1px solid rgba(0,0,0,.05);
}
@media (max-width: 991.98px) {
  .hero-photo { aspect-ratio: 16 / 10; }
}
.feature-card { transition: transform .15s ease, box-shadow .15s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,.08); }
.feature-ill { width: 88px; height: 88px; object-fit: contain; border-radius: 18px; }

/* ===== Mockup del producto (HTML/CSS) ===== */
.app-window { max-width: 940px; margin-inline: auto; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(31,41,55,.22); border: 1px solid #e5e7eb; background: #fff; }
.app-topbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #f3f4f6; border-bottom: 1px solid #e5e7eb; }
.app-dot { width: 11px; height: 11px; border-radius: 50%; }
.app-url { margin-left: 10px; font-size: .78rem; color: #6b7280; background: #fff; border: 1px solid #e5e7eb;
  border-radius: 20px; padding: 3px 12px; }
.app-body { display: flex; min-height: 420px; }
.app-side { width: 200px; background: #1e1b4b; color: #bbd7f2; padding: 18px 12px; flex-shrink: 0; }
.app-brand { color: #fff; font-weight: 700; font-size: 1.1rem; padding: 0 8px 16px; }
.app-nav a { display: flex; align-items: center; gap: 10px; color: #bbd7f2; text-decoration: none;
  padding: 9px 12px; border-radius: 10px; font-size: .9rem; margin-bottom: 2px; }
.app-nav a.active, .app-nav a:hover { background: #0066c8; color: #fff; }
.app-main { flex: 1; padding: 22px; background: #f7fafe; }
.app-kpi { background: #fff; border: 1px solid #e8f2fd; border-radius: 14px; padding: 16px; }
.app-kpi .v { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.app-kpi .l { font-size: .78rem; color: #6b7280; }
.app-chart { display: flex; align-items: flex-end; gap: 10px; height: 120px; padding-top: 8px; }
.app-chart .bar { flex: 1; background: linear-gradient(180deg,#2a86dd,#0066c8); border-radius: 6px 6px 0 0; }
.app-panel { background: #fff; border: 1px solid #e8f2fd; border-radius: 14px; padding: 16px; }
.app-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 7px 0; border-bottom: 1px solid #f1f6fb; }
.app-row:last-child { border-bottom: 0; }
.app-pill { font-size: .7rem; padding: 2px 8px; border-radius: 20px; }
@media (max-width: 575.98px) { .app-side { display: none; } .app-main { padding: 16px; } }

.story-card { transition: transform .15s ease, box-shadow .15s ease; }
.story-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(0,0,0,.1); }
.story-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

.pricing-card { background: #fff; }
.cta-final { background: linear-gradient(135deg, #0066c8, #0b4f92); }

.accordion-button:not(.collapsed) { background: #e8f2fd; color: #0066c8; }
.accordion-button:focus { box-shadow: none; }

.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: #0066c8; color: #fff; font-size: 24px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.compare-table th, .compare-table td { padding: .85rem .5rem; }
.compare-table tbody tr:nth-child(odd) { background: #f7fafe; }
.compare-table thead th:last-child,
.compare-table tbody td:last-child { background: #e8f2fd; }

/* ===== ERP shell ===== */
.erp-body { background: #f4f8fc; margin: 0; }
.erp-shell { display: flex; min-height: 100vh; }
.erp-side {
  width: 232px; background: #0b2440; color: #bbd7f2; flex-shrink: 0;
  display: flex; flex-direction: column; padding: 18px 14px; position: sticky; top: 0; height: 100vh;
}
.erp-brand { padding: 4px 8px 6px; }
.erp-biz { font-size: .8rem; color: #8fb3d6; padding: 0 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 12px; font-weight: 600; }
.erp-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.erp-nav a { display: flex; align-items: center; gap: 11px; color: #bbd7f2; text-decoration: none; padding: 10px 12px; border-radius: 11px; font-size: .92rem; font-weight: 500; transition: background .15s; }
.erp-nav a .ico { font-size: 1.05rem; }
.erp-nav a:hover { background: rgba(255,255,255,.06); }
.erp-nav a.active { background: linear-gradient(135deg,#2a86dd,#0b4f92); color: #fff; box-shadow: 0 8px 20px rgba(42,134,221,.4); }
.erp-logout { color: #8fb3d6; text-decoration: none; font-size: .85rem; padding: 10px 12px; border-radius: 10px; }
.erp-logout:hover { background: rgba(255,255,255,.06); color: #fff; }
.erp-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.erp-topbar { background: #fff; border-bottom: 1px solid #e4ebf2; padding: 12px 22px; display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 10; }
.erp-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg,#2a86dd,#0066c8); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; text-transform: uppercase; }
.erp-content { padding: 24px 22px; }
.erp-kpi { background: #fff; border: 1px solid #e6eef6; border-radius: 16px; padding: 18px; }
.erp-kpi .v { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.erp-kpi .l { font-size: .8rem; color: #6b7280; margin-top: 4px; }
.erp-card { background: #fff; border: 1px solid #e6eef6; border-radius: 16px; }
.prod-thumb { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; background: #e8f2fd; display:flex; align-items:center; justify-content:center; font-size:1.1rem; }
@media (max-width: 991.98px) {
  .erp-side { position: fixed; left: -260px; z-index: 1050; transition: left .2s; box-shadow: 0 0 40px rgba(0,0,0,.4); }
  .erp-side.open { left: 0; }
}

/* ===== Auth futurista / espacial (login + registro) ===== */
.auth-space {
  position: fixed; inset: 0; overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: #04101f;
  color: #e5e7eb;
}
/* Fondo de nebulosa con movimiento (deriva + zoom lento) */
.auth-bg {
  position: absolute; inset: -6%; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(4,16,31,.45), rgba(4,16,31,.55)),
    url("/assets/img/auth-bg.png");
  background-size: cover; background-position: center;
  will-change: transform;
  animation: bgDrift 46s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { transform: scale(1.08) translate(0, 0); }
  50%  { transform: scale(1.16) translate(-2%, -1.4%); }
  100% { transform: scale(1.10) translate(1.6%, 1%); }
}
/* orbes de gradiente difuminados y flotantes */
.auth-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; z-index: 1; mix-blend-mode: screen; animation: orbFloat 14s ease-in-out infinite; }
.auth-orb.o1 { width: 420px; height: 420px; left: -80px; top: -60px; background: radial-gradient(circle, #2a86dd, transparent 70%); }
.auth-orb.o2 { width: 380px; height: 380px; right: -60px; top: 20%; background: radial-gradient(circle, #fcb827, transparent 70%); animation-delay: -4s; }
.auth-orb.o3 { width: 340px; height: 340px; left: 30%; bottom: -100px; background: radial-gradient(circle, #22d3ee, transparent 70%); animation-delay: -8s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-25px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(.96); } }

/* Capa de orbes (para parallax con el mouse) */
.auth-orbs { position: absolute; inset: 0; z-index: 1; will-change: transform; transition: transform .25s ease-out; }

.auth-card {
  position: relative; z-index: 2; width: 100%; max-width: 420px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 24px;
  padding: 34px 30px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.15), 0 0 0 1px rgba(42,134,221,.15);
  transform: perspective(1200px) rotateX(3deg);
  transition: transform .12s ease-out;
  animation: cardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: perspective(1200px) rotateX(12deg) translateY(24px); } to { opacity: 1; transform: perspective(1200px) rotateX(3deg) translateY(0); } }

/* Logo con glow 3D pulsante */
.auth-logo { filter: drop-shadow(0 0 12px rgba(111,169,232,.6)); animation: logoGlow 3.6s ease-in-out infinite; }
@keyframes logoGlow {
  0%,100% { filter: drop-shadow(0 0 10px rgba(111,169,232,.5)); transform: translateZ(0) scale(1); }
  50%     { filter: drop-shadow(0 0 24px rgba(252,184,39,.9)); transform: translateZ(0) scale(1.04); }
}

.auth-card h1 { color: #fff; font-weight: 800; letter-spacing: -.5px; }
.auth-sub { color: #a9ccf0; font-size: .9rem; }
.auth-card .form-label { color: #bbd7f2; font-size: .8rem; letter-spacing: .3px; }
.auth-input {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.16) !important;
  color: #fff !important; border-radius: 12px !important; padding: 12px 14px !important;
  transition: border-color .2s, box-shadow .2s;
}
.auth-input::placeholder { color: rgba(229,231,235,.45); }
.auth-input:focus { border-color: #6fa9e8 !important; box-shadow: 0 0 0 4px rgba(111,169,232,.25) !important; background: rgba(255,255,255,.09) !important; }
.auth-btn {
  background: linear-gradient(135deg, #2a86dd, #0066c8); border: 0; color: #fff;
  border-radius: 12px; padding: 12px; font-weight: 700; letter-spacing: .3px;
  box-shadow: 0 10px 30px rgba(11,79,146,.45); transition: transform .15s, box-shadow .15s;
}
.auth-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,79,146,.6); color:#fff; }
.auth-card a { color: #a9ccf0; }
.auth-badge { display:inline-block; font-size:.72rem; color:#bbd7f2; background:rgba(42,134,221,.18); border:1px solid rgba(111,169,232,.3); padding:4px 12px; border-radius:20px; }
.auth-alert { background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.4); color: #fecaca; border-radius: 12px; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 1050;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 28px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(37,211,102,.5); text-decoration: none;
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
