/* ═══════════════════════════════════════════════════════════════
   VÍSATE — Design System
   visate.com.mx · Asesoría Migratoria
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Big+Shoulders+Display:wght@400;700;800;900&family=Barlow:wght@300;400;500&family=Share+Tech+Mono&display=swap');

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:      #0D1B2A;
  --s1:      #112236; 
  --s2:      #162840;
  --s3:      #1C3050;
  --b1:      #1F3A5F;
  --b2:      #2A4A72;
  --b3:      #3A5F8A;
  --red:     #C8191E;
  --red2:    #A01419;
  --rd:      rgba(200,25,30,.10);
  --rb:      rgba(200,25,30,.22);
  --aq:      #00B8A9;
  --aqd:     rgba(0,184,169,.07);
  --aqb:     rgba(0,184,169,.20);
  --t1:      #EFEFEF;
  --t2:      rgba(239,239,239,.95);
  --t3:      rgba(239,239,239,.95);
  --t4:      rgba(239,239,239,.95);
  --ok:      #16A34A;
  --warn:    #CA8A04;
  --mono:    'Share Tech Mono', monospace;
  --head:    'Big Shoulders Display', sans-serif;
  --body:    'Barlow', sans-serif;
  --nav-h:   60px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html   { scroll-behavior: smooth; }
body   { font-family: var(--body); font-weight: 300; background: var(--bg); color: var(--t1); line-height: 1.6; overflow-x: hidden; }
a      { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }
::selection { background: var(--rb); color: var(--red); }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--b3); }

/* ── Typography ─────────────────────────────────────────────── */
.t-xl  { font-family: var(--head); font-weight: 900; font-size: clamp(64px,11vw,128px); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; }
.t-lg  { font-family: var(--head); font-weight: 900; font-size: clamp(40px,6vw,80px);  line-height: .95; letter-spacing: -.02em; text-transform: uppercase; }
.t-md  { font-family: var(--head); font-weight: 800; font-size: clamp(26px,3.5vw,48px);line-height: 1.0; text-transform: uppercase; }
.t-sm  { font-family: var(--head); font-weight: 700; font-size: clamp(18px,2vw,24px);  text-transform: uppercase; letter-spacing: .01em; }
.label { font-family: var(--mono); font-size: 16px; letter-spacing: .14em; color: var(--t3); text-transform: uppercase; }
.mono  { font-family: var(--mono); color: var(--aq); }
.body  { font-family: var(--body); font-weight: 300; font-size: 18px; color: var(--t2); line-height: 1.8; }

/* ── Layout ─────────────────────────────────────────────────── */
.wrap  { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px,5vw,72px); }
.section { padding: 80px clamp(20px,5vw,72px); max-width: 1120px; margin: 0 auto; }
.rule  { border: none; border-top: 1px solid var(--b1); }
.vr    { width: 1px; background: var(--b2); flex-shrink: 0; }
.gap-grid { display: grid; gap: 1px; background: var(--b1); }
.gap-flex { display: flex;  gap: 1px; background: var(--b1); }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px,5vw,72px);
  transition: background .3s, border-color .3s;
}
.nav.scrolled {
  background: rgba(7,7,11,.96);
  border-bottom: 1px solid var(--b1);
  backdrop-filter: blur(16px);
}
.nav-logo {
  display: flex; align-items: center; gap: 16px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.nav-wordmark {
  font-family: var(--head); font-weight: 900; font-size: 20px;
  text-transform: uppercase; color: var(--t1); letter-spacing: -.01em;
  line-height: 1;
}
.nav-wordmark span { color: var(--red); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-link {
  font-family: var(--mono); font-size: 18px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--t3);
  background: none; border: none; cursor: pointer; padding: 0;
  position: relative; transition: color .15s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--aq); transition: width .2s;
}
.nav-link:hover, .nav-link.active { color: var(--t1); }
.nav-link:hover::after { width: 100%; }
.nav-link.active::after { width: 100%; background: var(--red); }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 22px; letter-spacing: .12em;
  text-transform: uppercase; border: none; cursor: pointer;
  transition: all .15s; white-space: nowrap;
}
.btn-red {
  padding: 13px 24px; background: var(--red); color: #fff;
}
.btn-red:hover { background: var(--red2); }
.btn-red:disabled { background: var(--b2); color: var(--t3); cursor: not-allowed; }
.btn-outline {
  padding: 12px 27px; background: transparent; color: var(--t2);
  border: 1px solid var(--b2);
}
.btn-outline:hover { border-color: var(--b3); color: var(--t1); }
.btn-aq {
  padding: 13px 28px; background: var(--aq); color: #07070B;
}
.btn-aq:hover { opacity: .88; }
.btn-sm { padding: 9px 18px; font-size: 9px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Form fields ─────────────────────────────────────────────── */
.field {
  width: 100%; padding: 12px 14px;
  background: var(--s2); border: 1px solid var(--b1);
  color: var(--t1); font-family: var(--body); font-weight: 300;
  font-size: 14px; outline: none; transition: border-color .15s;
  border-radius: 0; -webkit-appearance: none;
}
.field:focus { border-color: var(--aqb); }
.field::placeholder { color: var(--t4); }
.field-label {
  display: block; font-family: var(--mono); font-size: 9px;
  letter-spacing: .12em; color: var(--t3); margin-bottom: 7px;
}
.field-group { display: flex; flex-direction: column; gap: 0; }
select.field option { background: var(--s2); }
textarea.field { resize: none; line-height: 1.6; }

/* ── Cards / Panels ──────────────────────────────────────────── */
.panel {
  background: var(--s1); border: 1px solid var(--b1);
  padding: 32px 28px; position: relative;
}
.panel-top-red::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--red);
}
.panel-top-aq::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--aq);
}
.panel-left-red { border-left: 2px solid var(--red); }
.panel-left-aq  { border-left: 2px solid var(--aq); }

