/* ==========================================================================
   FLOWERCODE — COMMERCIAL LANDING PAGE STYLES
   Simple, humano, claro y orientado a negocios.
   ========================================================================== */

.page-main {
  padding-top: var(--header-height);
}

.section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

@media (min-width: 960px) {
  .section {
    padding: 96px 0;
  }
}

.section-white {
  background: var(--bg-surface);
}

.section-stone {
  background: var(--bg-muted);
}

/* ==========================================================================
   1. INICIO — INVITACIÓN COMERCIAL SIMPLE
   ========================================================================== */
.hero {
  padding: 56px 0 64px;
  border-top: none;
}

@media (min-width: 960px) {
  .hero {
    padding: 88px 0 84px;
  }
}

.hero-invite {
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.hero h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.65rem);
  line-height: 1.09;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
  text-wrap: balance;
}

.hero h1 .text-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: clamp(1.06rem, 1.45vw, 1.24rem);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 42px;
}

.hero-markets-box {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.hero-markets-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 12px;
}

.market-quick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-primary);
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.market-quick-btn span:last-child {
  color: var(--accent);
  font-weight: 500;
}

.market-quick-btn:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero-trust-row {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .hero-trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

.trust-item strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ==========================================================================
   2. EJEMPLOS EN VIVO POR MERCADO (CON RAZONAMIENTO)
   ========================================================================== */
.market-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.market-tab {
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-secondary);
  transition: all 0.2s ease;
}

.market-tab:hover {
  color: var(--ink-primary);
  border-color: var(--border-strong);
}

.market-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.sim-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scenario-banner {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scenario-banner-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.scenario-banner h3 {
  font-size: 1.25rem;
}

.scenario-banner p {
  font-size: 0.96rem;
  max-width: 82ch;
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
}

@media (min-width: 960px) {
  .sim-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: stretch;
  }

  .dialogue-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
}

.mesh-panel,
.dialogue-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 640px) {
  .mesh-panel,
  .dialogue-panel {
    padding: 24px;
  }
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.panel-head-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
}

.live-dot.is-paused {
  background: var(--warn);
}

.route-pill {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
}

.step-counter {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---- CSS GRID MESH + DYNAMIC SVG CONNECTORS (ZERO OVERLAP GUARANTEED) ---- */
.mesh-canvas {
  position: relative;
  background: var(--bg-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
}

@media (min-width: 560px) {
  .mesh-canvas {
    padding: 28px 24px;
  }
}

.mesh-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.mesh-edge {
  stroke: var(--border-strong);
  stroke-width: 1.75;
  stroke-dasharray: 5 5;
  transition: stroke 0.25s ease, stroke-width 0.25s ease;
}

.mesh-edge.is-active {
  stroke: var(--accent);
  stroke-width: 2.75;
  stroke-dasharray: 7 4;
  animation: meshEdgeFlow 1s linear infinite;
}

@keyframes meshEdgeFlow {
  from { stroke-dashoffset: 22; }
  to { stroke-dashoffset: 0; }
}

.mesh-signal {
  fill: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mesh-signal.is-visible {
  opacity: 1;
}

.mesh-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 18px;
}

@media (min-width: 560px) {
  .mesh-grid {
    gap: 54px 36px;
  }
}

.mesh-node {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mesh-node:hover {
  border-color: var(--accent);
}

.mesh-node-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.mesh-node-role {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.mesh-node-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink-muted);
}

.mesh-node-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.25;
}

.mesh-node.is-sender {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 6px 18px -6px rgba(29, 78, 216, 0.25);
}

.mesh-node.is-sender .mesh-node-badge {
  background: var(--accent);
  color: #ffffff;
}

.mesh-node.is-receiver {
  border-color: var(--ok);
  background: var(--ok-soft);
  box-shadow: 0 6px 18px -6px rgba(21, 128, 61, 0.22);
}

.mesh-node.is-receiver .mesh-node-badge {
  background: var(--ok);
  color: #ffffff;
}

.mesh-legend {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.mesh-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.legend-dot.is-sender { background: var(--accent); }
.legend-dot.is-receiver { background: var(--ok); }

.outcome-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--ok-soft);
  border: 1px solid var(--ok-border);
}

