/* ===========================
   SinBits - Estilos globales
   =========================== */

:root {
  --bg-body: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --bg-soft: #020617;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text-main: #e5e7eb;
  --text-muted: #94a3b8;
  --text-strong: #f9fafb;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 25px 50px rgba(15, 23, 42, 0.9);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0%, #020617 45%, #000 100%);
  color: var(--text-main);
  min-height: 100vh;
}

/* Layout básico */

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

/* Glow decorativo de fondo */

.hero-glow,
.glow-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.hero-glow::before,
.hero-glow::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.22;
  background: radial-gradient(circle, #38bdf8, transparent);
}

.hero-glow::before {
  top: -140px;
  right: -120px;
}

.hero-glow::after {
  bottom: -160px;
  left: -80px;
}

/* Header / Navegación */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.9),
    rgba(15, 23, 42, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #38bdf8, #0f172a 70%, #000 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 14px;
  color: var(--text-strong);
  font-weight: 600;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-strong);
}

.brand-tagline {
  font-size: 11px;
  color: var(--text-muted);
}

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

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  padding: 6px 0;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #0ea5e9, #22c55e);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.16s ease-out;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(8, 47, 73, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.7);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 40px rgba(8, 47, 73, 1);
}

/* Responsive nav simple (stack) */

@media (max-width: 640px) {
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
}

/* Tipografía general */

.page-title {
  font-size: 32px;
  line-height: 1.15;
  margin-bottom: 10px;
  color: var(--text-strong);
}

@media (min-width: 768px) {
  .page-title {
    font-size: 36px;
  }
}

.page-intro {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 640px;
}

/* Home - Hero */

.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr);
    align-items: center;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.6);
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.9);
}

.hero-title {
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text-strong);
}

.hero-title span.highlight {
  background: linear-gradient(120deg, #38bdf8, #22c55e);
  -webkit-background-clip: text;
  color: transparent;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 40px;
  }
}

.hero-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 22px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  color: #f9fafb;
  font-weight: 500;
  border: 1px solid rgba(15, 23, 42, 0.8);
  box-shadow: 0 16px 32px rgba(8, 47, 73, 0.9);
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 20px 40px rgba(8, 47, 73, 1);
}

.btn-secondary {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--text-main);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: var(--text-muted);
}

.hero-meta strong {
  color: var(--text-main);
}

/* Hero - panel lateral */

.hero-panel {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 20px 18px;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(56, 189, 248, 0.3), transparent 55%);
  opacity: 0.3;
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  z-index: 1;
}

.hero-panel-title {
  font-size: 14px;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.hero-panel-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.hero-panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag-pill {
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-muted);
}

.hero-panel-metric {
  font-size: 11px;
  color: var(--text-muted);
}

/* Secciones genéricas */

.section {
  padding: 28px 0;
}

.section-header {
  margin-bottom: 18px;
}

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.section-title {
  font-size: 22px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.section-intro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 620px;
}

/* Grid de servicios */

.services-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.service-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 16px 14px 14px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.9);
}

.service-title {
  font-size: 15px;
  color: var(--text-strong);
  margin-bottom: 6px;
}

.service-body {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.service-tagline {
  font-size: 11px;
  color: var(--accent);
}

/* Bloque "por qué SinBits" */

.why-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 860px) {
  .why-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
    align-items: center;
  }
}

.why-panel {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 16px;
  font-size: 14px;
  color: var(--text-muted);
}

.why-panel p {
  margin: 0 0 10px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.why-bullet {
  margin-top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--accent), transparent);
}

/* Páginas internas */

.page-hero {
  padding: 40px 0 20px;
}

.page-section {
  padding: 16px 0 32px;
}

.page-card {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  padding: 18px 16px;
  box-shadow: var(--shadow-soft);
}

/* Quienes somos */

.two-column {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .two-column {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}

.list-check {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.list-check li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.list-check li::before {
  content: "✔";
  margin-right: 6px;
  color: var(--accent);
  font-size: 12px;
}

/* Clientes */

.clients-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.client-card {
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 14px 12px;
}

.client-name {
  font-size: 14px;
  color: var(--text-strong);
  margin-bottom: 4px;
}

.client-sector {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 8px;
}

.client-body {
  font-size: 13px;
  color: var(--text-muted);
}

/* Contacto */

.contact-grid {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
}

.contact-form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 13px;
  color: var(--text-main);
}

.form-input,
.form-textarea {
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.95);
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.3);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.3);
  padding: 14px 0 18px;
  background: rgba(15, 23, 42, 0.98);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

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

/* Utilidades */

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

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

.mt-sm {
  margin-top: 10px;
}
