/* Shell de navegación y modo vendedor — demo comercial pública */

.demo-chrome {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--demo-body-bg, #0b0b0b) 92%, transparent);
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.08));
}

body.demo-app {
  padding-top: 4.5rem;
  padding-bottom: 0;
}

body.demo-vendor-mode {
  padding-top: 5rem;
}

body.demo-controls-hidden {
  padding-top: 1rem;
}

.demo-chrome.is-collapsed {
  pointer-events: none;
}

.demo-chrome.is-collapsed .demo-chrome-bar,
.demo-chrome.is-collapsed .demo-chrome-progress,
.demo-chrome.is-collapsed .vendor-notes-panel {
  display: none;
}

.landing-header .header-toolbar.is-relocated {
  display: none !important;
}

.demo-chrome-progress {
  height: 3px;
  background: rgba(148, 163, 184, 0.15);
}

.demo-chrome-progress span {
  display: block;
  height: 100%;
  background: var(--primary, #e53935);
}

.demo-chrome-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.demo-chrome-left,
.demo-chrome-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.85rem;
  min-width: 0;
}

.demo-chrome-right {
  justify-content: flex-end;
  margin-left: auto;
}

.demo-theme-slot {
  display: flex;
  align-items: center;
}

.demo-theme-slot .theme-toggle,
.demo-chrome-theme {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: transparent;
  color: var(--text, #fff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.demo-chrome-home {
  font-weight: 600;
  color: var(--text, #fff);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.demo-chrome-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.demo-chrome-sections--mobile {
  display: none;
  width: 100%;
}

.demo-chrome-sec {
  text-decoration: none;
  color: var(--text-muted, #94a3b8);
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.demo-chrome-sec.is-active {
  color: var(--primary, #e53935);
  border-color: color-mix(in srgb, var(--primary, #e53935) 45%, transparent);
  background: color-mix(in srgb, var(--primary, #e53935) 12%, transparent);
}

.demo-chrome-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.demo-chrome-menu-toggle {
  display: none;
}

.demo-chrome-btn {
  appearance: none;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: transparent;
  color: var(--text, #fff);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.demo-chrome-btn--primary {
  background: var(--primary, #e53935);
  border-color: var(--primary, #e53935);
  color: #fff;
}

.demo-chrome-btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.demo-vendor-peek {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 2147483000;
  border: 0;
  border-radius: 999px;
  background: var(--primary, #e53935);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(229, 57, 53, 0.45);
  pointer-events: auto;
}

.demo-vendor-peek[hidden] {
  display: none !important;
}

.vendor-notes-panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
  max-height: 40vh;
  overflow: auto;
}

.vendor-notes-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.vendor-note-card {
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  background: var(--demo-glass, rgba(255, 255, 255, 0.04));
  margin-bottom: 0.65rem;
}

.vendor-note-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary, #e53935);
}

.vendor-note-label {
  margin: 0.55rem 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
}

.vendor-note-ask {
  color: var(--text, #fff);
  font-weight: 500;
}

.demo-hub {
  padding: 2.5rem 0 4rem;
}

.demo-hub-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .demo-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.demo-hub-card {
  border-radius: 1.5rem;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  background: var(--demo-glass, rgba(255, 255, 255, 0.04));
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  box-shadow: 0 20px 60px var(--shadow, rgba(0, 0, 0, 0.2));
  transition: transform 0.2s ease;
}

.demo-hub-card:hover {
  transform: translateY(-4px);
}

.demo-hub-card h2 {
  margin: 0.5rem 0;
  font-size: 1.35rem;
  font-weight: 600;
}

.demo-hub-card p {
  color: var(--text-muted, #94a3b8);
  flex-grow: 1;
  line-height: 1.55;
}

.demo-hub-card .btn-primary {
  align-self: flex-start;
  margin-top: 1rem;
}

.demo-disclaimer {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted, #94a3b8);
}

.phone-frame {
  width: min(320px, 100%);
  margin: 0 auto;
  border-radius: 2rem;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: #0f1218;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.phone-notch {
  height: 1.5rem;
  background: #000;
}

.phone-screen {
  padding: 1.1rem 1rem 1.4rem;
  min-height: 420px;
  color: #f8fafc;
}

.phone-screen h3 {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.phone-field {
  border-radius: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.55rem;
  font-size: 0.85rem;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.03);
}

.store-mock {
  font-size: 0.78rem;
}

.store-cart-bar {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.store-free {
  color: #86efac;
  font-weight: 600;
}

.store-limit {
  margin: 0 0 0.65rem;
  color: #94a3b8;
  font-size: 0.7rem;
}

.store-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.store-chip {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.2rem 0.55rem;
  font-size: 0.65rem;
  white-space: nowrap;
}

.store-chip--in {
  border-color: rgba(134, 239, 172, 0.45);
  color: #86efac;
}

.store-footnote {
  font-size: 0.8rem !important;
  opacity: 0.85;
}

.journey-layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .journey-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.journey-stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0 1.25rem;
}

.journey-step-dot {
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.72rem;
  cursor: pointer;
}

.journey-step-dot.is-active {
  background: color-mix(in srgb, var(--primary, #e53935) 18%, transparent);
  border-color: var(--primary, #e53935);
  color: var(--primary, #e53935);
}

.provider-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.provider-metric {
  border-radius: 1rem;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
  padding: 0.85rem;
  background: var(--demo-glass, rgba(255, 255, 255, 0.04));
}

.provider-metric span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
}

.provider-metric strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.2rem;
}

.is-hidden-vendor {
  display: none !important;
}

.demo-cta-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1rem;
}

.demo-cta-nav a {
  text-decoration: none;
  border: 1px solid var(--border, rgba(148, 163, 184, 0.35));
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  color: var(--text, #fff);
  font-size: 0.85rem;
}

@media (max-width: 1100px) {
  .demo-chrome-sections--desktop {
    display: none !important;
  }

  .demo-chrome-menu-toggle {
    display: inline-flex !important;
  }

  .demo-chrome-actions:not(.is-open) {
    display: none !important;
  }

  .demo-chrome-actions.is-open {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0.75rem;
    left: 0.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    border: 1px solid var(--border, rgba(148, 163, 184, 0.25));
    background: color-mix(in srgb, var(--demo-body-bg, #0b0b0b) 96%, transparent);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    z-index: 1210;
  }

  .demo-chrome-sections--mobile {
    display: flex;
    margin-top: 0.35rem;
  }

  .demo-chrome-bar {
    position: relative;
  }

  body.demo-app,
  body.demo-vendor-mode {
    padding-top: 4.75rem;
  }
}

@media (min-width: 1101px) {
  .demo-chrome-menu-toggle {
    display: none !important;
  }

  .demo-chrome-sections--mobile {
    display: none !important;
  }

  .demo-chrome-actions {
    display: flex !important;
    position: static;
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
  }
}
