/* BachIA Landing — design tokens & base styles */

:root {
  --color-bg-primary: #FFFFFF;
  --color-bg-soft: #F8FAFC;
  --color-bg-inverse: #0A0A0A;

  --color-text-primary: #0A0A0A;
  --color-text-muted: #94A3B8;
  --color-text-inverse: #FFFFFF;

  --color-accent-blue: #3477FF;
  --color-accent-blue-hover: #5F91FF;
  --color-accent-orange: #FA7C21;

  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  --section-py: 128px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06);
  --shadow-lg: 0 12px 40px rgba(10, 10, 10, 0.08);
  --shadow-xl: 0 24px 80px rgba(10, 10, 10, 0.10);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.625;
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

/* === Layout === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; width: 100%; }
.section { padding: var(--section-py) 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--color-bg-inverse); color: var(--color-text-inverse); }

/* === Typography === */
.eyebrow {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  display: block;
}
.eyebrow-blue { color: var(--color-accent-blue); }

.h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(38px, 5.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(24px, 2.9vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.012em;
}
.h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: clamp(21px, 2.1vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.008em;
}
.h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.5;
}
.body-lg { font-size: 18px; line-height: 1.55; }
.body { font-size: 16px; line-height: 1.625; }
.body-sm { font-size: 14px; line-height: 1.57; }
.microcopy { font-size: 13px; line-height: 1.54; color: var(--color-text-muted); }

.serif-anchor {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.5;
  color: var(--color-accent-blue);
}

/* Highlights — el export del diseño forzó todos los highlights al azul.
   Mantengo .hl-orange por si en algún momento se vuelve a habilitar. */
.hl-blue { color: var(--color-accent-blue); }
.hl-orange { color: var(--color-accent-blue); }
.hl-muted { color: var(--color-text-muted); }
.muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

.mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; } .mt-20 { margin-top: 80px; }
.mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; } .mb-12 { margin-bottom: 48px; } .mb-16 { margin-bottom: 64px; }

.max-w-560 { max-width: 560px; } .max-w-600 { max-width: 600px; }
.max-w-720 { max-width: 720px; } .max-w-800 { max-width: 800px; }
.max-w-1000 { max-width: 1000px; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  border: 1px solid transparent;
  text-align: center;
  justify-content: center;
}
.btn:focus-visible { outline: 2px solid var(--color-accent-blue); outline-offset: 2px; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--color-text-primary); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-accent-orange); }
.btn-secondary { background: transparent; color: var(--color-accent-blue); border-color: var(--color-accent-blue); }
.btn-secondary:hover { background: rgba(52, 119, 255, 0.08); color: var(--color-accent-blue-hover); border-color: var(--color-accent-blue-hover); }
.btn-blue { background: var(--color-accent-blue); color: #fff; }
.btn-blue:hover { background: var(--color-accent-blue-hover); }
.btn-ghost {
  background: var(--color-bg-soft);
  color: var(--color-text-primary);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-border);
  border-color: var(--color-border);
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-accent-blue);
  font-weight: 600;
  cursor: pointer;
}
.btn-link:hover { text-decoration: underline; }
.btn-full { width: 100%; }

/* === Cards === */
.card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: all var(--duration-base) var(--ease-out);
}
.card-interactive:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
}

/* === Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 13px;
  line-height: 20px;
}
.badge-blue { background: rgba(52, 119, 255, 0.10); color: var(--color-accent-blue); }
.badge-orange { background: rgba(250, 124, 33, 0.10); color: var(--color-accent-orange); }

/* === Inputs === */
.input, .select, .textarea {
  width: 100%;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 16px;
  color: var(--color-text-primary);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--color-text-muted); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(52, 119, 255, 0.15);
}
.input.error, .select.error, .textarea.error { border-color: var(--color-accent-orange); }
.field-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field-error { font-size: 13px; color: var(--color-accent-orange); margin-top: 6px; }
.textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

