:root {
  --bg: #00020a;
  --bg-panel: rgba(255, 255, 255, 0.03);
  --bg-panel-strong: rgba(255, 255, 255, 0.05);
  --border: rgba(0, 212, 255, 0.16);
  --border-soft: rgba(0, 212, 255, 0.08);
  --cyan: #00d4ff;
  --cyan-soft: rgba(0, 212, 255, 0.68);
  --violet: #7800ff;
  --text: #eaf6ff;
  --text-dim: rgba(234, 246, 255, 0.62);
  --text-faint: rgba(234, 246, 255, 0.58);
  --font-display: 'Orbitron', monospace;
  --font-body: 'Inter', -apple-system, sans-serif;
  --max-w: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- fondo "sala de control" ----------
   El color base vive AQUI (no en html/body): un position:fixed con z-index
   negativo pinta por DEBAJO del propio background de <body>/<html> en la
   mayoria de motores (el "canvas" del documento se pinta antes que
   cualquier descendiente con z-index negativo) - si html/body tuvieran su
   propio background solido, taparia esta capa entera y la rejilla/particulas
   quedarian invisibles aunque el CSS este bien. Comprobado en vivo: quitando
   el background de html/body la rejilla aparece al instante. */

.bg-scene {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}

.bg-glow-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 520px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.12) 0%, transparent 70%);
}

.bg-glow-bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 420px;
  background: radial-gradient(ellipse at 50% 100%, rgba(120, 0, 255, 0.08) 0%, transparent 70%);
}

.bg-grid {
  position: absolute;
  inset: 0;
  opacity: 1;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 212, 255, 0.16) 0px, transparent 1px, transparent 42px, rgba(0, 212, 255, 0.16) 43px),
    repeating-linear-gradient(90deg, rgba(0, 212, 255, 0.16) 0px, transparent 1px, transparent 42px, rgba(0, 212, 255, 0.16) 43px);
  mask-image: radial-gradient(ellipse 130% 90% at 50% 30%, black 0%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 130% 90% at 50% 30%, black 0%, transparent 95%);
}

.bg-particles { position: absolute; inset: 0; }

.particle {
  position: absolute;
  border-radius: 50%;
  background: #00d4ff;
  animation: amset-float 8s ease-in-out infinite;
}

@keyframes amset-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(0, 2, 10, 0.72);
  border-bottom: 1px solid var(--border-soft);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.status-bar {
  position: sticky;
  top: 76px;
  z-index: 39;
  background: rgba(0, 2, 10, 0.55);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(6px);
}

.status-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  font-family: var(--font-display);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.status-bar .status-live { display: flex; align-items: center; gap: 8px; color: var(--cyan-soft); }

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

.status-bar .status-clock { white-space: nowrap; }

@media (max-width: 640px) {
  .status-bar .status-clock { display: none; }
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 26px; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.35)); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.nav-links a { transition: color 0.2s ease; white-space: nowrap; }
.nav-links a:hover { color: var(--cyan); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 6px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-faint);
}

.lang-switch a.active { background: rgba(0, 212, 255, 0.14); color: var(--cyan); }

.nav-toggle { display: none; }

/* ---------- botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #00d4ff, #0088cc);
  color: #00121e;
  box-shadow: 0 0 24px rgba(0, 212, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 0 36px rgba(0, 212, 255, 0.55); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
  color: var(--cyan);
}
.btn-ghost:hover { background: rgba(0, 212, 255, 0.08); border-color: var(--cyan); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- hero ---------- */

.hero {
  padding: 40px 0 64px;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 76px - 34px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

.hero .wrap > * { min-width: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan-soft);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.eyebrow::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: amset-pulse 2s ease-in-out infinite;
}

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

.hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.18;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero h1 .accent { color: var(--cyan); text-shadow: 0 0 22px rgba(0, 212, 255, 0.45); }

.hero p.lead {
  font-size: 1.08rem;
  color: var(--text-dim);
  max-width: 52ch;
  margin: 0 0 36px;
}

