:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Colors (Modo Oscuro por defecto) */
  --bg-main: #0c111d;
  --bg-header: rgba(12, 17, 29, 0.88);
  --bg-card: #151d30;
  --bg-card-hover: #1c2742;
  --bg-input: #0f1626;
  --border-subtle: #24324f;
  --border-focus: #3b82f6;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-heading: #ffffff;

  /* Brand / Accents */
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.15);

  --accent-amber: #f59e0b;
  --accent-amber-bg: rgba(245, 158, 11, 0.12);
  --accent-amber-border: rgba(245, 158, 11, 0.3);

  --accent-blue: #38bdf8;
  --accent-blue-bg: rgba(56, 189, 248, 0.12);

  --accent-green: #10b981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-green-border: rgba(16, 185, 129, 0.3);

  --accent-purple: #a855f7;
  --accent-purple-bg: rgba(168, 85, 247, 0.15);

  --accent-red: #ef4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);

  --whatsapp-color: #25d366;
  --whatsapp-hover: #1ebe5d;
  --whatsapp-bg: rgba(37, 211, 102, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Modo Claro (Light Theme) */
[data-theme="light"] {
  --bg-main: #f8fafc;
  --bg-header: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #f8fafc;
  --border-subtle: #e2e8f0;
  --border-focus: #2563eb;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --text-heading: #0f172a;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 23, 42, 0.12);
}

/* Regla general de ocultación */
.hidden {
  display: none !important;
}

/* Auth Gate & Landing Page Wrapper */
.landing-page-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background-color: #090e1a;
  color: #f8fafc;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 100;
}

.landing-page-wrapper.hidden {
  display: none !important;
}

/* Contenedor centralizado */
.landing-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradiente de texto */
.gradient-text {
  background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 1. NAVBAR SUPERIOR */
.landing-navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 14, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 0;
  transition: all 0.3s ease;
}

.landing-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.landing-brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.landing-brand-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.landing-brand-text {
  display: flex;
  flex-direction: column;
}

.landing-brand-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.landing-brand-tag {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.landing-nav-links a:hover {
  color: #ffffff;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-landing-secondary {
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #e2e8f0;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-landing-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-landing-primary {
  padding: 10px 20px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(59, 130, 246, 0.5);
  color: #ffffff;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-landing-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
}

.btn-landing-arrow {
  transition: transform 0.2s ease;
}

.btn-landing-primary:hover .btn-landing-arrow {
  transform: translateX(3px);
}

/* 2. HERO SECTION */
.landing-hero {
  position: relative;
  padding: 80px 0 60px 0;
  background: radial-gradient(circle at 50% 10%, #172554 0%, #090e1a 70%);
  text-align: center;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 450px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.landing-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 9999px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.badge-pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.landing-hero-title {
  font-size: 3.1rem;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  max-width: 960px;
  margin: 0 auto 24px auto;
  letter-spacing: -0.03em;
}

.landing-hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 760px;
  margin: 0 auto 36px auto;
  font-weight: 400;
}

.landing-hero-subtitle strong {
  color: #f1f5f9;
}

.landing-hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.btn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(147, 197, 253, 0.4);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
}

.btn-hero-cta:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.6);
}

.btn-hero-cta-icon {
  font-size: 1.7rem;
}

.btn-hero-cta span strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.btn-hero-cta span small {
  display: block;
  font-size: 0.78rem;
  color: #bfdbfe;
  font-weight: 500;
  margin-top: 2px;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  color: #e2e8f0;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.landing-hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  color: #94a3b8;
  font-size: 0.88rem;
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  font-size: 1rem;
}

/* 3. MOCKUP INTERACTIVO */
.landing-mockup-wrapper {
  max-width: 1040px;
  margin: 0 auto;
  perspective: 1000px;
}

.landing-mockup-window {
  background: #0f172a;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.85), 0 0 45px rgba(37, 99, 235, 0.18);
  text-align: left;
}

.mockup-window-header {
  background: #0a0f1d;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mockup-window-dots {
  display: flex;
  gap: 7px;
}

.mockup-window-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.mockup-window-url {
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 14px;
  border-radius: 6px;
  color: #94a3b8;
  font-family: monospace;
}

.mockup-window-status {
  font-size: 0.75rem;
  color: #34d399;
  font-weight: 600;
}

.mockup-app-preview {
  padding: 22px;
  background: #090e1a;
}

.mockup-kanban-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mockup-column {
  background: #111a2e;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.col-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
}

.col-count {
  font-size: 0.72rem;
  color: #64748b;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 8px;
  border-radius: 12px;
}

.mockup-card {
  background: #18233c;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.mockup-card-active {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.mockup-card-ready {
  border-color: rgba(16, 185, 129, 0.4);
}

.mockup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mockup-card-id {
  font-size: 0.74rem;
  font-weight: 700;
  color: #60a5fa;
  font-family: monospace;
}

