/* ag2Liberación — look & feel Impulsa2 (https://www.impulsa2.com.co/) */
:root {
  --primary-blue: #1b2a47;
  --card-blue: #0f172a;
  --deep-blue: #0d1627;
  --accent-orange: #f39c12;
  --accent-yellow: #f1c40f;
  --text-white: #ffffff;
  --text-muted: #94a3b8;
  --surface: #ffffff;
  --surface-soft: #f4f6f9;
  --line: #e2e8f0;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --red-soft: #fee2e2;
  --violet: #7c3aed;
  --violet-soft: #ede9fe;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.12);
  --font-main: "Roboto", -apple-system, "Segoe UI", sans-serif;
  --radius: 14px;
  --radius-pill: 999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background: var(--deep-blue);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 5%;
  background: var(--primary-blue);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand:hover { text-decoration: none; }

.brand__img { height: 52px; width: auto; }

.brand__text strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-white);
}
.brand__text small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

.topbar__nav { display: flex; gap: 10px; align-items: center; }

.topbar__pill {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.topbar__pill--accent {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-yellow));
  color: var(--primary-blue);
  border: none;
}

/* ── Hero (águila Impulsa2) ───────────────────────────── */
.hero {
  position: relative;
  min-height: clamp(300px, 42vw, 400px);
  padding: 48px 5% 52px;
  overflow: hidden;
  background: var(--deep-blue);
  display: flex;
  align-items: center;
}

.hero__eagle-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
}

.hero__eagle {
  position: absolute;
  top: 50%;
  right: -4%;
  left: auto;
  transform: translateY(-50%);
  width: min(78vw, 820px);
  height: auto;
  max-height: 108%;
  object-fit: contain;
  object-position: right center;
  opacity: 0.88;
  filter: drop-shadow(0 12px 40px rgba(0, 0, 0, 0.35));
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(13, 22, 39, 0.94) 0%,
    rgba(27, 42, 71, 0.82) 32%,
    rgba(27, 42, 71, 0.45) 55%,
    rgba(27, 42, 71, 0.08) 78%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__overlay::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(180deg, transparent 0%, rgba(13, 22, 39, 0.85) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  width: 100%;
}

.hero__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-orange);
  margin: 0 0 12px;
}

.hero h1 {
  margin: 0 0 16px;
  font-weight: 900;
  line-height: 1.05;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero__line { display: block; color: var(--text-white); font-weight: 300; }
.hero__line--sub { font-size: 0.55em; font-weight: 400; color: var(--text-muted); margin-top: 4px; }

.hero__highlight {
  display: block;
  color: var(--accent-orange);
  font-weight: 900;
}

.hero__desc {
  font-size: 16px;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 0 20px;
}

.hero__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__channel {
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(243, 156, 18, 0.35);
  color: var(--text-white);
}

/* ── Layout & cards ───────────────────────────────────── */
.layout {
  max-width: 980px;
  margin: -28px auto 32px;
  padding: 0 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  color: #1e293b;
  border: 1px solid var(--line);
}

.card__head h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary-blue);
}

.section-label {
  margin: 24px 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.muted { color: #64748b; }
.oculto { display: none; }

/* ── Tabs ─────────────────────────────────────────────── */
.tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0 18px;
}

.tab {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface-soft);
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font-main);
  transition: all 0.2s ease;
}

.tab:hover {
  border-color: var(--accent-orange);
  color: var(--primary-blue);
}

.tab--active {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
  color: var(--text-white);
  box-shadow: 0 4px 14px rgba(27, 42, 71, 0.25);
}

/* ── Form ─────────────────────────────────────────────── */
label {
  display: block;
  font-weight: 700;
  margin: 8px 0;
  font-size: 13px;
  color: var(--primary-blue);
}

.row { display: flex; gap: 12px; align-items: stretch; }

input[type="text"],
input:not([type]) {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 2px solid var(--line);
  font-size: 16px;
  font-family: ui-monospace, "Consolas", monospace;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--surface-soft);
  color: var(--card-blue);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus {
  outline: none;
  border-color: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.2);
  background: var(--surface);
}

.btn {
  padding: 14px 28px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  font-family: var(--font-main);
  transition: transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent-orange);
  color: var(--primary-blue);
  border: 2px solid var(--accent-yellow);
  box-shadow: 0 4px 16px rgba(243, 156, 18, 0.35);
}

.btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(243, 156, 18, 0.45);
}

