/* ==========================================================================
   SIC — Sistema Integral Cartera | Hoja de estilos principal
   --------------------------------------------------------------------------
   ÍNDICE
   00. Variables y tokens de diseño
   01. Reset y base
   02. Utilidades y layout
   03. Botones y elementos comunes
   04. Animaciones de scroll (IntersectionObserver)
   05. Header / Navbar / Menú móvil
   06. Hero + mockup del dashboard
   07. Sección Ventajas (cards)
   08. Sección Números (contadores)
   09. Sección Inteligencia Artificial
   10. Sección Capturas del software + Lightbox
   11. Sección Clientes y testimonios
   12. Sección Por qué elegir SIC (features)
   13. Sección Contacto y formulario
   14. Footer
   15. Botón "volver arriba"
   16. Responsive (breakpoints)
   17. Accesibilidad / motion reducido
   ========================================================================== */


/* ==========================================================================
   00. VARIABLES Y TOKENS DE DISEÑO
   ========================================================================== */
:root {
  /* --- Paleta de marca --- */
  --primary:        #E66425;
  --primary-dark:   #c75218;
  --primary-soft:   #c77d58;
  --accent:         #ED865B;
  --accent-2:       #df9772;
  --accent-light:   #FED3BA;

  /* --- Fondos --- */
  --bg-cream:       #FFF6F0;
  --bg-peach:       #FEE5D9;
  --bg-slate:       #f8fafc;
  --bg-slate-2:     #f1f5f9;
  --white:          #ffffff;

  /* --- Oscuros --- */
  --dark:           #1a1410;
  --darker:         #0d0a08;

  /* --- Neutros --- */
  --gray-400:       #94a3b8;
  --gray-500:       #64748b;
  --gray-600:       #475569;
  --gray-800:       #1e293b;

  /* --- Semánticos --- */
  --text:           var(--gray-800);
  --text-muted:     var(--gray-500);
  --border:         rgba(15, 23, 42, .08);

  /* --- Tipografía --- */
  --font-body:      'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head:      'Poppins', var(--font-body);

  /* --- Espaciado y formas --- */
  --container:      1200px;
  --radius-sm:      10px;
  --radius:         16px;
  --radius-lg:      24px;
  --radius-xl:      32px;

  /* --- Sombras --- */
  --shadow-sm:      0 2px 8px rgba(15, 23, 42, .06);
  --shadow:         0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg:      0 24px 60px rgba(15, 23, 42, .14);
  --shadow-brand:   0 14px 34px rgba(230, 100, 37, .32);

  /* --- Transiciones --- */
  --ease:           cubic-bezier(.22, 1, .36, 1);
  --t-fast:         .2s var(--ease);
  --t:              .35s var(--ease);
  --t-slow:         .8s var(--ease);

  --header-h:       84px;
}


/* ==========================================================================
   01. RESET Y BASE
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bloquea el scroll cuando el menú móvil o el lightbox están abiertos */
body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.18;
  color: var(--gray-800);
  letter-spacing: -.02em;
}

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

/* Estilo de foco visible y consistente (accesibilidad por teclado) */
:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Selección de texto con el color de marca */
::selection { background: var(--accent-light); color: var(--dark); }

/* Enlace de salto (solo visible al tabular) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 2000;
  padding: 12px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }


/* ==========================================================================
   02. UTILIDADES Y LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  position: relative;
  padding: 88px 0;
}

/* Encabezado estándar de sección */
.section__head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--bg-peach);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.section__eyebrow--light {
  background: rgba(255, 255, 255, .1);
  color: var(--accent-light);
  border: 1px solid rgba(237, 134, 91, .35);
}
.eyebrow__icon { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }

.section__title {
  font-size: clamp(1.8rem, 4.2vw, 2.85rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.section__head--light .section__title { color: #fff; }
.section__head--light .section__desc  { color: rgba(255, 255, 255, .72); }

/* Texto con degradado de marca */
.text-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 55%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


/* ==========================================================================
   03. BOTONES Y ELEMENTOS COMUNES
   ========================================================================== */
.btn {
  --btn-bg: var(--primary);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast), color var(--t-fast);
  will-change: transform;
}

.btn--lg    { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-fast); }
.btn:hover .btn__icon { transform: translateX(4px); }

/* Botón primario (naranja de marca) */
.btn--primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(230, 100, 37, .42);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}
.btn--primary:active { transform: translateY(-1px); }

/* Botón secundario translúcido (sobre fondos oscuros) */
.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .28);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, .16);
  border-color: var(--accent-light);
  transform: translateY(-3px);
}

/* Badge del hero */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(237, 134, 91, .14);
  border: 1px solid rgba(237, 134, 91, .35);
  color: var(--accent-light);
  font-size: .84rem;
  font-weight: 600;
}
.badge__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(230, 100, 37, .7);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 12px rgba(230, 100, 37, 0); }
  100% { box-shadow: 0 0 0 0 rgba(230, 100, 37, 0); }
}

/* Enlace con flecha */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 700;
  transition: gap var(--t-fast), color var(--t-fast);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.link-arrow:hover { gap: 14px; color: var(--primary-dark); }


