/**
 * Nebrixon — hoja de estilos principal
 * Paleta: Black #1F2937, Blue #3A70FB, Green #10B981, Yellow #FBBF24, White #E5E7EB
 * Tipografía: Oswald (títulos), Roboto (texto)
 */

:root {
  --nb-black: #1f2937;
  --nb-blue: #3a70fb;
  --nb-green: #10b981;
  --nb-yellow: #fbbf24;
  --nb-white: #e5e7eb;
  --nb-black-soft: #111827;
  --nb-surface: #243045;
  --nb-surface-2: #1b2432;
  --nb-border: rgba(229, 231, 235, 0.12);
  --nb-glow: 0 0 0 1px rgba(58, 112, 251, 0.25), 0 20px 50px rgba(0, 0, 0, 0.45);
  --nb-radius: 14px;
  --nb-radius-sm: 10px;
  --nb-font-title: "Oswald", system-ui, sans-serif;
  --nb-font-body: "Roboto", system-ui, sans-serif;
}

/* Reset suave sobre Bootstrap */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

.nb-body {
  font-family: var(--nb-font-body);
  color: var(--nb-white);
  background: radial-gradient(1200px 600px at 10% -10%, rgba(58, 112, 251, 0.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(16, 185, 129, 0.12), transparent 50%),
    linear-gradient(180deg, var(--nb-black-soft), var(--nb-black));
  min-height: 100vh;
  position: relative;
}

/* Patrón de fondo “tecnológico” */
.nb-grid-bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image: linear-gradient(var(--nb-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--nb-border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at top, rgba(0, 0, 0, 0.65), transparent 65%);
  opacity: 0.35;
  z-index: 0;
}

.nb-body > *:not(.nb-grid-bg) {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3,
h4,
.nb-font-title {
  font-family: var(--nb-font-title);
  letter-spacing: 0.02em;
}

.nb-header {
  backdrop-filter: blur(10px);
  background: rgba(31, 41, 55, 0.72);
  border-bottom: 1px solid var(--nb-border);
}

.nb-navbar {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.nb-brand {
  font-family: var(--nb-font-title);
  font-weight: 600;
  color: var(--nb-white) !important;
  text-decoration: none;
}

.nb-brand:hover {
  color: var(--nb-white) !important;
}

.nb-brand-icon {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(58, 112, 251, 0.35), rgba(16, 185, 129, 0.22));
  border: 1px solid var(--nb-border);
  color: var(--nb-blue);
  box-shadow: var(--nb-glow);
}

.nb-brand-icon--sm {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.nb-brand-text {
  font-size: 1.35rem;
}

.nb-toggler {
  border: 1px solid var(--nb-border);
}

.navbar-toggler-icon {
  filter: invert(1) grayscale(1);
}

.nb-nav-link {
  color: rgba(229, 231, 235, 0.85) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem !important;
  border-radius: 10px;
}

.nb-nav-link:hover,
.nb-nav-link:focus {
  color: var(--nb-white) !important;
  background: rgba(58, 112, 251, 0.12);
}

.nb-nav-cta {
  background: linear-gradient(135deg, var(--nb-blue), #2563eb);
  color: #fff !important;
  margin-left: 0.25rem;
}

.nb-nav-cta:hover {
  filter: brightness(1.06);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  background: var(--nb-blue);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  z-index: 2000;
}

.skip-link:focus {
  top: 1rem;
}

/* Hero */
.nb-hero {
  padding: clamp(3.5rem, 6vw, 6rem) 0 clamp(3rem, 5vw, 5rem);
}

.nb-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--nb-border);
  background: rgba(58, 112, 251, 0.1);
  color: rgba(229, 231, 235, 0.92);
  font-size: 0.9rem;
}

.nb-hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  margin: 1.25rem 0 1rem;
  color: var(--nb-white);
}

.nb-hero-title span {
  background: linear-gradient(90deg, var(--nb-blue), var(--nb-green));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nb-hero-lead {
  font-size: 1.125rem;
  color: rgba(229, 231, 235, 0.78);
  max-width: 46ch;
}

.nb-hero-panel {
  border-radius: var(--nb-radius);
  border: 1px solid var(--nb-border);
  background: linear-gradient(180deg, rgba(36, 48, 69, 0.85), rgba(27, 36, 50, 0.75));
  box-shadow: var(--nb-glow);
  padding: 1.5rem;
}

.nb-circuit {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 1rem;
}

.nb-circuit span {
  height: 10px;
  border-radius: 999px;
  background: rgba(229, 231, 235, 0.08);
  border: 1px solid var(--nb-border);
}

.nb-circuit span:nth-child(3n) {
  background: rgba(58, 112, 251, 0.35);
}

.nb-circuit span:nth-child(5n) {
  background: rgba(16, 185, 129, 0.35);
}

.nb-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--nb-border);
  font-size: 0.95rem;
  color: rgba(229, 231, 235, 0.8);
}

.nb-metric strong {
  color: var(--nb-yellow);
  font-family: var(--nb-font-title);
  font-size: 1.15rem;
}