/* === Reveal on scroll === */
.reveal {
  opacity: 0;
  transform: translateY(64px) scale(0.94);
  transition:
    opacity 1100ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 1100ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* === Grid utilities === */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform;
}
.nav.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.nav.nav-hidden {
  transform: translateY(-100%);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: 96px;
}
.nav-inner > .logo-mark { justify-self: start; }
.nav-inner > .nav-links { justify-self: center; }
.nav-inner > .nav-cta { justify-self: end; }
.logo-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  width: 150px;
  line-height: 0;
}
.logo-wordmark,
.logo-icon {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  will-change: opacity, transform;
  display: inline-flex;
  align-items: center;
}
.logo-wordmark {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #0F172A;
  line-height: 1;
}
.logo-wordmark .ia { color: #FA7A1D; }
.logo-icon {
  opacity: 0;
  transform: translateY(-50%) scale(0.7);
  pointer-events: none;
}
.logo-icon svg {
  display: block;
  height: 56px;
  width: auto;
}
.nav.scrolled .logo-wordmark {
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
  pointer-events: none;
}
.nav.scrolled .logo-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  pointer-events: auto;
}

/* Footer mantiene el logo horizontal-dark inline */
.footer .logo-mark {
  position: static;
  width: auto;
  height: auto;
}
.footer .logo-mark svg { display: block; height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 13.5px;
  font-weight: 400;
  color: #B6BEC9;
  letter-spacing: 0.005em;
  transition: color var(--duration-fast);
}
.nav-link:hover { color: var(--color-text-primary); }
.nav-cta {
  background: var(--color-accent-blue);
  color: #fff !important;
  padding: 10px 18px;
  font-size: 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: all var(--duration-fast);
}
.nav-cta:hover { background: var(--color-accent-blue-hover); }

@media (max-width: 768px) {
  .nav-links .nav-link { display: none; }
}

/* === Hero === */
.hero { padding: 64px 0 var(--section-py); }

/* Variante centrada (B): padding ajustado del export del diseño */
.hero-centered { padding: 32px 0 56px; }

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}
.hero-stack .eyebrow { margin-bottom: 0; }
.hero-stack .h1 { margin: 0; }
.hero-stack p { margin: 0; }

/* H1 del hero centrado — más respiración a los costados */
.hero-h1-centered {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.018em;
  text-wrap: balance;
  padding: 0 8px;
}
@media (max-width: 640px) {
  .hero-h1-centered { font-size: 28px; line-height: 1.15; padding: 0; }
}

/* === Detection bounding box (efecto CV: scan → lock → label) === */
.detection-box {
  position: relative;
  display: inline-block;
  padding: 4px 10px;
  margin: 0 4px;
  border: 1px dashed rgba(148, 163, 184, 0);
  border-radius: 4px;
  color: #FA7A1D;
  line-height: 1;
  vertical-align: baseline;
  animation: scan-lock 0.7s ease-out 0.6s forwards;
}

