/* ============================================
   NWare Soluciones — Design Tokens
   ============================================ */
:root {
  --bg: #0A0A0A;
  --bg-elevated: #111113;
  --bg-card: #131316;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #F5F5F7;
  --text-dim: #A0A0A8;
  --text-faint: #6B6B72;
  --accent: #5FE3F0;
  --accent-dim: rgba(95, 227, 240, 0.12);
  --accent-line: rgba(95, 227, 240, 0.35);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Grain overlay — subtle texture, premium feel
   ============================================ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

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

.text-accent { color: var(--accent); }

.section-title {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-title-center { text-align: center; }

.section-head {
  max-width: 560px;
  margin-bottom: 56px;
}

.section-tech .section-head,
.section-tech .eyebrow,
.section-tech .section-title { margin-left: auto; margin-right: auto; }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}

.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }

.btn-primary {
  background: var(--accent);
  color: #06181A;
}

.btn-primary:hover {
  background: #7CEAF4;
  box-shadow: 0 0 24px rgba(95, 227, 240, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  height: 36px;
  width: auto;
}

.logo-mark-sm { height: 28px; }

.logo-text {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.logo-text-light { font-weight: 400; color: var(--text-dim); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color 0.2s;
  position: relative;
}

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

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav-toggle span {
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s var(--ease);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 168px 0 120px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(95, 227, 240, 0.14) 0%, transparent 70%);
  pointer-events: none;
  filter: blur(20px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
}

.hero-title {
  font-size: clamp(36px, 4.6vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 460px;
  line-height: 1.55;
  margin-bottom: 36px;
}

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

/* ---- Hero visual: console + floating cards ---- */
.hero-visual {
  position: relative;
  height: 440px;
}

.console {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6);
  overflow: hidden;
  animation: floatY 7s ease-in-out infinite;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}

.console-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
}

.console-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-faint);
  margin-left: 8px;
}

.console-body {
  padding: 20px 18px 24px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.console-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  opacity: 0;
  animation: lineIn 0.5s var(--ease) forwards;
  animation-delay: var(--d);
}

.console-prompt { color: var(--accent); }
.console-cmd { color: var(--text-dim); flex: 1; }

.console-status {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 100px;
  font-weight: 500;
}

.status-ok { background: rgba(95, 227, 240, 0.12); color: var(--accent); }
.status-run {
  background: rgba(255,255,255,0.07);
  color: var(--text-dim);
}

.console-cursor {
  display: inline-block;
  color: var(--accent);
  opacity: 0;
  animation: lineIn 0.4s var(--ease) forwards, blink 1s step-end infinite 1.4s;
  animation-delay: var(--d);
}

@keyframes lineIn {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  border-radius: 100px;
  padding: 11px 18px 11px 11px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.5);
}

.float-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

.float-card-1 {
  bottom: 90px;
  left: 0;
  animation: floatY 6s ease-in-out infinite 0.3s;
}

.float-card-2 {
  bottom: 28px;
  right: 10px;
  animation: floatY 6.5s ease-in-out infinite 0.6s;
}

.float-card-3 {
  top: -4px;
  right: 30px;
  animation: floatY 5.5s ease-in-out infinite;
}

.float-card-3 .float-card-img {
  width: 24px;
  height: 24px;
}

/* ============================================
   Sections (generic)
   ============================================ */
.section {
  padding: 110px 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ============================================
   Cards — services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.01));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.35s var(--ease);
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(0,0,0,0.5);
}

.card-featured {
  background: linear-gradient(165deg, rgba(95, 227, 240, 0.08), rgba(255,255,255,0.015));
  border-color: var(--accent-line);
}

.card-featured:hover {
  box-shadow: 0 24px 60px -24px rgba(95, 227, 240, 0.25);
}

.card-stocke {
  --stocke: #7DD96A;
  --stocke-dim: rgba(125, 217, 106, 0.12);
  --stocke-line: rgba(125, 217, 106, 0.35);
}

