/* ============================================================
   Nexopro360 - Design System
   Paleta: azul profundo + cian eléctrico sobre fondo oscuro
   ============================================================ */

:root {
  /* Colores base */
  --np-bg:          #0A1628;
  --np-bg-2:        #0F1E35;
  --np-bg-3:        #162943;
  --np-panel:       rgba(22, 41, 67, 0.6);
  --np-border:      rgba(255, 255, 255, 0.08);
  --np-border-2:    rgba(255, 255, 255, 0.14);

  /* Texto */
  --np-text:        #E8EEF7;
  --np-text-dim:    #9AA8BE;
  --np-text-faint:  #5C6B85;

  /* Acentos */
  --np-accent:      #00D4FF;   /* cian eléctrico */
  --np-accent-2:    #5B8DEF;   /* azul medio */
  --np-accent-3:    #B794F4;   /* violeta suave */

  /* Semánticos */
  --np-ok:          #10D98B;
  --np-warn:        #FFB547;
  --np-err:         #FF5A6A;

  /* Tipografía */
  --np-font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --np-font-mono:   'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Espaciado */
  --np-radius:      14px;
  --np-radius-sm:   8px;
  --np-radius-lg:   24px;

  /* Sombras */
  --np-shadow:      0 10px 40px -10px rgba(0, 0, 0, 0.6);
  --np-shadow-glow: 0 0 40px -10px rgba(0, 212, 255, 0.4);

  /* Max width */
  --np-max:         1240px;
}

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

html, body {
  background: var(--np-bg);
  color: var(--np-text);
  font-family: var(--np-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 212, 255, 0.12), transparent 60%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(183, 148, 244, 0.08), transparent 60%),
    var(--np-bg);
  min-height: 100vh;
}

a { color: var(--np-accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--np-text); }

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }

p { color: var(--np-text-dim); }

::selection { background: var(--np-accent); color: var(--np-bg); }

/* ============ Contenedor ============ */
.np-container {
  width: 100%;
  max-width: var(--np-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ NAV ============ */
.np-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
  background: rgba(10, 22, 40, 0.72);
  border-bottom: 1px solid var(--np-border);
}

.np-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.np-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--np-text);
  letter-spacing: -0.02em;
}

.np-logo-mark {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
  border-radius: 8px;
  display: grid;
  place-items: center;
  box-shadow: var(--np-shadow-glow);
}

.np-logo-mark svg { width: 18px; height: 18px; color: var(--np-bg); }

.np-nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.np-nav-links a {
  color: var(--np-text-dim);
  font-size: .95rem;
  font-weight: 500;
}

.np-nav-links a:hover { color: var(--np-text); }

.np-nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ============ Botones ============ */
.np-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--np-radius-sm);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.np-btn-primary {
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
  color: var(--np-bg);
  box-shadow: 0 4px 20px -4px rgba(0, 212, 255, 0.5);
}
.np-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 28px -4px rgba(0, 212, 255, 0.7);
  color: var(--np-bg);
}

.np-btn-ghost {
  background: transparent;
  color: var(--np-text);
  border-color: var(--np-border-2);
}
.np-btn-ghost:hover {
  background: var(--np-panel);
  border-color: var(--np-accent);
  color: var(--np-text);
}

.np-btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ============ HERO ============ */
.np-hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}

.np-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 960px) {
  .np-hero-grid { grid-template-columns: 1.1fr 1fr; gap: 80px; }
}

