/* ─── RESET & VARS ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0d1b2e;
  --navy-mid:  #0f2744;
  --navy-light:#162d4a;
  --navy-card: #1a3558;
  --border:    rgba(255,255,255,.08);
  --border-glow: rgba(59,130,246,.3);
  --blue:      #3b82f6;
  --blue-bright:#60a5fa;
  --blue-dark: #1e40af;
  --accent:    #38bdf8;
  --green:     #22c55e;
  --orange:    #f59e0b;
  --purple:    #8b5cf6;
  --red:       #ef4444;
  --text:      #f0f6ff;
  --text-mid:  #94b8d8;
  --text-soft: #64899e;
  --radius:    12px;
  --shadow:    0 4px 32px rgba(0,0,0,.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--navy);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── CONTAINER ─── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(13,27,46,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.navbar.scrolled {
  background: rgba(13,27,46,.98);
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-left  { display: flex; align-items: center; gap: 28px; }
.nav-right { display: flex; align-items: center; gap: 10px; }

.nav-logo { display: flex; align-items: center; }
.logo-box {
  width: 36px; height: 36px;
  background: var(--blue);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 16px rgba(59,130,246,.5);
}
.logo-box.sm { width: 28px; height: 28px; font-size: 14px; border-radius: 7px; }

.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-link {
  display: block; padding: 6px 12px; border-radius: 7px;
  color: var(--text-mid); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: rgba(255,255,255,.07); }
.nav-link.active { color: var(--blue-bright); }

.nav-center { text-align: center; flex: 1; }
.brand-name { display: block; font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-sub  { display: block; font-size: 11px; color: var(--text-soft); }

.btn-ghost-nav {
  padding: 7px 16px; border-radius: 8px; text-decoration: none;
  color: var(--text-mid); font-size: 13px; font-weight: 500;
  transition: color .15s;
}
.btn-ghost-nav:hover { color: var(--text); }

.btn-solid-nav {
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
  background: var(--blue); color: #fff; font-size: 13px; font-weight: 600;
  transition: background .15s;
}
.btn-solid-nav:hover { background: #2563eb; }

.btn-outline-nav {
  padding: 7px 16px; border-radius: 8px; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); color: var(--text); font-size: 13px; font-weight: 500;
  transition: border-color .15s, background .15s;
}
.btn-outline-nav:hover { border-color: var(--blue); background: rgba(59,130,246,.1); }

/* Botón cerrar sesión inline en navbar */
.btn-logout-nav {
  background: none; border: none; cursor: pointer; font-family: inherit;
  padding: 7px 16px; border-radius: 8px;
  color: var(--text-mid); font-size: 13px; font-weight: 500;
  transition: color .15s;
}
.btn-logout-nav:hover { color: var(--red); }

.nav-user-label {
  font-size: 13px; color: var(--text-soft); padding: 0 4px;
}

.hamburger {
  display: none; background: none; border: none; color: var(--text);
  font-size: 22px; cursor: pointer; padding: 4px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--navy-mid);
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 64px; left: 0; right: 0;
  z-index: 199;
}
.mobile-menu.open { display: flex; }
.mobile-menu a, .mobile-menu button {
  padding: 10px 0; color: var(--text-mid); text-decoration: none;
  font-weight: 500; border-bottom: 1px solid var(--border);
  background: none; border-top: none; border-left: none; border-right: none;
  text-align: left; font-family: inherit; font-size: 14px; cursor: pointer;
}
.mobile-menu a:last-child, .mobile-menu button:last-child { border-bottom: none; }
.mobile-menu .mm-cta { color: var(--blue-bright); font-weight: 700; }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 96px 24px 60px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,130,246,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59,130,246,.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 100%);
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; background: rgba(59,130,246,.12); top: -100px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; background: rgba(139,92,246,.08); bottom: -50px; left: 200px; }

.hero-inner {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  width: 100%;
}

/* Chatbot Widget */
.chatbot-widget {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,.4), 0 0 0 1px var(--border-glow);
  animation: slideInLeft .6s ease both;
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--navy-light);
  border-bottom: 1px solid var(--border);
}

