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

/* El sitio esconde bloques enteros con el atributo `hidden` desde JavaScript
 * (auth.js, flow.js, mi.js). El navegador le aplica un `display:none` de su
 * hoja interna, pero cualquier regla de autor con `display` propio se lo come:
 * `.mi-pedir{display:flex}` y `.mi-cargando{display:flex}` seguian pintandose
 * con `hidden` puesto. Es el mismo fallo que dejo el portal de abogados
 * bloqueado tras un modal que nunca se ocultaba.
 *
 * Va con !important a proposito: `hidden` tiene que significar oculto pase lo
 * que pase mas abajo en el archivo. */
[hidden] { display: none !important; }

: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);
}

/* La barra va más ancha que el contenido del sitio: con el botón de cuenta en
 * la esquina ya no cabían marca + enlaces + selectores + CTA en 1140px. */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  max-width: 1320px;
}

.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: 22px; 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; white-space: nowrap; }

.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.avatar-lexbro {
  background: var(--blue) url("../assets/lexbro-avatar.svg") center / cover no-repeat;
  color: transparent;
  border-radius: 11px;
  image-rendering: pixelated;
}
.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); }

/* ---------- Lexbro (sección de tarjetas) ---------- */
.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: 1320px) {
  .nav-links { 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);
    z-index: 100;
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 13px 0; font-size: 16px; }
}

@media (max-width: 760px) {
  .navbar .nav-cta { display: none; }
}

/* Selectores de idioma y moneda dentro del menú desplegable (los mueve nav.js
 * en pantallas angostas, donde no caben en la barra). */
.nav-switchers {
  display: flex;
  gap: 10px;
  padding: 14px 0 4px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-top: 8px;
}
.nav-switchers .switcher { flex: 1; }
.nav-switchers .switcher button { flex: 1; padding: 10px 0; }

/* El botón de menú que crea nav.js en páginas sin enlaces de navegación solo
 * tiene sentido cuando hay algo guardado dentro: en móvil. */
@media (min-width: 761px) {
  .hamburger-solo { display: none !important; }
}

@media (max-width: 860px) {
  .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; }
}

/* Grid de 2 columnas para los planes de Lexbro (Esencial + Plus) */
.pricing-grid.pricing-grid-2 { grid-template-columns: repeat(2, 1fr); max-width: 720px; }
@media (max-width: 700px) {
  .pricing-grid.pricing-grid-2 { grid-template-columns: 1fr; max-width: 440px; }
}

/* ============================================================
   PÁGINAS LEGALES (Términos, Privacidad, Tratamiento de datos)
   ============================================================ */