/* ==========================================================================
   04. ANIMACIONES DE SCROLL (activadas por IntersectionObserver)
   Se anima solo opacity + transform para no provocar reflow.
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
[data-animate="fade-up"]    { transform: translate3d(0, 42px, 0); }
[data-animate="fade-right"] { transform: translate3d(-52px, 0, 0); }
[data-animate="fade-left"]  { transform: translate3d(52px, 0, 0); }
[data-animate="zoom-in"]    { transform: scale(.92); }

[data-animate].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Una vez terminada la animación se libera will-change */
[data-animate].is-done { will-change: auto; }


/* ==========================================================================
   05. HEADER / NAVBAR / MENÚ MÓVIL
   ========================================================================== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(13, 10, 8, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  transition: background-color var(--t), box-shadow var(--t), padding var(--t);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
  transition: height var(--t);
}

/* Estado compacto al hacer scroll */
.header.is-scrolled {
  background: rgba(255, 255, 255, .94);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 26px rgba(15, 23, 42, .09);
}
.header.is-scrolled .header__inner { height: 68px; }
.header.is-scrolled .logo__text strong { color: var(--gray-800); }
.header.is-scrolled .logo__text small  { color: var(--text-muted); }
.header.is-scrolled .nav__link         { color: var(--gray-600); }
.header.is-scrolled .nav__link:hover,
.header.is-scrolled .nav__link.is-active { color: var(--primary); }
.header.is-scrolled .hamburger span    { background: var(--gray-800); }

/* --- Logo --- */
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__img { border-radius: 12px; transition: transform var(--t); }
.logo:hover .logo__img { transform: rotate(-6deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: .02em;
  transition: color var(--t);
}
.logo__text small {
  font-size: .68rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .04em;
  transition: color var(--t);
}

/* --- Navegación --- */
.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }

.nav__link {
  position: relative;
  display: block;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, .82);
  transition: color var(--t-fast);
}
/* Subrayado animado */
.nav__link::after {
  content: '';
  position: absolute;
  left: 13px; right: 13px; bottom: 3px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-fast);
}
.nav__link:hover, .nav__link.is-active { color: #fff; }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta-mobile { display: none; }
.header__cta { flex-shrink: 0; padding: 11px 24px; }

/* --- Hamburguesa --- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 10px;
}
.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-fast), opacity var(--t-fast), background-color var(--t);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --- Barra de progreso de scroll --- */
.scroll-progress {
  position: absolute;
  left: 0; bottom: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width .1s linear;
}


/* ==========================================================================
   06. HERO + MOCKUP DEL DASHBOARD
   ========================================================================== */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 150px;
  background:
    radial-gradient(1000px 620px at 78% 8%, rgba(230, 100, 37, .28), transparent 62%),
    radial-gradient(760px 520px at 8% 92%, rgba(199, 125, 88, .22), transparent 60%),
    linear-gradient(160deg, var(--dark) 0%, var(--darker) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Halos difuminados de fondo */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  z-index: -1;
  pointer-events: none;
}
.hero__glow--1 { width: 480px; height: 480px; top: -140px; right: -80px;  background: rgba(230, 100, 37, .5);  animation: floaty 13s ease-in-out infinite; }
.hero__glow--2 { width: 420px; height: 420px; bottom: -120px; left: -100px; background: rgba(237, 134, 91, .32); animation: floaty 17s ease-in-out infinite reverse; }
@keyframes floaty {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50%      { transform: translate3d(28px, -34px, 0); }
}

/* Cuadrícula sutil */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 56px;
}

.hero__title {
  font-size: clamp(2.1rem, 5vw, 3.55rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 22px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, .76);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 12px 26px; }
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: rgba(255, 255, 255, .62);
}
.hero__trust svg {
  width: 17px; height: 17px;
  fill: none; stroke: var(--accent); stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --- Onda separadora inferior --- */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero__wave svg { width: 100%; height: 110px; }
.hero__wave path { fill: var(--white); }

/* --- Mockup (ventana simulada) --- */
.hero__visual { position: relative; perspective: 1400px; }

.mockup {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .1);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: transform var(--t-slow);
  will-change: transform;
}
.mockup:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-6px); }

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--bg-slate-2);
  border-bottom: 1px solid var(--border);
}
.mockup__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--d); }
.mockup__url {
  flex: 1;
  margin-left: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--white);
  font-size: .68rem;
  color: var(--gray-400);
  text-align: center;
}

.mockup__body { display: flex; min-height: 320px; background: var(--bg-slate); }

.mockup__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 58px;
  padding: 16px 12px;
  background: var(--dark);
}
.mockup__side-logo { height: 22px; border-radius: 7px; background: var(--primary); }
.mockup__side-item { height: 9px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.mockup__side-item.is-active { background: var(--accent); }

.mockup__main { flex: 1; padding: 18px; display: flex; flex-direction: column; gap: 14px; }

.mockup__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi {
  padding: 12px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.kpi__label { display: block; font-size: .62rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .06em; }
.kpi__value { display: block; font-family: var(--font-head); font-size: 1.02rem; font-weight: 700; color: var(--gray-800); }
.kpi__trend { font-size: .62rem; font-weight: 700; }
.kpi__trend--up { color: #16a34a; }

.mockup__chart {
  padding: 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--border);
}
.mockup__chart-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-600);
}
.mockup__chip {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--bg-peach);
  color: var(--primary-dark);
  font-size: .6rem;
}

