/* ============================================================
   SMABI ERP — Landing oficial (smabigt)
   Paleta: azul/negro/blanco futurista (identidad SMABI)
   ============================================================ */

:root {
  --bg:            #060B18;
  --bg-2:          #0A1226;
  --surface:       #0F1A30;
  --surface-2:     #121F3B;
  --border:        rgba(102, 158, 235, .16);
  --border-hv:     rgba(102, 158, 235, .32);

  --primary:       #1976D2;
  --primary-hv:    #42A5F5;
  --primary-dk:    #0D47A1;

  --text:          #F2F6FF;
  --text-muted:    #8CA3C9;

  --success:       #2E7D32;

  --font-ui:   'Inter', 'Segoe UI', sans-serif;
  --font-data: 'Nunito', 'Segoe UI', sans-serif;

  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-data);
  line-height: 1.55;
  overflow-x: hidden;
  position: relative;
}

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

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

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

/* ===== Fondo decorativo ===== */
#network-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow.left  { top: -220px; left: -240px; background: radial-gradient(circle, rgba(25,118,210,.30), transparent 70%); }
.bg-glow.right { top: 900px; right: -260px; background: radial-gradient(circle, rgba(13,71,161,.28), transparent 70%); }

main, header, footer { position: relative; z-index: 1; }

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .3px;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-hv), var(--primary-dk));
  color: #fff;
  box-shadow: 0 6px 20px rgba(25,118,210,.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(25,118,210,.5); }

.btn-lg { padding: 15px 28px; font-size: 15.5px; border-radius: 12px; }

.ico-play { font-size: 12px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 11, 24, .78);
  border-bottom: 1px solid var(--border);
}

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

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

.brand-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-hv), var(--primary-dk));
  box-shadow: 0 4px 14px rgba(25,118,210,.4);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-ui);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--text);
}
.brand-sub {
  font-family: var(--font-ui);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
}
.main-nav a:not(.btn) { color: var(--text-muted); transition: color .15s ease; }
.main-nav a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

/* ===== Hero ===== */
.hero { padding: 96px 0 84px; }

.hero-inner { max-width: 780px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--primary-hv);
  background: rgba(66,165,245,.1);
  border: 1px solid var(--border-hv);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.5px;
  margin-bottom: 22px;
}

.grad-text {
  background: linear-gradient(135deg, var(--primary-hv), #90CAF9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }

.demo-credentials {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-hv);
  background: rgba(66,165,245,.1);
  border: 1px solid var(--border-hv);
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.demo-credentials strong { color: var(--text); }

/* ===== Beneficios (strip) ===== */
.benefits-strip {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.015);
}

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

.benefit { display: flex; align-items: flex-start; gap: 14px; }

.benefit-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(66,165,245,.18), rgba(13,71,161,.28));
  color: var(--primary-hv);
}
.benefit-icon svg { width: 22px; height: 22px; }

.benefit h4 {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 4px;
}
.benefit p { font-size: 13px; color: var(--text-muted); }

/* ===== Secciones genéricas ===== */
.section { padding: 84px 0; }

.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 {
  font-family: var(--font-ui);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  letter-spacing: -.3px;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 15.5px; }

/* ===== Grid / Cards ===== */
.grid { display: grid; gap: 20px; }
.grid-modulos { grid-template-columns: repeat(4, 1fr); }
.grid-extras  { grid-template-columns: repeat(3, 1fr); }

.card {
  position: relative;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hv);
  box-shadow: 0 14px 34px rgba(0,0,0,.35);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(66,165,245,.18), rgba(13,71,161,.28));
  color: var(--primary-hv);
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-family: var(--font-ui);
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}
.card p { font-size: 14px; color: var(--text-muted); }

/* Extras */
.section-extras { background: linear-gradient(180deg, transparent, rgba(25,118,210,.05), transparent); }

.card-extra { border-color: rgba(66,165,245,.28); }

.badge-cotiza {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #90CAF9;
  background: rgba(66,165,245,.14);
  border: 1px solid var(--border-hv);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ===== Precios ===== */
.pricing-card {
  max-width: 760px;
  margin: 0 auto 36px;
  display: flex;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-hv);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(13,71,161,.18);
  overflow: hidden;
}

.pricing-main, .pricing-extra {
  flex: 1;
  padding: 36px 32px;
  text-align: center;
}