.np-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--np-panel);
  border: 1px solid var(--np-border-2);
  border-radius: 999px;
  font-size: .82rem;
  color: var(--np-text-dim);
  margin-bottom: 20px;
}
.np-badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--np-ok);
  box-shadow: 0 0 10px var(--np-ok);
  animation: np-pulse 2s infinite;
}
@keyframes np-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.np-hero h1 { margin-bottom: 24px; }
.np-hero h1 .accent {
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.np-hero p.lead {
  font-size: 1.2rem;
  color: var(--np-text-dim);
  margin-bottom: 36px;
  max-width: 540px;
}

.np-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.np-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 500px;
}
.np-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--np-text);
  letter-spacing: -0.02em;
}
.np-stat-label {
  font-size: .82rem;
  color: var(--np-text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============ Visual del hero ============ */
.np-hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  margin: 0 auto;
}
.np-hero-card {
  position: absolute;
  background: linear-gradient(135deg, rgba(22, 41, 67, 0.9), rgba(15, 30, 53, 0.8));
  border: 1px solid var(--np-border-2);
  border-radius: var(--np-radius);
  padding: 18px;
  backdrop-filter: blur(12px);
  box-shadow: var(--np-shadow);
}
.np-hero-card-1 {
  top: 0; left: 0;
  width: 60%;
  animation: np-float 6s ease-in-out infinite;
}
.np-hero-card-2 {
  top: 30%; right: 0;
  width: 55%;
  animation: np-float 6s ease-in-out infinite 1.5s;
}
.np-hero-card-3 {
  bottom: 0; left: 20%;
  width: 65%;
  animation: np-float 6s ease-in-out infinite 3s;
}
@keyframes np-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.np-hero-card .card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.np-hero-card .card-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
  display: grid; place-items: center;
}
.np-hero-card .card-icon svg { width: 16px; height: 16px; color: var(--np-bg); }
.np-hero-card .card-title { font-weight: 600; font-size: .9rem; }
.np-hero-card .card-val {
  font-size: 1.6rem; font-weight: 800;
  letter-spacing: -0.02em;
}
.np-hero-card .card-sub { font-size: .78rem; color: var(--np-text-faint); }

/* Trend mini-chart */
.np-mini-chart {
  display: flex; align-items: flex-end;
  gap: 3px; height: 40px; margin-top: 8px;
}
.np-mini-chart span {
  flex: 1; background: linear-gradient(to top, var(--np-accent), transparent);
  border-radius: 2px 2px 0 0; opacity: .85;
}

/* ============ Sección ============ */
.np-section { padding: 100px 0; position: relative; }
.np-section-head { text-align: center; margin-bottom: 60px; }
.np-section-eyebrow {
  color: var(--np-accent);
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
}
.np-section-head h2 { margin-bottom: 16px; }
.np-section-head p { font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ============ Grid de features ============ */
.np-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.np-card {
  background: var(--np-panel);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  padding: 28px;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.np-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(0, 212, 255, 0.04));
  opacity: 0; transition: opacity .3s;
  /* v1.1.1 — sin esto el pseudo-elemento intercepta clicks en inputs del card */
  pointer-events: none;
}
.np-card:hover {
  border-color: var(--np-border-2);
  transform: translateY(-4px);
  box-shadow: var(--np-shadow);
}
.np-card:hover::before { opacity: 1; }

.np-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
  display: grid; place-items: center;
  margin-bottom: 20px;
  box-shadow: var(--np-shadow-glow);
}
.np-card-icon svg { width: 24px; height: 24px; color: var(--np-bg); }
.np-card h3 { margin-bottom: 12px; }
.np-card p { font-size: .95rem; }

/* ============ ERPs verticales ============ */
.np-vertical {
  background: linear-gradient(135deg, var(--np-bg-2), var(--np-bg-3));
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}
.np-vertical:hover { border-color: var(--np-accent); }
.np-vertical-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.np-tag-live    { background: rgba(16, 217, 139, 0.15); color: var(--np-ok); }
.np-tag-soon    { background: rgba(255, 181, 71, 0.15); color: var(--np-warn); }
.np-tag-planned { background: rgba(91, 141, 239, 0.15); color: var(--np-accent-2); }