.chat-avatar-wrap { position: relative; }
.chat-avatar {
  width: 38px; height: 38px;
  background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.chat-online-dot {
  width: 10px; height: 10px;
  background: var(--green);
  border-radius: 50%;
  position: absolute; bottom: 0; right: 0;
  border: 2px solid var(--navy-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.chat-name { display: block; font-weight: 700; font-size: 14px; color: var(--text); }
.chat-sub  { display: block; font-size: 11px; color: var(--text-soft); }

.chat-messages {
  min-height: 80px;
  max-height: 260px;
  overflow-y: auto;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }

.msg-bubble {
  max-width: 85%;
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  background: var(--navy-card);
  color: var(--text);
  border: 1px solid var(--border);
}

.chat-msg.user .msg-bubble {
  background: var(--blue);
  border-color: var(--blue);
}

.chat-msg.typing .msg-bubble { color: var(--text-soft); font-style: italic; }

/* Burbuja resultado de orden */
.chat-status-result {
  background: var(--navy-light);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.7;
  max-width: 85%;
}

.chat-quick-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--border);
}

.quick-btn {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-mid);
  cursor: pointer;
  text-align: left;
  transition: all .15s;
}
.quick-btn:hover { border-color: var(--blue); color: var(--text); background: rgba(59,130,246,.1); }

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.chat-input:focus { border-color: var(--blue); }
.chat-input::placeholder { color: var(--text-soft); }

.chat-send-btn {
  width: 36px; height: 36px;
  background: var(--blue);
  border: none; border-radius: 8px;
  color: #fff; font-size: 16px;
  cursor: pointer;
  transition: background .15s;
  display: flex; align-items: center; justify-content: center;
}
.chat-send-btn:hover { background: #2563eb; }

.chat-msg-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; margin-top: 2px;
}

.chat-msg.typing .msg-bubble {
  display: flex; gap: 4px; align-items: center;
  font-style: normal; padding: 10px 14px;
}
.chat-msg.typing .msg-bubble span {
  width: 6px; height: 6px;
  background: var(--text-soft); border-radius: 50%;
  display: inline-block;
  animation: chatDot 1.2s infinite;
}
.chat-msg.typing .msg-bubble span:nth-child(2) { animation-delay: .2s; }
.chat-msg.typing .msg-bubble span:nth-child(3) { animation-delay: .4s; }
@keyframes chatDot {
  0%,60%,100% { transform: translateY(0); }
  30%          { transform: translateY(-5px); }
}

.chat-status-card {
  background: var(--navy-light);
  border: 1px solid var(--border-glow);
  border-radius: 8px; padding: 8px 10px;
  font-size: 12px; line-height: 1.7; margin-top: 6px;
}
.chat-status-row { display: flex; justify-content: space-between; gap: 8px; }
.chat-status-lbl { color: var(--text-soft); }
.chat-status-val { color: var(--text); font-weight: 600; }

.chat-wa-link {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px; padding: 5px 10px; border-radius: 6px;
  background: #16a34a; color: #fff; font-size: 12px;
  font-weight: 600; text-decoration: none; transition: opacity .15s;
}
.chat-wa-link:hover { opacity: .88; color: #fff; }

.chat-quick-btns:empty { display: none; }

/* Hero Center */
.hero-center {
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: fadeInUp .7s ease both .1s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--blue-bright);
  align-self: flex-start;
}

.badge-dot { width: 7px; height: 7px; background: var(--blue-bright); border-radius: 50%; animation: pulse 2s infinite; }

.hero-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

.hero-accent { color: var(--blue-bright); }

.hero-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.7;
  max-width: 560px;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  align-self: flex-start;
  transition: all .2s;
  box-shadow: 0 0 24px rgba(59,130,246,.4);
}
.btn-hero:hover { background: #2563eb; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(59,130,246,.5); }
.btn-icon { font-size: 18px; }

/* KPI Cards */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.kpi-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow);
  animation: fadeInUp .6s ease both;
  animation-delay: var(--delay, 0s);
  transition: transform .2s, box-shadow .2s;
}
.kpi-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,.4), 0 0 0 1px var(--border-glow); }

