/* ============================================
   APIQO — Estilos principales
   Marca: Magenta #E91E8C + Cyan-Blue gradient
   Fuente: Nautica Rounded (local) + Inter
   ============================================ */

/* ---------- FUENTES LOCALES APIQO ---------- */
@font-face {
  font-family: 'Nautica Rounded';
  src: url('../assets/fonts/nautica-rounded.regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nautica Rounded';
  src: url('../assets/fonts/nautica-rounded.semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Nautica Rounded';
  src: url('../assets/fonts/nautica-rounded.extrabold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- RESET & BASE ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Marca APIQO */
  --pink:       #E91E8C;
  --pink-lt:    #FF6BAD;
  --cyan:       #06B6D4;
  --blue:       #1E90FF;
  --blue-dk:    #1565C0;

  /* Fondos */
  --bg:         #ffffff;
  --bg-soft:    #F8F9FB;
  --bg-card:    #FFFFFF;
  --bg-dark:    #0A0A0F;
  --bg-dark2:   #111118;

  /* Textos */
  --text-dark:  #0A0A0F;
  --text-mid:   #3D3D4E;
  --text-soft:  #6E6E80;
  --text-hint:  #9999AA;

  /* Bordes */
  --border:     rgba(0,0,0,0.07);
  --border-dk:  rgba(255,255,255,0.08);

  /* Gradientes de marca */
  --grad-brand: linear-gradient(135deg, #E91E8C 0%, #06B6D4 60%, #1E90FF 100%);
  --grad-pink:  linear-gradient(135deg, #E91E8C, #FF6BAD);
  --grad-blue:  linear-gradient(135deg, #1E90FF, #06B6D4);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --shadow-pink:0 8px 30px rgba(233,30,140,0.25);
  --shadow-blue:0 8px 30px rgba(30,144,255,0.2);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-brand: 'Nautica Rounded', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; }
input, select, textarea, button { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="150"] { transition-delay: 0.15s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="450"] { transition-delay: 0.45s; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-pink);
}
.btn-primary:hover {
  transform: scale(1.04) translateY(-1px);
  box-shadow: 0 12px 36px rgba(233,30,140,0.35);
}

.btn-ghost {
  background: rgba(10,10,15,0.06);
  color: var(--text-dark);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: rgba(10,10,15,0.1);
  transform: scale(1.03);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 1.5px solid rgba(233,30,140,0.35);
}
.btn-outline:hover {
  background: rgba(233,30,140,0.06);
  border-color: var(--pink);
  transform: scale(1.03);
}

.btn-nav {
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  padding: 9px 18px;
  box-shadow: none;
}
.btn-nav:hover { transform: scale(1.03); box-shadow: var(--shadow-pink); }

.btn-full { width: 100%; justify-content: center; }

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-soft);
  transition: var(--transition);
  font-weight: 500;
}
.nav-links a:hover { color: var(--text-dark); background: rgba(0,0,0,0.05); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 110px 80px 80px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #E91E8C, transparent 70%);
  top: -100px;
  left: -100px;
}
.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #1E90FF, transparent 70%);
  bottom: -100px;
  right: -50px;
}

.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(233,30,140,0.08);
  border: 1px solid rgba(233,30,140,0.2);
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 980px;
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-brand);
  font-size: clamp(36px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 520px;
}

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

.hero-proof {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
  font-weight: 500;
}
.proof-item svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Dashboard mock */
.hero-visual { position: relative; z-index: 1; }

.dashboard-mock {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(233,30,140,0.06);
  overflow: hidden;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.mock-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red    { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green  { background: #28C840; }
.mock-title {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 500;
}

.mock-body { padding: 20px; }

.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.kpi {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  border: 1px solid var(--border);
}
.kpi-num {
  display: block;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -0.03em;
}
.kpi-label {
  display: block;
  font-size: 10px;
  color: var(--text-soft);
  margin: 2px 0 4px;
  line-height: 1.3;
}
.kpi-trend {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 980px;
}
.kpi-trend.up   { background: rgba(48,209,88,0.12);  color: #15803D; }
.kpi-trend.warn { background: rgba(255,149,0,0.12);  color: #B45309; }
.kpi-alert .kpi-num { color: #FF9500; }

.mock-list { }
.mock-list-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-hint);
  margin-bottom: 10px;
}
.mock-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.mock-row:last-child { border-bottom: none; }
.mock-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.mock-status.active { background: #30D158; }
.mock-status.warn   { background: #FF9500; }
.mock-text { flex: 1; color: var(--text-mid); }
.mock-time { font-size: 11px; color: var(--text-hint); }

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}
.scroll-indicator {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(0,0,0,0.15);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--pink);
  border-radius: 2px;
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0%  { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100%{ transform: translateY(0); opacity: 1; }
}

/* ---------- TRUST BAND ---------- */
.trust-band {
  padding: 36px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-hint);
  margin-bottom: 20px;
  font-weight: 600;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.trust-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hint);
  transition: color var(--transition);
  letter-spacing: -0.01em;
}
.trust-logo:hover { color: var(--text-soft); }

/* ---------- SECTIONS COMMON ---------- */
.section { padding: 96px 0; }

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pink);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-brand);
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- QUE ES ========== */
.what-section { background: var(--bg); }

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.what-text h2 {
  font-family: var(--font-brand);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 14px 0 18px;
}
.what-text p {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}
.what-text .btn { margin-top: 8px; }

.what-analogy {
  display: flex;
  align-items: center;
  gap: 14px;
}

.analogy-card {
  flex: 1;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}
.analogy-card.after {
  border-color: rgba(48,209,88,0.25);
  background: #F0FFF4;
}

.analogy-icon { width: 48px; height: 48px; margin: 0 auto 14px; }
.analogy-icon svg { width: 100%; height: 100%; }

.analogy-card h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-dark);
}
.analogy-card p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 12px;
}

