/* ============================================================
   B3 Online — web corporativa (operador de telecomunicaciones)
   Marca: azul B3 #1C6FB8 · azul profundo #0E3D6B · acento cian #2BB8E6
   Tipografías de sistema (sin Google Fonts → RGPD-limpio)
   Estructura basada en el sitio de Safety Capital, reskin a la marca B3.
   ============================================================ */

:root {
  --navy: #0E3D6B;
  --navy-700: #1C6FB8;
  --navy-900: #082848;
  --steel: #6E8BB0;
  --gold: #1AAEDC;
  --gold-bright: #2BB8E6;
  --ivory: #EAF3FB;
  --ink: #16202c;
  --muted: #56657a;
  --line: #e3e9f1;
  --bg: #ffffff;
  --bg-soft: #f4f8fc;
  --bg-cream: #f5f9fd;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 40px rgba(14, 61, 107, 0.08);
  --shadow-lg: 0 24px 60px rgba(14, 61, 107, 0.16);
  --maxw: 1160px;
  --serif: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-bright); }

h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.01em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 14px;
}

.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--cream { background: var(--bg-cream); }
.section__head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section__head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: .92rem;
  letter-spacing: .04em; cursor: pointer;
  border: 1.5px solid transparent; transition: all .2s ease; white-space: nowrap;
}
.btn--gold { background: var(--gold-bright); color: var(--navy-900); border-color: var(--gold-bright); }
.btn--gold:hover { background: #45c4ef; border-color: #45c4ef; color: var(--navy-900); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: var(--gold-bright); color: var(--gold-bright); }
.btn--navy { background: var(--navy-700); color: var(--white); border-color: var(--navy-700); }
.btn--navy:hover { background: var(--navy); border-color: var(--navy); color: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0; transition: all .3s ease;
  background: transparent;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 20px rgba(14,61,107,.07);
  padding: 10px 0;
}
.site-header--solid {
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(12px);
  box-shadow: 0 2px 20px rgba(14,61,107,.07);
}
.site-header--solid .nav__toggle span { background: var(--navy); }

.nav { display: flex; align-items: center; justify-content: space-between; }
.nav__links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--display); font-size: .9rem; font-weight: 500;
  letter-spacing: .01em; color: var(--navy);
  position: relative; padding: 4px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--gold-bright); transition: width .25s ease;
}
.nav__links a:hover::after { width: 100%; }
/* Botón "Área de clientes": pill con borde en currentColor (se adapta a hero oscuro / cabecera clara) */
.nav__client { border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 15px !important; display: inline-flex; align-items: center; gap: 7px; }
.nav__client::after { display: none !important; }
.nav__client:hover { color: var(--gold-bright) !important; border-color: var(--gold-bright); }
.nav__client svg { flex: 0 0 auto; }
.site-header:not(.scrolled):not(.site-header--solid) .nav__links a { color: rgba(255,255,255,.92); }
.site-header:not(.scrolled):not(.site-header--solid) .nav__links a:hover { color: var(--white); }

.nav__toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 5px 0; transition: .3s; }
.site-header:not(.scrolled):not(.site-header--solid) .nav__toggle span { background: var(--white); }

/* ---------- Marca (símbolo + nombre) ---------- */
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 10px; transition: width .3s ease, height .3s ease; }
.site-header.scrolled .brand__mark { width: 38px; height: 38px; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--serif); font-size: 1.34rem; font-weight: 700; letter-spacing: -0.01em; color: currentColor; }
.brand__claim { font-family: var(--display); font-size: .58rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); margin-top: 4px; }
.site-header:not(.scrolled):not(.site-header--solid) .brand { color: var(--ivory); }
.site-footer .brand { color: var(--ivory); margin-bottom: 16px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(43,184,230,.20), transparent 60%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy) 55%, var(--navy-700) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 2; max-width: 780px; padding: 120px 0 80px; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4rem); margin-bottom: .35em; }
.hero h1 .accent { color: var(--gold-bright); }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.85); max-width: 620px; margin: 0 0 36px; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: rgba(255,255,255,.5); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase;
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob { 0%,100%{ transform: translate(-50%,0);} 50%{ transform: translate(-50%,8px);} }

/* ---------- Stats band ---------- */
.stats { background: var(--navy); color: var(--white); }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.stat { text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); color: var(--gold-bright); font-weight: 700; }
.stat__label { font-family: var(--display); font-size: .82rem; color: rgba(255,255,255,.74); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- Servicios (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold-bright), var(--navy-700)); transform: scaleX(0);
  transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(28,111,184,.10), rgba(43,184,230,.16));
  margin-bottom: 20px; color: var(--navy-700);
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.3rem; margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card__more { display: inline-block; margin-top: 16px; font-family: var(--display); font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }

/* ---------- Servicios (rejilla auto-fit que acoge 7-9 tarjetas) ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; }

/* ---------- Servicios compactos (home): tile de una línea ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.svc {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 15px 18px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { border-color: var(--gold-bright); transform: translateY(-3px); box-shadow: var(--shadow); }
.svc__ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(28,111,184,.10), rgba(43,184,230,.16)); color: var(--navy-700); }
.svc__ic svg { width: 22px; height: 22px; }
.svc__name { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.02rem; line-height: 1.2; }
.svc__arrow { margin-left: auto; color: var(--gold-bright); font-weight: 700; font-size: 1.1rem; }
.svc--cta { background: linear-gradient(135deg, rgba(28,111,184,.08), rgba(43,184,230,.14)); border-style: dashed; }

/* ---------- Hero compacto (landings de vertical) ---------- */
.hero--compact { min-height: 60vh; }
.hero--compact .hero__inner { padding: 130px 0 64px; }
.hero__logo { height: 42px; width: auto; margin-bottom: 22px; }

/* ---------- Verticales B3 Link (logo + descripción) ---------- */
.verticals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.vertical {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vertical:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vertical__logo { height: 30px; width: auto; align-self: flex-start; }
.vertical p { color: var(--muted); font-size: .92rem; margin: 0; }
@media (max-width: 900px) { .verticals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .verticals { grid-template-columns: 1fr; } }

/* ---------- Banda CTA (empresas) ---------- */
.ctaband {
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--white); border-radius: var(--radius); padding: 48px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.ctaband h3 { color: var(--white); font-size: clamp(1.4rem, 3vw, 2rem); margin: 0 0 .3em; }
.ctaband p { color: rgba(255,255,255,.82); margin: 0; max-width: 560px; }
.ctaband .ctaband__txt { flex: 1 1 340px; }

/* ---------- Marca con logo lockup (header/footer) ---------- */
.brand__logo { height: 34px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand__logo { height: 30px; }
/* En el hero oscuro se ve el logo negativo; al hacer scroll / sólido, el positivo */
.brand__logo--neg { display: none; }
.site-header:not(.scrolled):not(.site-header--solid) .brand__logo--pos { display: none; }
.site-header:not(.scrolled):not(.site-header--solid) .brand__logo--neg { display: block; }

/* ---------- Sobre nosotros ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about__text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.about__text p { color: var(--muted); margin-bottom: 1.1em; }
.about__features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.about__features li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.about__features svg { flex: 0 0 auto; margin-top: 3px; color: var(--gold-bright); }
.about__visual {
  position: relative; border-radius: var(--radius); aspect-ratio: 4/3; overflow: hidden;
  background:
    radial-gradient(600px 300px at 20% 10%, rgba(43,184,230,.24), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  box-shadow: var(--shadow-lg); display: grid; place-items: center;
}
.about__visual svg { width: 55%; opacity: .95; }

/* ---------- Casos / cobertura (banda azul) ---------- */
.cases-band {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(43,184,230,.18), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  color: var(--ivory);
}
.cases-band .eyebrow { color: var(--gold-bright); }
.cases-band .section__head h2 { color: var(--white); }
.cases-band .section__head p { color: rgba(255,255,255,.74); }
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 30px 28px; transition: transform .25s ease, border-color .25s ease;
}
.case:hover { transform: translateY(-6px); border-color: rgba(43,184,230,.6); }
.case__tag { font-family: var(--display); font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 12px; }
.case h3 { color: var(--white); font-size: 1.22rem; margin-bottom: .4em; }
.case p { color: rgba(255,255,255,.76); font-size: .96rem; margin: 0 0 22px; }
.case__metric {
  margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--display); font-size: .82rem; letter-spacing: .02em; color: var(--gold-bright);
  display: flex; align-items: center; gap: 8px;
}

/* ---------- Tecnologías / coberturas (pills) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; max-width: 860px; margin: 0 auto; }
.pill {
  font-family: var(--display); font-size: .84rem; letter-spacing: .02em; color: var(--navy);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
}
.pill:hover { border-color: var(--gold-bright); color: var(--gold-bright); transform: translateY(-2px); }

/* ---------- Valores ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.value { text-align: center; padding: 10px; }
.value__num { font-family: var(--serif); color: var(--gold-bright); font-size: 1.5rem; font-weight: 700; }
.value h3 { font-size: 1.2rem; margin: 10px 0 .3em; }
.value p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact__info h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.contact__info p { color: var(--muted); }
.contact__list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 20px; }
.contact__list li { display: flex; gap: 16px; align-items: flex-start; }
.contact__list .ci {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(28,111,184,.08); color: var(--navy-700);
}
.contact__list b { display: block; color: var(--navy); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
.contact__list a, .contact__list span { color: var(--muted); }

.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .86rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: .96rem; color: var(--ink); background: var(--bg-soft); transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-bright); background: var(--white); }
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.form__status { margin-top: 14px; font-size: .92rem; display: none; }
.form__status.ok { display: block; color: #1c7c43; }
.form__status.err { display: block; color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.7); padding: 64px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-family: var(--display); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.7); }
.site-footer a:hover { color: var(--gold-bright); }
.footer__brand p { max-width: 320px; margin: 0; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }

/* ---------- Páginas legales ---------- */
.legal { padding: 140px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.legal .updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 .5em; }
.legal h3 { font-size: 1.1rem; margin: 26px 0 .4em; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 22px; }
.legal a { color: var(--navy-700); text-decoration: underline; }