/* Botones */
.nb-btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--nb-blue);
  --bs-btn-border-color: rgba(255, 255, 255, 0.08);
  --bs-btn-hover-bg: #2f5fe0;
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.12);
  --bs-btn-focus-shadow-rgb: 58, 112, 251;
  --bs-btn-active-bg: #2a56cc;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
}

.nb-btn-ghost {
  --bs-btn-color: var(--nb-white);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--nb-border);
  --bs-btn-hover-bg: rgba(229, 231, 235, 0.06);
  --bs-btn-hover-border-color: rgba(229, 231, 235, 0.22);
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
}

/* Secciones genéricas */
.nb-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
}

.nb-section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.nb-section-sub {
  color: rgba(229, 231, 235, 0.72);
  max-width: 60ch;
}

/* Tarjetas servicio / beneficio */
.nb-card {
  height: 100%;
  border-radius: var(--nb-radius);
  border: 1px solid var(--nb-border);
  background: rgba(36, 48, 69, 0.55);
  padding: 1.5rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nb-card:hover {
  transform: translateY(-3px);
  border-color: rgba(58, 112, 251, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.nb-card-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(58, 112, 251, 0.15);
  color: var(--nb-blue);
  border: 1px solid var(--nb-border);
  margin-bottom: 1rem;
}

.nb-card-icon--green {
  background: rgba(16, 185, 129, 0.15);
  color: var(--nb-green);
}

.nb-card-icon--yellow {
  background: rgba(251, 191, 36, 0.15);
  color: var(--nb-yellow);
}

.nb-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.nb-card p {
  color: rgba(229, 231, 235, 0.78);
  margin-bottom: 0;
}

.nb-price {
  display: inline-flex;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  color: var(--nb-yellow);
  font-size: 0.9rem;
  font-weight: 600;
}

/* Testimonios */
.nb-quote {
  border-radius: var(--nb-radius);
  border: 1px solid var(--nb-border);
  background: rgba(27, 36, 50, 0.65);
  padding: 1.5rem;
  height: 100%;
}

.nb-quote p {
  color: rgba(229, 231, 235, 0.85);
  font-style: italic;
}

.nb-quote footer {
  color: rgba(229, 231, 235, 0.55);
  font-size: 0.9rem;
}

/* CTA final */
.nb-cta-band {
  border-radius: var(--nb-radius);
  border: 1px solid var(--nb-border);
  background: linear-gradient(135deg, rgba(58, 112, 251, 0.22), rgba(16, 185, 129, 0.14));
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

/* Formulario */
.nb-form .form-control,
.nb-form .form-select {
  background: rgba(27, 36, 50, 0.85);
  border: 1px solid var(--nb-border);
  color: var(--nb-white);
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.nb-form .form-control:focus,
.nb-form .form-select:focus {
  border-color: rgba(58, 112, 251, 0.65);
  box-shadow: 0 0 0 0.2rem rgba(58, 112, 251, 0.2);
  color: var(--nb-white);
}

.nb-form label {
  font-weight: 500;
  margin-bottom: 0.35rem;
  color: rgba(229, 231, 235, 0.9);
}

.nb-alert {
  border-radius: 12px;
  border: 1px solid var(--nb-border);
}

/* Footer */
.nb-footer {
  border-top: 1px solid var(--nb-border);
  background: rgba(17, 24, 39, 0.72);
}

.nb-footer-brand {
  font-family: var(--nb-font-title);
  font-weight: 600;
  font-size: 1.2rem;
}

.nb-footer-heading {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(229, 231, 235, 0.55);
  margin-bottom: 0.75rem;
}

.nb-footer-text,
.nb-footer-legal {
  color: rgba(229, 231, 235, 0.62);
  font-size: 0.95rem;
}

.nb-footer-links a {
  color: rgba(229, 231, 235, 0.82);
  text-decoration: none;
}

.nb-footer-links a:hover {
  color: var(--nb-blue);
}

.nb-divider {
  border-color: var(--nb-border);
  opacity: 1;
}

/* Utilidades */
.nb-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: rgba(58, 112, 251, 0.95);
  font-weight: 700;
}

.text-secondary {
  color: rgba(229, 231, 235, 0.55) !important;
}

/* Página servicios: ancla suave entre bloques */
.nb-service-block {
  scroll-margin-top: 96px;
}

@media (max-width: 991.98px) {
  .nb-nav-cta {
    margin-left: 0;
    margin-top: 0.25rem;
  }
}

/* Banner cookies (fijo inferior) */
.nb-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  background: rgba(17, 24, 39, 0.96);
  border-top: 1px solid var(--nb-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.nb-cookie-banner a {
  color: var(--nb-blue);
}

/* Textos legales largos */
.legal-content h2 {
  font-family: var(--nb-font-title);
  color: var(--nb-white);
}

.legal-content p,
.legal-content li {
  color: rgba(229, 231, 235, 0.82);
}

.legal-content a {
  color: var(--nb-blue);
}

.article-body ul {
  padding-left: 1.25rem;
  color: rgba(229, 231, 235, 0.82);
}

.article-body li {
  margin-bottom: 0.35rem;
}

.nb-review-stars {
  white-space: nowrap;
  letter-spacing: 0.05em;
}

.nb-review-stars .bi {
  font-size: 0.95rem;
}

.nb-review-item:last-child {
  border-bottom: none !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}