.analogy-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
}
.analogy-tag.bad  { background: rgba(255,69,58,0.1);  color: #DC2626; }
.analogy-tag.good { background: rgba(48,209,88,0.15); color: #15803D; }

.analogy-arrow { flex-shrink: 0; }
.analogy-arrow svg { width: 40px; height: 40px; }

/* ---------- PARA QUIEN ---------- */
.audience-section { background: var(--bg-soft); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 22px;
  transition: var(--transition);
}
.audience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.15);
}

.audience-icon { width: 48px; height: 48px; margin-bottom: 18px; }
.audience-icon svg { width: 100%; height: 100%; border-radius: 14px; }

.audience-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.audience-card > p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 14px;
}

.audience-quote {
  font-size: 13px;
  color: var(--text-mid);
  font-style: italic;
  border-left: 3px solid var(--pink);
  padding-left: 12px;
  line-height: 1.55;
}

/* ---------- CASOS DE USO ---------- */
.usecases-section { background: var(--bg); }

.usecase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--border);
}
.usecase-row:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}
.usecase-row.reverse { direction: rtl; }
.usecase-row.reverse > * { direction: ltr; }

.usecase-num {
  font-family: var(--font-brand);
  font-size: 56px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.04em;
}

.usecase-text h3 {
  font-family: var(--font-brand);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}

.usecase-text p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 14px;
}
.usecase-text strong { color: var(--text-dark); }

.usecase-impact { margin-top: 6px; }
.impact-tag {
  display: inline-block;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 980px;
}

/* UI Cards de casos de uso */
.usecase-card-ui {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.uicard-label {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 13px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
}

.uicard-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mid);
}
.uicard-search svg { width: 18px; height: 18px; flex-shrink: 0; }

.uicard-result { padding: 16px 18px; }
.result-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.result-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 980px;
}
.result-badge.active {
  background: rgba(48,209,88,0.12);
  color: #15803D;
}
.result-time {
  font-size: 11px;
  color: var(--text-hint);
  margin-left: auto;
}