.chart { display: flex; align-items: flex-end; gap: 7px; height: 84px; }
.chart__bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 3px 3px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent-light));
  transform-origin: bottom;
  animation: barGrow 1s var(--ease) backwards;
}
.chart__bar--hi { background: linear-gradient(180deg, var(--primary), var(--accent)); }
.chart__bar:nth-child(1) { animation-delay: .1s }
.chart__bar:nth-child(2) { animation-delay: .18s }
.chart__bar:nth-child(3) { animation-delay: .26s }
.chart__bar:nth-child(4) { animation-delay: .34s }
.chart__bar:nth-child(5) { animation-delay: .42s }
.chart__bar:nth-child(6) { animation-delay: .5s }
.chart__bar:nth-child(7) { animation-delay: .58s }
.chart__bar:nth-child(8) { animation-delay: .66s }
@keyframes barGrow { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.mockup__rows { display: flex; flex-direction: column; gap: 8px; }
.mrow {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
}
.mrow__av { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-peach); flex-shrink: 0; }
.mrow__line { height: 7px; border-radius: 4px; background: var(--bg-slate-2); }
.mrow__line.w45 { width: 45%; } .mrow__line.w60 { width: 60%; } .mrow__line.w70 { width: 70%; }
.mrow__tag {
  margin-left: auto;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 700;
  white-space: nowrap;
}
.mrow__tag--ok   { background: #dcfce7; color: #15803d; }
.mrow__tag--warn { background: var(--bg-peach); color: var(--primary-dark); }
.mrow__tag--hot  { background: #fee2e2; color: #b91c1c; }

/* --- Tarjetas flotantes sobre el mockup --- */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 260px;
  padding: 13px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .97);
  box-shadow: var(--shadow-lg);
  animation: floatCard 5.5s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .82rem; color: var(--gray-800); }
.float-card span   { display: block; font-size: .72rem; color: var(--text-muted); line-height: 1.4; }
.float-card__icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.float-card__icon--alt { background: linear-gradient(135deg, var(--dark), #3a2a20); }
.float-card__icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.float-card--ai  { top: 14%;   left: -46px; }
.float-card--doc { bottom: 8%; right: -34px; animation-delay: 1.6s; }
@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-13px); }
}


/* ==========================================================================
   07. SECCIÓN VENTAJAS (grid de cards)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  will-change: transform;
}
/* Barra superior que se revela al hover */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(230, 100, 37, .25);
}
.card:hover::before { transform: scaleX(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--bg-peach), var(--bg-cream));
  transition: background var(--t), transform var(--t);
}
.card__icon svg {
  width: 27px; height: 27px;
  fill: none; stroke: var(--primary); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke var(--t);
}
.card:hover .card__icon {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform: scale(1.08) rotate(-5deg);
}
.card:hover .card__icon svg { stroke: #fff; }

.card__title { font-size: 1.13rem; font-weight: 600; margin-bottom: 10px; }
.card__text  { font-size: .93rem; color: var(--text-muted); }


/* ==========================================================================
   08. SECCIÓN NÚMEROS (contadores animados)
   ========================================================================== */
.section--numbers {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(230, 100, 37, .3), transparent 65%),
    linear-gradient(140deg, var(--darker), var(--dark));
  color: #fff;
  overflow: hidden;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
}

.stat {
  padding: 34px 22px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(6px);
  transition: transform var(--t), background-color var(--t), border-color var(--t);
}
.stat:hover {
  transform: translateY(-8px);
  background: rgba(230, 100, 37, .14);
  border-color: rgba(237, 134, 91, .45);
}

.stat__number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  background: linear-gradient(120deg, var(--accent-light), var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: .95rem; color: rgba(255, 255, 255, .68); }


/* ==========================================================================
   09. SECCIÓN INTELIGENCIA ARTIFICIAL
   ========================================================================== */
.section--ai {
  position: relative;
  padding: 100px 0;
  background: linear-gradient(165deg, #120e0b 0%, var(--darker) 55%, #150f0b 100%);
  overflow: hidden;
  isolation: isolate;
}

/* Canvas con la "red neuronal" dibujada en JS */
.ai__canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: .55;
}
.ai__glow {
  position: absolute;
  top: -20%; left: 50%;
  width: 760px; height: 760px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 100, 37, .3), transparent 62%);
  filter: blur(70px);
  z-index: -1;
  pointer-events: none;
}
.ai__inner { position: relative; z-index: 1; }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.ai-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .09);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform var(--t), border-color var(--t), background-color var(--t);
  will-change: transform;
}
/* Resplandor que aparece al hover */
.ai-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at 50% 0%, rgba(230, 100, 37, .22), transparent 60%);
  opacity: 0;
  transition: opacity var(--t);
  pointer-events: none;
}
.ai-card:hover {
  transform: translateY(-8px);
  border-color: rgba(237, 134, 91, .45);
  background: rgba(255, 255, 255, .07);
}
.ai-card:hover::after { opacity: 1; }

.ai-card--highlight {
  background: linear-gradient(140deg, rgba(230, 100, 37, .18), rgba(255, 255, 255, .04));
  border-color: rgba(237, 134, 91, .38);
}

