:root {
  --azul-oscuro: #0f2942;
  --azul: #1a4a73;
  --azul-claro: #2c73a8;
  --naranja: #ff6b2c;
  --naranja-oscuro: #e2551a;
  --gris-fondo: #f4f6f8;
  --gris-borde: #e5e9ed;
  --gris-texto: #6b7684;
  --gris-oscuro: #3a4450;
  --font: 'Segoe UI', Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--gris-oscuro);
  background: var(--gris-fondo);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--azul-oscuro);
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--naranja);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: #b9c9d8;
}

.main-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-nav a {
  color: #dce6ef;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.1s, background 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--naranja);
  color: #fff;
}
.btn-primary:hover { background: var(--naranja-oscuro); }

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: var(--naranja); color: var(--naranja); }

.btn-secondary {
  background: var(--gris-borde);
  color: var(--gris-oscuro);
}
.btn-secondary:hover { background: #d6dce2; }

.btn-block { width: 100%; text-align: center; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-danger { background: #c0392b; color: #fff; }
.btn-danger:hover { background: #9e2f22; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Próximamente (modo mantenimiento) ---------- */
.maintenance-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul) 60%, var(--azul-claro));
  text-align: center;
}
.maintenance-card { max-width: 480px; }
.maintenance-logo { margin: 0 auto 20px; width: 64px; height: 64px; border-radius: 16px; }
.maintenance-logo svg { width: 34px; height: 34px; }
.maintenance-brand {
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 8px;
}
.maintenance-title {
  color: #fff;
  font-size: 2.6rem;
  margin: 0 0 16px;
}
.maintenance-text {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 28px;
}
.maintenance-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.maintenance-email a { color: rgba(255,255,255,0.85); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul) 60%, var(--azul-claro));
  color: #fff;
  padding: 90px 0 70px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,107,44,0.15);
  color: var(--naranja);
  border: 1px solid rgba(255,107,44,0.4);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 0 18px;
}

.hero p.lead {
  max-width: 620px;
  color: #cfdcea;
  font-size: 1.1rem;
  margin-bottom: 34px;
}

.hero-actions { display: flex; gap: 14px; margin-bottom: 56px; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 800px;
}

.hero-stat .value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--naranja);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: #b9c9d8;
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: #fff; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .eyebrow {
  color: var(--naranja);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-head h2 {
  font-size: 2rem;
  color: var(--azul-oscuro);
  margin: 8px 0 12px;
}
.section-head p { color: var(--gris-texto); }

/* ---------- Why us cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gris-borde);
  border-radius: 14px;
  padding: 28px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,41,66,0.08);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--gris-fondo);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--naranja);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { margin: 0 0 8px; color: var(--azul-oscuro); font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--gris-texto); font-size: 0.92rem; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: var(--azul-oscuro);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  background: linear-gradient(to top, rgba(15,41,66,0.9), transparent);
  color: #fff;
  font-size: 0.82rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15,41,66,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 80vh; border-radius: 10px; }
.lightbox-caption { color: #fff; text-align: center; margin-top: 14px; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ---------- Contact / Footer ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-item { margin-bottom: 18px; }
.contact-item .label { color: var(--gris-texto); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.contact-item .value { font-size: 1.05rem; color: var(--azul-oscuro); font-weight: 600; }

.site-footer {
  background: var(--azul-oscuro);
  color: #cfdcea;
  padding: 48px 0 24px;
}
.site-footer .brand { margin-bottom: 18px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: 0.9rem; }
.footer-grid li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-bottom {
  padding-top: 20px;
  font-size: 0.8rem;
  color: #8ba3b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Configurador ---------- */
.configurator-page { padding: 48px 0 90px; }