.legal-main { background: var(--light); padding: 44px 0 72px; }
.legal {
  max-width: 840px; margin: 0 auto; background: var(--white);
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 46px 52px;
}
.legal .legal-kicker {
  color: var(--blue); font-weight: 700; font-size: 12.5px;
  letter-spacing: .09em; text-transform: uppercase;
}
.legal h1 {
  font-family: var(--font-display); font-size: 34px; line-height: 1.15;
  margin: 8px 0 6px; color: var(--navy);
}
.legal .legal-updated { color: var(--gray); font-size: 14px; }
.legal .legal-lead { color: #37475a; font-size: 16.5px; margin: 18px 0 6px; line-height: 1.65; }
.legal h2 { font-size: 20px; margin: 34px 0 10px; color: var(--navy); scroll-margin-top: 90px; }
.legal h3 { font-size: 16.5px; margin: 20px 0 6px; color: var(--navy); }
.legal p, .legal li { color: #33465a; font-size: 15.5px; line-height: 1.72; }
.legal p { margin-bottom: 10px; }
.legal ul, .legal ol { margin: 6px 0 12px 22px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: underline; }
.legal strong { color: var(--navy); }
.legal .legal-box {
  background: var(--blue-soft); border: 1px solid #CDDDFB;
  border-radius: var(--radius); padding: 15px 18px; margin: 18px 0; font-size: 14.8px;
}
.legal .legal-box p:last-child { margin-bottom: 0; }
.legal .legal-id {
  background: var(--light); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 16px 18px; margin: 16px 0;
}
.legal .legal-id div { margin-bottom: 5px; font-size: 15px; color: #33465a; }
.legal .legal-id div:last-child { margin-bottom: 0; }
.legal-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 6px; }
.legal-toc a {
  font-size: 13.5px; background: var(--light); border: 1px solid var(--gray-200);
  padding: 6px 13px; border-radius: 999px; text-decoration: none; color: var(--navy);
}
.legal-toc a:hover { border-color: var(--blue); color: var(--blue); }
.legal .fill {
  background: #FFF3CD; border-bottom: 1px dashed #C79A16;
  padding: 0 4px; border-radius: 3px; font-weight: 600; color: #7a5c07;
}
.legal-updated-note { font-size: 13.5px; color: var(--gray); margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
@media (max-width: 640px) {
  .legal { padding: 30px 22px; }
  .legal h1 { font-size: 27px; }
}

/* ============================================================
   Sala de espera del chat + resumen del caso en el checkout
   ============================================================ */

/* Radar de "buscando abogado": tres ondas que se expanden */
.wait-radar {
  position: relative;
  width: 84px;
  height: 84px;
  margin: 0 auto 20px;
}
.wait-radar::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: 50%;
  background: var(--gold);
}
.wait-radar i {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: waitPing 2.4s cubic-bezier(0, .2, .8, 1) infinite;
}
.wait-radar i:nth-child(2) { animation-delay: .8s; }
.wait-radar i:nth-child(3) { animation-delay: 1.6s; }
@keyframes waitPing {
  0%   { transform: scale(.34); opacity: .9; }
  100% { transform: scale(1);   opacity: 0; }
}

.wait-elapsed {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--navy);
  margin: 14px 0 6px !important;
}

.wait-note {
  background: var(--light);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-size: 13px;
  color: var(--gray) !important;
  margin-top: 18px !important;
}

/* Resumen del caso en el checkout */
.pay-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  resize: vertical;
  color: var(--navy);
  background: #fff;
}
.pay-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

.pay-error {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: var(--radius);
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  font-size: 13.5px;
  text-align: center;
}

/* ============================================================
   CAMPAÑA SOLIDARIA — asesoría gratuita por el terremoto
   Bloque aparte a propósito: cuando la campaña termine se borra
   entero y el sitio vuelve al modelo de pago sin residuos.
   ============================================================ */

/* Distintivo "gratis" — en la portada, en la solicitud y en el chat */
.camp-chip {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, .5);
  color: #8A6D1F;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.camp-badge {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(22, 163, 74, .16);
  border: 1px solid rgba(22, 163, 74, .4);
  color: #4ADE80;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

/* Pista bajo el título de cada área en la solicitud */
.select-hint {
  display: block;
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--gray);
  font-weight: 500;
}
.camp-nota {
  margin-top: 18px;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray);
}

/* Caja de la cuenta: ocupa el lugar que tenía el formulario de tarjeta */
.camp-cuenta {
  padding: 22px;
  border-radius: var(--radius);
  border: 1.5px dashed var(--gray-300);
  background: var(--light);
  margin-bottom: 22px;
}
.camp-cuenta.lista {
  border-style: solid;
  border-color: rgba(22, 163, 74, .45);
  background: rgba(22, 163, 74, .07);
}
.camp-cuenta h3 { font-size: 16px; margin-bottom: 6px; }
.camp-cuenta p { font-size: 14px; color: var(--gray); line-height: 1.55; margin-bottom: 14px; }
.camp-cuenta.lista p { margin-bottom: 0; }

/* Los tres pasos en el recuadro lateral */
.camp-pasos {
  margin: 20px 0 4px;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #C7D3E0;
}
.camp-pasos li::marker { color: var(--gold); font-weight: 700; }

/* ─── Chat ─────────────────────────────────────────────────── */

/* Franja de estado: ocupa el sitio donde antes iba el contador de minutos */
.chat-espera {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--blue-soft);
  border-bottom: 1px solid #CFDDFB;
  color: #1E40AF;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.chat-espera b { font-variant-numeric: tabular-nums; }