.mockup-priority-badge {
  font-size: 0.68rem;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.mockup-normal-badge {
  font-size: 0.68rem;
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  padding: 2px 7px;
  border-radius: 6px;
}

.mockup-embroidery-badge {
  font-size: 0.68rem;
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.mockup-success-badge {
  font-size: 0.68rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
}

.mockup-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.mockup-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #94a3b8;
}

.mockup-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.mockup-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-btn-fake {
  font-size: 0.72rem;
  color: #38bdf8;
  font-weight: 600;
}

.mockup-badge-thread {
  font-size: 0.7rem;
  color: #c084fc;
}

.mockup-price {
  font-size: 0.86rem;
  font-weight: 800;
  color: #10b981;
}

.mockup-whatsapp-toast {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  color: #a7f3d0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  line-height: 1.3;
}

/* 4. SECCIONES GENERALES */
.landing-section {
  padding: 85px 0;
  position: relative;
}

.landing-contrast-bg {
  background: #0d1527;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.landing-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}

.landing-section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 14px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.landing-section-title {
  font-size: 2.3rem;
  line-height: 1.25;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.landing-section-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
}

/* 5. PROBLEMA VS SOLUCIÓN */
.landing-vs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.vs-card {
  border-radius: 18px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.vs-card-bad {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.vs-card-good {
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 10px 30px rgba(16, 185, 129, 0.08);
}

.vs-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vs-card-header h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.vs-icon {
  font-size: 1.5rem;
}

.vs-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vs-list li {
  font-size: 0.92rem;
  line-height: 1.5;
  color: #cbd5e1;
}

.vs-list li strong {
  color: #ffffff;
}

/* 6. GRID DE FUNCIONALIDADES (4 PILARES + EXTRAS) */
.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.landing-feature-card {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: all 0.25s ease;
}

.landing-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.feature-card-highlight {
  border-color: rgba(16, 185, 129, 0.45);
  background: linear-gradient(180deg, #132238 0%, #111a2e 100%);
}

.feature-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: #10b981;
  color: #064e3b;
  font-weight: 800;
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 9999px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
}

.feature-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.box-blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.25); }
.box-green { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.box-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.25); }
.box-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.box-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.25); }
.box-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.25); }