.account-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-bottom: 16px;
}
.link-btn {
  background: none;
  border: none;
  color: var(--azul-claro);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.link-btn:hover { color: var(--naranja); }

/* ---------- Asistente de ventas (chat) ---------- */
.chat-card { display: flex; flex-direction: column; }
.chat-window {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 60vh;
  min-height: 360px;
  max-height: 640px;
  overflow-y: auto;
  padding: 20px;
  background: var(--gris-fondo);
  border-radius: 12px;
  margin-bottom: 16px;
}
.chat-bubble {
  max-width: 78%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat-bubble-user {
  align-self: flex-end;
  background: var(--naranja);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-bubble-assistant {
  align-self: flex-start;
  background: #fff;
  color: var(--gris-oscuro);
  border: 1px solid var(--gris-borde);
  border-bottom-left-radius: 4px;
}
.chat-typing { display: flex; gap: 4px; align-items: center; padding: 14px 16px; }
.chat-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gris-texto);
  opacity: 0.5;
  animation: chat-typing-bounce 1.1s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.chat-input-row { display: flex; gap: 10px; align-items: flex-end; }
.chat-input-row textarea {
  flex: 1;
  resize: none;
  padding: 12px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.92rem;
  max-height: 120px;
}
.chat-input-row textarea:focus { outline: none; border-color: var(--azul-claro); }

.configurator-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 10px 40px rgba(15,41,66,0.08);
  padding: 40px;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}
.progress-bar::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 5%;
  right: 5%;
  height: 2px;
  background: var(--gris-borde);
  z-index: 0;
}
.progress-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.progress-step .dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--gris-borde);
  color: var(--gris-texto);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  transition: all 0.2s;
}
.progress-step .label { font-size: 0.8rem; color: var(--gris-texto); font-weight: 600; text-align: center; }
.progress-step.active .dot { border-color: var(--naranja); background: var(--naranja); color: #fff; }
.progress-step.active .label { color: var(--azul-oscuro); }
.progress-step.done .dot { border-color: var(--naranja); background: #fff; color: var(--naranja); }

.selection-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 24px;
}
.selection-summary[hidden] { display: none; }
.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gris-fondo);
  border: 1px solid var(--gris-borde);
  border-radius: 999px;
  padding: 6px 8px 6px 14px;
  font-size: 0.82rem;
  color: var(--gris-oscuro);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.selection-chip:hover { border-color: var(--azul-claro); background: #fff; }
.selection-chip .chip-label { color: var(--gris-texto); }
.selection-chip .chip-value { font-weight: 600; color: var(--azul-oscuro); }
.selection-chip .chip-edit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--gris-borde);
  color: var(--gris-texto);
  font-size: 0.7rem;
}
.selection-chip:hover .chip-edit { background: var(--naranja); color: #fff; }

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.step-title { font-size: 1.4rem; color: var(--azul-oscuro); margin: 0 0 6px; }
.step-subtitle { color: var(--gris-texto); margin: 0 0 28px; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.option-card {
  border: 2px solid var(--gris-borde);
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.option-card:hover { border-color: var(--azul-claro); }
.option-card.selected {
  border-color: var(--naranja);
  box-shadow: 0 6px 20px rgba(255,107,44,0.15);
}
.option-card h4 { margin: 0 0 6px; color: var(--azul-oscuro); font-size: 1.05rem; }
.option-card p { margin: 0 0 10px; color: var(--gris-texto); font-size: 0.85rem; }
.option-card .price { font-weight: 700; color: var(--naranja); font-size: 1.1rem; }
.option-card .dims { display: block; margin-top: 6px; color: var(--gris-texto); font-size: 0.78rem; }

.material-note {
  background: var(--gris-fondo);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--gris-texto);
  margin-bottom: 28px;
}

/* Equipment systems */
.system-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.system-item { border: 1px solid var(--gris-borde); border-radius: 12px; overflow: hidden; }
.system-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--gris-fondo);
}
.system-header .master-check { width: 20px; height: 20px; accent-color: var(--naranja); cursor: pointer; }
.system-header .info { flex: 1; }
.system-header h4 { margin: 0; color: var(--azul-oscuro); font-size: 1rem; }
.system-header .desc { font-size: 0.8rem; color: var(--gris-texto); }
.system-toggle {
  background: none; border: none; color: var(--azul-claro); font-weight: 600;
  font-size: 0.85rem; cursor: pointer; white-space: nowrap;
}
.component-list { padding: 6px 20px 18px; display: none; }
.component-list.open { display: block; }
.component-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gris-borde);
  font-size: 0.9rem;
}
.component-row:last-child { border-bottom: none; }
.component-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--naranja); cursor: pointer; }
.component-row .comp-name { flex: 1; color: var(--gris-oscuro); }

.step-nav { display: flex; justify-content: space-between; margin-top: 20px; }