.result-rows { display: flex; flex-direction: column; gap: 8px; }
.result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.result-row:last-child { border-bottom: none; }
.result-row span { color: var(--text-soft); }
.result-row strong { color: var(--text-dark); }

.uicard-form-preview { padding: 14px 18px; }
.form-prev-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.form-prev-row:last-child { border-bottom: none; }
.form-prev-row span { color: var(--text-soft); }
.form-prev-row strong { color: var(--text-dark); }

.uicard-cta-preview { padding: 14px 18px; border-top: 1px solid var(--border); }
.cta-result {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #15803D;
  margin-bottom: 4px;
}
.cta-result svg { width: 20px; height: 20px; flex-shrink: 0; }
.cta-sub { font-size: 11px; color: var(--text-hint); }

/* Timeline */
.uicard-timeline { padding: 16px 18px; display: flex; flex-direction: column; gap: 0; }
.tl-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 16px;
  position: relative;
}
.tl-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--bg-soft);
  margin-top: 2px;
}
.tl-item.done .tl-dot {
  background: #30D158;
  border-color: #30D158;
}
.tl-item.active .tl-dot {
  background: var(--pink);
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(233,30,140,0.15);
}
.tl-item > div { display: flex; flex-direction: column; gap: 2px; }
.tl-item strong { font-size: 13px; color: var(--text-dark); }
.tl-item span   { font-size: 11px; color: var(--text-hint); }
.tl-item.pending strong { color: var(--text-hint); }

/* ---------- STEPS SECTION ---------- */
.steps-section { background: var(--bg-soft); }

.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step {
  flex: 1;
  padding: 32px 24px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.step:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.2);
  transform: translateY(-4px);
}

.step-icon { width: 40px; height: 40px; margin-bottom: 14px; }
.step-icon svg { width: 100%; height: 100%; border-radius: 12px; }

.step-arrow {
  padding: 0 10px;
  color: var(--text-hint);
  font-size: 20px;
  flex-shrink: 0;
  align-self: center;
  margin-top: -8px;
}

.step-number {
  font-family: var(--font-brand);
  font-size: 38px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
}

/* ---------- BENEFITS ---------- */
.benefits-section { background: var(--bg-dark); }
.benefits-section .section-tag { color: var(--cyan); }
.benefits-section .section-title { color: #f5f5f7; }

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

.benefit-card {
  background: var(--bg-dark2);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: var(--transition);
}
.benefit-card:hover {
  border-color: rgba(233,30,140,0.2);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.benefit-icon { width: 36px; height: 36px; margin-bottom: 16px; }
.benefit-icon svg { width: 100%; height: 100%; }

.benefit-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #f5f5f7;
  margin-bottom: 10px;
}
.benefit-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}

/* ---------- CONTACT SECTION ---------- */
.contact-section { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-brand);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin: 12px 0 16px;
}

.contact-info > p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}

.contact-details { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(233,30,140,0.08);
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--pink); }

.contact-item strong { display: block; font-size: 14px; color: var(--text-dark); font-weight: 700; }
.contact-item span  { font-size: 14px; color: var(--text-soft); }

/* FORM */
.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-row--6-4 { grid-template-columns: 3fr 2fr; }
.form-row--4-6 { grid-template-columns: 2fr 3fr; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
}
.required { color: var(--pink); }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text-dark);
  transition: var(--transition);
  outline: none;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-hint); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(233,30,140,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239999AA' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: var(--bg-soft);
  padding-right: 36px;
  cursor: pointer;
}

.form-group textarea { resize: vertical; min-height: 120px; }

.char-count {
  font-size: 11px;
  color: var(--text-hint);
  text-align: right;
  margin-top: 4px;
}

.field-error {
  font-size: 12px;
  color: #DC2626;
  min-height: 16px;
  display: block;
}