/* ============ Pricing ============ */
.np-price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: stretch;
}
.np-price-card {
  background: var(--np-panel);
  border: 1px solid var(--np-border);
  border-radius: var(--np-radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.np-price-card.featured {
  border-color: var(--np-accent);
  background: linear-gradient(180deg, rgba(0, 212, 255, 0.08), var(--np-panel));
  box-shadow: var(--np-shadow-glow);
}
.np-price-card.featured::after {
  content: 'Más popular';
  position: absolute;
  top: -1px; right: 20px;
  background: linear-gradient(135deg, var(--np-accent), var(--np-accent-2));
  color: var(--np-bg);
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  font-size: .72rem;
  font-weight: 700;
}
.np-price-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.np-price-desc {
  font-size: .88rem;
  color: var(--np-text-faint);
  margin-bottom: 20px;
  min-height: 40px;
}
.np-price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.np-price-amount .cur {
  font-size: 1rem;
  color: var(--np-text-dim);
  margin-right: 4px;
}
.np-price-amount .per {
  font-size: .9rem;
  color: var(--np-text-faint);
  font-weight: 500;
}
.np-price-feats {
  list-style: none;
  margin: 24px 0;
  flex: 1;
}
.np-price-feats li {
  padding: 6px 0;
  font-size: .9rem;
  color: var(--np-text-dim);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.np-price-feats li::before {
  content: '✓';
  color: var(--np-ok);
  font-weight: 700;
  flex-shrink: 0;
}
.np-price-card .np-btn { width: 100%; justify-content: center; }

/* ============ Footer ============ */
.np-footer {
  background: var(--np-bg-2);
  border-top: 1px solid var(--np-border);
  padding: 60px 0 30px;
  margin-top: 40px;
}
.np-foot-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 780px) {
  .np-foot-grid { grid-template-columns: 1fr 1fr; }
}
.np-foot-col h5 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--np-text-faint);
  margin-bottom: 16px;
}
.np-foot-col ul { list-style: none; }
.np-foot-col li { padding: 4px 0; }
.np-foot-col a { color: var(--np-text-dim); font-size: .92rem; }
.np-foot-col a:hover { color: var(--np-accent); }

.np-foot-bottom {
  border-top: 1px solid var(--np-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--np-text-faint);
  font-size: .85rem;
}

/* ============ Formularios ============ */
.np-form { display: flex; flex-direction: column; gap: 16px; }
.np-form label { font-size: .88rem; color: var(--np-text-dim); margin-bottom: 6px; display: block; }
.np-input, .np-select, .np-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--np-bg-2);
  border: 1px solid var(--np-border-2);
  border-radius: var(--np-radius-sm);
  color: var(--np-text);
  font-family: inherit;
  font-size: .95rem;
  transition: border-color .2s;
}
.np-input:focus, .np-select:focus, .np-textarea:focus {
  outline: none;
  border-color: var(--np-accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}
.np-textarea { resize: vertical; min-height: 100px; }

.np-form-error {
  background: rgba(255, 90, 106, 0.1);
  border: 1px solid rgba(255, 90, 106, 0.3);
  color: var(--np-err);
  padding: 12px 16px;
  border-radius: var(--np-radius-sm);
  font-size: .9rem;
}
.np-form-ok {
  background: rgba(16, 217, 139, 0.1);
  border: 1px solid rgba(16, 217, 139, 0.3);
  color: var(--np-ok);
  padding: 12px 16px;
  border-radius: var(--np-radius-sm);
  font-size: .9rem;
}

/* ============ Responsive nav ============ */
.np-menu-btn { display: none; background: none; border: none; color: var(--np-text); cursor: pointer; padding: 8px; }
@media (max-width: 880px) {
  .np-nav-links, .np-nav-cta .np-btn-ghost { display: none; }
  .np-menu-btn { display: block; }
}

/* ============ Utilities ============ */
.np-mono { font-family: var(--np-font-mono); }
.np-text-center { text-align: center; }
.np-mt-md { margin-top: 24px; }
.np-mt-lg { margin-top: 48px; }