.feature-title {
  font-size: 1.18rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.feature-text {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
  flex-grow: 1;
}

.feature-pill-tag {
  font-size: 0.74rem;
  color: #38bdf8;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-top: 4px;
}

/* 7. PASOS / CÓMO FUNCIONA */
.landing-steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step-card {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 32px 24px;
  position: relative;
  text-align: center;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px auto;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.step-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

/* 8. PRECIOS */
.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 860px;
  margin: 0 auto 36px auto;
}

.landing-pricing-card {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card-featured {
  background: linear-gradient(180deg, #15223d 0%, #111a2e 100%);
  border: 2px solid #3b82f6;
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
  transform: scale(1.02);
}

.pricing-popular-pill {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 9999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.pricing-plan-badge {
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-plan-badge-gold {
  font-size: 0.76rem;
  font-weight: 700;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 8px 0 6px 0;
}

.pricing-subtitle {
  font-size: 0.86rem;
  color: #94a3b8;
  margin: 0 0 18px 0;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-amount .currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: #93c5fd;
}

.pricing-amount .price {
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.pricing-amount .period {
  font-size: 0.9rem;
  color: #94a3b8;
}

.pricing-calc-badge {
  font-size: 0.78rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 20px;
}

.pricing-features-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-features-list li {
  font-size: 0.9rem;
  color: #cbd5e1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.btn-pricing-secondary {
  width: 100%;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-pricing-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.btn-pricing-primary {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: 1px solid rgba(147, 197, 253, 0.4);
  border-radius: 12px;
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-pricing-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
}

.pricing-guarantee-box {
  max-width: 760px;
  margin: 0 auto;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.guarantee-icon {
  font-size: 1.6rem;
}

.guarantee-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #cbd5e1;
}

/* 9. FAQ ACCORDION */
.landing-faq-container {
  max-width: 800px;
}

.landing-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #111a2e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.35);
  background: #132039;
}

.faq-question {
  padding: 18px 22px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-arrow {
  font-size: 0.8rem;
  color: #60a5fa;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 22px 20px 22px;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-answer p {
  margin: 0;
}

/* 10. BANNER FINAL */
.landing-final-cta {
  padding: 80px 0;
  background: radial-gradient(circle at 50% 50%, #172a54 0%, #090e1a 80%);
}

.final-cta-card {
  text-align: center;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(15, 23, 42, 0.6));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 24px;
  padding: 60px 30px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.final-cta-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 14px 0;
}

.final-cta-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  margin: 0 0 32px 0;
}

.final-cta-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.final-cta-note {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
}

/* 11. FOOTER */
.landing-footer {
  background: #060911;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 60px 0 36px 0;
  color: #94a3b8;
}

.landing-footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.2fr;
  gap: 36px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-tagline {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #64748b;
  margin: 0;
}

.footer-copy {
  font-size: 0.78rem;
  color: #475569;
  margin: 8px 0 0 0;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 6px 0;
}

.footer-links-col a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-links-col a:hover {
  color: #38bdf8;
}

.footer-ssl-badge {
  font-size: 0.76rem;
  color: #34d399;
  margin-top: 6px;
}

.btn-footer-login {
  padding: 10px 16px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: 8px;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-footer-login:hover {
  background: rgba(37, 99, 235, 0.3);
  color: #ffffff;
}

.footer-help-text {
  font-size: 0.75rem;
  color: #64748b;
  margin: 6px 0 0 0;
}

/* 12. POPUP MODAL FLOTANTE DE LOGIN / REGISTRO */
.landing-auth-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(4, 7, 15, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  animation: fadeIn 0.25s ease;
}

.landing-auth-modal-backdrop.hidden {
  display: none !important;
}

.landing-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: auto;
}

.landing-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}

.landing-modal-close:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Responsive Breakpoints para la Landing Page */
@media (max-width: 992px) {
  .landing-hero-title {
    font-size: 2.4rem;
  }
  .landing-vs-grid,
  .landing-pricing-grid,
  .landing-steps-row,
  .mockup-kanban-board {
    grid-template-columns: 1fr;
  }
  .landing-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .landing-footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .landing-nav-links {
    display: none;
  }
  .landing-hero-title {
    font-size: 1.85rem;
  }
  .landing-hero-subtitle {
    font-size: 0.98rem;
  }
  .landing-hero-trust-bar {
    gap: 16px;
    font-size: 0.78rem;
  }
  .landing-features-grid {
    grid-template-columns: 1fr;
  }
  .landing-footer-inner {
    grid-template-columns: 1fr;
  }
  .btn-hero-cta {
    width: 100%;
    justify-content: center;
  }
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* Estilos de la tarjeta de autenticación */
.auth-gate-card {
  background: #111a2e;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 24px;
  padding: 32px 28px 24px 28px;
  max-width: 440px;
  width: 100%;
  margin: auto;
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 50px rgba(37, 99, 235, 0.18);
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-gate-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-gate-logo-badge {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 8px 16px rgba(37, 99, 235, 0.35));
}

.auth-gate-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-gate-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 6px 0;
  letter-spacing: -0.03em;
}

.auth-gate-subtitle {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.4;
}

.gate-nav-tabs {
  display: flex;
  background: rgba(10, 15, 29, 0.8);
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  gap: 6px;
  margin-bottom: 22px;
}

.gate-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.gate-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.gate-tab-btn.active {
  color: #ffffff;
  background: #2563eb;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.gate-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gate-auth-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.gate-auth-form .form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
}

.gate-auth-form .form-control {
  background: #090e1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 13px 15px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  outline: none !important;
  transition: all 0.2s ease !important;
}

.gate-auth-form .form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
  background: #0d1527 !important;
}

.trial-pill-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  font-size: 0.84rem;
  text-align: left;
}

.trial-pill-banner strong {
  color: #ffffff;
}

.gate-pricing-hint {
  font-size: 0.78rem;
  color: #94a3b8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.18);
  padding: 8px 12px;
  border-radius: 8px;
  line-height: 1.4;
  text-align: left;
}

.gate-auth-form .btn-lg {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
  margin-top: 4px;
}

.gate-auth-form .btn-lg:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.gate-form-helper {
  text-align: center;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 4px;
}

.gate-form-helper a {
  color: #38bdf8;
  font-weight: 600;
  text-decoration: underline;
}

.gate-features-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 500;
}

.benefit-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: rgba(15, 22, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.benefit-item span {
  font-size: 1.4rem;
  line-height: 1;
}

.benefit-item strong {
  display: block;
  font-size: 0.95rem;
  color: #ffffff;
  margin-bottom: 2px;
}

.benefit-item p {
  font-size: 0.82rem;
  color: #94a3b8;
  margin: 0;
}

.auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.auth-gate-actions .btn-lg {
  padding: 14px 20px;
  font-size: 1.05rem;
  font-weight: 700;
}

.auth-gate-footer {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #64748b;
}

/* Adaptaciones específicas para el tema claro */
[data-theme="light"] .brand-title {
  color: #0f172a;
}

[data-theme="light"] .app-header {
  background: var(--bg-header);
}

[data-theme="light"] .mobile-bottom-nav {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: #e2e8f0;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .mobile-nav-fab {
  border-color: #ffffff;
}

[data-theme="light"] .kanban-col {
  background: rgba(241, 245, 249, 0.7);
  border-color: #e2e8f0;
}

[data-theme="light"] .modal-box {
  background: #ffffff;
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .modal-header,
[data-theme="light"] .modal-footer {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .modal-title-group h2,
[data-theme="light"] .supplier-card-title,
[data-theme="light"] .help-card-step h4,
[data-theme="light"] .mode-tab-content strong {
  color: #0f172a;
}

[data-theme="light"] .clients-table th,
[data-theme="light"] .supplier-table th {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="light"] .clients-table td,
[data-theme="light"] .supplier-table td {
  color: #334155;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .supplier-info-grid {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .supplier-info-val {
  color: #0f172a;
}

[data-theme="light"] .help-card-step {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .help-welcome-banner {
  background: #eff6ff;
  border-color: #bfdbfe;
}

[data-theme="light"] .help-welcome-banner strong {
  color: #1e3a8a;
}

[data-theme="light"] .help-welcome-banner p {
  color: #1e40af;
}

[data-theme="light"] .help-step-content ul {
  color: #334155;
}

[data-theme="light"] .suppliers-title-group h2,
[data-theme="light"] .clients-title-group h2 {
  color: #0f172a;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  color: #0f172a !important;
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] select option {
  color: #0f172a !important;
  background-color: #ffffff !important;
}

[data-theme="light"] .input-group label {
  color: #334155 !important;
}

[data-theme="light"] .section-label {
  color: #475569 !important;
}

/* Adaptación integral de Mi Negocio, Pestañas y Componentes en Modo Claro */
[data-theme="light"] .header-nav-tabs {
  background: #e2e8f0;
  border-color: #cbd5e1;
}

[data-theme="light"] .nav-tab {
  color: #475569;
}

[data-theme="light"] .nav-tab:hover {
  color: #0f172a;
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-tab.active {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="light"] .settings-subtabs-bar {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .subtab-btn {
  color: #64748b;
}

[data-theme="light"] .subtab-btn:hover {
  color: #0f172a;
  background: #e2e8f0;
}

[data-theme="light"] .subtab-btn.active {
  background: #2563eb;
  color: #ffffff;
}

[data-theme="light"] .settings-card-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 10px 25px -5px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .auth-profile-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .profile-meta h3 {
  color: #0f172a;
}

[data-theme="light"] .profile-email {
  color: #64748b;
}

[data-theme="light"] .theme-switch-row {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .theme-switch-title {
  color: #0f172a;
}

[data-theme="light"] .fares-panel-title {
  color: #0f172a;
}

[data-theme="light"] .fares-table-container {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .fares-table th {
  background: #f1f5f9;
  color: #475569;
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .fares-table td {
  border-bottom-color: #e2e8f0;
}

[data-theme="light"] .fares-table input,
[data-theme="light"] .fares-table select {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .input-group input,
[data-theme="light"] .input-group select,
[data-theme="light"] .input-group textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .form-control:hover,
[data-theme="light"] .input-group input:hover,
[data-theme="light"] .input-group select:hover,
[data-theme="light"] .input-group textarea:hover {
  border-color: #94a3b8 !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .input-group input:focus,
[data-theme="light"] .input-group select:focus,
[data-theme="light"] .input-group textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .form-group label,
[data-theme="light"] .input-group label {
  color: #334155 !important;
  font-weight: 600;
}

[data-theme="light"] .btn-secondary {
  background: #f1f5f9;
  color: #1e293b;
  border-color: #cbd5e1;
}

[data-theme="light"] .btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .btn-danger-soft {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
}

[data-theme="light"] .btn-danger-soft:hover {
  background: #fecaca;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: manipulation;
}

/* Container */
.app-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px 20px 40px;
}

@media (max-width: 768px) {
  .app-container {
    padding: 12px 14px calc(76px + env(safe-area-inset-bottom, 16px));
  }
}

/* Header Principal Responsive */
.app-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(12, 17, 29, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  margin: -16px -20px 22px;
  padding: 12px 20px;
  transition: all 0.2s ease;
}

@media (max-width: 768px) {
  .app-header {
    margin: -12px -14px 16px;
    padding: 10px 14px;
  }
}

.header-main-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-text-container {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  overflow: hidden;
  position: relative;
}

.custom-brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 2px;
}

.custom-brand-logo.hidden,
#settings-logo-preview-img.hidden,
#settings-logo-preview-svg.hidden {
  display: none !important;
}

/* Subida de Logo en Ajustes */
.logo-upload-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  flex-wrap: wrap;
}

.logo-preview-square {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  background: #1e293b;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38bdf8;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-preview-square img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
  padding: 3px;
}

.logo-upload-controls {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.btn-file-picker {
  cursor: pointer;
  align-self: flex-start;
  padding: 8px 14px;
  font-size: 0.85rem;
}

.logo-url-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-url-row input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: #fff;
  font-size: 0.84rem;
  width: 100%;
}

.logo-url-row input:focus {
  border-color: #3b82f6;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  line-height: 1.2;
  white-space: nowrap;
}

.brand-badges-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.brand-badge-app {
  font-size: 0.68rem;
  color: #38bdf8;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-theme="light"] .brand-badge-app {
  color: #0284c7;
}

.badge-trial {
  font-size: 0.7rem;
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-license-active {
  font-size: 0.7rem;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

/* Modal de Bloqueo por Expiración de Prueba */
.modal-lock-box {
  max-width: 580px;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
}

.lock-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lock-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.lock-icon-circle {
  width: 56px;
  height: 56px;
  background: rgba(245, 158, 11, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.lock-hero h3 {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

.lock-hero p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  max-width: 460px;
}

/* Cuadrícula Comparativa de Planes: 9,99€ vs 79€ */
.plans-comparison-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 520px) {
  .plans-comparison-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-select-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.plan-select-card:hover {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.05);
}

.plan-select-card.active {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 0 1px #3b82f6;
}

.plan-select-card input[type="radio"] {
  display: none;
}

.plan-card-featured {
  border-color: rgba(245, 158, 11, 0.4);
}

.plan-card-featured.active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 1px #f59e0b;
}

.ribbon-best-value {
  position: absolute;
  top: -10px;
  right: 14px;
  background: #f59e0b;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.plan-card-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
  text-transform: uppercase;
}

.pricing-card-highlight {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.plan-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-num {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
}

.price-period {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.plan-note {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: #e2e8f0;
}

.btn-stripe-pay {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #635bff !important;
  color: #fff !important;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.4);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn-stripe-pay:hover {
  background: #5348ec !important;
  transform: translateY(-1px);
}

.stripe-logo-s {
  background: #fff;
  color: #635bff;
  font-weight: 900;
  font-size: 0.9rem;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.stripe-secure-notice {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 8px;
}

.demo-test-links {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

.demo-btn-group {
  display: flex;
  gap: 10px;
}

.demo-link {
  font-size: 0.76rem;
  color: #60a5fa;
  text-decoration: underline;
}

[data-theme="light"] .lock-hero h3,
[data-theme="light"] .price-num {
  color: #0f172a;
}

[data-theme="light"] .pricing-card-highlight {
  background: #f8fafc;
  border-color: #cbd5e1;
}

[data-theme="light"] .plan-features {
  color: #334155;
}

@media (max-width: 640px) {
  .brand-title {
    font-size: 1.02rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand-badge-app {
    display: none;
  }
}

/* Navegación central (Desktop y Tablet) */
.header-desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.header-nav-tabs {
  display: inline-flex;
  background: rgba(21, 29, 48, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}

.nav-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.nav-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-tab.active {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.45);
}

/* Ocultar tabs en móvil para dar paso al Bottom Bar nativo de app */
@media (max-width: 860px) {
  .header-desktop-nav {
    display: none;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Botón de Ayuda Discreto */
.btn-help-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.btn-help-icon:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .btn-settings-header .action-label {
    display: none;
  }
  .btn-settings-header {
    padding: 8px 12px;
  }
  #btn-quick-new .action-label {
    font-size: 0.84rem;
  }
  #btn-quick-new {
    padding: 8px 12px;
  }
  .btn-help-icon {
    width: 34px;
    height: 34px;
  }
}

/* Modal de Guía Rápida de Ayuda */
.modal-help-wide {
  max-width: 780px !important;
}

.help-guide-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(88vh - 140px);
  overflow-y: auto;
  padding-right: 4px;
}

.help-welcome-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(56, 189, 248, 0.12));
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.help-welcome-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.help-welcome-banner strong {
  font-size: 1.05rem;
  color: #fff;
  display: block;
  margin-bottom: 3px;
}

.help-welcome-banner p {
  font-size: 0.86rem;
  color: #cbd5e1;
  line-height: 1.45;
}

.help-grid-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.help-card-step {
  background: rgba(21, 29, 48, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.2s ease;
}

.help-card-step:hover {
  border-color: #3b82f6;
  background: var(--bg-card-hover);
}

.help-step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

.help-step-content {
  flex: 1;
}

.help-step-content h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.help-step-content p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 6px;
}

.help-step-content ul {
  font-size: 0.82rem;
  color: #cbd5e1;
  padding-left: 18px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.help-tip-text {
  font-size: 0.78rem !important;
  color: #38bdf8 !important;
  background: rgba(56, 189, 248, 0.08);
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #38bdf8;
  margin-top: 6px;
}

/* Barra de Navegación Inferior Nativa (PWA / Mobile Bottom Navigation Bar) */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(12, 17, 29, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border-subtle);
  padding: 6px 12px calc(6px + env(safe-area-inset-bottom, 8px));
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.45);
}

@media (max-width: 860px) {
  .mobile-bottom-nav {
    display: flex;
  }
}

.mobile-nav-item {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 6px 8px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 58px;
  text-decoration: none;
}

.mobile-nav-item .mob-nav-icon {
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.mobile-nav-item .mob-nav-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: #38bdf8;
}

.mobile-nav-item.active .mob-nav-icon {
  transform: scale(1.12);
}

.mobile-nav-item.active .mob-nav-label {
  color: #38bdf8;
  font-weight: 700;
}

/* FAB Central Flotante para Crear Pedido en Móvil */
.mobile-nav-fab {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  border: 3px solid #0c111d;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-top: -20px;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.mobile-nav-fab:active {
  transform: scale(0.92);
}

.app-view.hidden {
  display: none !important;
}

/* Directorio de Clientes View */
.clients-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.clients-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.clients-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.clients-controls-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.clients-total-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.clients-total-badge strong {
  color: #38bdf8;
  font-size: 1rem;
}

.clients-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.clients-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.clients-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-subtle);
}

.clients-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: #cbd5e1;
  vertical-align: middle;
}

.clients-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.client-table-name {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
  display: block;
}

.client-table-cif {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.client-cat-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-block;
}

.cat-pill-PARTICULAR { background: rgba(148, 163, 184, 0.15); color: #94a3b8; }
.cat-pill-HOSTELERIA { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.cat-pill-CONSTRUCCION { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.cat-pill-INDUSTRIA { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.cat-pill-COLEGIOS_PEÑAS { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.client-picaje-tag {
  font-family: monospace;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.client-orders-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
}

.client-actions-group {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.picaje-box-section {
  background: rgba(56, 189, 248, 0.05);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
}

.picaje-cell-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.picaje-sub-specs {
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.3;
}

.picaje-file-btn {
  font-size: 0.72rem;
  color: #38bdf8;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.picaje-file-btn:hover {
  color: #7dd3fc;
}

/* Agrupador de Proveedores (Mayoristas / Fábrica) */
.suppliers-view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}

.suppliers-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

.suppliers-title-group p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 700px;
}

.suppliers-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.supplier-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.supplier-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
}

.supplier-stat-card .stat-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.1;
}

.supplier-stat-card .stat-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.supplier-stat-card.highlight {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(16, 185, 129, 0.08);
}

.supplier-stat-card.highlight .stat-num {
  color: #34d399;
}

.supplier-filters-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.supplier-search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: #fff;
  font-size: 0.88rem;
  width: 280px;
  outline: none;
}

.supplier-search-input:focus {
  border-color: #3b82f6;
}

.supplier-table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.supplier-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.supplier-table th {
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
  color: var(--text-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
}

.supplier-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: #cbd5e1;
  vertical-align: middle;
}

.supplier-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.supplier-badge {
  font-weight: 700;
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.supplier-ROLY { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border: 1px solid rgba(59, 130, 246, 0.3); }
.supplier-VELILLA { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.3); }
.supplier-PORTWEST { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }
.supplier-CALZADO_PROV { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border: 1px solid rgba(20, 184, 166, 0.3); }

.sizes-breakdown-tag {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  font-family: monospace;
  font-weight: 600;
  color: #fbbf24;
}

.status-ordered-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.ordered-PENDIENTE { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.ordered-PEDIDO { background: rgba(16, 185, 129, 0.15); color: #34d399; }

/* Sub-pestañas de proveedores */
.suppliers-subtabs-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

.suppliers-panel.hidden {
  display: none !important;
}

/* Tarjetas de Directorio de Proveedores */
.suppliers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.supplier-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.2s ease;
  position: relative;
}

.supplier-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.supplier-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.supplier-card-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.supplier-card-category {
  font-size: 0.8rem;
  color: #94a3b8;
  display: block;
}

.supplier-card-actions {
  display: flex;
  gap: 6px;
}

.supplier-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.82rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.supplier-info-item {
  display: flex;
  flex-direction: column;
}

.supplier-info-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
}

.supplier-info-val {
  color: #e2e8f0;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supplier-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.82rem;
}

.supplier-whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 5px 10px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.supplier-whatsapp-btn:hover {
  background: #25d366;
  color: #000;
}

.supplier-portal-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.supplier-portal-link:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.18s ease-in-out;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.pulse-btn {
  animation: subtle-pulse 3s infinite;
}

@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 4px 20px rgba(59, 130, 246, 0.6); }
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: #3b82f6;
}

.btn-danger-outline {
  background: transparent;
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger-outline:hover {
  background: var(--accent-red-bg);
  border-color: #ef4444;
}

.btn-whatsapp {
  background-color: var(--whatsapp-color);
  color: #0b2212;
  font-weight: 700;
  padding: 12px 18px;
  width: 100%;
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  color: #000;
  transform: translateY(-1px);
}

.btn-whatsapp-secondary {
  background: var(--whatsapp-bg);
  color: #4ade80;
  border: 1px solid rgba(37, 211, 102, 0.3);
  padding: 10px 16px;
  width: 100%;
}

.btn-whatsapp-secondary:hover {
  background: rgba(37, 211, 102, 0.2);
}

/* Metrics Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-3px);
  border-color: #3b82f6;
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}

.metric-card.metric-urgent::before { background: #ef4444; }
.metric-card.metric-workshop::before { background: #3b82f6; }
.metric-card.metric-ready::before { background: #10b981; }
.metric-card.metric-pending-pay::before { background: #f59e0b; }

.metric-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(148, 163, 184, 0.08);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.metric-card:hover .metric-icon {
  transform: scale(1.08);
}

.metric-info {
  display: flex;
  flex-direction: column;
}

.metric-value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

.metric-label {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.metric-urgent .metric-value { color: #ef4444; }
.metric-workshop .metric-value { color: #2563eb; }
.metric-ready .metric-value { color: #10b981; }
.metric-pending-pay .metric-value { color: #d97706; }

[data-theme="dark"] .metric-urgent .metric-value { color: #f87171; }
[data-theme="dark"] .metric-workshop .metric-value { color: #60a5fa; }
[data-theme="dark"] .metric-ready .metric-value { color: #34d399; }
[data-theme="dark"] .metric-pending-pay .metric-value { color: #fbbf24; }

/* Controls and Filters */
.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 860px) {
  .controls-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  flex: 1;
  max-width: 480px;
  color: var(--text-muted);
  position: relative;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}

.btn-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
}

.btn-clear:hover { color: #fff; }

.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar { display: none; }

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
}

.pill:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: #94a3b8;
}

.pill.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

/* Kanban Board Layout */
.kanban-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 680px) {
  .kanban-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .kanban-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kanban-col {
  background: rgba(21, 29, 48, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.col-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-title h3 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-main);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.status-pendiente .status-dot { background-color: var(--accent-amber); box-shadow: 0 0 8px var(--accent-amber); }
.status-proceso .status-dot { background-color: var(--accent-blue); box-shadow: 0 0 8px var(--accent-blue); }
.status-listo .status-dot { background-color: var(--accent-green); box-shadow: 0 0 8px var(--accent-green); }
.status-entregado .status-dot { background-color: #94a3b8; }

.badge-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  overflow-y: auto;
  max-height: calc(100vh - 300px);
  padding-right: 2px;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 768px) {
  .kanban-col {
    min-height: auto;
  }
  .cards-list {
    max-height: none;
    overflow-y: visible;
  }
}

/* Kanban Order Card */
.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: all 0.18s ease-in-out;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.order-card:hover {
  transform: translateY(-2px);
  border-color: #475569;
  background: var(--bg-card-hover);
  box-shadow: var(--shadow-md);
}

.order-card.is-urgent {
  border-left: 4px solid #ef4444;
}

.order-card.is-ready-to-notify {
  border-left: 4px solid #10b981;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
}

.tag-ARREGLO { background: rgba(245, 158, 11, 0.12); color: #b45309; border: 1px solid rgba(245, 158, 11, 0.28); }
.tag-BORDADO { background: rgba(168, 85, 247, 0.12); color: #7e22ce; border: 1px solid rgba(168, 85, 247, 0.28); }
.tag-ROLY_LABORAL { background: rgba(37, 99, 235, 0.12); color: #1d4ed8; border: 1px solid rgba(37, 99, 235, 0.28); }
.tag-CALZADO { background: rgba(13, 148, 136, 0.12); color: #0f766e; border: 1px solid rgba(13, 148, 136, 0.28); }

[data-theme="dark"] .tag-ARREGLO { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
[data-theme="dark"] .tag-BORDADO { background: rgba(168, 85, 247, 0.15); color: #c084fc; border-color: rgba(168, 85, 247, 0.35); }
[data-theme="dark"] .tag-ROLY_LABORAL { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.35); }
[data-theme="dark"] .tag-CALZADO { background: rgba(20, 184, 166, 0.15); color: #2dd4bf; border-color: rgba(20, 184, 166, 0.35); }

.card-due-badge {
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.due-late { color: #f87171; font-weight: 700; }
.due-today { color: #fbbf24; font-weight: 700; }
.due-normal { color: var(--text-muted); }

.card-client {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.client-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-heading);
}

.client-phone-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.15);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  line-height: 1.45;
  font-weight: 500;
}

[data-theme="light"] .card-desc {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #1e293b;
}

.card-details-extra {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.card-location-tag {
  font-size: 0.76rem;
  font-weight: 600;
  color: #0284c7;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}

[data-theme="dark"] .card-location-tag {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.3);
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.price-pill {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.price-pending {
  color: #d97706;
}

[data-theme="dark"] .price-pending {
  color: #fbbf24;
}

.price-paid {
  color: #10b981;
}

.card-quick-actions {
  display: flex;
  gap: 8px;
}

.btn-card-icon {
  background: var(--bg-card-hover);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-card-icon:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

.btn-card-icon.wa {
  color: #25d366;
}

.btn-card-icon.wa:hover {
  background: var(--whatsapp-color);
  color: #000;
  border-color: var(--whatsapp-color);
  box-shadow: 0 3px 8px rgba(37, 211, 102, 0.35);
}

/* Empty State */
.empty-col-msg {
  text-align: center;
  padding: 30px 10px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* Bloqueo del scroll de fondo cuando hay un modal abierto */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 16px;
  overflow: hidden;
  overscroll-behavior: contain;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-box {
  background: #111827;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  height: 88vh;
  max-height: 88vh;
  overflow: hidden;
  animation: modal-enter 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-box form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
  height: 100%;
}

@keyframes modal-enter {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.modal-pretitle {
  font-size: 0.78rem;
  color: #60a5fa;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modal-title-group h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-top: 2px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
}

.modal-close:hover { color: #fff; }

.modal-body {
  padding: 20px;
  overflow-y: auto !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
  flex: 1 1 auto;
  min-height: 0;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  background: #111827;
  flex-shrink: 0;
}

/* Adaptación responsive para pantallas móviles / PWA */
@media (max-width: 640px) {
  .modal-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .modal-box {
    max-width: 100%;
    width: 100%;
    height: 94vh;
    max-height: 94vh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
  }

  .modal-header {
    padding: 14px 18px;
  }

  .modal-body {
    padding: 16px;
    gap: 16px;
  }

  .modal-footer {
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 12px));
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.35);
  }

  .modal-footer .btn {
    flex: 1;
    justify-content: center;
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

/* Form Styles */
/* Selector de Modo: Taller vs Proveedor */
.order-mode-selector {
  margin-bottom: 6px;
}

.order-mode-tabs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .order-mode-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

.mode-tab-btn {
  position: relative;
  cursor: pointer;
}

.mode-tab-btn input {
  position: absolute;
  opacity: 0;
}

.mode-tab-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.18s ease;
  height: 100%;
}

.mode-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.mode-tab-content strong {
  font-size: 0.92rem;
  color: #fff;
  display: block;
}

.mode-tab-content small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.25;
  display: block;
  margin-top: 2px;
}

.mode-tab-btn input:checked + .mode-tab-content {
  background: rgba(37, 99, 235, 0.15);
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.35);
}

.mode-specific-section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mode-specific-section.hidden {
  display: none;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 520px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  position: relative;
  cursor: pointer;
}

.cat-card input {
  position: absolute;
  opacity: 0;
}

.cat-content {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  transition: all 0.15s ease;
  height: 100%;
}

.cat-emoji {
  font-size: 1.5rem;
}

.cat-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.cat-content small {
  font-size: 0.7rem;
  color: var(--text-dim);
  line-height: 1.2;
}

.cat-card input:checked + .cat-content {
  border-color: #3b82f6;
  background: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.4);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.two-cols {
  grid-template-columns: 1fr;
}

.three-cols {
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .two-cols { grid-template-columns: repeat(2, 1fr); }
  .three-cols { grid-template-columns: repeat(3, 1fr); }
}

.form-group,
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.form-group label,
.input-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  opacity: 0.95;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

.form-control,
.input-group input,
.input-group select,
.input-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
select.form-control {
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  padding: 10px 14px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  outline: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:hover,
.input-group input:hover,
.input-group select:hover,
.input-group textarea:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="number"]:hover,
input[type="date"]:hover {
  border-color: #3b82f6;
}

.form-control:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="date"]:focus {
  border-color: #2563eb;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18), 0 1px 2px rgba(0, 0, 0, 0.06);
}

.form-control::placeholder,
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.75;
}

.input-group select option,
.form-control option {
  background-color: var(--bg-card);
  color: var(--text-main);
  padding: 8px;
}

.balance-preview-row {
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px;
  align-items: center;
  border: 1px dashed var(--border-subtle);
}

.balance-display {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.balance-display span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.balance-display strong {
  font-size: 1.3rem;
  color: #fbbf24;
}

/* Detail Modal Specifics */
.modal-detail {
  max-width: 560px;
}

.badge-category {
  font-size: 0.75rem;
  font-weight: 700;
  color: #60a5fa;
  text-transform: uppercase;
}

.detail-hero {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.detail-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.detail-status-bar {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  white-space: nowrap;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 480px) {
  .detail-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.detail-block {
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detail-block.full-width {
  grid-column: 1 / -1;
}

.info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.phone-link-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-link-row strong {
  font-size: 1.05rem;
  letter-spacing: 0.03em;
}

.btn-icon-link {
  font-size: 0.8rem;
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.price-summary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.88rem;
}

.highlight-pending {
  color: #fbbf24;
  margin-top: 4px;
  font-weight: 700;
}

.info-text {
  font-size: 0.9rem;
  color: #e2e8f0;
}

.notes-text {
  font-style: italic;
  color: #cbd5e1;
}

.whatsapp-action-panel {
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px solid rgba(37, 211, 102, 0.3);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-icon {
  color: var(--whatsapp-color);
  flex-shrink: 0;
}

.wa-title {
  font-weight: 700;
  color: #fff;
  font-size: 0.95rem;
}

.wa-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.wa-buttons-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-footer {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-left-actions,
.footer-right-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.location-badge {
  font-size: 0.95rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

.card-location-tag {
  font-size: 0.74rem;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  padding: 2px 6px;
  border-radius: 4px;
  display: inline-block;
  margin-top: 2px;
}

/* Panel de Ajustes y Configuración "Mi Negocio" */
.settings-view-header {
  margin-bottom: 24px;
}

.settings-title-group h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.02em;
  margin: 0 0 6px 0;
}

.settings-title-group p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.settings-subtabs-bar {
  display: flex;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 6px;
  gap: 8px;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.subtab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.subtab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.subtab-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.settings-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.settings-actions-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.settings-tab-panel.hidden {
  display: none !important;
}

.fares-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.fares-table-container {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow-y: auto;
  max-height: 380px;
}

.fares-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fares-table th {
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1;
}

.fares-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.fares-table input,
.fares-table select {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 8px;
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.fares-table input:focus,
.fares-table select:focus {
  border-color: #3b82f6;
}

.btn-del-fare {
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-del-fare:hover {
  background: rgba(239, 68, 68, 0.2);
}

/* Modal Éxito / Resguardo Inmediato */
.modal-success-receipt {
  max-width: 520px;
}

.receipt-preview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.receipt-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticket-pill {
  background: #3b82f6;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.due-pill {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fbbf24;
}

.receipt-client-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.receipt-desc-highlight {
  font-size: 0.95rem;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px 10px;
  border-radius: 6px;
}

.receipt-financial-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 8px;
  margin-top: 4px;
  font-size: 0.88rem;
}

.receipt-loc-row {
  font-size: 0.82rem;
  color: #38bdf8;
}

.receipt-prompt-text {
  font-size: 0.92rem;
  color: var(--text-muted);
  text-align: center;
  margin: 6px 0 2px;
}

.receipt-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.btn-receipt-action {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 14px 18px;
  gap: 14px;
  border-radius: var(--radius-md);
}

.btn-icon-big {
  font-size: 1.8rem;
  line-height: 1;
}

.btn-text-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.btn-text-group strong {
  font-size: 0.95rem;
  color: #fff;
}

.btn-whatsapp .btn-text-group strong {
  color: #000;
}

.btn-text-group small {
  font-size: 0.76rem;
  opacity: 0.85;
}

/* Oculto en pantalla, visible al imprimir */
.print-only {
  display: none;
}

/* Estilos de impresión de ticket / resguardo de prenda */
@media print {
  body * {
    visibility: hidden;
  }

  .print-only,
  .print-only * {
    visibility: visible;
  }

  .print-only {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 78mm; /* Ancho estándar de impresora de tickets térmica de mostrador */
    padding: 10px;
    font-family: monospace, sans-serif;
    color: #000;
    background: #fff;
    font-size: 12px;
    line-height: 1.35;
  }

  .ticket-header {
    text-align: center;
    border-bottom: 1px dashed #000;
    padding-bottom: 8px;
    margin-bottom: 8px;
  }

  .ticket-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
  }

  .ticket-num {
    font-size: 18px;
    font-weight: bold;
    margin: 6px 0;
  }

  .ticket-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
  }

  .ticket-section {
    border-bottom: 1px dashed #000;
    padding: 6px 0;
  }

  .ticket-total {
    font-size: 14px;
    font-weight: bold;
  }

  .ticket-terms {
    font-size: 9px;
    text-align: justify;
    margin-top: 8px;
    color: #333;
  }
}

/* ==========================================================================
   ESTILOS PREMIUM PARA SISTEMA DE AUTENTICACIÓN / CRUD DE INICIO DE SESIÓN
   ========================================================================== */
.modal-auth-box {
  max-width: 460px;
  width: 92%;
  background: #111a2e;
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 20px;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.15);
  overflow: hidden;
  animation: modalScaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-auth-box .modal-header {
  padding: 22px 26px 18px 26px;
  background: rgba(15, 23, 42, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-auth-box .modal-pretitle {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #38bdf8;
  margin-bottom: 4px;
}

.modal-auth-box .modal-title-group h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.02em;
}

.auth-tabs {
  display: flex;
  background: rgba(10, 15, 29, 0.7);
  padding: 6px;
  margin: 18px 24px 0 24px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  gap: 6px;
}

.auth-tab-btn {
  flex: 1;
  padding: 10px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.auth-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.auth-tab-btn.active {
  color: #ffffff;
  background: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  font-weight: 700;
}

.auth-body {
  padding: 20px 26px 26px 26px;
}

.auth-body .form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.auth-body .form-group label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #cbd5e1;
}

.auth-body .form-control {
  background: #090e1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 0.95rem !important;
  font-family: inherit !important;
  outline: none !important;
  transition: all 0.2s ease !important;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.auth-body .form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  background: #0d1527 !important;
}

.auth-body .form-control::placeholder {
  color: #64748b;
}

.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-alert.error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.auth-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

.auth-hero-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 20px;
}

.auth-hero-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.auth-hero-badge strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.auth-hero-badge p {
  margin: 2px 0 0 0;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.auth-profile-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.profile-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.profile-meta h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.profile-email {
  display: block;
  font-size: 0.84rem;
  color: #94a3b8;
  margin-top: 2px;
}

.profile-status-badge-wrap {
  margin-top: 8px;
}

.btn-danger-soft {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.88rem;
}

.btn-danger-soft:hover {
  background: rgba(239, 68, 68, 0.25);
  color: #ffffff;
  border-color: #ef4444;
}

.btn-auth-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
}

.auth-body .btn-primary {
  padding: 13px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.auth-body .btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
  transform: translateY(-1px);
}

.auth-body .btn-block {
  width: 100%;
}