.ai-card__num {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--primary);
  opacity: .85;
}
.ai-card__title { font-size: 1.1rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.ai-card__text  { font-size: .93rem; color: rgba(255, 255, 255, .68); }

.ai__cta { margin-top: 44px; text-align: center; }


/* ==========================================================================
   10. SECCIÓN CAPTURAS DEL SOFTWARE + LIGHTBOX
   ========================================================================== */
.section--shots {
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--white) 100%);
}

/* --- Pestañas de filtro --- */
.shots__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.shot-tab {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: all var(--t-fast);
}
.shot-tab:hover { border-color: var(--accent); color: var(--primary); transform: translateY(-2px); }
.shot-tab.is-active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-brand);
}

/* --- Grid de capturas --- */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 26px;
}

.shot {
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), opacity var(--t);
  will-change: transform;
}
.shot:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }

/* Ocultamiento al filtrar por módulo */
.shot.is-hidden {
  display: none;
}

.shot__frame { background: var(--bg-slate-2); }

.shot__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-slate-2);
  border-bottom: 1px solid var(--border);
}
.shot__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-400); opacity: .5; }
.shot__bar span:first-child { background: #ff5f57; opacity: 1; }
.shot__bar span:nth-child(2) { background: #febc2e; opacity: 1; }
.shot__bar span:nth-child(3) { background: #28c840; opacity: 1; }
.shot__bar em {
  margin-left: 10px;
  font-size: .7rem;
  font-style: normal;
  font-weight: 600;
  color: var(--gray-500);
}

/* --- Pantalla simulada de la app --- */
.shot__screen {
  display: flex;
  height: 300px;
  background: var(--bg-slate);
  overflow: hidden;
}
.shot__screen--dark { background: #14100d; }

/* Sidebar */
.ui-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 48px;
  padding: 12px 10px;
  background: var(--dark);
  flex-shrink: 0;
}
.ui-side--dark { background: #0b0806; }
.ui-side b { height: 18px; border-radius: 6px; background: var(--primary); }
.ui-side i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .13); }
.ui-side i.on { background: var(--accent); }

/* Contenido */
.ui-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  min-width: 0;
  overflow: hidden; /* el contenido sobrante se recorta dentro de la "pantalla" */
}

.ui-topbar { display: flex; align-items: center; gap: 8px; }
.ui-topbar--dark .ui-title { background: rgba(255, 255, 255, .16); }
.ui-title  { width: 34%; height: 10px; border-radius: 5px; background: var(--gray-800); opacity: .75; }
.ui-search { flex: 1; height: 20px; border-radius: 999px; background: var(--white); border: 1px solid var(--border); }
.ui-pill   { width: 54px; height: 18px; border-radius: 999px; background: var(--bg-slate-2); }
.ui-pill--accent { background: linear-gradient(135deg, var(--primary), var(--accent)); }
.ui-avatar { width: 22px; height: 22px; border-radius: 50%; background: var(--bg-peach); margin-left: auto; flex-shrink: 0; }

/* KPIs */
.ui-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-kpi {
  position: relative;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  overflow: hidden;
}
.ui-kpi__v { display: block; font-family: var(--font-head); font-size: .82rem; font-weight: 700; color: var(--gray-800); }
.ui-kpi__l { display: block; font-size: .58rem; color: var(--gray-400); }
.ui-spark {
  display: block;
  height: 3px;
  margin-top: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
}

/* Paneles */
.ui-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  min-height: 0;
  overflow: hidden; /* la UI simulada nunca debe desbordar su panel */
}
.ui-panel--sm { flex: 0 0 auto; }
.ui-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.ui-line { display: block; height: 7px; border-radius: 4px; background: var(--bg-slate-2); }
.ui-line.dk { background: rgba(255, 255, 255, .13); }
.w12{width:12%}.w14{width:14%}.w16{width:16%}.w18{width:18%}.w20{width:20%}.w22{width:22%}
.w24{width:24%}.w26{width:26%}.w28{width:28%}.w30{width:30%}.w40{width:40%}.w45{width:45%}
.w50{width:50%}.w55{width:55%}.w58{width:58%}.w60{width:60%}.w62{width:62%}.w65{width:65%}
.w66{width:66%}.w70{width:70%}.w72{width:72%}.w75{width:75%}.w80{width:80%}.w85{width:85%}.w90{width:90%}

.ui-chip {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-slate-2);
  font-size: .58rem;
  font-weight: 600;
  color: var(--gray-500);
  white-space: nowrap;
}
.ui-chip.on { background: var(--bg-peach); color: var(--primary-dark); }

/* Mini gráfico de barras */
.ui-chart { display: flex; align-items: flex-end; gap: 5px; flex: 1; min-height: 60px; }
.ui-chart > span {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
}
.ui-chart > span:nth-child(6) { background: linear-gradient(180deg, var(--primary), var(--accent)); }