.kpi-icon-wrap {
  width: 40px; height: 40px;
  background: rgba(59,130,246,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.kpi-label { font-size: 11px; color: var(--text-soft); }
.kpi-val   { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; color: var(--text); line-height: 1.1; }
.kpi-trend { font-size: 11px; font-weight: 600; margin-top: 2px; }
.kpi-trend.up   { color: var(--green); }
.kpi-trend.down { color: var(--red); }

/* ─── FEATURES ROW ─── */
.features-row {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 24px;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.feature-card:last-child { border-right: none; }
.feature-card:hover { background: rgba(59,130,246,.05); }

.feat-icon {
  width: 44px; height: 44px;
  background: rgba(59,130,246,.15);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.feat-text h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.feat-text p  { font-size: 12px; color: var(--text-soft); line-height: 1.5; margin-bottom: 8px; }
.feat-link    { font-size: 12px; font-weight: 600; color: var(--blue-bright); text-decoration: none; transition: color .15s; }
.feat-link:hover { color: var(--accent); }

/* ─── MID SECTION ─── */
.mid-section { padding: 48px 0; }

.mid-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.panel-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--border);
}
.panel-title { font-size: 13px; font-weight: 700; color: var(--text); }
.panel-see-all { font-size: 12px; color: var(--blue-bright); text-decoration: none; font-weight: 600; }
.panel-see-all:hover { text-decoration: underline; }

/* Activity */
.activity-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.activity-item { display: flex; align-items: center; gap: 10px; }
.act-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.act-icon.green  { background: rgba(34,197,94,.15); }
.act-icon.orange { background: rgba(245,158,11,.15); }
.act-icon.blue   { background: rgba(59,130,246,.15); }
.act-icon.purple { background: rgba(139,92,246,.15); }
.act-info { flex: 1; display: flex; flex-direction: column; }
.act-title { font-size: 12px; font-weight: 600; color: var(--text); }
.act-sub   { font-size: 11px; color: var(--text-soft); }
.act-time  { font-size: 10px; color: var(--text-soft); white-space: nowrap; }

/* Tasks */
.task-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.task-item { display: flex; align-items: flex-start; gap: 10px; }
.task-check {
  width: 20px; height: 20px;
  background: var(--blue); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
  flex-shrink: 0; margin-top: 1px;
}
.task-info { display: flex; flex-direction: column; }
.task-title { font-size: 12px; font-weight: 600; color: var(--text); }
.task-sub   { font-size: 11px; color: var(--text-soft); margin-top: 1px; }

.panel-footer { padding: 10px 14px 14px; text-align: center; border-top: 1px solid var(--border); }
.panel-link { font-size: 12px; font-weight: 600; color: var(--blue-bright); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }

/* Reviews */
.review-list { padding: 10px 14px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.review-item { display: flex; gap: 10px; align-items: flex-start; }
.rev-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.rev-content { flex: 1; }
.rev-name  { font-size: 12px; font-weight: 700; color: var(--text); }
.rev-text  { font-size: 11px; color: var(--text-soft); line-height: 1.5; margin-top: 3px; }
.stars     { color: var(--orange); font-size: 12px; letter-spacing: 1px; }
.stars.big { font-size: 18px; }

.rating-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: rgba(59,130,246,.05);
}
.rating-score { font-family: 'Sora', sans-serif; font-size: 26px; font-weight: 800; color: var(--text); }
.rating-base  { font-size: 11px; color: var(--text-soft); margin-top: 2px; display: block; }

/* ─── TRUST BAR ─── */
.trust-bar {
  background: var(--navy-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.trust-items {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.trust-icon { font-size: 22px; }
.trust-item strong { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.trust-item span   { font-size: 11px; color: var(--text-soft); }

.trust-divider { color: var(--border); font-size: 24px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 52px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 260px repeat(4, 1fr) 220px;
  gap: 32px;
  margin-bottom: 36px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand-name { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 700; color: var(--text); }
.footer-desc { font-size: 12px; color: var(--text-soft); line-height: 1.7; margin-bottom: 16px; }

.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 34px; height: 34px;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--text-mid);
  text-decoration: none;
  transition: all .15s;
}
.social-btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--text); text-transform: uppercase; margin-bottom: 14px; }
.footer-col a  { display: block; font-size: 13px; color: var(--text-soft); text-decoration: none; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--blue-bright); }

.contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-soft); margin-bottom: 8px; }
.contact-row span:first-child { flex-shrink: 0; }

.newsletter-desc { font-size: 12px; color: var(--text-soft); margin-bottom: 12px; }
.newsletter-form { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.newsletter-input:focus { border-color: var(--blue); }
.newsletter-input::placeholder { color: var(--text-soft); }
.newsletter-btn {
  background: var(--blue); color: #fff; border: none;
  border-radius: 8px; padding: 9px 14px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.newsletter-btn:hover { background: #2563eb; }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-soft);
}

/* ─── VISIT BADGE ─── */
.visit-badge {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 100;
  background: var(--navy-card);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
  animation: fadeInUp .5s ease both 1s;
  pointer-events: none;
}
.visit-badge-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 4px; }

/* ─── SECTION HEADER (reusable) ─── */
.section-head { text-align: center; margin-bottom: 48px; }
.section-badge {
  display: inline-block;
  background: rgba(59,130,246,.12);
  border: 1px solid var(--border-glow);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-bright);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}
.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ─── ABOUT (QUIENES SOMOS) ─── */
.about-section {
  padding: 80px 24px;
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
}
.about-card {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
  transition: border-color .2s, transform .2s;
}
.about-card:hover { border-color: var(--border-glow); transform: translateY(-4px); }
.about-icon { font-size: 38px; margin-bottom: 16px; }
.about-card h3 { font-family: 'Sora', sans-serif; font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.about-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.7; }