/* CAPTCHA */
.captcha-group { max-width: 380px; }
.captcha-row { display: flex; align-items: center; gap: 14px; }
.captcha-question {
  background: rgba(233,30,140,0.06);
  border: 1px solid rgba(233,30,140,0.2);
  border-radius: var(--radius-sm);
  padding: 11px 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  font-family: monospace;
  min-width: 110px;
  text-align: center;
}
.captcha-row input { max-width: 120px; }

/* CHECKBOX */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-soft);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] { display: none; }
.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  transition: var(--transition);
  margin-top: 1px;
  background: var(--bg-soft);
}
.checkbox-label input:checked + .checkmark {
  background: var(--grad-brand);
  border-color: var(--pink);
}
.checkbox-label input:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}
.checkbox-label a { color: var(--pink); text-decoration: underline; }

/* HONEYPOT */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  pointer-events: none;
}

/* FORM FEEDBACK */
.form-feedback {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
}
.form-feedback.success {
  background: rgba(48,209,88,0.1);
  border: 1px solid rgba(48,209,88,0.3);
  color: #15803D;
}
.form-feedback.error-msg {
  background: rgba(220,38,38,0.08);
  border: 1px solid rgba(220,38,38,0.25);
  color: #DC2626;
}

/* SPIN */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-loader:not([hidden]) { display: inline-flex; align-items: center; gap: 8px; }
.btn-loader svg { width: 16px; height: 16px; }