/* Mini gráfico de línea */
.ui-chart--line { display: block; min-height: 54px; }
.ui-chart--line svg { width: 100%; height: 54px; }
.ui-chart--line polyline {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Filtros y tabla */
.ui-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ui-table { display: flex; flex-direction: column; gap: 6px; }
.ui-tr {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
}
.ui-tr--head { background: transparent; border: 0; padding-block: 2px; }
.ui-tr--head span { height: 6px; border-radius: 3px; background: var(--gray-400); opacity: .45; }
.ui-cell { height: 7px; border-radius: 4px; background: var(--bg-slate-2); }

.ui-tag {
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: .55rem;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}
.ui-tag--ok   { background: #dcfce7; color: #15803d; }
.ui-tag--warn { background: var(--bg-peach); color: var(--primary-dark); }
.ui-tag--hot  { background: #fee2e2; color: #b91c1c; }
.ui-tag--ai   { background: rgba(230, 100, 37, .22); color: var(--accent-light); align-self: flex-start; margin: 0; }

/* Vista dividida: formulario + documento */
.ui-split { display: grid; grid-template-columns: .8fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.ui-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
}
.ui-label { height: 5px; width: 40%; border-radius: 3px; background: var(--gray-400); opacity: .45; }
.ui-input { height: 18px; border-radius: 6px; background: var(--bg-slate-2); }
.ui-input--select { background: var(--bg-slate-2) linear-gradient(90deg, transparent 85%, var(--accent-light) 85%); }
.ui-btn {
  margin-top: auto;
  padding: 6px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  text-align: center;
}
.ui-doc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 12px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.ui-doc__seal {
  position: absolute;
  top: 10px; right: 10px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px dashed var(--accent);
  opacity: .6;
}
.ui-sign { margin-top: auto; width: 42%; height: 14px; border-radius: 3px; background: linear-gradient(90deg, var(--gray-400), transparent); opacity: .5; }

/* Panel de IA */
.ui-ai { display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.ui-ai__score {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
}
.ui-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--p) * 1%), rgba(255, 255, 255, .1) 0);
}
.ui-ring::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #14100d;
}
.ui-ring span {
  position: relative;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  color: var(--accent-light);
}
.ui-ai__meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }

.ui-ai__rec {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(230, 100, 37, .1);
  border: 1px solid rgba(237, 134, 91, .28);
}
.ui-ai__list { display: flex; flex-direction: column; gap: 6px; }
.ui-ai__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}
.ui-ai__row .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ui-mini { margin-left: auto; font-size: .58rem; font-style: normal; font-weight: 700; color: var(--accent-light); }

/* Reportes: dona + leyenda */
.ui-report { display: flex; align-items: center; gap: 16px; flex: 1; }
.ui-donut {
  position: relative;
  width: 92px; height: 92px;
  flex-shrink: 0;
  border-radius: 50%;
  background: conic-gradient(var(--primary) 0 42%, var(--accent) 42% 68%, var(--accent-light) 68% 88%, var(--gray-400) 88% 100%);
}
.ui-donut span {
  position: absolute;
  inset: 22px;
  border-radius: 50%;
  background: var(--bg-slate);
}
.ui-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.ui-legend > span { display: flex; align-items: center; gap: 8px; }
.ui-legend i { width: 9px; height: 9px; border-radius: 3px; flex-shrink: 0; }

/* Notificaciones */
.ui-notif { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ui-nrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--white);
  border: 1px solid var(--border);
}
.ui-nicon { width: 18px; height: 18px; border-radius: 6px; flex-shrink: 0; }
.ui-nicon--mail { background: var(--bg-peach); }
.ui-nicon--sms  { background: #dbeafe; }
.ui-nicon--doc  { background: #e2e8f0; }
.ui-progress { height: 7px; border-radius: 999px; background: var(--bg-slate-2); overflow: hidden; }
.ui-progress span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* Pie de la captura */
.shot__caption { padding: 20px 22px 24px; }
.shot__caption h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.shot__caption p  { font-size: .88rem; color: var(--text-muted); }

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 10, 8, .88);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--t);
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }

.lightbox__content {
  width: 100%;
  max-width: 940px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: scale(.94);
  transition: transform var(--t);
}
.lightbox.is-open .lightbox__content { transform: scale(1); }
/* En el lightbox la pantalla simulada crece */
.lightbox__content .shot__screen { height: min(62vh, 520px); }
.lightbox__content .shot { box-shadow: none; border: 0; cursor: default; }
.lightbox__content .shot:hover { transform: none; }

/* Escalado de la UI simulada al ampliarse, para que respire mejor */
.lightbox__content .ui-side      { width: 68px; gap: 13px; padding: 16px 13px; }
.lightbox__content .ui-main      { padding: 18px; gap: 14px; }
.lightbox__content .ui-kpi__v    { font-size: 1.15rem; }
.lightbox__content .ui-kpi__l    { font-size: .72rem; }
.lightbox__content .ui-chart     { max-height: 190px; }
.lightbox__content .ui-chart--line,
.lightbox__content .ui-chart--line svg { height: 100px; }
.lightbox__content .ui-donut     { width: 168px; height: 168px; }
.lightbox__content .ui-donut span { inset: 40px; }
.lightbox__content .ui-legend    { gap: 16px; }
.lightbox__content .ui-legend i  { width: 12px; height: 12px; }
.lightbox__content .ui-line      { height: 9px; }
.lightbox__content .ui-ring      { width: 76px; height: 76px; }
.lightbox__content .ui-ring span { font-size: 1.1rem; }
.lightbox__content .ui-report    { gap: 28px; }
.lightbox__content .ui-chip,
.lightbox__content .ui-tag,
.lightbox__content .ui-mini      { font-size: .7rem; }
.lightbox__content .shot__bar em { font-size: .82rem; }
.lightbox__content .shot__caption { padding: 24px 28px 28px; }
.lightbox__content .shot__caption h3 { font-size: 1.25rem; }
.lightbox__content .shot__caption p  { font-size: .95rem; }