/* Corner brackets — top-left & top-right via box pseudo */
.detection-box::before,
.detection-box::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #64748B;
  pointer-events: none;
  opacity: 0;
  animation: corner-snap 0.3s ease 1.1s forwards;
}
.detection-box::before { /* top-left */
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.detection-box::after { /* top-right */
  top: -2px;
  right: -2px;
  border-left: none;
  border-bottom: none;
}

/* Corner brackets — bottom-left & bottom-right via .detection-corners */
.detection-corners {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.detection-corners::before,
.detection-corners::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid #64748B;
  opacity: 0;
  animation: corner-snap 0.3s ease 1.1s forwards;
}
.detection-corners::before { /* bottom-left */
  bottom: -2px;
  left: -2px;
  border-right: none;
  border-top: none;
}
.detection-corners::after { /* bottom-right */
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Etiqueta estilo terminal/HUD — colgada DEBAJO del recuadro para no tapar la línea de arriba */
.detection-label {
  position: absolute;
  bottom: -22px;
  left: -2px;
  display: inline-flex;
  align-items: center;
  background: #1E293B;
  color: #E2E8F0;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  padding: 2px 8px;
  border-radius: 0 3px 3px 3px;
  white-space: nowrap;
  opacity: 0;
  animation: label-slide-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s forwards;
}

/* Punto LIVE (único verde permitido — decorativo, 6px) */
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22C55E;
  margin-right: 6px;
  vertical-align: middle;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes scan-lock {
  0%   { border-color: rgba(148, 163, 184, 0); }
  50%  { border-color: rgba(148, 163, 184, 0.65); }
  100% { border-color: rgba(148, 163, 184, 0.4); }
}

@keyframes corner-snap {
  0%   { opacity: 0; transform: scale(1.5); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes label-slide-in {
  0%   { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(0.85); }
}

@media (max-width: 640px) {
  .detection-label { font-size: 10px; bottom: -20px; padding: 2px 6px; }
  .live-dot { width: 5px; height: 5px; margin-right: 5px; }
  .detection-box::before,
  .detection-box::after,
  .detection-corners::before,
  .detection-corners::after { width: 8px; height: 8px; border-width: 1.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .detection-box,
  .detection-label,
  .live-dot,
  .detection-box::before,
  .detection-box::after,
  .detection-corners::before,
  .detection-corners::after {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Subtítulo del hero — serif Libre Baskerville */
.hero-subtitle {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-primary);
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 19px; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-trust {
  margin-top: 8px;
  font-size: 14px;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
}
.hero-trust .dot {
  width: 3px; height: 3px; border-radius: 9999px;
  background: var(--color-text-muted);
  display: inline-block;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: var(--color-bg-soft);
  aspect-ratio: 4 / 3;
}
.hero-media img,
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-media-wide {
  margin-top: 64px;
  aspect-ratio: 21 / 9;
}
@media (max-width: 768px) {
  .hero-media-wide { aspect-ratio: 16 / 10; margin-top: 48px; }
}

/* === Dashboard mockup (hero) === */
.dash-mock {
  --dash-fg: #0F172A;
  --dash-mut: #94A3B8;
  --dash-bd: #E2E8F0;
  --dash-bg: #F8FAFC;
  --dash-card: #FFFFFF;
  --dash-rail-bg: #0F172A;
  --dash-accent: #3477FF;
  --dash-orange: #FA7A1D;
  --dash-yellow: #F59E0B;
  --dash-green: #22C55E;
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 56px 1fr;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dash-bg);
  color: var(--dash-fg);
}

.dash-rail {
  background: var(--dash-rail-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 0;
  gap: 18px;
}
.dash-rail-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--dash-accent) 0%, var(--dash-orange) 100%);
}
.dash-rail-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0; margin: 8px 0 0;
  width: 100%;
  align-items: center;
}
.dash-rail-nav li {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
}
.dash-rail-nav li.is-active {
  background: rgba(52,119,255,0.25);
  box-shadow: inset 0 0 0 1px rgba(52,119,255,0.5);
}
.dash-rail-foot {
  margin-top: auto;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.dash-body {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 18px;
  gap: 12px;
  min-width: 0;
}

.dash-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.dash-crumbs { display: flex; gap: 6px; align-items: center; }
.dash-crumbs span {
  width: 36px; height: 8px; border-radius: 3px;
  background: var(--dash-bd);
}
.dash-crumbs span.strong {
  width: 64px; background: var(--dash-fg);
}
.dash-search {
  flex: 1;
  height: 28px;
  background: #fff;
  border: 1px solid var(--dash-bd);
  border-radius: 8px;
  position: relative;
  max-width: 280px;
}
.dash-search::before {
  content: ""; position: absolute;
  left: 9px; top: 50%; transform: translateY(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--dash-mut);
}
.dash-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-pill {
  width: 56px; height: 22px; border-radius: 999px;
  background: rgba(52,119,255,0.12);
  border: 1px solid rgba(52,119,255,0.3);
}
.dash-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FCD34D 0%, var(--dash-orange) 100%);
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.dash-kpi {
  background: var(--dash-card);
  border: 1px solid var(--dash-bd);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.kpi-label {
  display: block;
  width: 60%; height: 6px;
  background: var(--dash-bd);
  border-radius: 3px;
}
.kpi-value {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dash-fg);
  line-height: 1.1;
}
.kpi-trend {
  position: absolute;
  right: 10px; top: 12px;
  width: 22px; height: 10px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 0%, currentColor 100%);
  opacity: 0.65;
}
.kpi-trend.up { color: var(--dash-green); }
.kpi-trend.down { color: var(--dash-orange); }
.kpi-trend.flat { color: var(--dash-mut); }

.dash-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 10px;
  min-height: 0;
}

.dash-card {
  background: var(--dash-card);
  border: 1px solid var(--dash-bd);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dash-card-title {
  display: block;
  width: 90px; height: 10px;
  background: var(--dash-fg);
  border-radius: 3px;
}
.dash-card-tabs {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--dash-bg);
  border-radius: 6px;
}
.dash-card-tabs span {
  width: 28px; height: 12px; border-radius: 4px;
  background: transparent;
}
.dash-card-tabs span.is-active { background: var(--dash-card); box-shadow: 0 0 0 1px var(--dash-bd); }
.dash-card-cta {
  width: 60px; height: 22px;
  background: var(--dash-fg);
  border-radius: 6px;
}

.dash-map {}
.dash-map-area {
  position: relative;
  flex: 1;
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(52,119,255,0.08), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(250,122,29,0.06), transparent 55%),
    var(--dash-bg);
  overflow: hidden;
}
.dash-map-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(148,163,184,0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148,163,184,0.18) 1px, transparent 1px),
    linear-gradient(120deg, transparent 48%, rgba(148,163,184,0.35) 49%, rgba(148,163,184,0.35) 50%, transparent 51%),
    linear-gradient(60deg,  transparent 48%, rgba(148,163,184,0.25) 49%, rgba(148,163,184,0.25) 50%, transparent 51%);
  background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%;
}
.map-pin {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95), 0 1px 3px rgba(15,23,42,0.15);
}
.pin-orange { background: var(--dash-orange); }
.pin-yellow { background: var(--dash-yellow); }
.pin-green  { background: var(--dash-green); }
.pin-pulse::before {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.25;
  animation: dash-pulse 2s ease-out infinite;
}
.pin-pulse { color: var(--dash-orange); }
@keyframes dash-pulse {
  0%   { transform: scale(0.6); opacity: 0.45; }
  100% { transform: scale(2.2); opacity: 0; }
}

