/* ============================================================
   LEXGO — Ley al Instante · www.lexgo.pro
   Paleta: navy #0D1B2A · blue #2563EB · gold #D4AF37
           light #F5F7FA · gray #6B7280
   ============================================================ */

:root {
  --navy: #0D1B2A;
  --navy-800: #13263B;
  --navy-700: #1B3350;
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-soft: #EAF0FE;
  --gold: #D4AF37;
  --gold-soft: #F7EFD6;
  --light: #F5F7FA;
  --gray: #6B7280;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --white: #FFFFFF;
  --success: #16A34A;
  --danger: #DC2626;

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(13, 27, 42, .08);
  --shadow-md: 0 6px 24px rgba(13, 27, 42, .10);
  --shadow-lg: 0 16px 48px rgba(13, 27, 42, .16);

  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

.section-label {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-title { font-size: clamp(28px, 4vw, 40px); margin-bottom: 14px; }

.section-sub { color: var(--gray); max-width: 620px; margin: 0 auto 48px; }

.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--blue-dark); }

.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 14px rgba(212, 175, 55, .35); }
.btn-gold:hover { background: #c6a22f; }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, .35);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }

.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
}

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

.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }

.brand-name {
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
}
.brand-name .go { color: var(--gold); }

.brand-tag {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: #9FB3C8;
  margin-top: -3px;
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: #C9D4DF; font-size: 15px; font-weight: 500; transition: color .2s; padding: 8px 0; }
.nav-links a:hover { color: var(--gold); }

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

/* Selectores idioma / moneda */
.switcher {
  display: flex;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  overflow: hidden;
}
.switcher button {
  background: transparent;
  color: #9FB3C8;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  min-width: 44px;
  transition: background .2s, color .2s;
}
.switcher button.active { background: var(--blue); color: #fff; }

.nav-cta { min-height: 42px; padding: 8px 18px; font-size: 14.5px; }

.hamburger {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  color: #fff;
}
.hamburger svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 900px 500px at 85% -10%, rgba(37, 99, 235, .28), transparent 60%),
    radial-gradient(ellipse 700px 420px at -5% 110%, rgba(212, 175, 55, .12), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 88px 0 96px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .15);
  border: 1px solid rgba(37, 99, 235, .4);
  color: #A9C4F7;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .55); }
  70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 20px;
}
.hero h1 .accent { color: var(--gold); font-style: italic; }

.hero p.lead { font-size: 18px; color: #B7C5D3; max-width: 520px; margin-bottom: 22px; }

.hero-price-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(212, 175, 55, .10);
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 12px;
  padding: 12px 20px;
  margin-bottom: 28px;
}
.hero-price-chip .amount {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hero-price-chip .from { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #C7B269; }
.hero-price-chip .desc { font-size: 13.5px; color: #B7C5D3; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: #8FA3B8;
  font-size: 13.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

/* tarjeta de chat en hero */
.hero-card {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--navy-700));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
  position: relative;
}
.avatar .status {
  position: absolute; bottom: 0; right: 0;
  width: 11px; height: 11px;
  background: var(--success);
  border: 2px solid var(--navy-800);
  border-radius: 50%;
}
.hero-card-head .who strong { display: block; font-size: 14.5px; color: #fff; }
.hero-card-head .who span { font-size: 12.5px; color: #8FA3B8; }
.hero-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  background: rgba(212, 175, 55, .14);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 8px;
  text-align: right;
}
.hero-timer small {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #C7B269;
}

.msg.doc {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(37, 99, 235, .4);
  color: #A9C4F7;
  font-size: 12.5px;
  align-self: flex-end;
}
.msg.doc svg { width: 15px; height: 15px; flex-shrink: 0; }

.hero-extend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(212, 175, 55, .08);
  border-top: 1px solid rgba(212, 175, 55, .25);
  font-size: 12.5px;
  color: #C7B269;
}
.hero-extend-row .mini-btn {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  flex-shrink: 0;
}
.hero-card-body { padding: 20px; display: flex; flex-direction: column; gap: 12px; min-height: 210px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.msg.in { background: var(--navy-700); color: #DCE6F2; border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.out { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.hero-card-foot {
  display: flex; gap: 10px; padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, .07);
}
.hero-card-foot .fake-input {
  flex: 1;
  background: var(--navy-700);
  border-radius: 8px;
  padding: 10px 14px;
  color: #6E8299;
  font-size: 13.5px;
}
.hero-card-foot .send {
  width: 42px; height: 42px;
  border-radius: 8px;
  border: none;
  background: var(--gold);
  color: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.hero-card-foot .send svg { width: 18px; height: 18px; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 28px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-display); font-size: 30px; color: var(--navy); }
.stat span { font-size: 13.5px; color: var(--gray); }

/* ---------- Secciones ---------- */
section.block { padding: 88px 0; }
section.block.alt { background: var(--white); }

/* Cómo funciona */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 20px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-family: var(--font-body); font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--gray); }