/* ---------- Chatbot ---------- */
.b3chat-launch {
  position: fixed; bottom: 22px; right: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy-700); color: #fff; box-shadow: 0 8px 28px rgba(14,61,107,.35);
  display: grid; place-items: center; transition: transform .2s ease, background .2s ease;
}
.b3chat-launch:hover { transform: translateY(-3px) scale(1.05); background: var(--navy); }
.b3chat-launch svg { width: 26px; height: 26px; }
.b3chat-panel {
  position: fixed; bottom: 92px; right: 22px; z-index: 200;
  width: 360px; max-width: calc(100vw - 32px); height: 520px; max-height: calc(100vh - 130px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.b3chat-panel.open { display: flex; }
.b3chat-head { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; }
.b3chat-head b { font-family: var(--serif); font-weight: 700; font-size: 1rem; }
.b3chat-head span { font-size: .72rem; color: rgba(255,255,255,.72); display: block; }
.b3chat-close { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 0 4px; }
.b3chat-msgs { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.b3chat-msg { max-width: 84%; padding: 9px 13px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.b3chat-msg--bot { background: #fff; border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.b3chat-msg--user { background: var(--navy-700); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.b3chat-typing { align-self: flex-start; color: var(--muted); font-size: .85rem; padding: 2px 6px; }
.b3chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.b3chat-form input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 14px; font: inherit; font-size: .92rem; outline: none; color: var(--ink); }
.b3chat-form input:focus { border-color: var(--gold-bright); }
.b3chat-form button { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: none; background: var(--navy-700); color: #fff; cursor: pointer; display: grid; place-items: center; }
.b3chat-form button:disabled { opacity: .5; cursor: default; }
.b3chat-foot { font-size: .68rem; color: var(--muted); text-align: center; padding: 0 0 9px; background: #fff; }
@media (max-width: 480px) {
  .b3chat-panel { right: 12px; bottom: 84px; width: calc(100vw - 24px); height: calc(100vh - 104px); }
  .b3chat-launch { right: 16px; bottom: 16px; }
}

/* ---------- Chat: form "que me llamen" ---------- */
.b3chat-head__actions { display: flex; align-items: center; gap: 2px; }
.b3chat-call { background: none; border: none; color: #fff; cursor: pointer; padding: 4px; display: grid; place-items: center; }
.b3chat-lead { display: none; flex-direction: column; gap: 8px; padding: 14px; border-top: 1px solid var(--line); background: #fff; }
.b3chat-lead.open { display: flex; }
.b3chat-lead h4 { margin: 0; font-size: .92rem; color: var(--navy); }
.b3chat-lead input { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .9rem; outline: none; color: var(--ink); }
.b3chat-lead input:focus { border-color: var(--gold-bright); }
.b3chat-lead .row2 { display: flex; gap: 8px; }
.b3chat-lead .row2 button { flex: 1; border: none; border-radius: 999px; padding: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.b3l-send { background: var(--navy-700); color: #fff; }
.b3l-cancel { background: var(--bg-soft); color: var(--muted); }

/* ---------- Asesor de plan ---------- */
.advisor { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 760px; margin: 0 auto; }
.advisor__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.advisor label { font-size: .88rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.advisor select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 13px; font: inherit; font-size: .94rem; background: var(--bg-soft); color: var(--ink); }
.advisor select:focus { outline: none; border-color: var(--gold-bright); }
.advisor__actions { margin-top: 20px; text-align: center; }
.advisor__result { margin-top: 20px; padding: 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.6; color: var(--ink); display: none; }
.advisor__result.show { display: block; }
@media (max-width: 560px) { .advisor__grid { grid-template-columns: 1fr; } }

/* ---------- Analizador de factura ---------- */
.billan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto; text-align: center; }
.billan__drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 2px dashed var(--line); border-radius: 12px; padding: 32px 20px; cursor: pointer; transition: border-color .2s, background .2s; color: var(--muted); }
.billan__drop:hover { border-color: var(--gold-bright); background: var(--bg-soft); }
.billan__drop svg { width: 38px; height: 38px; color: var(--navy-700); margin-bottom: 8px; }
.billan__drop input { display: none; }
.billan__file { font-size: .9rem; color: var(--navy); margin-top: 12px; font-weight: 600; display: none; }
.billan__result { margin-top: 20px; padding: 20px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--line); white-space: pre-wrap; line-height: 1.6; text-align: left; color: var(--ink); display: none; }
.billan__result.show { display: block; }
.billan__note { font-size: .78rem; color: var(--muted); margin-top: 12px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .cards, .values, .cases { grid-template-columns: 1fr 1fr; }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .stats .container { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: fixed; inset: 0 0 0 30%; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 28px; padding: 40px; background: var(--navy);
    transform: translateX(100%); transition: transform .3s ease;
  }
  .nav__links.open { transform: none; }
  .nav__links a { color: #fff !important; font-size: 1.2rem; }
  .nav__toggle { display: block; z-index: 110; }
  .nav__cta { display: none; }
  .cards, .cases { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .values { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