/* ---------- PHONE FIELD ---------- */
.phone-input-wrap {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
  transition: border-color 0.2s;
  width: 100%;
}
.phone-input-wrap:focus-within { border-color: var(--pink); }
.phone-input-wrap.error        { border-color: #DC2626; box-shadow: 0 0 0 3px rgba(220,38,38,0.1); }

/* Selector de prefijo — todo en alta especificidad para ganar a .form-group rules */
.phone-input-wrap .phone-prefix {
  flex: 0 0 auto;
  width: 82px !important;
  border: none !important;
  border-right: 1.5px solid var(--border) !important;
  box-shadow: none !important;
  background: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 6px center !important;
  padding: 11px 22px 11px 10px !important;
  font-size: 14px;
  color: var(--text-dark);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none !important;
}

/* Input numérico — ídem */
.phone-input-wrap .phone-num {
  flex: 1;
  min-width: 0;
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 11px 14px !important;
  font-size: 14px;
  color: var(--text-dark);
  outline: none !important;
  width: auto !important;
}
.phone-input-wrap .phone-num::placeholder { color: var(--text-hint); }

/* Focus: evitar que .form-group input:focus pinte fondo blanco */
.phone-input-wrap:focus-within .phone-prefix,
.phone-input-wrap:focus-within .phone-num { background: transparent !important; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-dark);
  padding: 56px 0 32px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-dk);
}
.footer-logo-img { height: 40px; width: auto; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer-top p { font-size: 14px; color: rgba(255,255,255,0.4); max-width: 340px; line-height: 1.6; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  transition: color var(--transition);
}
.footer-col a:hover { color: rgba(255,255,255,0.7); }

.footer-bottom {
  border-top: 1px solid var(--border-dk);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ---------- AI AGENTS SECTION ---------- */
.ai-section { background: var(--bg-dark); overflow: hidden; }
.ai-section .section-tag  { color: var(--cyan); }
.ai-section .section-title{ color: #f5f5f7; }
.ai-section .section-desc { color: rgba(255,255,255,0.5); }

.ai-explainer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 72px;
  padding-bottom: 72px;
  border-bottom: 1px solid var(--border-dk);
}

.ai-explain-text h3 {
  font-family: var(--font-brand);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f5f5f7;
  margin-bottom: 18px;
  line-height: 1.2;
}
.ai-explain-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 14px;
}
.ai-explain-text .btn { margin-top: 10px; }

/* Agent flow diagram */
.agent-flow {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.agent-node {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  width: 100%;
}
.agent-node-icon {
  width: 32px;
  height: 32px;
  background: rgba(233,30,140,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-node-icon svg { width: 16px; height: 16px; color: var(--pink); }

.agent-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 4px 0;
  width: 100%;
}
.connector-line {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, rgba(233,30,140,0.4), rgba(30,144,255,0.4));
}

.agent-brain {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}
.agent-brain svg { width: 44px; height: 44px; }
.brain-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.agent-actions {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(233,30,140,0.15);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.agent-action {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.agent-action svg { width: 18px; height: 18px; flex-shrink: 0; }

/* AI cases */
.ai-cases-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.ai-case {
  background: var(--bg-dark2);
  border: 1px solid var(--border-dk);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ai-case:hover {
  border-color: rgba(233,30,140,0.25);
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.ai-case-icon { width: 48px; height: 48px; }
.ai-case-icon svg { width: 100%; height: 100%; border-radius: 14px; }

.ai-case h4 {
  font-size: 15px;
  font-weight: 700;
  color: #f5f5f7;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.ai-case p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 1.65;
  flex: 1;
}
.ai-case-stat {
  font-size: 11px;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  border-top: 1px solid var(--border-dk);
  padding-top: 10px;
}

/* ---------- TOOLS SECTION ---------- */
.tools-section {
  background: var(--bg-soft);
  padding: 64px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.tools-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}

.tools-text .section-tag { display: block; margin-bottom: 14px; }
.tools-text h3 {
  font-family: var(--font-brand);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.2;
}
.tools-text p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.75;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.tool-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  transition: var(--transition);
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.15);
}

.tool-logo { width: 40px; height: 40px; }
.tool-logo svg { width: 100%; height: 100%; border-radius: 10px; }

.tool-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}
.tool-desc {
  font-size: 11px;
  color: var(--text-hint);
}

/* ---------- TRUST BAND — monday logo ---------- */
.trust-logo.monday svg { height: 22px; width: auto; }

/* ---------- QUE HACEMOS ---------- */
.what-section { background: var(--bg); }

.what-intro {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}
.what-intro .section-title { margin-bottom: 20px; }
.what-desc {
  font-size: 16px;
  color: var(--text-soft);
  line-height: 1.75;
  margin-bottom: 12px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pillar-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: var(--transition);
}
.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.pillar-icon { width: 44px; height: 44px; margin-bottom: 18px; }
.pillar-icon svg { width: 100%; height: 100%; border-radius: 12px; }

.pillar-card h3 {
  font-family: var(--font-brand);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  color: var(--text-dark);
}
.pillar-card.big h3 { background: var(--grad-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.pillar-card p { font-size: 14px; color: var(--text-soft); line-height: 1.7; }

/* ---------- COMO LO HACEMOS ---------- */
.howto-section { background: var(--bg-soft); }

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

.howto-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: var(--transition);
}
.howto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.15);
}
.howto-card-wide {
  grid-column: 1 / -1;
}

.howto-icon { width: 48px; height: 48px; margin-bottom: 14px; }
.howto-icon svg { width: 100%; height: 100%; border-radius: 14px; }

.howto-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.howto-card p { font-size: 14px; color: var(--text-soft); line-height: 1.65; }

/* ---------- INDUSTRIAS ---------- */
.industries-section { background: var(--bg); }

.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.industry-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  transition: var(--transition);
}
.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.15);
}

.industry-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.industry-icon svg { width: 100%; height: 100%; border-radius: 16px; }

.industry-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.industry-card > p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.industry-tags span {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 980px;
  background: rgba(233,30,140,0.08);
  color: var(--pink);
  border: 1px solid rgba(233,30,140,0.15);
}

/* ---------- CASOS DE USO ---------- */
.cases-section { background: var(--bg-soft); }

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

.case-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(233,30,140,0.15);
}

.case-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.case-icon { width: 40px; height: 40px; flex-shrink: 0; }
.case-icon svg { width: 100%; height: 100%; border-radius: 12px; }