/* Summary */
.summary-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.summary-block { background: var(--gris-fondo); border-radius: 12px; padding: 22px; margin-bottom: 18px; }
.summary-block h4 { margin: 0 0 12px; color: var(--azul-oscuro); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.summary-row .name { color: var(--gris-texto); }
.summary-row .val { color: var(--gris-oscuro); font-weight: 600; }

.total-box {
  background: var(--azul-oscuro);
  color: #fff;
  border-radius: 14px;
  padding: 26px;
}
.total-box .line { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.95rem; color: #cfdcea; }
.total-box .grand {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.15);
}
.total-box .grand .label { font-size: 1rem; }
.total-box .grand .amount { font-size: 1.8rem; font-weight: 800; color: var(--naranja); }

.notice-box {
  background: var(--azul-oscuro);
  color: #cfdcea;
  border-radius: 14px;
  padding: 22px 24px;
  border-left: 4px solid var(--naranja);
}
.notice-box p { margin: 0; font-size: 0.92rem; line-height: 1.5; }

.contact-form { display: grid; gap: 14px; }
.contact-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.92rem; color: var(--gris-oscuro); }
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--naranja); flex-shrink: 0; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--gris-oscuro); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--gris-borde);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--azul-claro);
}
.field .error-text { color: #c0392b; font-size: 0.78rem; margin-top: 4px; display: none; }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field.has-error .error-text { display: block; }

.summary-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.summary-actions .btn { flex: 1; min-width: 160px; }

.alert { padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 18px; }
.alert-success { background: #e6f6ea; color: #1f7a3d; border: 1px solid #b9e6c4; }
.alert-error { background: #fdecea; color: #c0392b; border: 1px solid #f6c6c0; }

/* ---------- Admin ---------- */
.admin-shell { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--azul-oscuro);
  color: #fff;
  padding: 24px 18px;
  flex-shrink: 0;
}
.admin-sidebar .brand { margin-bottom: 30px; }
.admin-sidebar nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: #cfdcea;
  font-size: 0.92rem;
  margin-bottom: 4px;
}
.admin-sidebar nav a:hover, .admin-sidebar nav a.active { background: rgba(255,255,255,0.08); color: #fff; }
.admin-sidebar form { margin-top: 24px; }

.admin-main { flex: 1; padding: 32px 40px; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-header h1 { font-size: 1.5rem; color: var(--azul-oscuro); margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 18px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--gris-borde); border-radius: 12px; padding: 20px; }
.stat-card .n { font-size: 1.8rem; font-weight: 700; color: var(--azul-oscuro); }
.stat-card .l { color: var(--gris-texto); font-size: 0.85rem; }

.panel { background: #fff; border: 1px solid var(--gris-borde); border-radius: 14px; padding: 26px; margin-bottom: 24px; }
.panel h3 { margin: 0 0 16px; color: var(--azul-oscuro); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline-item { display: flex; gap: 12px; padding-bottom: 20px; position: relative; }
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 14px;
  bottom: -6px;
  width: 2px;
  background: var(--gris-borde);
}
.timeline-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--azul-claro);
  margin-top: 4px;
  flex-shrink: 0;
  z-index: 1;
}
.timeline-dot-cotizacion_generada { background: var(--naranja); }
.timeline-dot-registro, .timeline-dot-verificacion_email { background: #1f7a3d; }
.timeline-dot-login, .timeline-dot-logout { background: var(--gris-texto); }
.timeline-dot-escalado_agente { background: #c0392b; }
.timeline-label { font-weight: 600; color: var(--azul-oscuro); font-size: 0.9rem; }
.timeline-detail { color: var(--gris-texto); font-size: 0.85rem; margin-top: 2px; }
.timeline-date { color: var(--gris-texto); font-size: 0.75rem; margin-top: 4px; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data-table th, table.data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--gris-borde); }
table.data-table th { color: var(--gris-texto); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; }
table.data-table input[type=text], table.data-table input[type=number] {
  width: 100%; padding: 6px 8px; border: 1px solid var(--gris-borde); border-radius: 6px; font-family: var(--font);
}
table.data-table td.num input { text-align: right; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; }
.badge-nueva { background: #fdecea; color: #c0392b; }
.badge-contactada { background: #fff4e5; color: #b96a12; }
.badge-cerrada { background: #e6f6ea; color: #1f7a3d; }
.badge-descartada { background: #eceef1; color: #6b7684; }
.badge-invitado { background: #eef2f7; color: #4a5c6e; }
.badge-ingenieria { background: #fff4e5; color: var(--naranja-oscuro); }

.funnel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap: 32px; }
.funnel-col h4 { margin: 0 0 14px; color: var(--azul-oscuro); font-size: 0.95rem; }
.funnel-stage { margin-bottom: 14px; }
.funnel-stage-top { display: flex; justify-content: space-between; font-size: 0.85rem; margin-bottom: 4px; }
.funnel-stage-label { color: var(--azul-oscuro); }
.funnel-stage-n { font-weight: 700; color: var(--azul-oscuro); }
.funnel-bar { background: var(--gris-borde); border-radius: 6px; height: 10px; overflow: hidden; }
.funnel-bar-fill { background: var(--azul-claro); height: 100%; border-radius: 6px; transition: width 0.3s ease; }
.funnel-stage-meta { color: var(--gris-texto); font-size: 0.72rem; margin-top: 4px; }

.inline-form { display: inline-flex; gap: 6px; align-items: center; }

.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--azul-oscuro), var(--azul));
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 380px;
}
.login-card .brand { color: var(--azul-oscuro); justify-content: center; margin-bottom: 24px; }

.thumb-preview { width: 90px; height: 60px; object-fit: cover; border-radius: 6px; }

.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.error-page h1 { color: var(--azul-oscuro); font-size: 2.2rem; }
.error-page p { color: var(--gris-texto); margin-bottom: 24px; }

.print-header { display: none; }

@media print {
  .site-header, .site-footer, .progress-bar, .step-nav, .summary-actions, .lightbox, .account-bar { display: none !important; }
  .configurator-card { box-shadow: none; padding: 0; }
  .print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--azul-oscuro);
    padding-bottom: 16px;
    margin-bottom: 20px;
  }
  .print-logo { height: 48px; width: auto; }
  .print-header-meta { text-align: right; }
  .print-header-title { font-weight: 700; color: var(--azul-oscuro); font-size: 1.1rem; }
  .print-header-date { color: var(--gris-texto); font-size: 0.85rem; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .contact-grid, .summary-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2rem; }
  .configurator-card { padding: 22px; }
  .admin-shell { flex-direction: column; }
  .admin-sidebar { width: 100%; }
}
