/* Nexus OS — landing B2B. Paleta: negro + azul, mission control aireado. */

:root {
  --bg: #06090f;
  --bg-panel: #0b1220;
  --bg-card: #0e1626;
  --border: #1c2a44;
  --blue: #2f7bff;
  --blue-bright: #5c9dff;
  --text: #e8eef8;
  --text-dim: #9db0cc;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

a { color: var(--blue-bright); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 9, 15, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  color: var(--text);
}
.wordmark span { color: var(--blue); }
.wordmark-sm { font-size: 0.95rem; }

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
}
.header-nav a { color: var(--text-dim); }
.header-nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--blue-bright) !important;
  font-weight: 600;
}

.console-link {
  font-size: 0.82rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s;
}
.console-link:hover { border-color: var(--blue); color: var(--text); }

/* ===== Hero ===== */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(47, 123, 255, 0.18), transparent),
    var(--bg);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-bright);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero-sub {
  max-width: 640px;
  margin: 0 auto 36px;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 56px;
}

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-bright); }
.btn-ghost { border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--blue); }
.btn-block { width: 100%; }

.hero-proof {
  display: flex;
  gap: 48px;
  justify-content: center;
  list-style: none;
  color: var(--text-dim);
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.hero-proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}

/* ===== Secciones ===== */
.section { padding: 100px 0; }
.section-dark {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

.section-lead {
  max-width: 620px;
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

/* ===== Cards / grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.card, .feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}

.card-icon {
  font-size: 1.6rem;
  color: var(--blue-bright);
  margin-bottom: 16px;
}

.card h3, .feature h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p, .feature p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ===== Caso real ===== */
.case-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}

.case-steps {
  list-style: none;
  margin: 32px 0;
  display: grid;
  gap: 16px;
}
.case-steps li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  color: var(--text-dim);
}
.case-steps span {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 123, 255, 0.15);
  border: 1px solid var(--blue);
  color: var(--blue-bright);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
}

.case-note {
  color: var(--text);
  font-size: 0.95rem;
  border-left: 3px solid var(--blue);
  padding-left: 16px;
}

/* Mockup del teléfono */
.case-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.scan-chip {
  position: absolute;
  top: -14px;
  right: 8%;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--blue);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue-bright);
  box-shadow: 0 0 24px rgba(47, 123, 255, 0.35);
}
.scan-waves {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-bright);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(92, 157, 255, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(92, 157, 255, 0); }
}

.phone {
  width: 290px;
  border: 2px solid var(--border);
  border-radius: 36px;
  background: #05070c;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.phone-notch {
  width: 90px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  margin: 4px auto 12px;
}
.phone-screen {
  background: var(--bg-panel);
  border-radius: 22px;
  padding: 20px 16px;
}

.pet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.pet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.pet-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}
.pet-status { font-size: 0.75rem; color: #ff7a7a; }

.pet-actions { display: grid; gap: 8px; margin-bottom: 18px; }
.pet-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  text-align: center;
  cursor: default;
}
.pet-btn-call { background: var(--blue); border-color: var(--blue); }
.pet-btn-wa { background: #1c4a34; border-color: #2c6b4c; }

.pet-info {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.pet-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
}
.pet-info-row span:first-child { color: var(--text-dim); }

.pet-footer {
  text-align: center;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-direct { display: grid; gap: 14px; }
.contact-line {
  display: block;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  transition: border-color 0.15s;
}
.contact-line:hover { border-color: var(--blue); }
.contact-line strong {
  font-family: var(--font-display);
  color: var(--blue-bright);
  margin-right: 12px;
}
.contact-hint { font-size: 0.85rem; color: var(--text-dim); }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-note {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  font-weight: 400;
}

/* ===== Footer ===== */
.site-footer {
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===== Red de identidades (hero canvas) ===== */
.hero { position: relative; overflow: hidden; }
#identity-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.9;
}
.hero .container { position: relative; z-index: 1; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ===== Micro-interacciones ===== */
.card, .feature {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover, .feature:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px rgba(47, 123, 255, 0.14);
}

.btn-primary {
  position: relative;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(47, 123, 255, 0.35); }
.btn-ghost { transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.btn-ghost:hover { transform: translateY(-2px); }

.case-mockup .phone { transition: transform 0.3s ease; }
.case-mockup:hover .phone { transform: translateY(-6px) rotate(-1deg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .feature:hover, .btn-primary:hover, .btn-ghost:hover, .case-mockup:hover .phone {
    transform: none;
  }
}

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .grid-3, .grid-4, .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .case-grid { gap: 48px; }
  .header-nav a:not(.console-link):not(.nav-cta) { display: none; }
  .hero { padding: 80px 0 64px; }
  .section { padding: 64px 0; }
  .hero-actions { flex-direction: column; align-items: center; }
}