.case-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-top: 4px;
}

.case-card > p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.case-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}

.case-before, .case-after {
  border-radius: var(--radius-md);
  padding: 14px;
}
.case-before { background: rgba(220,38,38,0.04); border: 1px solid rgba(220,38,38,0.1); }
.case-after  { background: rgba(48,209,88,0.05); border: 1px solid rgba(48,209,88,0.15); }

.ca-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 980px;
  margin-bottom: 8px;
}
.ca-label.before { background: rgba(220,38,38,0.1); color: #B91C1C; }
.ca-label.after  { background: rgba(48,209,88,0.15); color: #15803D; }

.case-before p, .case-after p {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ---------- PARTNER MONDAY ---------- */
/* ========== FLUJOS REALES ========== */
.flujos-section {
  background: var(--bg-soft);
}

.flujos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.flujo-card {
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  transition: box-shadow 0.25s, transform 0.25s;
}
.flujo-card:hover {
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  transform: translateY(-4px);
}

.flujo-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 980px;
  margin: 16px 16px 0;
}
.n8n-badge  { background: rgba(233,30,140,0.10); color: var(--pink); border: 1px solid rgba(233,30,140,0.25); }
.make-badge { background: rgba(6,182,212,0.10);  color: var(--cyan); border: 1px solid rgba(6,182,212,0.30); }

.flujo-img-wrap {
  position: relative;
  margin: 12px 16px 0;
  border-radius: 10px;
  overflow: hidden;
  background: #F0F1F3;
  aspect-ratio: 16 / 8;
}

.flujo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}
.flujo-card:hover .flujo-img { transform: scale(1.03); }

/* Placeholder cuando no hay imagen */
.flujo-img[src="assets/flujo-n8n-1.png"]:not([complete]),
.flujo-img-wrap:has(.flujo-img[src$=".png"]:not([complete])) {
  background: linear-gradient(120deg, #F0F1F3 0%, #E4E6EA 100%);
}

.flujo-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Placeholder cuando la imagen no existe todavía */
.flujo-img-wrap.flujo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F3F4F6 0%, #E9EBF0 100%);
  gap: 10px;
}
.flujo-img-wrap.flujo-placeholder::before {
  content: '🖼';
  font-size: 36px;
  opacity: 0.4;
}
.flujo-img-wrap.flujo-placeholder .flujo-img-overlay {
  background: none;
  color: #9CA3AF;
  font-size: 11px;
  text-align: center;
  bottom: auto;
  top: 50%;
  transform: translateY(24px);
}
.flujo-img-wrap.flujo-placeholder .flujo-img-overlay::before {
  content: 'Agrega tu screenshot en assets/';
  display: block;
  font-weight: 500;
}

.flujo-meta {
  padding: 18px 20px 22px;
}
.flujo-meta h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.flujo-meta p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

.flujo-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.flujo-stats span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 980px;
  padding: 4px 12px;
}