.dash-list {}
.dash-tickets {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
}
.dash-tickets li {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  padding: 8px 10px;
  border: 1px solid var(--dash-bd);
  border-radius: 8px;
  align-items: center;
}
.t-status {
  grid-row: 1 / span 2;
  width: 8px; height: 8px;
  border-radius: 50%;
  align-self: center;
}
.t-line {
  height: 7px;
  border-radius: 3px;
  background: var(--dash-bd);
}
.t-line-1 { width: 78%; background: var(--dash-fg); height: 8px; }
.t-line-2 { width: 50%; }
.t-tag {
  grid-row: 1 / span 2;
  width: 38px; height: 16px;
  border-radius: 999px;
  background: var(--dash-bg);
  border: 1px solid var(--dash-bd);
}

@media (max-width: 768px) {
  .dash-mock { grid-template-columns: 44px 1fr; }
  .dash-body { padding: 10px 12px; gap: 8px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-list { display: none; }
  .kpi-value { font-size: 14px; }
}

/* Section header */
.section-head {
  max-width: 800px;
  margin-bottom: 64px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Numbered card */
.num-big {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  color: var(--color-text-muted);
  opacity: 0.4;
  display: block;
  margin-bottom: 16px;
}

/* === Pain card image === */
.pain-card-illu {
  height: 180px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  overflow: hidden;
}
.pain-card-illu img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.card-interactive:hover .pain-card-illu img { transform: scale(1.04); }

/* === Mirror illustration === */
.mirror-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 1024px) { .mirror-grid { grid-template-columns: 1fr; } }

.mirror-illu {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-soft);
}
.mirror-illu img {
  width: 100%; height: 100%; object-fit: cover;
}

.mirror-questions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* === Solution visual === */
.solution-visual {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 9;
  background: var(--color-bg-soft);
  margin-top: 24px;
}
.solution-visual img {
  width: 100%; height: 100%; object-fit: cover;
}

/* === Step card image === */
.step-card-img {
  height: 200px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.step-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}

/* === Detection card image === */
.det-card-img {
  height: 240px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.det-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 400ms var(--ease-out);
}
.card-interactive:hover .det-card-img img { transform: scale(1.04); }

