/* ═══════════════════════════════════════════════════════════
   BLUECODE STUDIOS — Landing Automatizaciones Empresariales
   Extiende styles.css + restaurantes.css
   ═══════════════════════════════════════════════════════════ */

/* ═══════════ HERO centrado ═══════════ */
.a-hero { justify-content: center; }
.a-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
}
.a-hero-glow { left: 50%; transform: translateX(-50%); }
.a-hero-title { font-size: clamp(32px, 4.4vw, 56px); }
.a-hero-desc { margin-left: auto; margin-right: auto; max-width: 700px; margin-bottom: 20px; }
.a-reinforce {
  font-family: var(--font-mono);
  font-size: clamp(12.5px, 1.5vw, 14.5px);
  letter-spacing: 0.04em;
  color: var(--fg-40);
  margin: 0 auto 40px;
  max-width: 640px;
}
.a-reinforce .grad { font-weight: 600; }

/* ═══════════ WORKFLOW (builder estilo n8n) ═══════════ */
.a-flow { border-top: 1px solid var(--border-subtle); }
.wf-window {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #0f0f0f;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  padding: 18px;
  max-width: 980px;
  margin: 0 auto;
}
.wf-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 16px;
}
.wf-bar-left { display: flex; align-items: center; gap: 14px; }
.wf-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  border-radius: 999px;
  padding: 5px 12px;
}
.wf-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2.4s ease-in-out infinite;
}
.wf-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-40);
}
.wf-canvas-outer {
  position: relative;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.015);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  overflow: hidden;
}
.wf-canvas {
  position: relative;
  width: 880px;
  height: 470px;
  transform-origin: 0 0;
}
.wf-svg {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  overflow: visible;
}
.wf-path {
  fill: none;
  stroke: url(#wfGrad);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.85;
}
.wf-mline { display: none; }

/* Nodos */
.wf-node {
  position: absolute;
  width: 220px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.wf-node:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }
.wf-node-head { display: flex; gap: 10px; align-items: flex-start; }
.wf-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.wf-icon svg { width: 17px; height: 17px; }
.wf-type {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-40);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1.5px 8px;
  margin-bottom: 5px;
}
.wf-node h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fg);
  line-height: 1.3;
}
.wf-node p {
  font-size: 11px;
  color: var(--fg-60);
  line-height: 1.55;
  margin-top: 9px;
}
/* Acentos por tipo de nodo */
.wf-green  { border-color: rgba(34, 197, 94, 0.4); }
.wf-green .wf-icon  { border-color: rgba(34, 197, 94, 0.4); background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.wf-blue   { border-color: rgba(61, 116, 242, 0.45); }
.wf-blue .wf-icon   { border-color: rgba(61, 116, 242, 0.45); background: rgba(61, 116, 242, 0.12); color: var(--blue-light); }
.wf-amber  { border-color: rgba(245, 158, 11, 0.4); }
.wf-amber .wf-icon  { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.1); color: #fbbf24; }
.wf-violet { border-color: rgba(167, 139, 250, 0.4); }
.wf-violet .wf-icon { border-color: rgba(167, 139, 250, 0.4); background: rgba(167, 139, 250, 0.1); color: #a78bfa; }
.wf-cyan   { border-color: rgba(34, 211, 238, 0.4); }
.wf-cyan .wf-icon   { border-color: rgba(34, 211, 238, 0.4); background: rgba(34, 211, 238, 0.1); color: #22d3ee; }

/* Pie del builder */
.wf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  padding: 10px 16px;
  margin-top: 16px;
}
.wf-stats { display: flex; align-items: center; gap: 20px; }
.wf-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-60);
}
.wf-stat b { color: var(--blue-light); font-weight: 600; }
.wf-dot { width: 6px; height: 6px; border-radius: 50%; }
.wf-dot-green { background: var(--green); }
.wf-dot-blue { background: var(--blue-mid); }
.wf-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-30);
}

/* ═══════════ CALLOUT: ¿tu necesidad no está aquí? ═══════════ */
.a-callout {
  position: relative;
  overflow: hidden;
  max-width: 980px;
  margin: 40px auto 0;
  border: 1px solid rgba(107, 157, 255, 0.35);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px circle at 50% 0%, rgba(61, 116, 242, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  padding: 44px 32px;
  text-align: center;
}
.a-callout h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.a-callout p {
  font-size: clamp(15px, 1.7vw, 16.5px);
  color: var(--fg-60);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.a-callout strong { color: var(--fg); font-weight: 600; }

/* ═══════════ CASOS DE ESTUDIO ═══════════ */
.a-cases { border-top: 1px solid var(--border-subtle); }
.a-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.a-case {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.005));
  padding: 28px 26px;
  transition: border-color 0.35s, transform 0.45s var(--ease-out);
}
.a-case:hover { border-color: rgba(107, 157, 255, 0.35); transform: translateY(-4px); }
.a-case-industry {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
  border: 1px solid rgba(107, 157, 255, 0.35);
  background: rgba(61, 116, 242, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}
.a-case h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.a-case-block { margin-bottom: 16px; }
.a-case-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-40);
  margin-bottom: 6px;
}
.a-case-block p {
  font-size: 14px;
  color: var(--fg-60);
  line-height: 1.65;
}
.a-case-results {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.a-case-results li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--fg-60);
  line-height: 1.55;
}
.a-case-results li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.a-case-quote {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
  font-style: italic;
  color: var(--blue-pale);
  line-height: 1.65;
}
.a-case-quote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--fg-40);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .a-cases-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}

@media (max-width: 768px) {
  /* Workflow: columna vertical con línea de progreso */
  .wf-canvas {
    width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px 14px 18px 34px;
  }
  .wf-node { position: static !important; width: 100%; }
  .wf-svg { display: none; }
  .wf-mline {
    display: block;
    position: absolute;
    left: 16px; top: 22px; bottom: 22px;
    width: 2px;
    background: var(--border);
    border-radius: 999px;
  }
  .wf-mline-progress {
    width: 100%;
    height: 100%;
    background: var(--grad);
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(61, 116, 242, 0.6);
    transform: scaleY(0);
    transform-origin: top;
  }
  .wf-window { padding: 14px; }
  .wf-label-right { display: none; }
  .a-callout { padding: 32px 22px; }
}
