/* ============================================================
   ElectroWeb — CSS Principal · Tema Claro
   ============================================================ */
:root {
  --primary:   #1e3a5f;
  --primary-d: #142843;
  --accent:    #f59e0b;
  --blue:      #3b82f6;
  --green:     #22c55e;
  --red:       #ef4444;
  --orange:    #f97316;

  --bg:        #ffffff;
  --bg2:       #f8fafc;
  --bg3:       #f1f5f9;
  --border:    #e2e8f0;
  --text:      #1a1a2e;
  --text2:     #374151;
  --muted:     #64748b;

  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --r:         8px;
  --r-lg:      14px;
  --sans:      'Segoe UI','Helvetica Neue',Arial,sans-serif;
  --max-w:     1160px;
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body { font-family:var(--sans); color:var(--text); background:var(--bg); line-height:1.6; }
a    { color:var(--primary); text-decoration:none; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,.96); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border);
  height:64px; display:flex; align-items:center;
}
.nav-inner {
  max-width:var(--max-w); margin:0 auto; padding:0 24px;
  display:flex; align-items:center; justify-content:space-between; width:100%;
}
.nav-brand { font-size:20px; font-weight:800; color:var(--primary);
             display:flex; align-items:center; gap:8px; }
.nav-links { display:flex; align-items:center; gap:8px; list-style:none; }
.nav-links a { padding:8px 14px; border-radius:var(--r); font-size:14px;
               font-weight:500; color:var(--text2); transition:all .15s; }
.nav-links a:hover { background:var(--bg3); color:var(--primary); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  background:linear-gradient(135deg, var(--primary) 0%, #0e2440 60%, #1a3a5f 100%);
  min-height:90vh; display:flex; align-items:center; position:relative; overflow:hidden;
}
.hero::before {
  content:''; position:absolute; inset:0;
  background:radial-gradient(circle at 15% 50%, rgba(245,158,11,.12) 0%, transparent 50%),
             radial-gradient(circle at 85% 20%, rgba(59,130,246,.1) 0%, transparent 40%);
}
.hero-inner {
  max-width:var(--max-w); margin:0 auto; padding:80px 24px;
  display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center;
  position:relative; z-index:1;
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(245,158,11,.15); border:1px solid rgba(245,158,11,.3);
  color:var(--accent); padding:5px 14px; border-radius:100px;
  font-size:12px; font-weight:600; letter-spacing:.5px; margin-bottom:18px;
}
.hero h1 {
  font-size:clamp(30px,5vw,52px); font-weight:800; line-height:1.15;
  color:#fff; margin-bottom:18px;
}
.hero h1 span { color:var(--accent); }
.hero p { font-size:17px; color:rgba(255,255,255,.8); margin-bottom:32px; line-height:1.7; }
.hero-btns { display:flex; gap:12px; flex-wrap:wrap; }

/* Card flotante en el hero */
.hero-card {
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.15);
  border-radius:var(--r-lg); padding:28px; backdrop-filter:blur(10px);
}
.hero-card-row {
  display:flex; align-items:center; gap:12px;
  padding:12px 0; border-bottom:1px solid rgba(255,255,255,.08);
}
.hero-card-row:last-child { border:none; }
.hcr-icon { width:42px; height:42px; border-radius:10px; flex-shrink:0;
            background:rgba(245,158,11,.2); display:flex; align-items:center;
            justify-content:center; font-size:20px; }
