/* ============================================================
   AGENTE100.COM — Design tokens + components
   Dirección: limpia, clara, cercana, profesional
   ============================================================ */

:root {
  /* ---- Color: backgrounds ---- */
  --color-bg-primary: #FFFFFF;
  --color-bg-section: #F4F8FC;
  --color-bg-card: #FFFFFF;

  /* ---- Color: accent (overridable by Tweaks) ---- */
  --color-accent-blue: #0080C8;
  --color-accent-blue-dark: #005F99;
  --color-accent-blue-light: #E8F4FC;
  --accent-r: 0;
  --accent-g: 128;
  --accent-b: 200;
  --color-accent-gold: #F5A623;

  /* ---- Color: text ---- */
  --color-text-primary: #1A2B3C;
  --color-text-body: #4A5568;
  --color-text-muted: #9AA5B4;

  /* ---- Color: lines + status ---- */
  --color-border: #DDE3EA;
  --color-success: #27AE60;
  --color-negative: #E53E3E;

  /* ---- Gradients ---- */
  --gradient-cta: linear-gradient(135deg, var(--color-accent-blue) 0%, var(--color-accent-blue-dark) 100%);
  --gradient-hero-bg: linear-gradient(160deg, #E8F4FC 0%, #FFFFFF 62%);
  --gradient-dark-section: linear-gradient(135deg, #0F2A44 0%, var(--color-accent-blue) 130%);

  /* ---- Type ---- */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --text-hero: clamp(38px, 5vw, 64px);
  --text-h2: clamp(28px, 3.5vw, 44px);
  --text-h3: clamp(20px, 2vw, 28px);
  --text-body-lg: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-xs: 12px;

  /* ---- Shape ---- */
  --radius-card: 12px;
  --radius-btn: 6px;
  --radius-pill: 100px;

  /* ---- Decorative circles intensity (Tweaks) ---- */
  --circle-opacity: 1;

  /* ---- Layout ---- */
  --container: 1200px;
  --pad-x: clamp(20px, 5vw, 64px);
  --gap-section: clamp(64px, 8vw, 120px);

  /* ---- Shadows ---- */
  --shadow-card: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-card-hover: 0 6px 24px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.16);
  --shadow-cta: 0 4px 16px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.35);
}

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--color-text-body);
  background: var(--color-bg-primary);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text-primary);
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible {
  outline: 3px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.45);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: var(--gap-section); position: relative; }
.section--tint { background: var(--color-bg-section); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-small);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-blue);
  margin-bottom: 14px;
  display: block;
}
h2.h2 { font-size: var(--text-h2); font-weight: 800; }
.section__head p { margin-top: 18px; font-size: var(--text-body-lg); color: var(--color-text-body); }
.text-accent { color: var(--color-accent-blue); }
.text-gold { color: var(--color-accent-gold); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --_pad-y: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-body);
  line-height: 1;
  border-radius: var(--radius-btn);
  padding: var(--_pad-y) 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--gradient-cta); color: #fff; }
.btn--primary:hover { box-shadow: var(--shadow-cta); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue);
}
.btn--outline:hover { background: var(--color-accent-blue-light); }
.btn--white { background: #fff; color: var(--color-accent-blue); }
.btn--white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn--lg { padding: 16px 34px; font-size: var(--text-body-lg); }
.btn--block { width: 100%; }

/* ============================================================
   Badges
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: 0.01em;
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  background: var(--color-accent-blue-light);
  color: var(--color-accent-blue);
}
.badge--gold { background: var(--color-accent-gold); color: #fff; }
.badge--dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card--hover:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }

/* Feature icon medallion */
.icon-medallion {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent-blue-light);
  display: grid; place-items: center;
  color: var(--color-accent-blue);
  flex: none;
}
.icon-medallion svg { width: 26px; height: 26px; }
.icon-medallion--solid { background: var(--gradient-cta); color: #fff; }

/* ============================================================
   Decorative circles
   ============================================================ */
.circles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.circle { position: absolute; border-radius: 50%; }
.circle--soft  { background: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.12); opacity: var(--circle-opacity); }
.circle--solid { background: var(--color-accent-blue); opacity: calc(0.85 * var(--circle-opacity)); }
.circle--gold  { background: var(--color-accent-gold); opacity: calc(0.9 * var(--circle-opacity)); }
.circle--ring  { background: transparent; border: 2px solid rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.25); opacity: var(--circle-opacity); }