.flujos-cta {
  text-align: center;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.flujos-cta p {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
}

@media (max-width: 768px) {
  .flujos-grid { grid-template-columns: 1fr; }
}

/* KPI highlight */
.kpi-highlight .kpi-num {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .industries-grid  { grid-template-columns: repeat(2, 1fr); }
  .benefits-grid    { grid-template-columns: repeat(2, 1fr); }
  .howto-grid       { grid-template-columns: repeat(2, 1fr); }
  .ai-cases-grid    { grid-template-columns: repeat(2, 1fr); }
  .tools-inner      { grid-template-columns: 1fr; gap: 40px; }
  .tools-grid       { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 90px 28px 60px;
    text-align: center;
  }
  .hero-visual { order: -1; max-width: 540px; margin: 0 auto; }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-proof { align-items: center; }

  .pillars-grid     { grid-template-columns: 1fr; }
  .cases-grid       { grid-template-columns: 1fr; }
  .contact-grid     { grid-template-columns: 1fr; gap: 40px; }
  .steps-grid       { flex-direction: column; }
  .step-arrow       { transform: rotate(90deg); align-self: center; }
  .footer-grid      { grid-template-columns: repeat(3, 1fr); max-width: 100%; }
  .partner-inner    { flex-direction: column; text-align: center; padding: 32px 24px; }
  .partner-logo-wrap{ justify-content: center; }
  .ai-explainer     { grid-template-columns: 1fr; gap: 40px; }
  .ai-cases-grid    { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .btn-nav { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a {
    padding: 13px 16px;
    font-size: 15px;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
  }
  .nav-links.open a:hover { background: var(--bg-soft); }

  .industries-grid  { grid-template-columns: 1fr; }
  .howto-grid       { grid-template-columns: 1fr; }
  .benefits-grid    { grid-template-columns: 1fr; }
  .cases-grid       { grid-template-columns: 1fr; }
  .case-before-after{ grid-template-columns: 1fr; }
  .ai-cases-grid    { grid-template-columns: 1fr; }
  .ai-explainer     { grid-template-columns: 1fr; }
  .tools-grid       { grid-template-columns: repeat(2, 1fr); }
  .form-row,
  .form-row--6-4,
  .form-row--4-6    { grid-template-columns: 1fr; }
  .contact-form-wrap{ padding: 24px; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .mock-kpis        { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero { padding: 90px 20px 60px; }
  .container { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .trust-logos { gap: 24px; }
}

/* ============================================
   EFECTOS DINÁMICOS — Animaciones y profundidad
   ============================================ */

/* ---------- ORBS ANIMADOS (hero) ---------- */
@keyframes orbDrift {
  0%,  100% { transform: translate(0,   0)   scale(1);    }
  33%        { transform: translate(40px, -30px) scale(1.08); }
  66%        { transform: translate(-25px, 35px) scale(0.94); }
}
.orb-1 { animation: orbDrift 16s ease-in-out infinite; }
.orb-2 { animation: orbDrift 20s ease-in-out infinite reverse; animation-delay: -7s; }

/* ---------- DASHBOARD FLOTA ---------- */
@keyframes floatMock {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
.dashboard-mock { animation: floatMock 7s ease-in-out infinite; }

/* ---------- GRADIENT TEXT ANIMADO ---------- */
@keyframes gradientShift {
  0%   { background-position: 0%   50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0%   50%; }
}
.gradient-text {
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

/* ---------- SECTION-TAG SHIMMER ---------- */
@keyframes tagPulse {
  0%, 100% { box-shadow: 0 0  0   0   rgba(233,30,140,0); }
  50%       { box-shadow: 0 0 14px 3px rgba(233,30,140,0.18); }
}
.section-tag { animation: tagPulse 4s ease-in-out infinite; }
/* En secciones oscuras el tag tiene color cyan */
.ai-section .section-tag {
  animation-name: tagPulseCyan;
}
@keyframes tagPulseCyan {
  0%, 100% { box-shadow: 0 0  0   0   rgba(6,182,212,0); }
  50%       { box-shadow: 0 0 14px 3px rgba(6,182,212,0.25); }
}

/* ---------- STATUS DOTS con halo ---------- */
@keyframes statusHalo {
  0%  { box-shadow: 0 0 0 0   rgba(48,209,88,0.5); }
  70% { box-shadow: 0 0 0 6px rgba(48,209,88,0); }
  100%{ box-shadow: 0 0 0 0   rgba(48,209,88,0); }
}
.mock-status.active { animation: statusHalo 2s ease-out infinite; }

/* ---------- STAGGER en grillas de tarjetas ---------- */
/* Howto */
.howto-grid .howto-card:nth-child(1) { transition-delay: 0s; }
.howto-grid .howto-card:nth-child(2) { transition-delay: 0.09s; }
.howto-grid .howto-card:nth-child(3) { transition-delay: 0.18s; }
.howto-grid .howto-card:nth-child(4) { transition-delay: 0.27s; }
.howto-grid .howto-card:nth-child(5) { transition-delay: 0.36s; }
.howto-grid .howto-card:nth-child(6) { transition-delay: 0.45s; }
.howto-grid .howto-card:nth-child(7) { transition-delay: 0.54s; }

/* AI cases */
.ai-cases-grid .ai-case:nth-child(2) { transition-delay: 0.1s; }
.ai-cases-grid .ai-case:nth-child(3) { transition-delay: 0.2s; }
.ai-cases-grid .ai-case:nth-child(4) { transition-delay: 0.3s; }

/* Flujos */
.flujos-grid .flujo-card:nth-child(2) { transition-delay: 0.12s; }
.flujos-grid .flujo-card:nth-child(3) { transition-delay: 0.24s; }
.flujos-grid .flujo-card:nth-child(4) { transition-delay: 0.36s; }

/* Tools */
.tools-grid .tool-card:nth-child(2) { transition-delay: 0.07s; }
.tools-grid .tool-card:nth-child(3) { transition-delay: 0.14s; }
.tools-grid .tool-card:nth-child(4) { transition-delay: 0.21s; }
.tools-grid .tool-card:nth-child(5) { transition-delay: 0.28s; }
.tools-grid .tool-card:nth-child(6) { transition-delay: 0.35s; }

/* ---------- GLOW en hover de tarjetas ---------- */
.howto-card:hover {
  border-color: rgba(233,30,140,0.20) !important;
  box-shadow: 0 8px 32px rgba(233,30,140,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
}
.ai-case:hover {
  border-color: rgba(6,182,212,0.35) !important;
  box-shadow: 0 12px 40px rgba(6,182,212,0.18), 0 2px 10px rgba(0,0,0,0.4) !important;
}
.case-card:hover {
  border-color: rgba(30,144,255,0.2) !important;
  box-shadow: 0 10px 36px rgba(30,144,255,0.12), 0 2px 8px rgba(0,0,0,0.06) !important;
}
.flujo-card:hover {
  box-shadow: 0 10px 40px rgba(233,30,140,0.10), 0 2px 10px rgba(0,0,0,0.08) !important;
}
.tool-card:hover {
  border-color: rgba(233,30,140,0.20) !important;
  box-shadow: 0 6px 24px rgba(233,30,140,0.10), 0 2px 6px rgba(0,0,0,0.05) !important;
}

/* ---------- ORBS AMBIENTALES en sección IA ---------- */
.ai-section { position: relative; }
.ai-section::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(233,30,140,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbDrift 18s ease-in-out infinite;
}
.ai-section::after {
  content: '';
  position: absolute;
  bottom: 8%;
  left: -80px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(30,144,255,0.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: orbDrift 22s ease-in-out infinite reverse;
}

/* ---------- DIAGONALES entre secciones ---------- */
/* Howto (claro) → IA (oscuro) */
.howto-section {
  position: relative;
}
.howto-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 52px;
  background: var(--bg-dark);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  pointer-events: none;
  z-index: 2;
}

/* Flujos (bg-soft) → Contacto (blanco): sutil */
.flujos-section {
  position: relative;
}
.flujos-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 40px;
  background: #ffffff;
  clip-path: polygon(0 100%, 100% 100%, 0 0);
  pointer-events: none;
  z-index: 2;
}

/* ---------- GRID PATTERN en secciones claras ---------- */
.howto-section,
.industries-section,
.flujos-section {
  background-image:
    radial-gradient(rgba(0,0,0,0.035) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- BORDE GRADIENT en formulario al enfocar ---------- */
.contact-form-wrap {
  position: relative;
  isolation: isolate;
}
.contact-form-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 2px;
  background: var(--grad-brand);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: -1;
}
.contact-form-wrap:focus-within::after { opacity: 0.5; }

/* ---------- BOTÓN — icono enviar alineado ---------- */
.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-text svg { flex-shrink: 0; }
