/*
Theme Name: NMC Technology ERP
Theme URI: https://nmctechnology.com
Author: NMC Technology
Author URI: https://nmctechnology.com
Description: Tema corporativo tecnológico para NMC Technology ERP Web — diseño oscuro, moderno y profesional.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nmc-erp
Tags: technology, erp, corporate, dark, modern
*/

/* =========================================================
   VARIABLES GLOBALES
   ========================================================= */
:root {
  --nmc-bg:        #0a0f1a;
  --nmc-surface:   #111827;
  --nmc-surface2:  #1a2336;
  --nmc-border:    rgba(29,158,117,0.18);
  --nmc-blue:     #4A8FE3;
  --nmc-purple:   #7B4FD3;
  --nmc-pink:     #D4449A;
  --nmc-teal:     #4A8FE3;
  --nmc-teal-lt:  #8BBEFF;
  --nmc-teal-glow: rgba(123,79,211,0.12);
  --nmc-white:     #f0f4f8;
  --nmc-muted:     #8899a6;
  --nmc-accent2:  #D4449A;
  --nmc-font:      'Sora', 'Segoe UI', sans-serif;
  --nmc-mono:      'JetBrains Mono', monospace;
  --nmc-r:         10px;
  --nmc-r-lg:      18px;
  --nmc-shadow:    0 4px 32px rgba(0,0,0,0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--nmc-font);
  background: var(--nmc-bg);
  color: var(--nmc-white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--nmc-teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--nmc-teal-lt); }

/* =========================================================
   UTILIDADES
   ========================================================= */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--nmc-teal);
  background: var(--nmc-teal-glow);
  border: 1px solid var(--nmc-border);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.section-tag::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4A8FE3, #7B4FD3, #D4449A);
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, #4A8FE3 0%, #7B4FD3 50%, #D4449A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 28px;
  border-radius: var(--nmc-r);
  font-family: var(--nmc-font);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .25s;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #4A8FE3, #7B4FD3, #D4449A);
  color: #fff;
}
.btn-primary:hover {
  background: #8BBEFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(29,158,117,.35);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--nmc-white);
  border: 1.5px solid rgba(255,255,255,.2);
}
.btn-outline:hover {
  border-color: var(--nmc-teal);
  color: var(--nmc-teal);
  background: var(--nmc-teal-glow);
  transform: translateY(-2px);
}

/* =========================================================
   HEADER / NAVBAR
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,26,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--nmc-border);
}

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

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--nmc-white);
  letter-spacing: -.02em;
}

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #4A8FE3, #7B4FD3, #D4449A);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  font-family: var(--nmc-mono);
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  color: var(--nmc-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .2s;
}
.site-nav a:hover { color: var(--nmc-white); }

.nav-cta { margin-left: 1rem; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--nmc-white);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(29,158,117,.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--nmc-muted);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: clamp(2rem, 5vw, 4rem);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--nmc-border);
}

.stat-item { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--nmc-teal-lt);
  display: block;
}
.stat-label { font-size: 13px; color: var(--nmc-muted); }

/* =========================================================
   SECCIÓN: CAPACIDADES
   ========================================================= */
.capabilities {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.section-header p {
  color: var(--nmc-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-top: .75rem;
  font-size: 1.05rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.cap-card {
  background: var(--nmc-surface);
  border: 1px solid var(--nmc-border);
  border-radius: var(--nmc-r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: border-color .3s, transform .3s;
}

.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--nmc-teal), var(--nmc-accent2));
  opacity: 0;
  transition: opacity .3s;
}

.cap-card:hover {
  border-color: rgba(29,158,117,.4);
  transform: translateY(-4px);
}
.cap-card:hover::before { opacity: 1; }

.cap-icon {
  width: 48px; height: 48px;
  background: var(--nmc-teal-glow);
  border: 1px solid var(--nmc-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 22px;
  color: var(--nmc-teal);
}

.cap-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .6rem;
  color: var(--nmc-white);
}

.cap-card p {
  font-size: .93rem;
  color: var(--nmc-muted);
  line-height: 1.7;
}

/* =========================================================
   SECCIÓN: PLATAFORMA / MANEJO
   ========================================================= */
.platform {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--nmc-surface);
  position: relative;
  overflow: hidden;
}

.platform::before {
  content: '';
  position: absolute;
  right: -200px; top: 50%;
  transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(ellipse, rgba(55,138,221,.1) 0%, transparent 70%);
  pointer-events: none;
}

.platform-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.platform-text h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.platform-text p.lead {
  font-size: 1.05rem;
  color: var(--nmc-muted);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--nmc-muted);
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  background: var(--nmc-teal-glow);
  border: 1px solid var(--nmc-teal);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%231D9E75'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
}

.platform-visual {
  position: relative;
}

.platform-card-mock {
  background: var(--nmc-surface2);
  border: 1px solid var(--nmc-border);
  border-radius: var(--nmc-r-lg);
  padding: 1.5rem;
  box-shadow: var(--nmc-shadow);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.25rem;
}

.mock-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.mock-bar {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  margin-left: .5rem;
}

.mock-metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.mock-metric {
  background: var(--nmc-surface);
  border: 1px solid var(--nmc-border);
  border-radius: 8px;
  padding: .75rem;
}

.mock-metric-val {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--nmc-teal-lt);
  font-family: var(--nmc-mono);
}

.mock-metric-lbl {
  font-size: 10px;
  color: var(--nmc-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mock-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  padding: 0 4px;
  border-bottom: 1px solid var(--nmc-border);
  margin-bottom: .75rem;
}

.mock-bar-item {
  flex: 1;
  background: rgba(29,158,117,.25);
  border-radius: 4px 4px 0 0;
  border: 1px solid rgba(29,158,117,.35);
  border-bottom: none;
  transition: background .3s;
}

.mock-bar-item.active {
  background: rgba(29,158,117,.65);
}

/* =========================================================
   SECCIÓN: CTA
   ========================================================= */
.cta-section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.cta-box {
  background: var(--nmc-surface);
  border: 1px solid var(--nmc-border);
  border-radius: 24px;
  padding: clamp(2.5rem, 5vw, 5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  bottom: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(ellipse, rgba(29,158,117,.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-box h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: .9rem;
}

.cta-box p {
  color: var(--nmc-muted);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--nmc-surface);
  border-top: 1px solid var(--nmc-border);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 13px;
  color: var(--nmc-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: var(--nmc-muted);
}
.footer-links a:hover { color: var(--nmc-teal); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .platform-inner {
    grid-template-columns: 1fr;
  }
  .platform-visual { order: -1; }
}

@media (max-width: 680px) {
  .site-nav ul,
  .nav-cta { display: none; }

  .site-nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--nmc-surface);
    border-bottom: 1px solid var(--nmc-border);
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

  .menu-toggle { display: flex; }

  .hero-stats { gap: 2rem; }
}