/* ============================================================
   Header / nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.is-stuck { border-color: var(--color-border); box-shadow: 0 1px 12px rgba(0,0,0,0.04); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--color-text-primary); letter-spacing: -0.03em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--gradient-cta); color: #fff;
  display: grid; place-items: center; font-size: 15px; font-weight: 800;
}
.brand__mark span { transform: translateY(-0.5px); }
.brand__logo { height: 38px; width: auto; display: block; }
.brand__logo--white { height: 34px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: var(--text-small); font-weight: 500; color: var(--color-text-body); transition: color .2s; }
.nav__links a:hover { color: var(--color-accent-blue); }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__login { font-family: var(--font-display); font-weight: 600; font-size: var(--text-small); color: var(--color-text-primary); }
.nav__burger { display: none; background: none; border: none; cursor: pointer; padding: 6px; color: var(--color-text-primary); }
@media (max-width: 900px) {
  .nav__links, .nav__login { display: none; }
  .nav__burger { display: grid; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--gradient-hero-bg); position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 104px); }
.hero__grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero__copy { max-width: 560px; }
.hero h1 { font-size: var(--text-hero); font-weight: 800; margin: 22px 0 0; }
.hero__sub { font-size: var(--text-body-lg); color: var(--color-text-body); margin-top: 22px; max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__stats { display: flex; gap: clamp(20px,4vw,44px); margin-top: 44px; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); color: var(--color-accent-blue); line-height: 1; letter-spacing: -0.03em; }
.stat__label { font-size: var(--text-small); color: var(--color-text-body); margin-top: 7px; }
.hero__divider { width: 1px; background: var(--color-border); align-self: stretch; }

/* Hero visual (circles + agent slot) */
.hero__visual { position: relative; height: clamp(380px, 42vw, 520px); }
.hero__blob {
  position: absolute; inset: 6% 0 0 8%;
  border-radius: 50%;
  background: var(--gradient-cta);
  opacity: var(--circle-opacity);
}
.hero__blob--2 { inset: auto -4% 4% auto; width: 130px; height: 130px; background: var(--color-accent-gold); opacity: calc(0.92*var(--circle-opacity)); }
.hero__photo {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 90%; height: 100%;
  border-radius: 28px; overflow: hidden;
  border: 7px solid #fff;
  box-shadow: 0 26px 54px rgba(15,42,68,0.22);
  background: #fff;
  z-index: 2;
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 22%;
  display: block;
}
.hero__chip {
  position: absolute; z-index: 3;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 14px; padding: 12px 16px;
  box-shadow: 0 10px 30px rgba(15,42,68,0.12);
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--color-text-primary);
}
.hero__chip small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 12px; color: var(--color-text-muted); }
.hero__chip--a { top: 14%; left: -6%; z-index: 5; }
.hero__chip--b { bottom: 16%; right: -8%; z-index: 5; }
.hero__chip .icon-medallion { width: 38px; height: 38px; }
.hero__chip .icon-medallion svg { width: 19px; height: 19px; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { height: 360px; margin-top: 12px; }
  .hero__chip--a { left: 2%; }
  .hero__chip--b { right: 2%; }
}

/* ============================================================
   Logos strip
   ============================================================ */
.trust { padding-block: 34px; border-bottom: 1px solid var(--color-border); }
.trust__row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: clamp(20px,5vw,56px); }
.trust__label { font-size: var(--text-small); color: var(--color-text-muted); font-weight: 500; }
.trust__logo { font-family: var(--font-display); font-weight: 800; font-size: 19px; color: #B6C2D1; letter-spacing: -0.02em; }

/* ============================================================
   PROBLEMA (dark contrast)
   ============================================================ */
.problem { background: var(--gradient-dark-section); color: #fff; position: relative; overflow: hidden; }
.problem h2, .problem h3 { color: #fff; }
.problem__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,80px); align-items: center; }
.problem .eyebrow { color: #8FD0F2; }
.problem h2 { font-size: var(--text-h2); font-weight: 800; }
.problem__lead { color: rgba(255,255,255,0.82); font-size: var(--text-body-lg); margin-top: 20px; }
.problem__manifesto {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px); line-height: 1.4;
  color: #fff; margin-top: 28px; text-wrap: balance;
}
.problem__manifesto em { color: var(--color-accent-gold); font-style: normal; }
.problem__bignums { display: grid; gap: 22px; }
.bignum {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-card);
  padding: 26px 28px;
  backdrop-filter: blur(2px);
}
.bignum__val { font-family: var(--font-display); font-weight: 800; font-size: clamp(36px,5vw,52px); color: var(--color-accent-gold); line-height: 1; letter-spacing: -0.03em; }
.bignum__txt { color: rgba(255,255,255,0.78); margin-top: 10px; font-size: var(--text-small); }
@media (max-width: 820px) { .problem__grid { grid-template-columns: 1fr; } }