/* ── Status badges ───────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .1em;
  padding: 4px 10px; border: 1px solid;
}
.badge-ok   { color: var(--ok);  border-color: rgba(22,163,74,.3);   background: rgba(22,163,74,.06); }
.badge-aq   { color: var(--aq);  border-color: var(--aqb);           background: var(--aqd); }
.badge-red  { color: var(--red); border-color: var(--rb);            background: var(--rd); }
.badge-warn { color: var(--warn);border-color: rgba(202,138,4,.3);   background: rgba(202,138,4,.06); }
.badge-dot  { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

/* ── Data rows (government table style) ──────────────────────── */
.data-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px solid var(--b1); gap: 16px;
}
.data-row:last-child { border-bottom: none; }
.data-key { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; color: var(--t3); }
.data-val { font-family: var(--mono); font-size: 12px; color: var(--t1); text-align: right; }

/* ── Progress bar ────────────────────────────────────────────── */
.bar-track { height: 2px; background: var(--b1); overflow: hidden; }
.bar-fill  { height: 100%; background: var(--aq); transition: width .7s cubic-bezier(.4,0,.2,1); }
.bar-red   { background: linear-gradient(90deg, var(--red), var(--aq)); }

/* ── Tab underline ───────────────────────────────────────────── */
.tabs { display: flex; border-bottom: 1px solid var(--b1); }
.tab {
  padding: 11px 20px; background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--t3); cursor: pointer; transition: all .15s;
}
.tab.active { color: var(--t1); border-bottom-color: var(--red); }
.tab:hover  { color: var(--t2); }

/* ── Plan cards ──────────────────────────────────────────────── */
.plan-card { background: var(--s1); padding: 36px 28px; position: relative; }
.plan-card.featured { border-top: 2px solid var(--red); }
.plan-featured-tag {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-family: var(--mono);
  font-size: 8px; letter-spacing: .14em; padding: 3px 14px;
}
.plan-price {
  font-family: var(--mono); font-size: 44px; color: var(--t1);
  line-height: 1; margin: 16px 0 4px;
}
.plan-price sub { font-size: 14px; color: var(--t3); vertical-align: middle; margin-left: 4px; }

/* ── Spinner ─────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--b2);
  border-top-color: var(--aq); border-radius: 50%;
  animation: spin .7s linear infinite; flex-shrink: 0;
}

/* ── Chat bubbles ────────────────────────────────────────────── */
.bubble-ai {
  background: var(--s2); border-left: 2px solid var(--aqb);
  padding: 14px 18px; max-width: 78%; font-size: 20px; font-weight: 300;
  line-height: 1.75; color: var(--t2);
}
.bubble-user {
  background: var(--s3); border-left: 2px solid var(--rb);
  padding: 14px 18px; max-width: 78%; margin-left: auto;
  font-size: 20px; font-weight: 300; line-height: 1.75;
}
.typing { display: flex; gap: 4px; align-items: center; padding: 14px 18px; }
@keyframes blink { 0%,100%{opacity:.3} 50%{opacity:1} }
.typing span {
  width: 5px; height: 5px; background: var(--aq); border-radius: 50%;
  animation: blink 1.1s infinite;
}
.typing span:nth-child(2) { animation-delay: .22s; }
.typing span:nth-child(3) { animation-delay: .44s; }