/* === CRM mock === */
.crm-mock {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  background: #fff;
  border: 1px solid var(--color-border);
  aspect-ratio: 16 / 10;
}
.crm-mock img {
  width: 100%; height: 100%; object-fit: cover;
}

/* === CRM features grid === */
.crm-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 40px;
  margin-top: 80px;
}
@media (max-width: 900px) { .crm-features { grid-template-columns: 1fr; } }

.crm-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crm-feature .mini-icon {
  color: var(--color-accent-blue);
}

/* === Comparison table === */
.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.cmp-table th, .cmp-table td {
  padding: 20px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}
.cmp-table th {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.cmp-table th:not(:first-child),
.cmp-table td:not(:first-child) {
  border-left: 1px solid var(--color-border);
}
.cmp-row-label { font-weight: 500; color: var(--color-text-primary); width: 22%; }
.cmp-cell { font-weight: 400; color: var(--color-text-muted); font-size: 15px; }
.cmp-bachia { background: var(--color-bg-soft); font-weight: 500; color: var(--color-text-primary); }
.cmp-head-card { display: flex; flex-direction: column; gap: 12px; }
.cmp-head-img {
  height: 96px;
  border-radius: var(--radius-md);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}

.cmp-mobile { display: none; }

@media (max-width: 900px) {
  .cmp-table { display: none; }
  .cmp-mobile { display: grid; gap: 24px; }
}

/* === Foto vs película === */
.foto-film {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .foto-film { grid-template-columns: 1fr; } }

.foto-film-illu {
  position: relative;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.foto-film-photo, .foto-film-strip {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 16px;
}
.foto-film-photo {
  background: #fff url('images/fotos+rollo.webp') center / cover no-repeat;
  border-right: 1px dashed var(--color-border);
  position: relative;
  padding: 0;
  overflow: hidden;
}
.foto-film-strip {
  background: #0A0A0A;
  color: var(--color-text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.foto-film-strip .frames {
  display: flex; flex-direction: column; gap: 6px;
  width: 80%;
}
.foto-film-strip .frame {
  height: 22px; background: #1a1a1a;
  border: 1px solid var(--color-accent-orange);
  border-radius: 3px;
}
.foto-film-photo .label {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* === Benefit cards === */
.benefit-card {
  position: relative;
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 28px;
  align-items: center;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}
.benefit-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent-blue), var(--color-accent-orange));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(15, 23, 42, 0.18);
  border-color: rgba(96, 145, 255, 0.35);
}
.benefit-card:hover::before { transform: scaleX(1); }

.benefit-illu {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FBF1DE 0%, #F0DDB6 65%, #E5CB97 100%);
  border: none;
  margin-bottom: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04), 0 6px 14px -8px rgba(122, 86, 30, 0.35);
}
.benefit-illu img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  display: block;
}

.benefit-body { display: flex; flex-direction: column; }
.benefit-num {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 14px;
}
.benefit-num em {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0;
  margin-right: 6px;
  color: var(--color-accent-blue);
}
.benefit-card .h4 { margin-bottom: 10px; line-height: 1.25; }

@media (max-width: 720px) {
  .benefit-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
    text-align: left;
  }
  .benefit-illu {
    width: 112px; height: 112px;
  }
}

/* === FAQ === */
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 28px 0;
  text-align: left;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text-primary);
  transition: color var(--duration-fast);
}
.faq-q:hover { color: var(--color-accent-blue); }
.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--duration-base) var(--ease-out);
  color: var(--color-text-muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-primary);
}
.faq-item.open .faq-a {
  max-height: 400px;
  opacity: 1;
  padding-bottom: 28px;
  padding-right: 48px;
}

/* === Form === */
.form-card {
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 560px;
  margin: 64px auto 0;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 16px; }
.form-microcopy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* === Cal.com inline embed === */
.cal-embed {
  margin-top: 48px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.cal-embed > div {
  width: 100%;
  min-height: 720px;
}
@media (max-width: 720px) {
  .cal-embed > div { min-height: 880px; }
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--color-text-primary);
  color: var(--color-text-inverse);
  padding: 14px 22px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 100;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--duration-base) var(--ease-out);
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast-dot {
  width: 8px; height: 8px; border-radius: 9999px;
  background: var(--color-accent-blue);
}