.card-stocke .card-icon {
  background: #CDF0C6;
  color: var(--stocke);
}

.card-stocke .badge-mono {
  background: var(--stocke-dim);
  color: var(--stocke);
  border-color: var(--stocke-line);
}

.card-stocke .card-link {
  color: var(--stocke);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.card-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.card-text {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 24px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  width: fit-content;
}

.card-link svg { transition: transform 0.25s var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

.badge {
  display: inline-flex;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 100px;
  margin-bottom: 18px;
}

.badge-mono {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

/* ============================================
   Why us
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.why-card {
  background: var(--bg-elevated);
  padding: 32px 26px;
  transition: background 0.3s var(--ease);
}

.why-card:hover { background: rgba(95, 227, 240, 0.04); }

.why-check {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: transform 0.3s var(--ease);
}

.why-card:hover .why-check { transform: scale(1.08); }

.why-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.55;
}

/* ============================================
   Tech marquee
   ============================================ */
.section-tech { padding: 100px 0 110px; text-align: center; }
.section-tech .section-head { margin-left: auto; margin-right: auto; margin-bottom: 48px; }

.tech-marquee {
  margin-top: 48px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.tech-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll 26s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tech-badge {
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 11px 22px;
  border-radius: 100px;
  white-space: nowrap;
  transition: all 0.25s;
}

.tech-badge:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}

/* ============================================
   Products
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}

.product-card {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(125, 217, 106, 0.35);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(165deg, rgba(125, 217, 106, 0.07), rgba(255,255,255,0.015));
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 60px -24px rgba(125, 217, 106, 0.25);
}

.product-card-top { margin-bottom: 18px; }

.product-logo {
  width: 144px;
  height: 144px;
  object-fit: contain;
  margin-bottom: 14px;
}

.product-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.product-text {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 28px;
}

.product-card-empty {
  background: rgba(255,255,255,0.015);
  border: 1px dashed var(--border-hover);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--text-faint);
}

.product-card .badge-mono {
  background: rgba(125, 217, 106, 0.12);
  color: #7DD96A;
  border-color: rgba(125, 217, 106, 0.35);
}

.product-card .btn-primary {
  background: #7DD96A;
  color: #0A1A0A;
}

.product-card .btn-primary:hover {
  background: #95E680;
  box-shadow: 0 0 24px rgba(125, 217, 106, 0.35);
}

.plus-sign {
  font-size: 32px;
  font-weight: 300;
  color: var(--text-faint);
}

.product-card-empty p {
  font-family: var(--font-mono);
  font-size: 13px;
}

/* ============================================
   About
   ============================================ */
.section-about { padding: 70px 0 110px; }

.about-inner {
  max-width: 720px;
}

.about-text {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* ============================================
   CTA final
   ============================================ */
.cta-final {
  position: relative;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(95, 227, 240, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner { position: relative; }

.cta-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 620px;
  margin: 0 auto 16px;
}

.cta-text {
  color: var(--text-dim);
  font-size: 16.5px;
  margin-bottom: 36px;
}

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

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
}

/* ============================================
   Scroll reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 20px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Contact Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  max-width: 440px;
  width: 90vw;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.modal-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.modal-option:hover {
  background: rgba(125, 217, 106, 0.08);
  border-color: rgba(125, 217, 106, 0.3);
}

.modal-option svg {
  flex-shrink: 0;
  color: #7DD96A;
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
  }

  .nav-links a:last-child { border-bottom: none; }

  .nav-toggle { display: flex; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .navbar-actions { gap: 14px; }

  .hero { padding: 130px 0 80px; }
  .hero-actions .btn { flex: 1; justify-content: center; }

  .hero-visual { height: 420px; }
  .console { max-width: 100%; left: 0; }
  .float-card { font-size: 12.5px; padding: 9px 14px 9px 9px; }
  .float-card span { display: inline-block; max-width: 130px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }

  .why-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .float-card-3 { right: 0; top: -10px; }
  .float-card-1 { bottom: 110px; }
}