/* ─── FAQ ─── */
.faq-section {
  padding: 80px 24px;
  background: var(--navy);
  border-bottom: 1px solid var(--border);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--border-glow); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: color .15s;
}
.faq-q:hover { color: var(--blue-bright); }
.faq-chevron { font-size: 16px; transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.7;
  transition: max-height .3s ease, padding .3s ease;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ─── AUTH PAGES (login / register) ─── */
.auth-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 64px;
  background: rgba(13,27,46,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
}
.auth-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.auth-nav-links { display: flex; align-items: center; gap: 10px; }
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 96px 24px 48px;
}
.auth-card {
  width: min(440px, 100%);
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 36px 32px;
  box-shadow: 0 24px 80px rgba(0,0,0,.4), 0 0 0 1px var(--border-glow);
  animation: fadeInUp .5s ease both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.auth-brand { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 800; color: var(--text); }
.auth-title { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 4px; }
.auth-sub   { font-size: 13px; color: var(--text-mid); margin-bottom: 28px; }
.auth-success {
  background: rgba(34,197,94,.1);
  border: 1px solid rgba(34,197,94,.3);
  color: var(--green);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.auth-group { margin-bottom: 18px; }
.auth-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-mid);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.auth-input {
  width: 100%;
  background: var(--navy-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.auth-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.auth-input::placeholder { color: var(--text-soft); }
.auth-btn {
  width: 100%;
  padding: 12px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
  transition: background .15s, transform .1s;
}
.auth-btn:hover { background: #2563eb; transform: translateY(-1px); }
.auth-errors {
  background: rgba(239,68,68,.1);
  border: 1px solid rgba(239,68,68,.3);
  color: #f87171;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  margin-bottom: 16px;
}
.auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-soft);
}
.auth-footer a { color: var(--blue-bright); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* register dark overrides */
.reg-shell { min-height: 100vh; display: grid; place-items: center; padding: 96px 24px 48px; background: var(--navy); }
.reg-card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,.4), 0 0 0 1px var(--border-glow);
  animation: fadeInUp .5s ease both;
}
.reg-section-title { color: var(--text); border-bottom-color: var(--border); }
.reg-field label { color: var(--text-mid); }
.reg-field input, .reg-field textarea {
  background: var(--navy-card);
  border-color: var(--border);
  color: var(--text);
}
.reg-field input:focus, .reg-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.reg-field input.error { border-color: var(--red); }
.reg-field-error { color: #f87171; }
.reg-step-num { background: var(--navy-light); color: var(--text-mid); }
.reg-step.active .reg-step-num { background: var(--blue); color: #fff; }
.reg-step.done .reg-step-num  { background: var(--green); color: #fff; }
.reg-step:not(:last-child)::after { background: var(--border); }
.reg-step.done:not(:last-child)::after { background: var(--blue); }
.reg-step-label { color: var(--text-soft); }
.reg-step.active .reg-step-label { color: var(--blue-bright); }
.reg-step.done .reg-step-label  { color: var(--green); }
.reg-company-toggle {
  background: var(--navy-light);
  border-color: var(--border);
  color: var(--text-mid);
}
.reg-company-toggle:hover { border-color: var(--blue); background: rgba(59,130,246,.08); }
.reg-company-toggle span { color: var(--text); }
.reg-company-toggle input[type="checkbox"] { accent-color: var(--blue); }
.reg-terms-box {
  background: var(--navy);
  border-color: var(--border);
  color: var(--text-mid);
}
.reg-terms-box h5 { color: var(--text); }
.reg-btn-back { background: transparent; color: var(--text-mid); border-color: var(--border); }
.reg-btn-back:hover { background: rgba(255,255,255,.05); border-color: var(--text-soft); }
.reg-btn-next { background: var(--blue); }
.reg-btn-next:hover { opacity: .88; }
.reg-global-error {
  background: rgba(239,68,68,.1);
  border-color: rgba(239,68,68,.3);
  color: #f87171;
}
.reg-login-link { color: var(--text-soft); }
.reg-login-link a { color: var(--blue-bright); }
.reg-footer { border-top-color: var(--border); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 300px 1fr; gap: 32px; }
  .kpi-row { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .chatbot-widget { max-width: 400px; margin: 0 auto; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .mid-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-center, .nav-right { display: none; }
  .hamburger { display: block; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .trust-items { gap: 16px; }
  .trust-divider { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 32px 24px 24px; }
}

@media (max-width: 600px) {
  .hero { padding: 88px 16px 40px; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .feature-card { border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