/* ============================================================
   CALCULADORA
   ============================================================ */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 940px; margin-inline: auto; overflow: hidden; padding: 0; }
.calc__form { padding: clamp(28px,4vw,40px); }
.calc__result {
  background: var(--gradient-cta); color: #fff;
  padding: clamp(28px,4vw,40px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field label { display: block; font-family: var(--font-display); font-weight: 600; font-size: var(--text-small); color: var(--color-text-primary); margin-bottom: 9px; }
.field__control { position: relative; }
.field input[type="number"] {
  width: 100%; font-family: var(--font-body); font-size: var(--text-body);
  color: var(--color-text-primary);
  padding: 13px 15px; border: 1.5px solid var(--color-border); border-radius: 8px;
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--color-accent-blue); box-shadow: 0 0 0 3px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.12); }
.field__suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); font-size: var(--text-small); pointer-events: none; }
.field input[type="range"] { width: 100%; accent-color: var(--color-accent-blue); margin-top: 4px; }
.field__rangeval { font-family: var(--font-display); font-weight: 700; color: var(--color-accent-blue); }
.calc__result-label { font-size: var(--text-small); color: rgba(255,255,255,0.85); font-weight: 500; }
.calc__result-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(40px,6vw,60px); line-height: 1; margin: 8px 0 4px; letter-spacing: -0.03em; }
.calc__result-sub { font-size: var(--text-small); color: rgba(255,255,255,0.8); }
.calc__result .btn { margin-top: 26px; }
.calc__result .circle { z-index: 0; }
.calc__result-inner { position: relative; z-index: 1; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } }

/* ============================================================
   3 PASOS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 32px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-border) 0 8px, transparent 8px 16px);
  z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gradient-cta); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 24px;
  display: grid; place-items: center; margin: 0 auto 20px;
  box-shadow: 0 8px 20px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.28);
}
.step h3 { font-size: var(--text-h3); font-weight: 700; }
.step p { margin-top: 10px; color: var(--color-text-body); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } .steps::before { display: none; } }

/* ============================================================
   VETERANOS / NUEVOS
   ============================================================ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo .card { padding: clamp(28px,3.5vw,40px); }
.duo h3 { font-size: var(--text-h3); font-weight: 700; margin-top: 22px; }
.duo p { margin-top: 12px; }
.duo__tag { margin-top: 18px; font-family: var(--font-display); font-weight: 700; color: var(--color-accent-blue); font-size: var(--text-small); }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }

/* ============================================================
   MEMBRESÍA grid
   ============================================================ */