.chat-espera.oculta { display: none; }

.wait-dots { display: inline-flex; gap: 4px; flex-shrink: 0; }
.wait-dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  animation: waitPulse 1.2s ease-in-out infinite;
}
.wait-dots i:nth-child(2) { animation-delay: .2s; }
.wait-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes waitPulse {
  0%, 60%, 100% { opacity: .25; transform: translateY(0); }
  30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Burbuja de Lexbro: se distingue del abogado real para que nadie crea que ya
   está hablando con una persona. */
.chat-msg.lexia {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: 4px;
  border-left: 3px solid var(--blue);
}
.chat-msg.lexia::before {
  content: "Lexbro · IA";
  display: block;
  margin-bottom: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}

/* Interruptor de la campaña: `<body class="campana">` esconde todo lo que habla
   de dinero. Al terminar la campaña se quita esa clase del body y el sitio
   vuelve entero al modelo de pago, sin haber borrado una sola sección.
   `.solo-campana` es el espejo: contenido que solo aplica mientras dura la
   campaña (por ejemplo el FAQ reescrito para damnificados/voluntarios) y que
   se esconde solo cuando se quita la clase `campana`, sin borrarlo tampoco. */
body.campana .solo-pago { display: none !important; }
body.campana .hero-timer,
body.campana .hero-extend-row { display: none; }
body:not(.campana) .solo-campana { display: none !important; }

/* ─── Logotipo nuevo (agosto 2026) ────────────────────────────────────────
   Sustituye al isotipo dibujado a mano (círculo + rayo) y al texto LEXBRO que
   antes se componía en HTML. El SVG sale del PDF original, así que es vector y
   se ve nítido a cualquier tamaño.
   Hay dos archivos: `logo-lexbro-wordmark.svg` sin la bajada, para la barra,
   porque a 34 px "LEY AL INSTANTE" se vuelve una mancha ilegible; y
   `logo-lexbro.svg` completo, para el pie, donde sí hay espacio. */
.brand-logo {
  /* 46px en una barra de 72: el logotipo lleva la cola de la "g" dentro de la
     caja, así que a 34px las letras quedaban diminutas y el logo se perdía. */
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-logo.compacto { height: 38px; }

.footer-logo {
  height: 62px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

@media (max-width: 760px) {
  .brand-logo { height: 38px; }
  .brand-logo.compacto { height: 32px; }
  .footer-logo { height: 52px; }
}

/* ============================================================
   MI ESPACIO (mi.html) — la pantalla de quien ya tiene cuenta
   Añadido el 16 de agosto de 2026.
   ============================================================ */

.mi-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 46px 20px 80px;
  min-height: 70vh;
}

.mi-cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 0;
  color: var(--gray);
}
.mi-spinner {
  width: 30px; height: 30px;
  border: 3px solid rgba(37, 99, 235, .18);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: mi-giro .8s linear infinite;
}
@keyframes mi-giro { to { transform: rotate(360deg); } }

.mi-head { margin-bottom: 30px; }
.mi-head h1 {
  font-family: var(--font-display);
  font-size: clamp(27px, 5vw, 36px);
  line-height: 1.15;
  color: var(--navy);
}
.mi-head p { margin-top: 8px; color: var(--gray); font-size: 15.5px; }

/* ---------- Asesoría en curso ---------- */

.mi-abierta {
  background: linear-gradient(135deg, #0D1B2A, #17304C);
  color: #fff;
  border-radius: 18px;
  padding: 26px 26px 24px;
  margin-bottom: 26px;
  box-shadow: 0 14px 40px rgba(13, 27, 42, .22);
}
.mi-abierta-cab {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.mi-abierta h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin-bottom: 6px;
}
.mi-abierta p { color: rgba(255, 255, 255, .74); font-size: 15px; }
.mi-abierta-acts {
  display: flex; flex-wrap: wrap; gap: 11px;
  margin-top: 20px;
}
.mi-abierta-acts .btn-outline {
  border-color: rgba(255, 255, 255, .3);
  color: rgba(255, 255, 255, .9);
}
.mi-abierta-acts .btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.mi-codigo {
  font-size: 12.5px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .5);
  font-variant-numeric: tabular-nums;
}

/* Chip de estado: el color dice de un vistazo si hay que hacer algo */
.mi-estado {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.mi-estado.buscando    { background: rgba(212, 175, 55, .22); color: #F0D98A; }
.mi-estado.activa      { background: rgba(74, 222, 128, .2);  color: #86EFAC; }
.mi-estado.finalizada  { background: #EEF2F7; color: #64748B; }
.mi-estado.cancelada   { background: #F3F4F6; color: #9CA3AF; }
.mi-estado.sin_abogado { background: #FEF3C7; color: #92400E; }

/* ---------- Pedir ayuda ---------- */

.mi-pedir {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 34px;
  box-shadow: 0 4px 20px rgba(13, 27, 42, .06);
}
.mi-pedir h2 {
  font-family: var(--font-display);
  font-size: 23px;
  color: var(--navy);
  margin-bottom: 5px;
}
.mi-pedir p { color: var(--gray); font-size: 14.5px; max-width: 40ch; }
.btn.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Historial ---------- */

.mi-hist h2 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--navy);
  margin-bottom: 15px;
}
.mi-lista { display: flex; flex-direction: column; gap: 11px; }

.mi-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--gray-200, #E5E7EB);
  border-radius: 13px;
  padding: 16px 18px;
}
.mi-item-txt { min-width: 0; }
.mi-item-top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.mi-item-fecha { font-size: 12.5px; color: var(--gray); }
.mi-item h3 { font-size: 16px; font-weight: 700; color: var(--navy); }
.mi-item p { font-size: 13.5px; color: var(--gray); margin-top: 3px; }
.btn.btn-sm { padding: 9px 16px; font-size: 13.5px; white-space: nowrap; }

.mi-vacio {
  text-align: center;
  padding: 44px 20px;
  color: var(--gray);
  background: #fff;
  border: 1px dashed var(--gray-300, #D1D5DB);
  border-radius: 15px;
}
.mi-vacio svg { width: 40px; height: 40px; color: var(--gray-300, #D1D5DB); margin-bottom: 12px; }
.mi-vacio h3 { font-size: 16.5px; color: var(--navy); margin-bottom: 5px; }
.mi-vacio p { font-size: 14px; }

.mi-pie { margin-top: 34px; text-align: center; }
.mi-pie a { color: var(--gray); font-size: 14px; text-decoration: underline; }
.mi-pie a:hover { color: var(--blue); }

@media (max-width: 620px) {
  .mi-pedir { flex-direction: column; align-items: stretch; text-align: left; }
  .mi-pedir .btn { width: 100%; }
  .mi-item { flex-direction: column; align-items: stretch; }
  .mi-item .btn { width: 100%; text-align: center; }
  .mi-abierta-acts .btn { width: 100%; }
}

/* Botones nuevos de la barra del chat (16 ago 2026): terminar la asesoría y
   volver a la lista de chats propios. */
.chat-cerrar, .chat-mias {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .26);
  color: rgba(255, 255, 255, .88);
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}
.chat-cerrar:hover, .chat-mias:hover { border-color: var(--gold); color: var(--gold); }
.chat-cerrar[disabled] { opacity: .5; cursor: default; }
.chat-cerrar[hidden] { display: none; }

@media (max-width: 560px) {
  /* En móvil la barra ya va justa: se conserva "Terminar", que es la acción,
     y se esconde "Mis chats", que está a un toque en el menú de la cuenta. */
  .chat-mias { display: none; }
  .chat-cerrar { padding: 6px 10px; font-size: 12.5px; }
}

/* Aviso de alcance dentro de un documento legal: "esta sección no te aplica". */
.legal .legal-nota {
  font-size: 14px;
  color: var(--gray);
  background: #F8FAFC;
  border-left: 3px solid var(--gray-300, #D1D5DB);
  padding: 11px 15px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 16px;
}