/* === Callout === */
.callout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: var(--color-bg-primary);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent-blue);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  box-shadow: var(--shadow-md);
  margin-top: 64px;
}
.callout .mini-icon { color: var(--color-accent-blue); flex-shrink: 0; }
.callout p {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.55;
  color: var(--color-text-primary);
}

/* === Footer === */
.footer {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  padding: 80px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid #262626;
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h5 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}
.footer a {
  color: var(--color-text-inverse);
  font-size: 15px;
  display: block;
  margin-bottom: 10px;
  transition: color var(--duration-fast);
}
.footer a:hover { color: var(--color-accent-blue); }
.footer-bottom {
  text-align: center;
  padding-top: 32px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* === Responsive type === */
@media (max-width: 1024px) {
  :root { --section-py: 96px; }
}
@media (max-width: 640px) {
  :root { --section-py: 80px; }
  .container { padding: 0 20px; }
  .form-card { padding: 28px; }
  .callout { padding: 24px; }
}

section[id] { scroll-margin-top: 80px; }

/* === Cost anchor cards & figures (sección #costo) === */
#costo .grid { align-items: stretch; }
#costo .card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 40px 32px;
  border-left: 3px solid var(--color-accent-blue);
}
.cost-figure {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-accent-blue);
  white-space: nowrap;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
@media (max-width: 640px) {
  .cost-figure { font-size: 26px; }
  #costo .card { padding: 32px 24px; }
}

/* === Tech credibility badge (sección #tecnica) === */
.tech-badge {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 18px;
}

/* === Tapas section (sección #tapas) === */
.tapas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .tapas-grid { grid-template-columns: 1fr; gap: 32px; }
}
.tapas-illu {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--color-bg-soft);
}
.tapas-illu img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Con sólo 2 bullets, la lista queda más respirada y centrada al lado de la imagen */
.tapas-benefit-list { gap: 24px; align-self: center; }
.tapas-benefit-list li { font-size: 18px; line-height: 1.6; padding-left: 32px; }
.tapas-benefit-list li::before { top: 11px; width: 16px; height: 16px; }
.tapas-benefit-list li::after { top: 14px; left: 4px; width: 9px; height: 6px; }

/* === Benefit list (lista con bullets custom para sección Tapas) === */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-text-primary);
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--color-accent-blue);
  opacity: 0.18;
}
.benefit-list li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--color-accent-blue);
  border-bottom: 2px solid var(--color-accent-blue);
  transform: rotate(-45deg);
}
.benefit-list code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 1px 6px;
  border-radius: 4px;
}

/* === CRM feature pain quote === */
.crm-feature .pain {
  display: block;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

/* === Benefit status line (cierre con cifra/status en cada beneficio) === */
.benefit-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  color: var(--color-accent-blue);
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

/* === Stack items (sección #stack — paquete de subproyectos) === */
.stack-item {
  display: flex;
  flex-direction: column;
}
.stack-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  background: rgba(52, 119, 255, 0.08);
  border: 1px solid rgba(52, 119, 255, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 16px;
}
.stack-item code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  padding: 1px 6px;
  border-radius: 4px;
}

/* === Garantía section === */
.garantia-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) {
  .garantia-grid { grid-template-columns: 1fr; gap: 32px; }
}
.garantia-card {
  background: var(--color-bg-inverse);
  color: var(--color-text-inverse);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1a1a1a;
}
.garantia-card .h4 {
  color: var(--color-text-inverse);
}
.garantia-card .body {
  color: #CBD5E1;
}

/* === Demo bullets (sección final) === */
.demo-bullets {
  list-style: none;
  padding: 0;
  margin: 32px auto 0;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.demo-bullets li {
  position: relative;
  padding-left: 28px;
  font-size: 17px;
  line-height: 1.55;
  text-align: left;
}
.demo-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent-blue);
}

/* === Callout tweaks para soportar texto largo en las nuevas secciones === */
@media (max-width: 640px) {
  .callout p { font-size: 17px; line-height: 1.5; }
}