/* Áreas */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: block;
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.area-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.area-icon svg { width: 23px; height: 23px; }
.area-card h3 { font-family: var(--font-body); font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.area-card p { font-size: 13.5px; color: var(--gray); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow-lg); }

.price-flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-mins { font-size: 14px; font-weight: 600; color: var(--gray); letter-spacing: .08em; text-transform: uppercase; }
.price-value {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--navy);
  margin: 10px 0 2px;
  font-variant-numeric: tabular-nums;
}
.price-per { font-size: 13px; color: var(--gray); margin-bottom: 22px; }

.price-feats { list-style: none; margin-bottom: 28px; flex: 1; }
.price-feats li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: #3D4A5C;
  padding: 7px 0;
}
.price-feats svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

.price-note {
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
  margin-top: 26px;
}
.price-note b { color: var(--navy); }

/* ---------- Suscripciones ---------- */
.subs { background: var(--navy); color: #fff; }
.subs .section-title { color: #fff; }
.subs .section-sub { color: #93A5B8; }

.subs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }

.sub-card {
  border-radius: var(--radius-lg);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.sub-card.silver {
  background: var(--navy-800);
  border: 1px solid rgba(255, 255, 255, .12);
}
.sub-card.gold {
  background: linear-gradient(150deg, #2A2410 0%, var(--navy-800) 55%);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 50px rgba(212, 175, 55, .14);
}

.sub-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sub-card.silver .sub-tier { color: #B9C4D0; }
.sub-card.gold .sub-tier { color: var(--gold); }
.sub-tier svg { width: 16px; height: 16px; }

.sub-price {
  font-family: var(--font-display);
  font-size: 42px;
  font-variant-numeric: tabular-nums;
}
.sub-per { font-size: 13.5px; color: #8FA3B8; margin-bottom: 24px; }

.sub-feats { list-style: none; margin-bottom: 30px; flex: 1; }
.sub-feats li { display: flex; gap: 10px; font-size: 14.5px; color: #C9D4DF; padding: 8px 0; align-items: flex-start; }
.sub-feats svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sub-card.silver .sub-feats svg { color: var(--blue); }
.sub-card.gold .sub-feats svg { color: var(--gold); }

/* ---------- Abogados conectados ---------- */
.lawyers-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lawyer-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.lawyer-card .avatar { background: linear-gradient(135deg, var(--navy-700), var(--navy)); }
.lawyer-card strong { display: block; font-size: 14.5px; }
.lawyer-card span { font-size: 12.5px; color: var(--gray); }
.online-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--success);
}
.online-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }

/* ---------- LexIA ---------- */
.ai-section {
  background:
    radial-gradient(ellipse 800px 460px at 110% 0%, rgba(37, 99, 235, .22), transparent 60%),
    radial-gradient(ellipse 600px 400px at -10% 100%, rgba(212, 175, 55, .10), transparent 55%),
    var(--navy);
  color: #fff;
}
.ai-section .section-title { color: #fff; }
.ai-section .section-sub { color: #93A5B8; }
.ai-section .section-label { color: var(--gold); }

.ai-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 920px; margin: 0 auto 40px; }
.ai-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color .2s ease, background .2s ease;
}
.ai-card:hover { border-color: rgba(212, 175, 55, .5); background: rgba(255, 255, 255, .06); }
.ai-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, .35), rgba(212, 175, 55, .25));
  border: 1px solid rgba(212, 175, 55, .4);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.ai-icon svg { width: 24px; height: 24px; }
.ai-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ai-card p { font-size: 14px; color: #A6B6C7; }

.ai-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 2.6vw, 24px);
  color: var(--gold);
}

/* ---------- Testimonios ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testi-stars { display: flex; gap: 3px; color: var(--gold); margin-bottom: 16px; }
.testi-stars svg { width: 17px; height: 17px; }
.testi-card blockquote { font-size: 14.5px; color: #3D4A5C; line-height: 1.65; flex: 1; margin-bottom: 20px; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who .avatar { width: 40px; height: 40px; font-size: 13.5px; }
.testi-who strong { display: block; font-size: 14px; }
.testi-who span { font-size: 12.5px; color: var(--gray); }

/* ---------- Garantía ---------- */
.guarantee {
  max-width: 860px;
  margin: 0 auto;
  background: var(--navy);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 60px rgba(212, 175, 55, .12);
  padding: 44px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
  color: #fff;
}
.guarantee .g-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(212, 175, 55, .14);
  border: 1px solid rgba(212, 175, 55, .5);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.guarantee .g-icon svg { width: 34px; height: 34px; }
.guarantee h2 { font-size: clamp(22px, 3vw, 28px); margin-bottom: 8px; }
.guarantee p { color: #C9D4DF; font-size: 15.5px; }
.guarantee .g-note { font-size: 13px; color: #8FA3B8; margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 22px 18px; color: var(--gray); font-size: 14.5px; }

/* ---------- CTA final ---------- */
.final-cta {
  background:
    radial-gradient(ellipse 700px 380px at 50% 120%, rgba(212, 175, 55, .16), transparent 60%),
    var(--navy);
  color: #fff;
  text-align: center;
  padding: 96px 0;
}
.final-cta h2 { font-size: clamp(30px, 4.5vw, 44px); margin-bottom: 16px; }
.final-cta p { color: #93A5B8; max-width: 560px; margin: 0 auto 34px; }

/* ---------- Footer ---------- */
footer {
  background: #091320;
  color: #8FA3B8;
  padding: 56px 0 28px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { margin-top: 14px; max-width: 280px; font-size: 13.5px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #5D7186;
}

/* ============================================================
   FLUJO DE COMPRA (asesoria.html)
   ============================================================ */
.flow-wrap { max-width: 880px; margin: 0 auto; padding: 48px 24px 96px; }

.flow-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}
.flow-step-ind {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
}
.flow-step-ind .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  transition: background .2s, color .2s;
}
.flow-step-ind.active { color: var(--navy); }
.flow-step-ind.active .dot { background: var(--blue); color: #fff; }
.flow-step-ind.done .dot { background: var(--success); color: #fff; }
.flow-sep { width: 36px; height: 2px; background: var(--gray-200); align-self: center; }

.flow-panel { display: none; }
.flow-panel.active { display: block; animation: fadeUp .3s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.flow-title { font-size: clamp(24px, 3.4vw, 32px); text-align: center; margin-bottom: 8px; }
.flow-sub { text-align: center; color: var(--gray); margin-bottom: 36px; }

.select-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.select-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  min-height: 44px;
}
.select-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.select-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.select-card .area-icon { margin: 0 auto 12px; }
.select-card h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; }

.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pkg-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.pkg-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pkg-card.selected { border-color: var(--blue); background: var(--blue-soft); }
.pkg-card .mins { font-size: 15px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; }
.pkg-card .val { font-family: var(--font-display); font-size: 32px; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.pkg-card .per { font-size: 12.5px; color: var(--gray); }

.flow-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.pay-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field label .req { color: var(--danger); }
.field input, .field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.field .hint { font-size: 12.5px; color: var(--gray); margin-top: 5px; }
.field .error-msg { display: none; font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .error-msg { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.order-box {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.order-box h3 { font-family: var(--font-body); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #93A5B8; margin-bottom: 20px; }
.order-line { display: flex; justify-content: space-between; font-size: 14.5px; padding: 8px 0; color: #C9D4DF; }
.order-total {
  display: flex; justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, .14);
  margin-top: 14px; padding-top: 16px;
  font-weight: 700; font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.order-total .amount { color: var(--gold); }
.secure-note {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: #8FA3B8;
  margin-top: 18px;
}
.secure-note svg { width: 15px; height: 15px; color: var(--gold); flex-shrink: 0; }

/* ============================================================
   CHAT (chat.html)
   ============================================================ */
.chat-page {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--light);
}

.chat-topbar {
  background: var(--navy);
  color: #fff;
  padding: 0 20px;
  height: 66px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.chat-topbar .who strong { display: block; font-size: 15px; }
.chat-topbar .who span { font-size: 12.5px; color: #8FA3B8; }

.chat-timer {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, .14);
  border: 1px solid rgba(212, 175, 55, .35);
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  padding: 8px 16px;
  border-radius: 10px;
}
.chat-timer svg { width: 17px; height: 17px; }
.chat-timer.warning { background: rgba(220, 38, 38, .16); border-color: rgba(220, 38, 38, .4); color: #F87171; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .65; } }

.chat-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
}
.chat-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

.chat-msg { max-width: 78%; padding: 12px 16px; border-radius: 14px; font-size: 15px; line-height: 1.55; box-shadow: var(--shadow-sm); }
.chat-msg.lawyer { background: var(--white); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.system {
  align-self: center;
  max-width: 92%;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, .5);
  color: #6B5310;
  font-size: 13.5px;
  text-align: center;
  border-radius: 10px;
}
.chat-msg .time { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }

.typing { display: inline-flex; gap: 4px; padding: 14px 18px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray);
  animation: bounce 1.2s infinite;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-5px); } }

.chat-inputbar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  flex-shrink: 0;
}
.chat-inputbar .row { max-width: 760px; margin: 0 auto; display: flex; gap: 10px; }
.chat-inputbar input {
  flex: 1;
  min-height: 48px;
  border: 1.5px solid var(--gray-300);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
}
.chat-inputbar input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.chat-inputbar input:disabled { background: var(--gray-200); }
.chat-send {
  width: 48px; height: 48px;
  border: none;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.chat-send:hover { background: var(--blue-dark); }
.chat-send svg { width: 20px; height: 20px; }

/* Banner extensión 5 min */
.extend-banner {
  display: none;
  background: var(--gold-soft);
  border-top: 1px solid rgba(212, 175, 55, .5);
  padding: 12px 20px;
}
.extend-banner.show { display: block; }
.extend-banner .row {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; color: #6B5310;
}
.extend-banner .row b { font-variant-numeric: tabular-nums; }
.extend-banner button { margin-left: auto; min-height: 42px; padding: 8px 18px; font-size: 14px; flex-shrink: 0; }

/* Overlay tiempo terminado */
.chat-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 42, .72);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 24px;
}
.chat-overlay.show { display: flex; animation: fadeUp .25s ease; }
.overlay-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 420px;
  width: 100%;
  padding: 40px 34px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.overlay-card .icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.overlay-card .icon-circle svg { width: 30px; height: 30px; }
.overlay-card h2 { font-size: 24px; margin-bottom: 10px; }
.overlay-card p { color: var(--gray); font-size: 14.5px; margin-bottom: 26px; }
.overlay-card .btn + .btn { margin-top: 10px; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--navy);
  color: #fff;
  padding: 13px 24px;
  border-radius: 10px;
  font-size: 14.5px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
  z-index: 300;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .areas-grid { grid-template-columns: repeat(3, 1fr); }
  .lawyers-strip { grid-template-columns: repeat(2, 1fr); }
  .select-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .navbar .nav-cta { display: none; }
  .hamburger { display: flex; align-items: center; justify-content: center; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 13px 0; font-size: 16px; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .guarantee { flex-direction: column; text-align: center; padding: 36px 26px; }
  .pricing-grid, .subs-grid { grid-template-columns: 1fr; max-width: 440px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-box { position: static; order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  section.block { padding: 64px 0; }
}

@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .areas-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .select-grid { grid-template-columns: 1fr 1fr; }
  .pkg-grid { grid-template-columns: 1fr; }
  .lawyers-strip { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .flow-steps { flex-wrap: wrap; }
  .flow-sep { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .stat b { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