.hbls-demo { margin-top: 20px; font-size: 14px; }
.hbls-demo summary {
  cursor: pointer;
  color: var(--accent-orange);
  font-weight: 600;
}
.hbls-demo ul { padding-left: 18px; margin: 10px 0 0; }
.hbls-demo li { margin: 6px 0; color: #475569; }
.hbls-demo code {
  background: rgba(27, 42, 71, 0.08);
  color: var(--primary-blue);
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-family: ui-monospace, monospace;
  font-weight: 600;
}
.hbls-demo code:hover {
  background: rgba(243, 156, 18, 0.2);
}

/* ── Resultado ────────────────────────────────────────── */
.resultado__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--surface-soft);
}

.resultado__titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.resultado__head h2 {
  margin: 0;
  font-family: ui-monospace, monospace;
  font-size: 22px;
  color: var(--primary-blue);
}

.resultado__motivo {
  font-size: 14px;
  margin: 0 0 8px;
  color: #475569;
  line-height: 1.5;
}

.carta-box {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--green-soft) 0%, #fff7ed 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent-orange);
}

.carta-box__hint {
  margin: 0.5rem 0 0;
  font-size: 12px;
}

.btn--carta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  background: var(--primary-blue);
  color: var(--text-white) !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(27, 42, 71, 0.25);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn--carta:hover {
  background: var(--accent-orange);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.pago-box {
  margin: 0 0 1rem;
  padding: 1rem 1.1rem;
  background: linear-gradient(135deg, var(--amber-soft) 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
}

.pago-box__hint {
  margin: 0.45rem 0 0;
  font-size: 12px;
}

.btn--pse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.65rem 1.1rem;
  background: var(--amber);
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius-pill);
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn--pse:hover {
  background: #b45309;
  transform: translateY(-1px);
  text-decoration: none !important;
}

.chip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
}
.chip--mar { background: #dbeafe; color: #1d4ed8; }
.chip--air { background: #e0f2fe; color: #0369a1; }

.badge {
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  text-align: center;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.badge--neutral { background: #e2e8f0; color: #334155; }
.badge--green   { background: var(--green-soft); color: var(--green); }
.badge--amber   { background: var(--amber-soft); color: var(--amber); }
.badge--red     { background: var(--red-soft); color: var(--red); }
.badge--violet  { background: var(--violet-soft); color: var(--violet); }

.grid { display: grid; gap: 12px; }
.grid--info,
.grid--cartera {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.kpi {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent-orange);
}

.kpi__label {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.kpi__val {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-blue);
}

.checklist { list-style: none; padding: 0; margin: 0; }

.checklist li {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  margin-bottom: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.checklist li.ok        { background: var(--green-soft); border-color: #86efac; }
.checklist li.pendiente { background: var(--amber-soft); border-color: #fcd34d; }
.checklist li.bloqueo   { background: var(--red-soft); border-color: #fca5a5; }

.checklist .icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: white;
  font-size: 13px;
}

.ok .icon        { background: var(--green); }
.pendiente .icon { background: var(--amber); }
.bloqueo .icon   { background: var(--red); }

.checklist .title { font-weight: 700; color: var(--card-blue); }
.checklist .detail { color: #64748b; font-size: 13px; margin-top: 4px; }

.card--error {
  border-color: #fca5a5;
  background: #fff5f5;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  background: var(--primary-blue);
  padding: 32px 5%;
  border-top: 3px solid var(--accent-orange);
}

.footer__inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer__logo { height: 48px; opacity: 0.95; }

.footer strong { color: var(--text-white); font-size: 15px; }

.footer__muted {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── FAB WhatsApp (estilo Impulsa2) ─────────────────── */
.fab-wa {
  position: fixed;
  left: 0;
  top: 58%;
  transform: translateY(-50%);
  background: var(--text-white);
  padding: 14px 18px;
  border-radius: 0 28px 28px 0;
  box-shadow: 2px 0 14px rgba(0, 0, 0, 0.25);
  z-index: 1001;
  transition: transform 0.2s, background 0.2s;
}

.fab-wa:hover {
  transform: translateY(-50%) scale(1.05);
  background: #f0f0f0;
}

.fab-wa img { width: 32px; height: 32px; display: block; }

@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; gap: 10px; }
  .topbar__nav { width: 100%; justify-content: flex-end; }
  .hero {
    min-height: 280px;
    padding: 36px 20px 40px;
  }
  .hero__eagle {
    right: 50%;
    transform: translate(50%, -42%);
    width: 130%;
    max-height: 70%;
    opacity: 0.22;
    object-position: center bottom;
  }
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(13, 22, 39, 0.9) 0%,
      rgba(27, 42, 71, 0.82) 50%,
      rgba(13, 22, 39, 0.92) 100%
    );
  }
  .hero__content { max-width: 100%; }
  .row { flex-direction: column; }
  .btn--primary { width: 100%; }
  .resultado__head { flex-direction: column; }
  .fab-wa { padding: 12px 14px; }
}