.hcr-val  { font-size:18px; font-weight:700; color:#fff; }
.hcr-lbl  { font-size:11px; color:rgba(255,255,255,.55); }

/* ── Secciones ───────────────────────────────────────────────── */
.section    { padding:80px 24px; }
.section-inner { max-width:var(--max-w); margin:0 auto; }
.section-tag  { font-size:11px; font-weight:700; letter-spacing:2px;
                text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.section-h2   { font-size:clamp(24px,4vw,36px); font-weight:800;
                color:var(--primary); margin-bottom:14px; line-height:1.2; }
.section-sub  { font-size:16px; color:var(--muted); max-width:540px; }
.text-center  { text-align:center; }
.text-center .section-sub { margin:0 auto; }

/* ── Tipos de cotización (cards de selección) ─────────────────── */
.tipo-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:48px; }
.tipo-card {
  border:2px solid var(--border); border-radius:var(--r-lg);
  padding:28px; cursor:pointer; transition:all .2s; background:var(--bg);
  text-align:center;
}
.tipo-card:hover { border-color:var(--accent); box-shadow:var(--shadow); transform:translateY(-3px); }
.tipo-card.selected { border-color:var(--primary); background:rgba(30,58,95,.04); }
.tipo-icon { font-size:40px; margin-bottom:14px; }
.tipo-card h3 { font-size:18px; font-weight:700; color:var(--primary); margin-bottom:8px; }
.tipo-card p  { font-size:13px; color:var(--muted); line-height:1.6; }

/* ── Servicios ────────────────────────────────────────────────── */
.servicios-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:20px; margin-top:48px;
}
.serv-card {
  background:var(--bg); border:1px solid var(--border); border-radius:var(--r-lg);
  padding:24px; transition:all .2s; position:relative; overflow:hidden;
}
.serv-card::before {
  content:''; position:absolute; top:0; left:0; width:3px; height:100%;
  background:var(--accent); transform:scaleY(0); transform-origin:bottom; transition:.2s;
}
.serv-card:hover { box-shadow:var(--shadow); transform:translateY(-2px); }
.serv-card:hover::before { transform:scaleY(1); }
.serv-icon { width:50px; height:50px; border-radius:12px; margin-bottom:16px;
             background:linear-gradient(135deg,var(--primary),var(--primary-d));
             display:flex; align-items:center; justify-content:center; font-size:22px; }
.serv-card h3 { font-size:16px; font-weight:700; color:var(--primary); margin-bottom:8px; }
.serv-card p  { font-size:13px; color:var(--muted); line-height:1.7; }

/* ── Pasos ────────────────────────────────────────────────────── */
.pasos-grid {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:28px; margin-top:48px;
}
.paso { text-align:center; }
.paso-num {
  width:48px; height:48px; border-radius:50%; background:var(--accent);
  color:#000; font-weight:800; font-size:18px; margin:0 auto 14px;
  display:flex; align-items:center; justify-content:center;
}
.paso h3 { font-size:15px; font-weight:700; color:var(--primary); margin-bottom:6px; }
.paso p  { font-size:13px; color:var(--muted); }