/* ── Calendar ────────────────────────────────────────────────── */
.cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 2px; }
.cal-cell {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-family: var(--body); font-size: 13px; font-weight: 300;
  color: var(--t3); cursor: pointer; transition: all .15s;
}
.cal-cell:hover:not(.off):not(.sel) { background: var(--s3); color: var(--t1); }
.cal-cell.sel  { background: var(--red); color: #fff; font-weight: 500; }
.cal-cell.off  { opacity: .18; cursor: not-allowed; }
.cal-cell.now  { color: var(--aq); }
.cal-head { font-family: var(--mono); font-size: 8px; letter-spacing: .12em; color: var(--t4); text-align: center; padding: 6px 0; }

/* ── Gauge (eligibility) ─────────────────────────────────────── */
.gauge-wrap { position: relative; display: inline-block; }
.gauge-score {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  text-align: center; line-height: 1;
}
.gauge-num { font-family: var(--mono); font-size: 48px; }
.gauge-of  { font-family: var(--mono); font-size: 10px; color: var(--t3); margin-top: 4px; }

/* ── Notification flash ──────────────────────────────────────── */
@keyframes fadeUp { from{opacity:0;transform:translateY(8px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeOut{ to{opacity:0;transform:translateY(-8px)} }
.flash {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  padding: 12px 20px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .1em; border: 1px solid; max-width: 320px;
  animation: fadeUp .3s ease both;
}
.flash-ok   { background: rgba(22,163,74,.1);  border-color: rgba(22,163,74,.3);  color: var(--ok); }
.flash-err  { background: var(--rd);           border-color: var(--rb);           color: var(--red); }
.flash-info { background: var(--aqd);          border-color: var(--aqb);          color: var(--aq); }

/* ── Hero section ────────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  justify-content: flex-end; padding: 0 clamp(20px,5vw,72px) 72px;
  position: relative; overflow: hidden;
}
.hero-vr {
  position: absolute; left: clamp(20px,5vw,72px); top: 0; bottom: 0;
  width: 1px; background: linear-gradient(to bottom, transparent 8%, var(--b1) 35%, var(--b1) 80%, transparent);
}
.hero-ghost {
  position: absolute; right: -3%; top: 5%;
  font-family: var(--head); font-weight: 900;
  font-size: clamp(200px,30vw,420px);
  color: var(--s1); line-height: 1; pointer-events: none;
  user-select: none; letter-spacing: -.04em;
}
.hero-content { max-width: 1120px; margin: 0 auto; width: 100%; position: relative; }

/* ── Stats bar ───────────────────────────────────────────────── */
.stats-bar {
  display: flex; gap: 0; border-top: 1px solid var(--b1);
  margin-top: 64px;
}
.stat-item {
  flex: 1; padding: 24px 28px 0 0; margin-right: 28px;
  border-right: 1px solid var(--b1);
}
.stat-item:last-child { border-right: none; margin-right: 0; }
.stat-val { font-family: var(--mono); font-size: 28px; color: var(--red); line-height: 1; margin-bottom: 6px; }
.stat-val.aq { color: var(--aq); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links .nav-link:not(.nav-cta) { display: none; }
  .hero-ghost { display: none; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 45%; }
  .gap-grid  { grid-template-columns: 1fr !important; }
  .two-col   { grid-template-columns: 1fr !important; }
}

/* ── Animations ──────────────────────────────────────────────── */
.fade-up { animation: fadeUp .55s ease both; }
@keyframes in { from{opacity:0} to{opacity:1} }
.fade-in { animation: in .35s ease both; }

/* ── Utilities ───────────────────────────────────────────────── */
.red   { color: var(--red); }
.aq    { color: var(--aq); }
.muted { color: var(--t3); }
.center{ text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.pt-nav { padding-top: var(--nav-h); }