.outcome-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ok);
  margin-bottom: 4px;
}

.outcome-card strong {
  display: block;
  font-size: 1rem;
  color: var(--ink-primary);
  margin-bottom: 4px;
}

.outcome-card p {
  font-size: 0.9rem;
  color: var(--ink-secondary);
}

/* ---- DIALOGUE & REASONING LIST ---- */
.dialogue-viewport {
  position: relative;
}

.dialogue-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2px 6px 12px 2px;
  scroll-padding-top: 8px;
  scroll-padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(15, 23, 42, 0.2) transparent;
}

.dialogue-list::-webkit-scrollbar {
  width: 6px;
}

.dialogue-list::-webkit-scrollbar-track {
  background: transparent;
}

.dialogue-list::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

.dialogue-list::-webkit-scrollbar-thumb:hover {
  background: rgba(15, 23, 42, 0.34);
}

@media (min-width: 960px) {
  .dialogue-viewport {
    flex: 1 1 auto;
    min-height: 360px;
  }

  .dialogue-list {
    position: absolute;
    inset: 0;
    max-height: none;
    padding: 2px 8px 16px 2px;
  }
}

.dialogue-step {
  width: 100%;
  text-align: left;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.72;
}

.dialogue-step:hover {
  opacity: 1;
  border-color: var(--border-strong);
}

.dialogue-step.is-past {
  opacity: 0.88;
}

.dialogue-step.is-active {
  opacity: 1;
  background: var(--bg-surface);
  border-color: var(--accent);
  box-shadow: 0 8px 24px -10px rgba(29, 78, 216, 0.22);
}

.step-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.step-route {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.dialogue-step.is-active .step-route {
  color: var(--accent);
}

.step-purpose {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--bg-muted);
  color: var(--ink-secondary);
}

.dialogue-step.is-active .step-purpose {
  background: var(--accent-soft);
  color: var(--accent);
}

.step-reasoning {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  margin-bottom: 8px;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--ink-secondary);
}

.step-reasoning strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.step-message {
  font-size: 0.91rem;
  line-height: 1.55;
  color: var(--ink-primary);
}

/* ==========================================================================
   3. QUÉ HACEMOS (ENFOQUE COMERCIAL)
   ========================================================================== */
.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.value-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.value-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.value-icon svg {
  width: 20px;
  height: 20px;
}

.value-card h3 {
  font-size: 1.24rem;
}

.value-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.control-strip {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .control-strip {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

.control-col h3 {
  font-size: 1.08rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-badge {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.control-badge.is-auto { background: var(--accent); }
.control-badge.is-human { background: var(--ok); }

.control-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.control-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.93rem;
  color: var(--ink-secondary);
}

.control-list svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.control-col.is-human .control-list svg {
  color: var(--ok);
}

/* ==========================================================================
   4. CÓMO TRABAJAMOS (4 PASOS SIMPLES)
   ========================================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

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

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.step-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.step-card h3 {
  font-size: 1.14rem;
}

.step-card p {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ==========================================================================
   5. CONVERSEMOS (CONTACTO COMERCIAL SIMPLE)
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
  }
}

.contact-bullets {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-secondary);
}

.contact-bullets svg {
  width: 18px;
  height: 18px;
  color: var(--ok);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
}

@media (min-width: 640px) {
  .contact-panel {
    padding: 28px;
  }
}

.topic-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin-bottom: 10px;
}

.topic-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-pill {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-secondary);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.topic-pill:hover {
  border-color: var(--border-strong);
  color: var(--ink-primary);
}

.topic-pill[aria-pressed="true"] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
  font-weight: 600;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-page);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.channel-card:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.channel-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.channel-icon svg {
  width: 19px;
  height: 19px;
}

.channel-info {
  flex: 1;
  min-width: 0;
}

.channel-info strong {
  display: block;
  font-size: 0.98rem;
  color: var(--ink-primary);
}

.channel-info span {
  display: block;
  font-size: 0.84rem;
  color: var(--ink-secondary);
}

.channel-go {
  color: var(--ink-muted);
  font-weight: 600;
}