.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature { display: flex; flex-direction: column; gap: 16px; }
.feature h3 { font-size: var(--text-h3); font-weight: 700; }
.feature p { color: var(--color-text-body); font-size: var(--text-body); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ============================================================
   TABLA COMPARATIVA
   ============================================================ */
.compare { border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; padding: 17px 22px; font-size: var(--text-body); }
.compare thead th { position: sticky; top: 72px; z-index: 5; }
.compare thead .col-feature { background: #fff; }
.compare thead .col-a100 { background: var(--color-accent-blue); color: #fff; font-family: var(--font-display); font-weight: 700; text-align: center; }
.compare thead .col-franq { background: var(--color-bg-section); color: var(--color-text-body); font-family: var(--font-display); font-weight: 600; text-align: center; }
.compare tbody tr:nth-child(even) { background: var(--color-bg-section); }
.compare td.col-feature { font-weight: 500; color: var(--color-text-primary); }
.compare td.cell-center { text-align: center; }
.compare .cell-yes { color: var(--color-success); background: rgba(39,174,96,0.08); font-weight: 700; }
.compare .cell-no  { color: var(--color-negative); background: rgba(229,62,62,0.06); font-weight: 700; }
.compare td svg { width: 20px; height: 20px; vertical-align: middle; }
.compare .col-a100-body { box-shadow: inset 3px 0 0 var(--color-accent-blue), inset -3px 0 0 var(--color-accent-blue); }
@media (max-width: 700px) { .compare { font-size: var(--text-small); overflow-x: auto; } .compare th, .compare td { padding: 13px 14px; } }

/* ============================================================
   PLANES
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: center; }
.plan { display: flex; flex-direction: column; height: 100%; }
.plan--pro { box-shadow: 0 12px 40px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.18); border-color: rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.4); transform: scale(1.04); position: relative; z-index: 2; }
.plan__head { display: flex; align-items: center; justify-content: space-between; }
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-h3); color: var(--color-text-primary); }
.plan__desc { font-size: var(--text-small); color: var(--color-text-body); margin-top: 6px; min-height: 40px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan__amount { font-family: var(--font-display); font-weight: 800; font-size: 46px; color: var(--color-accent-blue); line-height: 1; letter-spacing: -0.03em; }
.plan__per { font-size: var(--text-small); color: var(--color-text-muted); }
.plan__list { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.plan__list li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--text-small); color: var(--color-text-body); }
.plan__list svg { width: 18px; height: 18px; color: var(--color-success); flex: none; margin-top: 1px; }
.plan .btn { margin-top: auto; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } .plan--pro { transform: none; } }

/* ============================================================
   AGENTES DEL CLUB
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group + .filter-group { margin-left: 18px; }
.pill {
  font-family: var(--font-display); font-weight: 600; font-size: var(--text-small);
  padding: 8px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border); background: #fff; color: var(--color-text-body);
  cursor: pointer; transition: all .2s;
}
.pill:hover { border-color: var(--color-accent-blue); color: var(--color-accent-blue); }
.pill.is-active { background: var(--color-accent-blue); border-color: var(--color-accent-blue); color: #fff; }
.filter-label { font-size: var(--text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text-muted); margin-right: 4px; }

.agents-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.agent { text-align: left; }
.agent__top { display: flex; align-items: center; gap: 14px; }
.agent__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--color-text-primary); }
.agent__zone { font-size: var(--text-small); color: var(--color-text-muted); margin-top: 2px; }
.agent__spec { margin-top: 16px; }
.agent__count { text-align: center; font-size: var(--text-small); color: var(--color-text-muted); margin-top: 26px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
.avatar--lg { width: 72px; height: 72px; font-size: 24px; }
@media (max-width: 1000px) { .agents-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px) { .agents-grid { grid-template-columns: repeat(2,1fr); } .filter-group + .filter-group { margin-left: 0; } }
@media (max-width: 460px) { .agents-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.testi__quote { font-size: var(--text-body-lg); color: var(--color-text-primary); font-style: italic; line-height: 1.55; }
.testi__person { display: flex; align-items: center; gap: 13px; margin-top: 22px; }
.testi__name { font-family: var(--font-display); font-weight: 700; font-size: var(--text-small); color: var(--color-text-primary); }
.testi__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.testi__mark { font-family: var(--font-display); font-weight: 800; font-size: 44px; color: var(--color-accent-blue-light); line-height: 0.6; }
@media (max-width: 880px) { .testi-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { background: var(--gradient-dark-section); color: #fff; position: relative; overflow: hidden; text-align: center; }
.cta-final h2 { color: #fff; font-size: var(--text-h2); font-weight: 800; max-width: 760px; margin-inline: auto; }
.cta-final p { color: #8FD0F2; font-size: var(--text-body-lg); margin: 20px auto 0; max-width: 560px; }
.cta-final .btn { margin-top: 36px; }
.cta-final__note { color: rgba(255,255,255,0.6); font-size: var(--text-small); margin-top: 18px; }
.cta-final__inner { position: relative; z-index: 2; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #0F2A44; color: rgba(255,255,255,0.7); padding-block: 56px 36px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer__tag { font-size: var(--text-small); color: rgba(255,255,255,0.55); max-width: 280px; }
.footer__col h4 { color: #fff; font-size: var(--text-small); font-weight: 700; margin-bottom: 16px; font-family: var(--font-display); }
.footer__col a { display: block; font-size: var(--text-small); color: rgba(255,255,255,0.7); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: var(--text-xs); color: rgba(255,255,255,0.5); }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   AI ASSISTANT bubble
   ============================================================ */
.ai-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-accent-blue); color: #fff;
  border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.45);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ai-fab:hover { transform: scale(1.06); }
.ai-fab svg { width: 26px; height: 26px; }
.ai-fab__close-icon { display: none; }
.ai-open .ai-fab__chat-icon { display: none; }
.ai-open .ai-fab__close-icon { display: block; }

.ai-toast {
  position: fixed; right: 24px; bottom: 92px; z-index: 79;
  max-width: 270px; background: #fff; border: 1px solid var(--color-border);
  border-radius: 14px; padding: 14px 16px 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  font-size: var(--text-small); color: var(--color-text-primary);
  transform: translateY(10px); opacity: 0; pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}
.ai-toast.is-shown { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ai-toast::after { content:""; position:absolute; right: 22px; bottom: -7px; width: 14px; height: 14px; background: #fff; border-right: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); transform: rotate(45deg); }
.ai-toast__close { position: absolute; top: 6px; right: 8px; background: none; border: none; color: var(--color-text-muted); cursor: pointer; font-size: 16px; line-height: 1; }

.ai-panel {
  position: fixed; right: 24px; bottom: 92px; z-index: 81;
  width: 340px; height: 460px; max-height: calc(100vh - 120px);
  background: #fff; border-radius: 16px;
  border-top: 4px solid var(--color-accent-blue);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(16px) scale(0.98); opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: opacity .25s ease, transform .25s ease;
}
.ai-open .ai-panel { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.ai-panel__head { display: flex; align-items: center; gap: 11px; padding: 14px 16px; border-bottom: 1px solid var(--color-border); }
.ai-panel__head .avatar { width: 38px; height: 38px; font-size: 15px; background: var(--gradient-cta); }
.ai-panel__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-small); color: var(--color-text-primary); }
.ai-panel__status { font-size: var(--text-xs); color: var(--color-success); display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.ai-panel__status::before { content:""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); }
.ai-panel__x { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--color-text-muted); padding: 4px; border-radius: 6px; }
.ai-panel__x:hover { background: var(--color-bg-section); }
.ai-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.msg { max-width: 84%; padding: 10px 14px; font-size: var(--text-small); line-height: 1.45; border-radius: 14px; }
.msg--bot { background: var(--color-bg-section); color: var(--color-text-primary); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg--user { background: var(--color-accent-blue); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.ai-suggestions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 12px; }
.ai-suggestions button {
  font-family: var(--font-body); font-size: var(--text-xs); color: var(--color-accent-blue);
  background: var(--color-accent-blue-light); border: none; border-radius: var(--radius-pill);
  padding: 7px 12px; cursor: pointer; transition: background .2s;
}
.ai-suggestions button:hover { background: #d6ecfa; }
.ai-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--color-border); }
.ai-input input { flex: 1; border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); padding: 10px 15px; font-family: var(--font-body); font-size: var(--text-small); }
.ai-input input:focus { outline: none; border-color: var(--color-accent-blue); }
.ai-input button { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--color-accent-blue); color: #fff; border: none; cursor: pointer; display: grid; place-items: center; }
.ai-input button:hover { background: var(--color-accent-blue-dark); }
.ai-input button svg { width: 18px; height: 18px; }
.typing { display: flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--color-text-muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }

@media (max-width: 420px) { .ai-panel { width: calc(100vw - 32px); right: 16px; } .ai-fab { right: 16px; } .ai-toast { right: 16px; } }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Tweaks panel root (keep hidden until activated)
   ============================================================ */
#tweaks-root:empty { display: none; }

/* ============================================================
   MODAL DE REGISTRO
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; padding: 24px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal.is-open { display: flex; align-items: flex-start; justify-content: center; }
.modal__overlay { position: fixed; inset: 0; background: rgba(15,42,68,0.55); backdrop-filter: blur(4px); animation: modalFade .25s ease; }
@keyframes modalFade { from { opacity: 0; } to { opacity: 1; } }
.modal__card {
  position: relative; z-index: 1;
  width: min(500px, 100%);
  margin: auto;
  background: #fff; border-radius: 20px;
  padding: clamp(26px, 4vw, 38px);
  box-shadow: 0 30px 70px rgba(15,42,68,0.32);
  animation: modalRise .3s cubic-bezier(.2,.8,.2,1);
}
@keyframes modalRise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
.modal__x {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--color-bg-section); border: none; cursor: pointer;
  color: var(--color-text-body); display: grid; place-items: center;
  transition: background .2s, color .2s;
}
.modal__x:hover { background: var(--color-accent-blue-light); color: var(--color-accent-blue); }
.modal__view .badge { margin-bottom: 16px; }
.modal__card h3 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3vw, 28px); letter-spacing: -0.02em; }
.modal__sub { margin-top: 10px; color: var(--color-text-body); font-size: var(--text-body); }
.modal__plan {
  display: flex; align-items: center; gap: 8px;
  margin-top: 16px; padding: 11px 14px; border-radius: 10px;
  background: var(--color-accent-blue-light); color: var(--color-accent-blue);
  font-size: var(--text-small); font-weight: 500;
}
.modal__plan svg { flex: none; }
.modal__plan strong { font-family: var(--font-display); font-weight: 700; }

#signupForm { margin-top: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal .field__control { position: relative; }
.modal .field input, .modal .field select {
  width: 100%; font-family: var(--font-body); font-size: var(--text-body);
  color: var(--color-text-primary);
  padding: 12px 40px 12px 14px; border: 1.5px solid var(--color-border); border-radius: 9px;
  background: #fff; transition: border-color .2s, box-shadow .2s; appearance: none;
}
.modal .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%239AA5B4' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.modal .field input::placeholder { color: var(--color-text-muted); }
.modal .field input:focus, .modal .field select:focus {
  outline: none; border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 3px rgba(var(--accent-r),var(--accent-g),var(--accent-b),0.12);
}
.field__ok {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%) scale(.6);
  width: 18px; height: 18px; color: var(--color-success); opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none;
}
.field.is-valid input { border-color: var(--color-success); }
.field.is-valid .field__ok { opacity: 1; transform: translateY(-50%) scale(1); }
.field.is-error input, .field.is-error select { border-color: var(--color-negative); }
.field__msg { display: none; font-size: var(--text-xs); color: var(--color-negative); margin-top: 6px; }
.field.is-error .field__msg { display: block; }
.field { margin-bottom: 16px; }

/* segmented perfil */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg__opt {
  display: flex; align-items: center; gap: 11px;
  border: 1.5px solid var(--color-border); border-radius: 11px;
  padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s;
}
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__ic { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--color-bg-section); display: grid; place-items: center; color: var(--color-text-muted); transition: all .2s; }
.seg__ic svg { width: 20px; height: 20px; }
.seg__opt strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: var(--text-small); color: var(--color-text-primary); }
.seg__opt small { font-size: var(--text-xs); color: var(--color-text-muted); }
.seg__opt:has(input:checked) { border-color: var(--color-accent-blue); background: var(--color-accent-blue-light); }
.seg__opt:has(input:checked) .seg__ic { background: var(--gradient-cta); color: #fff; }
.field.is-error .seg__opt { border-color: var(--color-negative); }

/* checkbox términos */
.check { display: flex; gap: 11px; align-items: flex-start; font-size: var(--text-small); color: var(--color-text-body); cursor: pointer; margin-top: 4px; }
.check input { width: 19px; height: 19px; flex: none; margin-top: 1px; accent-color: var(--color-accent-blue); cursor: pointer; }
.check a { color: var(--color-accent-blue); text-decoration: underline; text-underline-offset: 2px; }
.field__msg--check { margin-left: 30px; margin-top: 4px; }
.field__msg--check.is-error { display: block; }

.modal__legal { text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 14px; }
#signupForm .btn { margin-top: 20px; }
.modal__alt { text-align: center; font-size: var(--text-small); color: var(--color-text-body); margin-top: 18px; }
.modal__alt a { color: var(--color-accent-blue); font-weight: 600; }

/* éxito */
.modal__success { text-align: center; }
.success__check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(39,174,96,0.12); color: var(--color-success);
  display: grid; place-items: center;
  animation: successPop .4s cubic-bezier(.2,1.4,.4,1);
}
.success__check svg { width: 36px; height: 36px; }
@keyframes successPop { from { transform: scale(0); } to { transform: scale(1); } }
.success__steps { display: grid; gap: 10px; margin: 26px 0 6px; text-align: left; }
.success__step { display: flex; align-items: center; gap: 12px; font-size: var(--text-small); color: var(--color-text-body); background: var(--color-bg-section); border-radius: 10px; padding: 12px 14px; }
.success__step span { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--gradient-cta); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.modal__success .btn { margin-top: 22px; }

@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } .seg { grid-template-columns: 1fr; } }

/* ============================================================
   LOGIN MODAL
   ============================================================ */
.modal__card--sm {
  max-width: 400px;
}
.login__head {
  text-align: center;
  margin-bottom: 24px;
}
.login__error {
  background: #FEE2E2;
  color: var(--color-negative);
  border: 1px solid #FECACA;
  border-radius: var(--radius-btn);
  padding: 10px 14px;
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}