.lightbox__close {
  position: absolute;
  top: 18px; right: 22px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  transition: background-color var(--t-fast), transform var(--t-fast);
}
.lightbox__close:hover { background: var(--primary); transform: rotate(90deg); }


/* ==========================================================================
   11. SECCIÓN CLIENTES Y TESTIMONIOS
   ========================================================================== */
.section--clients { background: var(--bg-slate); }

/* Carrusel infinito de logos */
.logos {
  position: relative;
  margin-bottom: 60px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.logos__track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}
.logos:hover .logos__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

.logo-box {
  display: grid;
  place-items: center;
  width: 190px; height: 88px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--gray-400);
  letter-spacing: .04em;
  filter: grayscale(1);
  opacity: .8;
  transition: all var(--t);
}
.logo-box:hover {
  filter: grayscale(0);
  opacity: 1;
  color: var(--primary);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* Testimonios */
.testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.testimonial {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t), box-shadow var(--t);
  will-change: transform;
}
.testimonial::before {
  content: '"';
  position: absolute;
  top: 6px; right: 24px;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--bg-peach);
  pointer-events: none;
}
.testimonial:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.testimonial__stars { color: var(--primary); letter-spacing: .18em; margin-bottom: 14px; }
.testimonial__quote { font-size: .98rem; color: var(--gray-600); margin-bottom: 22px; }

.testimonial__author { display: flex; align-items: center; gap: 13px; }
.testimonial__author strong { display: block; font-size: .93rem; color: var(--gray-800); }
.testimonial__author small  { font-size: .78rem; color: var(--text-muted); }

.avatar {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
}


/* ==========================================================================
   12. SECCIÓN POR QUÉ ELEGIR SIC (bloques alternados)
   ========================================================================== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  margin-bottom: 92px;
}
.feature:last-child { margin-bottom: 0; }
.feature--reverse .feature__text   { order: 2; }
.feature--reverse .feature__visual { order: 1; }

.feature__tag {
  display: inline-block;
  padding: 6px 15px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--bg-peach);
  color: var(--primary-dark);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.feature__title { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 700; margin-bottom: 14px; }
.feature__desc  { color: var(--text-muted); margin-bottom: 20px; }

.feature__list { display: flex; flex-direction: column; gap: 11px; }
.feature__list li {
  position: relative;
  padding-left: 32px;
  font-size: .95rem;
  color: var(--gray-600);
}
.feature__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 4px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-peach) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E66425' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* --- Visuales decorativos de cada bloque --- */
.feature__visual { display: grid; place-items: center; }
.viz {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 340px;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(150deg, var(--bg-cream), var(--bg-peach));
  overflow: hidden;
}

/* Escudo con anillos */
.viz--shield .viz__icon {
  width: 92px; height: 92px;
  fill: none; stroke: var(--primary); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
  z-index: 2;
  filter: drop-shadow(0 10px 22px rgba(230, 100, 37, .3));
}
.viz__rings { position: absolute; inset: 0; display: grid; place-items: center; }
.viz__rings span {
  position: absolute;
  border: 1.5px solid rgba(230, 100, 37, .3);
  border-radius: 50%;
  animation: ripple 3.6s ease-out infinite;
}
.viz__rings span:nth-child(1) { width: 150px; height: 150px; }
.viz__rings span:nth-child(2) { width: 220px; height: 220px; animation-delay: 1.2s; }
.viz__rings span:nth-child(3) { width: 290px; height: 290px; animation-delay: 2.4s; }
@keyframes ripple {
  0%   { transform: scale(.75); opacity: 0; }
  35%  { opacity: .9; }
  100% { transform: scale(1.18); opacity: 0; }
}
.viz__chips {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.viz__chips li {
  position: absolute;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary-dark);
  animation: floatCard 6s ease-in-out infinite;
}
.viz__chips li:nth-child(1) { top: 16%; left: 6%;  }
.viz__chips li:nth-child(2) { top: 24%; right: 5%; animation-delay: .8s; }
.viz__chips li:nth-child(3) { bottom: 20%; left: 9%; animation-delay: 1.6s; }
.viz__chips li:nth-child(4) { bottom: 14%; right: 8%; animation-delay: 2.4s; }

/* Nodos de escalabilidad */
.viz--scale { background: linear-gradient(150deg, var(--bg-slate-2), var(--bg-peach)); }
.viz__nodes { position: relative; width: 300px; height: 220px; }
.node {
  position: absolute;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: .76rem;
  font-weight: 600;
  color: var(--gray-600);
  white-space: nowrap;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: floatCard 7s ease-in-out infinite;
}
.node--main {
  top: 50%; left: 50%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-brand);
  animation: none;
}
.viz__nodes .node:nth-child(2) { top: 18%; left: 20%; }
.viz__nodes .node:nth-child(3) { top: 20%; left: 82%; animation-delay: .9s; }
.viz__nodes .node:nth-child(4) { top: 82%; left: 18%; animation-delay: 1.8s; }
.viz__nodes .node:nth-child(5) { top: 80%; left: 80%; animation-delay: 2.7s; }
.viz__links { position: absolute; inset: 0; z-index: 1; }
.viz__links line {
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-dasharray: 5 6;
  opacity: .5;
  animation: dash 22s linear infinite;
}
@keyframes dash { to { stroke-dashoffset: -220; } }