.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; padding: 28px; }

.hero-visual::before,
.hero-visual::after,
.hero-visual .corner-tl,
.hero-visual .corner-br {
  content: '';
  position: absolute;
  width: 26px; height: 26px;
  border: 1px solid var(--cyan-soft);
  opacity: 0.55;
}
.hero-visual::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.hero-visual::after { bottom: 0; right: 0; border-left: none; border-top: none; }
.hero-visual .corner-tl { top: 0; right: 0; border-left: none; border-bottom: none; }
.hero-visual .corner-br { bottom: 0; left: 0; border-right: none; border-top: none; }

/* ---------- secciones generales ---------- */

section { padding: 96px 0; position: relative; }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }

.section-head .eyebrow { justify-content: center; }

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 16px;
}

.section-head p { color: var(--text-dim); margin: 0; }

/* ---------- servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 36px 28px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity 0.3s ease;
}

.service-card:hover { border-color: var(--border); transform: translateY(-4px); background: var(--bg-panel-strong); }
.service-card:hover::before { opacity: 1; }

.service-icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--cyan); }
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.service-card p { color: var(--text-dim); margin: 0; font-size: 0.95rem; }

/* ---------- proceso ---------- */

.process-list { display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; }

.process-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border-soft);
}
.process-item:last-child { border-bottom: none; }

.process-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--cyan-soft);
}

.process-item h3 {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 8px;
  color: var(--text);
}

.process-item p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- prueba propia ---------- */

.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.proof-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 32px;
}

.proof-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a1a12;
  background: #00ff88;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.proof-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 12px;
}

.proof-card p { color: var(--text-dim); margin: 0 0 16px; font-size: 0.95rem; }

.proof-link { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--cyan); text-transform: uppercase; }
.proof-link::after { content: ' →'; }

.proof-note {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  margin: 0 0 18px;
}

.contact-info p.lead { color: var(--text-dim); max-width: 46ch; margin: 0 0 36px; }

.contact-list { display: flex; flex-direction: column; gap: 18px; }

.contact-list-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-soft);
}
.contact-list-item:last-child { border-bottom: none; padding-bottom: 0; }

.contact-list-icon {
  width: 38px; height: 38px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--cyan);
}
.contact-list-icon svg { width: 18px; height: 18px; }

.contact-list-label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.contact-list-value { font-size: 1rem; color: var(--text); transition: color 0.2s ease; }
.contact-list-item a:hover .contact-list-value { color: var(--cyan); }

.contact-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 40px 32px;
  text-align: center;
  position: relative;
}

.contact-panel::before {
  content: '';
  position: absolute; top: -1px; left: 24px; right: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.contact-panel .eyebrow { justify-content: center; }

.contact-panel p.panel-lead {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.contact-panel .btn-row { flex-direction: column; }
.contact-panel .btn { width: 100%; justify-content: center; }

.contact-panel .response-note {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.contact-panel .response-note .status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #00ff88; box-shadow: 0 0 6px #00ff88;
  animation: amset-pulse 2s ease-in-out infinite;
}

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-info { text-align: center; }
  .contact-info p.lead { margin-left: auto; margin-right: auto; }
  .contact-list-item { text-align: left; }
}

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  padding: 40px 0;
}

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

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 18px; opacity: 0.8; }

.footer-meta {
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-meta a:hover { color: var(--cyan); }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero { padding-top: 32px; text-align: center; }
  .hero .wrap { grid-template-columns: 1fr; }
  .eyebrow { justify-content: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .hero-visual { order: -1; padding: 12px; }
  .services-grid { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .nav-links {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(0, 2, 10, 0.97);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 24px 20px;
  }
  .nav-links a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border-soft); }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 4px;
    background: transparent; color: var(--cyan); cursor: pointer;
  }
  .site-footer .wrap { flex-direction: column; text-align: center; }
}