/* ── Stats ────────────────────────────────────────────────────── */
.stats-bar { background:var(--primary); padding:48px 24px; }
.stats-inner { max-width:var(--max-w); margin:0 auto;
  display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.stat-item { text-align:center; }
.stat-num  { font-size:42px; font-weight:800; color:var(--accent); line-height:1; }
.stat-lbl  { font-size:13px; color:rgba(255,255,255,.65); margin-top:4px; }

/* ── CTA ──────────────────────────────────────────────────────── */
.cta-section {
  background:linear-gradient(135deg,var(--primary) 0%,#0e2440 100%);
  text-align:center; padding:80px 24px;
}
.cta-section h2 { font-size:34px; font-weight:800; color:#fff; margin-bottom:14px; }
.cta-section p  { font-size:17px; color:rgba(255,255,255,.75); margin-bottom:32px; }

/* ── Footer ───────────────────────────────────────────────────── */
footer { background:#080f1a; padding:40px 24px 20px; }
.footer-inner {
  max-width:var(--max-w); margin:0 auto;
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:36px; margin-bottom:28px;
}
.footer-brand { font-size:18px; font-weight:700; color:#fff; margin-bottom:8px; }
.footer-desc  { font-size:13px; color:rgba(255,255,255,.45); line-height:1.7; }
.footer-col h4 { font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:1px; color:rgba(255,255,255,.5); margin-bottom:12px; }
.footer-col ul { list-style:none; }
.footer-col li { margin-bottom:7px; }
.footer-col a  { font-size:13px; color:rgba(255,255,255,.4); transition:color .15s; }
.footer-col a:hover { color:var(--accent); }
.footer-bottom { border-top:1px solid rgba(255,255,255,.08); padding-top:18px;
  text-align:center; font-size:12px; color:rgba(255,255,255,.3); }

/* ── Botones ──────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px; border-radius:var(--r); border:none;
  font-size:14px; font-weight:600; cursor:pointer;
  transition:all .18s; text-decoration:none; white-space:nowrap;
}
.btn-primary  { background:var(--accent); color:#000; }
.btn-primary:hover  { background:#fbbf24; transform:translateY(-1px);
  box-shadow:0 4px 12px rgba(245,158,11,.35); }
.btn-solid    { background:var(--primary); color:#fff; }
.btn-solid:hover    { background:#254f7a; }
.btn-outline  { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.4); }
.btn-outline:hover  { border-color:#fff; background:rgba(255,255,255,.08); }
.btn-ghost    { background:var(--bg3); color:var(--text2); border:1px solid var(--border); }
.btn-ghost:hover    { border-color:var(--primary); color:var(--primary); }
.btn-danger   { background:rgba(239,68,68,.1); color:var(--red); border:1px solid rgba(239,68,68,.2); }
.btn-sm { padding:7px 14px; font-size:12px; }
.btn-full { width:100%; justify-content:center; }

/* ── Formularios ──────────────────────────────────────────────── */
.form-group { margin-bottom:16px; }
label { display:block; font-size:13px; font-weight:600; color:var(--text2); margin-bottom:5px; }
input,select,textarea {
  width:100%; padding:10px 13px; border:1.5px solid var(--border);
  border-radius:var(--r); font-size:14px; font-family:var(--sans);
  color:var(--text); background:var(--bg); transition:border-color .15s;
}
input:focus,select:focus,textarea:focus {
  outline:none; border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(30,58,95,.08);
}
textarea { resize:vertical; min-height:80px; }
.grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-hint { font-size:11px; color:var(--muted); margin-top:3px; }
.form-error { font-size:12px; color:var(--red); margin-top:3px; }

/* ── Cards generales ──────────────────────────────────────────── */
.card {
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--r-lg); padding:24px; box-shadow:var(--shadow);
}
.card-header {
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid var(--border);
}
.card-title { font-size:16px; font-weight:700; color:var(--primary); }

/* ── Badges ───────────────────────────────────────────────────── */
.badge {
  display:inline-block; padding:3px 10px; border-radius:100px;
  font-size:11px; font-weight:600;
}
.badge-blue   { background:rgba(59,130,246,.12);  color:#1d4ed8; }
.badge-green  { background:rgba(34,197,94,.12);   color:#15803d; }
.badge-red    { background:rgba(239,68,68,.12);   color:#b91c1c; }
.badge-orange { background:rgba(249,115,22,.12);  color:#c2410c; }
.badge-gray   { background:var(--bg3);            color:var(--muted); }

/* ── Alertas ──────────────────────────────────────────────────── */
.alert { padding:12px 16px; border-radius:var(--r); font-size:13px; margin-bottom:16px; }
.alert-success { background:rgba(34,197,94,.1);  border:1px solid rgba(34,197,94,.3);  color:#166534; }
.alert-error   { background:rgba(239,68,68,.1);  border:1px solid rgba(239,68,68,.3);  color:#991b1b; }
.alert-info    { background:rgba(59,130,246,.1); border:1px solid rgba(59,130,246,.3); color:#1e40af; }
.alert-warn    { background:rgba(245,158,11,.1); border:1px solid rgba(245,158,11,.3); color:#92400e; }

/* ── Wizard ───────────────────────────────────────────────────── */
.wiz-steps {
  display:flex; border-bottom:2px solid var(--border); margin-bottom:28px;
}
.wiz-step {
  flex:1; text-align:center; padding:12px 6px;
  font-size:12px; color:var(--muted); border-bottom:3px solid transparent;
  margin-bottom:-2px; transition:all .2s;
}
.wiz-step.active { color:var(--primary); border-bottom-color:var(--accent); font-weight:600; }
.wiz-step.done   { color:var(--green); }
.wiz-step-n { display:block; font-size:16px; font-weight:800; margin-bottom:2px; }

/* ── Check items ──────────────────────────────────────────────── */
.check-grid {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:10px;
}
.check-item {
  display:flex; align-items:flex-start; gap:10px;
  padding:10px 13px; border-radius:var(--r);
  border:1.5px solid var(--border); cursor:pointer;
  transition:all .15s; font-size:13px;
}
.check-item:hover { border-color:var(--primary); background:var(--bg2); }
.check-item.on  { border-color:var(--primary); background:rgba(30,58,95,.05); }
.check-item input[type=checkbox] { width:auto; margin-top:2px; accent-color:var(--primary); }

/* ── Dashboard ────────────────────────────────────────────────── */
.dash-layout {
  display:grid; grid-template-columns:240px 1fr; min-height:calc(100vh - 64px);
}
.dash-sidebar {
  background:var(--bg2); border-right:1px solid var(--border); padding:24px 12px;
}
.user-pill {
  background:var(--primary); color:#fff; border-radius:var(--r);
  padding:14px; margin-bottom:20px; text-align:center;
}
.user-av {
  width:50px; height:50px; border-radius:50%; background:var(--accent);
  color:#000; font-weight:800; font-size:20px; margin:0 auto 8px;
  display:flex; align-items:center; justify-content:center;
}
.user-name  { font-weight:600; font-size:14px; }
.user-email { font-size:11px; opacity:.7; }
.dnav {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:var(--r); font-size:13px;
  font-weight:500; color:var(--text2); cursor:pointer;
  transition:all .15s; border:none; background:none; width:100%;
  text-align:left; margin-bottom:3px;
}
.dnav:hover  { background:var(--bg3); color:var(--primary); }
.dnav.active { background:rgba(30,58,95,.1); color:var(--primary); font-weight:600; }
.dash-content { padding:28px; background:var(--bg3); }

/* ── Modal ────────────────────────────────────────────────────── */
.modal-bg {
  position:fixed; inset:0; background:rgba(0,0,0,.5);
  display:flex; align-items:center; justify-content:center;
  z-index:1000; padding:20px; backdrop-filter:blur(4px);
  opacity:0; pointer-events:none; transition:opacity .2s;
}
.modal-bg.open { opacity:1; pointer-events:all; }
.modal-box {
  background:var(--bg); border-radius:var(--r-lg); padding:28px;
  width:100%; max-width:480px; max-height:90vh; overflow-y:auto;
  box-shadow:0 8px 32px rgba(0,0,0,.2);
  transform:translateY(-10px); transition:transform .2s;
}
.modal-bg.open .modal-box { transform:translateY(0); }
.modal-head {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:20px;
}
.modal-title { font-size:17px; font-weight:700; color:var(--primary); }
.modal-x {
  background:var(--bg3); border:none; border-radius:50%;
  width:30px; height:30px; cursor:pointer; font-size:16px;
  display:flex; align-items:center; justify-content:center; color:var(--muted);
}

/* ── Tabla ────────────────────────────────────────────────────── */
.table-wrap { overflow-x:auto; }
table { width:100%; border-collapse:collapse; font-size:13px; }
th { background:var(--bg2); padding:9px 12px; text-align:left;
     font-size:10px; text-transform:uppercase; letter-spacing:.8px;
     color:var(--muted); border-bottom:2px solid var(--border); font-weight:600; }
td { padding:12px; border-bottom:1px solid var(--border); vertical-align:middle; }
tr:hover td { background:var(--bg2); }

/* ── Utilidades ───────────────────────────────────────────────── */
.flex     { display:flex; }
.gap-8    { gap:8px; }
.gap-12   { gap:12px; }
.mt-8     { margin-top:8px; }
.mt-16    { margin-top:16px; }
.mt-24    { margin-top:24px; }
.mb-8     { margin-bottom:8px; }
.mb-16    { margin-bottom:16px; }
.hidden   { display:none !important; }
.text-sm  { font-size:12px; }
.text-muted { color:var(--muted); }
.text-right { text-align:right; }
.mono     { font-family:'Courier New',monospace; }
.spinner  {
  width:22px; height:22px; border-radius:50%;
  border:2px solid rgba(0,0,0,.1); border-top-color:var(--primary);
  animation:spin .7s linear infinite; display:inline-block;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width:768px) {
  .hero-inner   { grid-template-columns:1fr; }
  .hero-card    { display:none; }
  .tipo-grid    { grid-template-columns:1fr; }
  .stats-inner  { grid-template-columns:1fr 1fr; }
  .footer-inner { grid-template-columns:1fr; }
  .dash-layout  { grid-template-columns:1fr; }
  .dash-sidebar { display:none; }
  .grid-2       { grid-template-columns:1fr; }
}