/* Pasos de implementación */
.viz--support { background: linear-gradient(150deg, var(--bg-cream), var(--bg-slate-2)); align-items: stretch; }
.steps { display: flex; flex-direction: column; gap: 12px; width: 100%; align-self: center; }
.steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.steps li:hover { transform: translateX(8px); box-shadow: var(--shadow); }
.steps li > span {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}
.steps strong { display: block; font-size: .93rem; color: var(--gray-800); }
.steps small  { font-size: .78rem; color: var(--text-muted); }


/* ==========================================================================
   13. SECCIÓN CONTACTO Y FORMULARIO
   ========================================================================== */
.section--contact { background: linear-gradient(180deg, var(--white) 0%, var(--bg-cream) 100%); }

.contact {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 32px;
  align-items: start;
}

.contact__form-wrap {
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__group { display: flex; flex-direction: column; gap: 7px; }

.form__group label {
  font-size: .87rem;
  font-weight: 600;
  color: var(--gray-600);
}
.form__group label span { color: var(--primary); }

.form__group input,
.form__group textarea {
  padding: 13px 16px;
  border-radius: 12px;
  background: var(--bg-slate);
  border: 1.5px solid var(--border);
  font-size: .94rem;
  transition: border-color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--gray-400); }

.form__group input:focus,
.form__group textarea:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(230, 100, 37, .13);
}
.form__group textarea { resize: vertical; min-height: 120px; }

/* Estado de error */
.form__group.has-error input,
.form__group.has-error textarea { border-color: #dc2626; background: #fef2f2; }

.form__error {
  display: none;
  font-size: .78rem;
  color: #dc2626;
  font-weight: 500;
}
.form__group.has-error .form__error,
.form__error.is-shown { display: block; }

/* Checkbox de política */
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .86rem;
  color: var(--text-muted);
  cursor: pointer;
}
.form__check input {
  width: 19px; height: 19px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--primary);
  cursor: pointer;
}
.form__check span span { color: var(--primary); }

/* Botón de envío con spinner */
.btn__spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__spinner { display: block; }

/* Mensaje de éxito */
.form__success {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  animation: popIn .45s var(--ease);
}
.form__success[hidden] { display: none; }
.form__success svg {
  width: 26px; height: 26px;
  flex-shrink: 0;
  fill: none; stroke: #16a34a; stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}
.form__success strong { display: block; color: #15803d; font-size: .95rem; }
.form__success span   { display: block; font-size: .86rem; color: #166534; }
@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Panel de datos de contacto --- */
.contact__info {
  padding: 36px 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--dark), var(--darker));
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.contact__info-title { color: #fff; font-size: 1.3rem; margin-bottom: 26px; }

.contact__list { display: flex; flex-direction: column; gap: 22px; margin-bottom: 32px; }
.contact__list li { display: flex; gap: 14px; }
.contact__list small {
  display: block;
  font-size: .72rem;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 2px;
}
.contact__list a,
.contact__list address,
.contact__list span:not(.contact__icon) {
  font-size: .92rem;
  font-style: normal;
  color: rgba(255, 255, 255, .86);
  line-height: 1.5;
  word-break: break-word;
  transition: color var(--t-fast);
}
.contact__list a:hover { color: var(--accent-light); }

.contact__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background: rgba(230, 100, 37, .18);
  border: 1px solid rgba(237, 134, 91, .3);
}
.contact__icon svg {
  width: 19px; height: 19px;
  fill: none; stroke: var(--accent); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

.contact__social-title { font-size: .95rem; color: rgba(255, 255, 255, .8); margin-bottom: 14px; }

/* Redes sociales */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  transition: all var(--t-fast);
}
.socials svg {
  width: 18px; height: 18px;
  fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.socials a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-brand);
}


/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.footer {
  background: linear-gradient(160deg, var(--darker), var(--dark));
  color: rgba(255, 255, 255, .72);
  padding-top: 68px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 42px;
  padding-bottom: 52px;
}

.logo--footer { margin-bottom: 18px; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text small  { color: rgba(255, 255, 255, .55); }

.footer__desc { font-size: .92rem; margin-bottom: 22px; max-width: 340px; }

.footer__col h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 18px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 11px; }
.footer__col a,
.footer__col address {
  font-size: .9rem;
  font-style: normal;
  color: rgba(255, 255, 255, .68);
  line-height: 1.5;
  word-break: break-word;
  transition: color var(--t-fast), padding-left var(--t-fast);
}
.footer__col a:hover { color: var(--accent); padding-left: 5px; }
.footer__contact li { display: block; }

.socials--footer a { width: 38px; height: 38px; border-radius: 11px; }
.socials--footer svg { width: 16px; height: 16px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .09);
  padding: 22px 0;
}
.footer__bottom p {
  font-size: .85rem;
  color: rgba(255, 255, 255, .5);
  text-align: center;
}


