/* ============================================================
   Visible Studio — flow.css
   Visible Flow (automatización). Banda tinta con red de nodos
   persimmon: el "punto" de la marca evolucionado a puntos que fluyen.
   Reutiliza los tokens de styles.css.
   ============================================================ */

.flow {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 9rem);
}
.flow__canvas, .flow__fallback { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.flow__fallback {
  background:
    radial-gradient(90% 70% at 82% 10%, rgba(217, 85, 46, .16), transparent 55%),
    radial-gradient(70% 65% at 12% 92%, rgba(217, 85, 46, .10), transparent 60%),
    var(--ink);
}
.flow__canvas { opacity: 0; transition: opacity 1s ease; }
.flow__canvas.is-ready { opacity: 1; }
.flow__inner { position: relative; z-index: 2; }

.flow__head { max-width: 42ch; }
.flow__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05;
  letter-spacing: -0.02em; color: var(--bone); margin-bottom: 1.1rem;
}
.flow__lead { color: var(--sand); font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.6; }

/* ---------- Diagrama: entra → entiende → actúa ---------- */
.flow__diagram {
  margin-top: clamp(2.6rem, 6vw, 4rem);
  display: flex; flex-direction: column; gap: 1rem; align-items: stretch;
}
.flow-stage { display: flex; flex-direction: column; gap: .65rem; flex: 1; }
.flow-stage__label {
  font-family: var(--font-display); font-weight: 500; font-size: .68rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--khaki); margin-bottom: .1rem;
}
.flow-chip {
  display: flex; align-items: center; gap: .55rem;
  background: rgba(245, 240, 230, .05); border: 1px solid rgba(217, 205, 182, .18);
  border-radius: 100px; padding: .72rem 1.1rem;
  font-family: var(--font-display); font-weight: 400; font-size: .98rem; color: var(--bone);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.flow-chip svg { flex: none; }
.flow-chip--out { border-left: 2px solid var(--persimmon); }
.flow-core {
  position: relative; text-align: center;
  background: rgba(217, 85, 46, .13); border: 1px solid rgba(217, 85, 46, .5);
  border-radius: var(--radius); padding: 1.35rem 1.2rem;
}
.flow-core strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; color: var(--bone); }
.flow-core span { display: block; color: var(--sand); font-size: .88rem; margin-top: .15rem; }
.flow-core__pulse {
  position: absolute; top: .9rem; right: .9rem; width: 9px; height: 9px; border-radius: 50%;
  background: var(--persimmon); box-shadow: 0 0 0 0 rgba(217, 85, 46, .6);
  animation: flowpulse 2s var(--ease) infinite;
}
@keyframes flowpulse {
  0% { box-shadow: 0 0 0 0 rgba(217, 85, 46, .55); }
  70% { box-shadow: 0 0 0 12px rgba(217, 85, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 85, 46, 0); }
}
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--persimmon); }
.flow-arrow::before { content: "\2193"; font-size: 1.5rem; line-height: 1; }

/* ---------- Capacidades ---------- */
.flow__caps { display: grid; gap: 1.1rem; margin-top: clamp(2.6rem, 6vw, 4rem); }
.flow-cap {
  background: rgba(245, 240, 230, .04); border: 1px solid rgba(217, 205, 182, .16);
  border-radius: var(--radius); padding: 1.7rem 1.6rem;
  transition: transform .4s var(--ease), border-color .4s var(--ease);
}
.flow-cap:hover { transform: translateY(-4px); border-color: rgba(217, 85, 46, .5); }
.flow-cap__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgba(217, 85, 46, .16); color: var(--persimmon); margin-bottom: 1rem;
}
.flow-cap h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; color: var(--bone); margin-bottom: .45rem; }
.flow-cap p { color: var(--sand); font-size: 1rem; line-height: 1.55; }

/* ---------- Oferta / cuenta clara ---------- */
.flow__offer {
  margin-top: clamp(2.6rem, 6vw, 4rem);
  background: rgba(245, 240, 230, .05); border: 1px solid rgba(217, 205, 182, .18);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 5vw, 3rem);
  display: grid; gap: 1.6rem;
}
.flow__offer .kicker--light { color: var(--khaki); }
.flow__offer-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 3.6vw, 2.1rem); line-height: 1.2; color: var(--bone); margin-bottom: .8rem; }
.flow__offer-text { color: var(--sand); font-size: 1.05rem; line-height: 1.6; max-width: 58ch; }
.flow__price { margin-top: 1.1rem; color: var(--sand-dark); font-size: 1rem; }
.flow__price strong { color: var(--bone); font-family: var(--font-display); font-weight: 700; }
.flow__offer .btn { align-self: start; }

/* ============================================================
   PÁGINA AUTOMATIZACIÓN (automatizacion.html)
   ============================================================ */

/* Nav siempre sólida sobre el hero oscuro */
.nav--solid {
  background: rgba(241, 236, 226, .9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(217, 205, 182, .8);
}

/* Hero de la página */
.flow-hero { min-height: 100svh; display: flex; align-items: center; }
.flow-hero__inner { padding-block: 8rem 4rem; width: 100%; }
.flow-hero__badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 500; font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sand); background: rgba(217, 85, 46, .16); border: 1px solid rgba(217, 85, 46, .4);
  padding: .4rem .9rem; border-radius: 100px; margin-bottom: 1.4rem;
}
.flow-hero__title {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--bone); margin-bottom: 1.4rem; max-width: 16ch;
}
.flow-hero__sub { color: var(--sand); font-size: clamp(1.1rem, 2.5vw, 1.4rem); line-height: 1.6; max-width: 44ch; }
.flow-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.2rem; }
.flow-hero__actions .btn--ghost { color: var(--bone); border-color: rgba(217, 205, 182, .3); }
.flow-hero__actions .btn--ghost:hover { color: var(--persimmon); border-color: var(--persimmon); }
.flow-hero .flow__diagram { margin-top: clamp(3rem, 7vw, 5rem); }

/* Banda oscura reutilizable (oferta) */
.flow--band { min-height: 0; }

/* Sección clara: para quién es (sectores) */
.sectors { display: grid; gap: 1.4rem; margin-top: 2.8rem; }
.sector {
  background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.sector:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.sector__art { aspect-ratio: 16 / 9; background: linear-gradient(150deg, var(--sand), var(--sand-dark)); border-bottom: 1px solid var(--sand-dark); }
.sector__art svg { width: 100%; height: 100%; display: block; }
.sector__body { padding: 1.6rem 1.6rem 1.8rem; }
.sector__body h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: .5rem; }
.sector__body p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.sector__win { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sand-dark); font-size: .95rem; color: var(--khaki-dark); display: flex; gap: .5rem; align-items: flex-start; }
.sector__win strong { color: var(--persimmon); font-family: var(--font-display); font-weight: 700; }

/* Responsive */
@media (min-width: 620px) {
  .flow__caps { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .flow__diagram { flex-direction: row; align-items: center; gap: 1.2rem; }
  .flow-arrow::before { content: "\2192"; }
  .flow__offer { grid-template-columns: 1.6fr auto; align-items: center; gap: 2.4rem; }
  .flow__offer .btn { align-self: center; }
}
