/* ==========================================================
   XaGa Network Solutions — estilos
   Para cambiar los colores de la marca, edita SOLO el bloque :root
   ========================================================== */
:root {
  --brand:        #e8941e;   /* azul marino principal (header, secciones oscuras) */
  --brand-2:      #f59105;   /* azul de acento (botones, enlaces) */
  --brand-2-dark: #1e40af;
  --accent:       #22c55e;   /* detalle (puntos, destacados) */

  --bg:       #ffffff;
  --bg-alt:   #f5f7fa;
  --text:     #0f172a;
  --muted:    #55627a;
  --line:     #e3e8ef;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px rgba(15,23,42,.06);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.muted { color: var(--muted); }
.eyebrow {
  text-transform: uppercase; letter-spacing: .12em; font-size: .75rem;
  font-weight: 600; color: var(--brand-2); margin-bottom: .9rem;
}
.eyebrow-light { color: #242322; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand img { height: 90px; width: auto; }
.brand-text { font-weight: 700; font-size: 1.4rem; color: var(--brand); letter-spacing: -.03em; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a { color: var(--text); font-size: .93rem; font-weight: 500; }
.menu a:hover { color: var(--brand-2); text-decoration: none; }
.menu-sep { width: 1px; height: 18px; background: var(--line); }
.menu-ext {
  font-size: .85rem !important; color: var(--muted) !important;
  border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.menu-ext:hover { border-color: var(--brand-2); color: var(--brand-2) !important; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--brand); margin: 5px 0; transition: .2s; }

/* Buttons */
.btn {
  display: inline-block; font: inherit; font-weight: 600; font-size: .95rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand-2); color: #fff; }
.btn-primary:hover { background: var(--brand-2-dark); }
.btn-ghost { border-color: var(--line); color: var(--text); background: #fff; }
.btn-ghost:hover { border-color: var(--brand-2); color: var(--brand-2); }

/* Hero */
.hero { padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px); background:
  radial-gradient(900px 400px at 85% -10%, rgba(29,78,216,.10), transparent 60%),
  var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.125rem; color: var(--muted); max-width: 56ch; }
.lead strong { color: var(--text); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 24px; }
.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: var(--muted); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
.hero-card {
  background: var(--brand); color: #fff; border-radius: 20px; padding: 32px;
  display: grid; gap: 24px; box-shadow: var(--shadow);
}
.stat strong { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.stat span { color: #242322; font-size: .9rem; }
.stat + .stat { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--brand); color: #fff; }
.section-head { max-width: 640px; margin-bottom: 40px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: #fff; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); border-color: #cfd8e6; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; background: #eaf0fe;
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card-sub { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.card ul { list-style: none; margin: 0; padding: 0; }
.card li { position: relative; padding: 7px 0 7px 22px; font-size: .94rem; border-top: 1px solid var(--line); }
.card li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); opacity: .55; }

/* Split layouts */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.steps li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps h3 { margin-bottom: .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.step-n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .9rem; }

/* Experience */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.proof-item { border-left: 3px solid var(--brand-2); padding: 6px 0 6px 20px; }
.proof-item strong { display: block; font-size: 2rem; letter-spacing: -.02em; color: var(--brand); }
.proof-item p { color: var(--muted); font-size: .94rem; margin: 0; }

/* Contact */
.lead-light { color: #242322; max-width: 46ch; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.12); }
.contact-list span { color: #242322; font-size: .9rem; }
.contact-list a { color: #fff; font-weight: 500; }

.form { background: #fff; color: var(--text); border-radius: 18px; padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.form-note { margin: 0; font-size: .88rem; color: var(--muted); min-height: 1.2em; }

/* Footer */
.site-footer { background: #07152a; color: #8ea3c4; font-size: .88rem; padding: 22px 0; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: #b6c4dc; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); z-index: 60; transition: .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .split, .cards, .proof { grid-template-columns: 1fr; }
  .split { gap: 32px; }
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 20px 16px; display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 10px 0; width: 100%; }
  .menu-sep { display: none; }
  .menu-ext { width: auto !important; margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