/* ==========================================================================
   15. BOTÓN "VOLVER ARRIBA"
   ========================================================================== */
.to-top {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: var(--shadow-brand);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(.85);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
  will-change: transform, opacity;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.to-top svg {
  width: 21px; height: 21px;
  fill: none; stroke: #fff; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
}


/* ==========================================================================
   16. RESPONSIVE (mobile-first en el comportamiento, breakpoints descendentes)
   ========================================================================== */

/* --- Tablet grande / laptop pequeña --- */
@media (max-width: 1080px) {
  .nav__link { padding: 9px 10px; font-size: .86rem; }
  .float-card--ai  { left: -18px; }
  .float-card--doc { right: -10px; }
  .footer__inner   { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer__col:last-child { grid-column: 1 / -1; }
}

/* --- Tablet: se activa el menú hamburguesa --- */
@media (max-width: 900px) {
  .section { padding: 68px 0; }

  /* Menú móvil desplegable */
  .hamburger { display: flex; }
  .header__cta { display: none; }

  /* Panel desplegable. Se usa color OPACO (sin backdrop-filter): el header
     ya tiene su propio backdrop-filter y anidar dos crea un grupo de
     composición que deja translúcido el panel y vuelve ilegible el menú. */
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    transition: max-height .45s var(--ease);
  }
  .header.is-scrolled .nav {
    inset-block-start: 68px;
    background: var(--white);
    border-bottom-color: var(--border);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
  }
  .nav.is-open { max-height: 84vh; overflow-y: auto; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 18px 20px 26px;
  }
  .nav__link {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, .88);
  }
  .nav__link::after { display: none; }
  .nav__link:hover, .nav__link.is-active { background: rgba(230, 100, 37, .16); color: var(--accent-light); }
  .header.is-scrolled .nav__link:hover,
  .header.is-scrolled .nav__link.is-active { background: var(--bg-peach); color: var(--primary-dark); }

  .nav__cta-mobile { display: block; margin-top: 14px; }

  /* Hero apilado */
  .hero { padding: calc(var(--header-h) + 48px) 0 130px; text-align: center; }
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .mockup { transform: none; }
  /* Se sacan a los bordes exteriores del mockup para no tapar los KPIs */
  .float-card       { max-width: 240px; text-align: left; }
  .float-card--ai   { top: -28px; left: 0; }
  .float-card--doc  { bottom: -28px; right: 0; }

  /* Features apilados */
  .feature { grid-template-columns: 1fr; gap: 36px; margin-bottom: 62px; }
  .feature--reverse .feature__text   { order: 0; }
  .feature--reverse .feature__visual { order: 0; }

  /* Contacto apilado */
  .contact { grid-template-columns: 1fr; }
}

/* --- Móvil --- */
@media (max-width: 640px) {
  :root { --header-h: 70px; }

  .section { padding: 56px 0; }
  .section__head { margin-bottom: 40px; }

  .logo__text small { display: none; }
  .logo__text strong { font-size: 1.25rem; }

  .hero { padding: calc(var(--header-h) + 40px) 0 110px; }
  .hero__wave svg { height: 64px; }
  .hero__actions .btn { width: 100%; }

  /* Las tarjetas flotantes estorban en pantallas muy pequeñas */
  .float-card { position: static; max-width: none; margin-top: 14px; animation: none; }

  .mockup__side { display: none; }
  .mockup__kpis { grid-template-columns: 1fr; }

  .cards-grid, .shots, .testimonials, .ai-grid { grid-template-columns: 1fr; }
  .card, .ai-card, .testimonial { padding: 26px 22px; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stat  { padding: 26px 14px; }

  /* Con menos alto disponible, la UI simulada se compacta para no desbordar */
  .shot__screen { height: 315px; }
  .ui-chart  { min-height: 40px; }
  .ui-kpi__v { font-size: .74rem; }
  .ui-split  { grid-template-columns: 1fr; }
  /* stretch: en columna, "center" encogería la leyenda y sus barras (width %) */
  .ui-report { flex-direction: column; align-items: stretch; gap: 10px; }
  .ui-donut  { align-self: center; }
  .ui-donut  { width: 76px; height: 76px; }
  .ui-donut span { inset: 18px; }

  .contact__form-wrap { padding: 26px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .viz { min-height: 300px; padding: 20px; }
  .viz__chips li { font-size: .66rem; padding: 5px 10px; }

  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
  .footer__col:last-child { grid-column: auto; }

  .to-top { right: 16px; bottom: 16px; width: 46px; height: 46px; }

  .logo-box { width: 150px; height: 74px; font-size: .9rem; }
}

/* --- Móvil pequeño --- */
@media (max-width: 400px) {
  .stats { grid-template-columns: 1fr; }
}


/* ==========================================================================
   17. ACCESIBILIDAD / MOTION REDUCIDO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  /* El contenido debe quedar visible aunque no se anime */
  [data-animate] { opacity: 1 !important; transform: none !important; }
}

/* Impresión: se ocultan elementos decorativos */
@media print {
  .header, .to-top, .lightbox, .hero__wave, .ai__canvas { display: none !important; }
  body { color: #000; background: #fff; }
  [data-animate] { opacity: 1 !important; transform: none !important; }
}