.pricing-divider { width: 1px; background: var(--border); }

.pricing-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-hv);
  margin-bottom: 14px;
}

.pricing-amount { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-bottom: 14px; }
.pricing-amount .currency { font-family: var(--font-ui); font-size: 22px; font-weight: 700; color: var(--text-muted); }
.pricing-amount .amount { font-family: var(--font-ui); font-size: 44px; font-weight: 900; }
.pricing-amount .period { font-size: 13px; color: var(--text-muted); margin-left: 4px; }

.pricing-desc { font-size: 13.5px; color: var(--text-muted); }

.pricing-includes {
  max-width: 760px;
  margin: 0 auto 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  list-style: none;
}
.pricing-includes li {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
}
.pricing-includes li::before { content: "✓  "; color: var(--primary-hv); }

.pricing-note { text-align: center; font-size: 13.5px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ===== CTA final ===== */
.section-cta {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, rgba(25,118,210,.16), transparent 60%);
}
.cta-inner h2 { font-family: var(--font-ui); font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; margin-bottom: 12px; }
.cta-inner p { color: var(--text-muted); margin-bottom: 30px; }
.cta-inner .hero-cta { justify-content: center; margin-bottom: 48px; }

/* ===== Formulario de contacto ===== */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row { display: flex; gap: 16px; }
.form-row .form-field { flex: 1; }

.form-field { margin-bottom: 18px; }

.form-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font-family: var(--font-data);
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  resize: vertical;
  transition: border-color .15s ease, background .15s ease;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--border-hv);
  background: rgba(255,255,255,.05);
}

.form-submit { width: 100%; justify-content: center; margin-top: 4px; }

.form-status {
  margin-top: 14px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  min-height: 1.2em;
}
.form-status.ok  { color: #66BB6A; }
.form-status.err { color: #EF5350; }

@media (max-width: 560px) {
  .form-row { flex-direction: column; gap: 0; }
  .contact-form { padding: 24px 20px; }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { display: flex; align-items: center; gap: 9px; }
.footer-brand .brand-icon { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .brand-name { font-size: 16px; letter-spacing: 1.6px; }
.footer-tagline { font-size: 13px; color: var(--text-muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; margin: 6px 0; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--primary-hv); }
.footer-copy { font-size: 12px; color: var(--text-muted); opacity: .6; margin-top: 10px; }

/* ===== WhatsApp flotante ===== */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.45);
  z-index: 60;
  transition: transform .18s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Reveal on scroll ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .grid-modulos { grid-template-columns: repeat(2, 1fr); }
  .grid-extras  { grid-template-columns: 1fr; }
  .benefits-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    gap: 16px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .main-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a.btn { justify-content: center; }

  .pricing-card { flex-direction: column; }
  .pricing-divider { width: auto; height: 1px; }
}

@media (max-width: 560px) {
  .grid-modulos { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 60px 0; }
}

/* ============================================================
   Intro (splash) screen
   ============================================================ */
body.intro-lock { overflow: hidden; }

#intro-screen {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, rgba(11,24,48,.86) 0%, rgba(6,11,24,.94) 70%);
  transition: opacity .5s ease, visibility .5s ease;
}
#intro-screen.fade-out { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,118,210,.35), transparent 70%);
  filter: blur(90px);
  animation: introPulse 2.4s ease-in-out infinite;
}

.intro-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: introFadeIn .7s ease both;
}

.intro-icon {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-hv), var(--primary-dk));
  box-shadow: 0 10px 40px rgba(25,118,210,.55);
  animation: introIconPop .6s cubic-bezier(.34,1.56,.64,1) both;
}

.intro-word {
  font-family: var(--font-ui);
  font-size: 40px;
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--text);
  margin-left: 10px;
}

.intro-tagline {
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.intro-bar {
  width: 140px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
  margin-top: 4px;
}
.intro-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-hv));
  animation: introBar 1.5s ease forwards .2s;
}

@keyframes introFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes introIconPop {
  from { opacity: 0; transform: scale(.6); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes introPulse {
  0%, 100% { transform: scale(1);   opacity: .8; }
  50%      { transform: scale(1.12); opacity: 1; }
}
@keyframes introBar {
  from { width: 0%; }
  to   { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-glow, .intro-content, .intro-icon, .intro-bar span { animation: none; }
}
