/* =====================================================================
   TSSI — Tendencias en Seguros y Servicios Integrales
   Dirección: "Arquitectura de la confianza" — lujo art-déco / editorial
   Paleta del logo: navy profundo · oro/bronce · crema
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  /* color */
  --navy-900: #161E2D;
  --navy-800: #1C2536;
  --navy-700: #233048;
  --navy-600: #2B3750;
  --navy-500: #34425E;
  --navy-tint: #3C4C6B;

  --gold-700: #A7825A;
  --gold-600: #C2A079;   /* primario del logo */
  --gold-500: #D2B488;
  --gold-300: #E4CEA8;

  --cream:    #F3EAD9;
  --cream-2:  #EADFC9;
  --cream-dim: rgba(243, 234, 217, 0.62);
  --cream-faint: rgba(243, 234, 217, 0.16);

  --surface: #FBF7EF;     /* secciones claras */
  --surface-2: #F3ECDF;
  --ink: #1E2536;         /* texto sobre claro */
  --ink-soft: #4A5468;

  /* type */
  --display: "Fraunces", Georgia, serif;
  --sans: "Outfit", system-ui, sans-serif;

  --t-hero: clamp(2.5rem, 1.9rem + 2.6vw, 4.4rem);
  --t-h2: clamp(1.7rem, 1.35rem + 1.4vw, 2.6rem);
  --t-h3: clamp(1.15rem, 1.05rem + 0.5vw, 1.45rem);
  --t-lead: clamp(1rem, 0.97rem + 0.2vw, 1.12rem);

  /* space / motion */
  --section: clamp(3.25rem, 2.4rem + 3.4vw, 6rem);
  --r-lg: 22px;
  --r-md: 14px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lux: 0 30px 70px -30px rgba(13, 18, 30, 0.55);
  --shadow-gold: 0 18px 50px -22px rgba(194, 160, 121, 0.55);

  --maxw: 1240px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; background: var(--navy-900); }
body {
  font-family: var(--sans);
  background: var(--navy-800);
  color: var(--cream);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: clip;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--gold-600); color: var(--navy-900); }

/* scrollbar */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--navy-900); }
::-webkit-scrollbar-thumb { background: var(--navy-tint); border-radius: 10px; border: 3px solid var(--navy-900); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-700); }

.wrap { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.eyebrow {
  font-size: 0.78rem; letter-spacing: 0.32em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-500); display: inline-flex; align-items: center; gap: 0.8rem;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-600); }
.serif { font-family: var(--display); font-weight: 400; }

/* grain overlay */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================================
   NAV  + MEGAMENU
   ===================================================================== */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  transition: background var(--ease-soft) .4s, backdrop-filter .4s, box-shadow .4s, padding .4s;
  padding: 1.3rem 0;
}
.nav.scrolled {
  background: rgba(22, 30, 45, 0.82); backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--cream-faint); padding: 0.7rem 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: 0.75rem; }
.logo img { width: 42px; height: 42px; border-radius: 9px; }
.logo-txt { line-height: 1.05; }
.logo-txt b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: 0.02em; display: block; }
.logo-txt span { font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-500); }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; }
.nav-item { position: relative; }
.nav-link {
  padding: 0.55rem 0.85rem; border-radius: 10px; font-weight: 500; font-size: 0.92rem; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.35rem; color: var(--cream-dim);
  transition: color .25s, background .25s;
}
.nav-link.active { color: var(--gold-300); }
.nav-link:hover, .nav-item:hover .nav-link { color: var(--cream); background: rgba(243,234,217,0.06); }
.nav-link svg { width: 14px; transition: transform .3s var(--ease); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: max-content; max-width: 90vw; background: var(--navy-700);
  border: 1px solid var(--cream-faint); border-radius: var(--r-lg); padding: 1.4rem;
  display: grid; gap: 0.4rem; box-shadow: var(--shadow-lux);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.mega::before { /* puente invisible para el hover */
  content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px;
}
.nav-item:hover .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.3rem; min-width: 560px; }
.mega-link { padding: 0.7rem 0.9rem; border-radius: 11px; transition: background .2s; display: flex; flex-direction: column; gap: 2px; }
.mega-link:hover { background: rgba(243,234,217,0.07); }
.mega-link b { font-weight: 600; font-size: 0.92rem; }
.mega-link small { color: var(--cream-dim); font-size: 0.76rem; }
.mega-foot { margin-top: 0.6rem; padding-top: 0.9rem; border-top: 1px solid var(--cream-faint); display: flex; justify-content: space-between; align-items: center; }
.mega-foot a { color: var(--gold-500); font-weight: 600; font-size: 0.85rem; }

.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.burger { display: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.5rem; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s;
  position: relative; white-space: nowrap;
}
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 22px 55px -18px rgba(194,160,121,0.7); }
.btn-ghost { border: 1px solid var(--cream-faint); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold-600); color: var(--gold-300); transform: translateY(-2px); }
.btn-dark { background: var(--navy-900); color: var(--cream); }
.btn-dark:hover { transform: translateY(-2px); }
.btn svg { width: 18px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding-top: 7rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1100px 700px at 78% 18%, rgba(194,160,121,0.20), transparent 60%),
    radial-gradient(900px 600px at 12% 90%, rgba(52,66,94,0.65), transparent 55%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
/* columnas decorativas (motivo del logo) */
.columns { position: absolute; inset: 0; display: flex; justify-content: center; gap: clamp(10px, 3vw, 38px); opacity: 0.5; z-index: 0; }
.columns span { width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--cream-faint) 22%, var(--cream-faint) 78%, transparent); }
.columns span:nth-child(odd) { background: linear-gradient(180deg, transparent, rgba(194,160,121,0.18) 30%, transparent 80%); }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.hero-title { font-family: var(--display); font-size: var(--t-hero); line-height: 0.96; font-weight: 400; letter-spacing: -0.02em; }
.hero-title em { font-style: italic; color: var(--gold-500); }
.hero-title .reveal-line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.hero-title .reveal-line > span { display: block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.hero-title .reveal-line:nth-child(2) > span { animation-delay: .12s; }
.hero-title .reveal-line:nth-child(3) > span { animation-delay: .24s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-lead { margin-top: 1.6rem; font-size: var(--t-lead); color: var(--cream-dim); max-width: 30ch; opacity: 0; animation: fadeUp .9s var(--ease) .5s forwards; }
.hero-actions { margin-top: 2.2rem; display: flex; gap: 1rem; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s var(--ease) .65s forwards; }
.hero-trust { margin-top: 2.6rem; display: flex; gap: 2rem; opacity: 0; animation: fadeUp .9s var(--ease) .8s forwards; }
.hero-trust div b { font-family: var(--display); font-size: 1.8rem; color: var(--gold-500); display: block; line-height: 1; }
.hero-trust div span { font-size: 0.8rem; color: var(--cream-dim); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* tarjeta funnel del hero */
.hero-card {
  background: linear-gradient(160deg, rgba(43,55,80,0.9), rgba(28,37,54,0.92));
  border: 1px solid var(--cream-faint); border-radius: var(--r-lg); padding: 1.8rem;
  box-shadow: var(--shadow-lux); backdrop-filter: blur(8px);
  opacity: 0; animation: fadeUp 1s var(--ease) .55s forwards;
}
.hero-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; }
.hero-card p { color: var(--cream-dim); font-size: 0.9rem; margin-top: .2rem; }
.need-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; margin-top: 1.3rem; }
.need {
  display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; padding: 1rem;
  border: 1px solid var(--cream-faint); border-radius: var(--r-md); transition: all .3s var(--ease); text-align: left;
}
.need:hover { border-color: var(--gold-600); background: rgba(194,160,121,0.08); transform: translateY(-3px); }
.need .ic { width: 30px; height: 30px; color: var(--gold-500); }
.need b { font-size: 0.92rem; font-weight: 600; }
.need small { color: var(--cream-dim); font-size: 0.74rem; }

/* =====================================================================
   SECTIONS genéricas
   ===================================================================== */
section { position: relative; }
.section { padding-block: var(--section); }
.section-light { background: var(--surface); color: var(--ink); }
.section-light .eyebrow { color: var(--gold-700); }
.section-light .eyebrow::before { background: var(--gold-700); }
.head { max-width: 720px; margin-bottom: 3.5rem; }
.head h2 { font-family: var(--display); font-size: var(--t-h2); font-weight: 400; line-height: 1.02; margin-top: 1rem; letter-spacing: -0.02em; }
.head p { margin-top: 1.1rem; font-size: var(--t-lead); color: var(--ink-soft); }
.section:not(.section-light) .head p { color: var(--cream-dim); }
.head.center { margin-inline: auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }

/* PILARES (value props) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  padding: 2rem; border-radius: var(--r-lg); background: var(--surface-2);
  border: 1px solid rgba(30,37,54,0.06); position: relative; overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s;
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--gold-600), transparent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lux); }
.pillar:hover::before { transform: scaleX(1); }
.pillar .num { font-family: var(--display); font-size: 1rem; color: var(--gold-700); letter-spacing: 0.1em; }
.pillar h3 { font-family: var(--display); font-size: var(--t-h3); font-weight: 500; margin: 1.5rem 0 0.7rem; }
.pillar p { color: var(--ink-soft); font-size: 0.96rem; }

/* =====================================================================
   LÍNEAS (Personas / Empresas / ARL)
   ===================================================================== */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.line-card {
  position: relative; border-radius: var(--r-lg); padding: 2.2rem; overflow: hidden; min-height: 340px;
  display: flex; flex-direction: column; justify-content: flex-end; border: 1px solid var(--cream-faint);
  background: linear-gradient(165deg, var(--navy-600), var(--navy-800)); transition: transform .5s var(--ease), box-shadow .5s;
}
.line-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lux); }
.line-card .glow { position: absolute; top: -40%; right: -30%; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(194,160,121,0.25), transparent 65%); transition: transform .6s var(--ease); }
.line-card:hover .glow { transform: scale(1.25); }
.line-tag { position: absolute; top: 1.6rem; left: 2.2rem; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-500); }
.line-card h3 { font-family: var(--display); font-size: 2rem; font-weight: 500; position: relative; }
.line-card p { color: var(--cream-dim); margin: 0.7rem 0 1.3rem; font-size: 0.95rem; position: relative; }
.line-card .chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; position: relative; }
.line-card .chips span { font-size: 0.74rem; padding: 0.3rem 0.7rem; border: 1px solid var(--cream-faint); border-radius: 100px; color: var(--cream-dim); }
.line-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--gold-400, var(--gold-500)); font-weight: 600; font-size: 0.92rem; position: relative; }
.line-link svg { width: 16px; transition: transform .3s var(--ease); }
.line-card:hover .line-link svg { transform: translateX(5px); }

/* =====================================================================
   WIZARD / FUNNEL
   ===================================================================== */
.wizard-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lux); border: 1px solid var(--cream-faint); }
.wizard-aside { background: linear-gradient(165deg, var(--navy-700), var(--navy-900)); color: var(--cream); padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.wizard-aside .col-deco { position: absolute; right: -10px; bottom: -10px; opacity: 0.12; width: 220px; }
.wizard-aside h2 { font-family: var(--display); font-size: clamp(1.7rem, 1.3rem + 1.3vw, 2.4rem); font-weight: 400; line-height: 1.06; }
.wizard-steps { margin-top: 2rem; display: grid; gap: 1rem; }
.wstep { display: flex; gap: 0.9rem; align-items: center; color: var(--cream-dim); transition: color .3s; }
.wstep.active { color: var(--cream); }
.wstep .n { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cream-faint); display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; flex-shrink: 0; transition: all .3s; }
.wstep.active .n { background: var(--gold-600); color: var(--navy-900); border-color: var(--gold-600); }
.wstep.done .n { background: var(--navy-tint); }

.wizard-main { background: var(--surface); color: var(--ink); padding: 3rem; min-height: 480px; display: flex; flex-direction: column; }
.wizard-progress { height: 4px; background: rgba(30,37,54,0.08); border-radius: 100px; overflow: hidden; margin-bottom: 2rem; }
.wizard-progress i { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--gold-600), var(--gold-700)); border-radius: 100px; transition: width .5s var(--ease); }
.panel { display: none; animation: panelIn .5s var(--ease); flex: 1; }
.panel.active { display: flex; flex-direction: column; }
@keyframes panelIn { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
.panel h3 { font-family: var(--display); font-size: 1.7rem; font-weight: 500; margin-bottom: 0.4rem; }
.panel > p { color: var(--ink-soft); margin-bottom: 1.6rem; }
.opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.opt {
  display: flex; align-items: center; gap: 0.8rem; padding: 1.1rem; border: 1.5px solid rgba(30,37,54,0.12);
  border-radius: var(--r-md); transition: all .25s var(--ease); text-align: left; background: #fff;
}
.opt:hover { border-color: var(--gold-600); transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.opt.sel { border-color: var(--gold-600); background: linear-gradient(135deg, rgba(194,160,121,0.12), #fff); }
.opt .ic { width: 26px; color: var(--gold-700); flex-shrink: 0; }
.opt b { font-size: 0.95rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-soft); }
.field input, .field select {
  width: 100%; padding: 0.85rem 1rem; border: 1.5px solid rgba(30,37,54,0.14); border-radius: var(--r-md);
  font: inherit; color: var(--ink); background: #fff; transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 4px rgba(194,160,121,0.18); }
.wizard-foot { margin-top: auto; padding-top: 1.6rem; display: flex; justify-content: space-between; align-items: center; }
.wizard-back { color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; opacity: 0; pointer-events: none; transition: opacity .3s; }
.wizard-back.show { opacity: 1; pointer-events: auto; }
.wizard-success { text-align: center; place-items: center; gap: 0.4rem; }
.wizard-success .check { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); display: grid; place-items: center; margin-bottom: 1rem; animation: pop .6s var(--ease); }
.wizard-success .check svg { width: 38px; color: var(--navy-900); }
@keyframes pop { 0% { transform: scale(0); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* =====================================================================
   CATÁLOGO (soluciones consultables)
   ===================================================================== */
.cat-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.cat-tabs { display: inline-flex; background: var(--surface-2); border-radius: 100px; padding: 5px; gap: 4px; }
.cat-tab { padding: 0.55rem 1.2rem; border-radius: 100px; font-weight: 600; font-size: 0.9rem; color: var(--ink-soft); transition: all .3s var(--ease); }
.cat-tab.active { background: var(--navy-800); color: var(--cream); box-shadow: var(--shadow-lux); }
.cat-search { position: relative; }
.cat-search input { padding: 0.7rem 1rem 0.7rem 2.6rem; border-radius: 100px; border: 1.5px solid rgba(30,37,54,0.12); width: 280px; max-width: 60vw; font: inherit; }
.cat-search input:focus { outline: none; border-color: var(--gold-600); }
.cat-search svg { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); width: 18px; color: var(--ink-soft); }
.cat-ramos { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.ramo-pill { padding: 0.45rem 1rem; border-radius: 100px; border: 1.5px solid rgba(30,37,54,0.12); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); transition: all .25s; }
.ramo-pill.active, .ramo-pill:hover { border-color: var(--gold-600); color: var(--ink); background: rgba(194,160,121,0.1); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 1.2rem; }
.prod-card {
  background: #fff; border: 1px solid rgba(30,37,54,0.07); border-radius: var(--r-lg); padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.7rem; transition: transform .35s var(--ease), box-shadow .35s; cursor: pointer; position: relative; overflow: hidden;
}
.prod-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid transparent; transition: border-color .35s; pointer-events: none; }
.prod-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lux); }
.prod-card:hover::after { border-color: var(--gold-600); }
.prod-card .ramo-lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; }
.prod-card h4 { font-family: var(--display); font-size: 1.2rem; font-weight: 500; line-height: 1.2; }
.prod-card p { color: var(--ink-soft); font-size: 0.88rem; flex: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-card .meta { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.3rem; }
.tag { font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 100px; background: var(--surface-2); color: var(--ink-soft); font-weight: 600; }
.tag.digital { background: rgba(194,160,121,0.18); color: var(--gold-700); }
.prod-card .more { font-weight: 600; font-size: 0.85rem; color: var(--navy-700); display: inline-flex; gap: 0.4rem; align-items: center; }

/* modal producto */
.modal-bg { position: fixed; inset: 0; background: rgba(15,20,30,0.6); backdrop-filter: blur(6px); z-index: 200; opacity: 0; visibility: hidden; transition: .35s; display: grid; place-items: center; padding: 1.5rem; }
.modal-bg.open { opacity: 1; visibility: visible; }
.modal { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); max-width: 720px; width: 100%; max-height: 86vh; overflow-y: auto; transform: translateY(30px) scale(.97); transition: transform .4s var(--ease); }
.modal-bg.open .modal { transform: none; }
.modal-head { padding: 2rem 2rem 1.3rem; border-bottom: 1px solid rgba(30,37,54,0.08); position: sticky; top: 0; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-head .ramo-lbl { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); font-weight: 600; }
.modal-head h3 { font-family: var(--display); font-size: 1.8rem; font-weight: 500; margin: 0.3rem 0; }
.modal-close { position: absolute; top: 1.4rem; right: 1.4rem; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; transition: .25s; }
.modal-close:hover { background: var(--navy-800); color: var(--cream); transform: rotate(90deg); }
.modal-body { padding: 1.6rem 2rem 2rem; }
.cov-group { margin-bottom: 1.4rem; }
.cov-group h5 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.7rem; display: flex; align-items: center; gap: 0.5rem; }
.cov-group.inc h5 { color: #2f7a52; }
.cov-group.opc h5 { color: var(--gold-700); }
.cov-group.exc h5 { color: #a14b4b; }
.cov-list { display: grid; gap: 0.4rem; }
.cov-item { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; padding: 0.55rem 0.8rem; background: #fff; border-radius: 10px; border: 1px solid rgba(30,37,54,0.06); }
.cov-item .dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 0.5rem; flex-shrink: 0; }
.cov-group.inc .dot { background: #2f7a52; } .cov-group.opc .dot { background: var(--gold-600); } .cov-group.exc .dot { background: #a14b4b; }
.cov-item small { color: var(--ink-soft); }
.modal-cta { display: flex; gap: 0.8rem; margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(30,37,54,0.08); flex-wrap: wrap; }

/* =====================================================================
   PROCESO / TIMELINE
   ===================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding: 1.8rem; border-radius: var(--r-lg); background: var(--navy-700); border: 1px solid var(--cream-faint); }
.step .sn { font-family: var(--display); font-size: 2.6rem; color: var(--gold-600); opacity: 0.85; line-height: 1; }
.step h4 { font-size: 1.05rem; margin: 0.8rem 0 0.4rem; font-weight: 600; }
.step p { color: var(--cream-dim); font-size: 0.88rem; }

/* =====================================================================
   CTA + FORM contacto
   ===================================================================== */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); border-radius: var(--r-lg); padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); position: relative; overflow: hidden; }
.cta-band .glow { position: absolute; top: -50%; left: 60%; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(194,160,121,0.22), transparent 65%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; position: relative; }
.cta-grid h2 { font-family: var(--display); font-size: var(--t-h2); font-weight: 400; line-height: 1.03; }
.cta-grid p { color: var(--cream-dim); margin-top: 1rem; }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: 2rem; box-shadow: var(--shadow-lux); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--navy-900); padding: 4rem 0 2rem; border-top: 1px solid var(--cream-faint); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.foot-brand p { color: var(--cream-dim); font-size: 0.9rem; margin-top: 1rem; max-width: 32ch; }
.foot-col h5 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-500); margin-bottom: 1.1rem; }
.foot-col a { display: block; color: var(--cream-dim); font-size: 0.9rem; padding: 0.3rem 0; transition: color .2s, padding-left .2s; }
.foot-col a:hover { color: var(--cream); padding-left: 5px; }
.foot-bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--cream-faint); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--cream-dim); font-size: 0.82rem; }

/* =====================================================================
   CHATBOT WIDGET
   ===================================================================== */
.chat-fab {
  position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 170; height: 52px; padding: 0 1.25rem; border-radius: 100px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--navy-900);
  display: inline-flex; align-items: center; gap: 0.55rem; box-shadow: var(--shadow-gold); transition: transform .3s var(--ease), box-shadow .3s;
  font-weight: 600; font-size: 0.9rem;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -18px rgba(194,160,121,0.75); }
.chat-fab .fab-ic { display: grid; place-items: center; flex-shrink: 0; }
.chat-fab svg { width: 21px; }
.chat-fab .fab-label { white-space: nowrap; }
.chat-fab .ping { position: absolute; right: 14px; top: 14px; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--gold-300); opacity: 0; }
@media (max-width: 560px) { .chat-fab { padding: 0; width: 54px; height: 54px; justify-content: center; gap: 0; } .chat-fab .fab-label { display: none; } }

.chat-panel {
  position: fixed; bottom: 1.6rem; right: 1.6rem; z-index: 160; width: min(410px, calc(100vw - 2rem)); height: min(620px, calc(100vh - 3rem));
  background: var(--navy-800); border: 1px solid var(--cream-faint); border-radius: var(--r-lg); box-shadow: var(--shadow-lux);
  display: flex; flex-direction: column; overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; visibility: hidden; transform-origin: bottom right; transition: .35s var(--ease);
}
.chat-panel.open { transform: none; opacity: 1; visibility: visible; }
.chat-top { padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 0.8rem; background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); border-bottom: 1px solid var(--cream-faint); }
.chat-top .av { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); display: grid; place-items: center; color: var(--navy-900); font-family: var(--display); font-weight: 700; }
.chat-top b { font-size: 0.95rem; }
.chat-top small { color: var(--cream-dim); font-size: 0.75rem; display: flex; align-items: center; gap: 0.35rem; }
.chat-top small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5dd28a; }
.chat-x { margin-left: auto; opacity: 0.7; } .chat-x:hover { opacity: 1; }
.chat-body { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: 0.9rem; }
.msg { max-width: 86%; padding: 0.8rem 1rem; border-radius: 16px; font-size: 0.9rem; line-height: 1.5; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg.bot { background: var(--navy-700); border-bottom-left-radius: 5px; align-self: flex-start; }
.msg.user { background: linear-gradient(135deg, var(--gold-600), var(--gold-700)); color: var(--navy-900); border-bottom-right-radius: 5px; align-self: flex-end; font-weight: 500; }
.msg.bot a { color: var(--gold-400, var(--gold-500)); text-decoration: underline; }
.msg-tool { align-self: flex-start; font-size: 0.72rem; color: var(--cream-dim); display: flex; align-items: center; gap: 0.4rem; padding-left: 0.3rem; }
.msg-tool .ic { width: 13px; color: var(--gold-500); }
.chat-srcs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.5rem; }
.chat-srcs a { font-size: 0.72rem; padding: 0.25rem 0.6rem; border: 1px solid var(--cream-faint); border-radius: 100px; color: var(--cream-dim); }
.typing { display: inline-flex; gap: 4px; align-items: center; padding: 0.9rem 1rem; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.chat-suggest { display: flex; gap: 0.5rem; flex-wrap: wrap; padding: 0 1.2rem 0.8rem; }
.chat-suggest button { font-size: 0.78rem; padding: 0.45rem 0.8rem; border: 1px solid var(--cream-faint); border-radius: 100px; color: var(--cream-dim); transition: .2s; }
.chat-suggest button:hover { border-color: var(--gold-600); color: var(--cream); }
.chat-input { display: flex; gap: 0.6rem; padding: 1rem 1.2rem; border-top: 1px solid var(--cream-faint); }
.chat-input input { flex: 1; background: var(--navy-700); border: 1px solid var(--cream-faint); border-radius: 100px; padding: 0.7rem 1rem; color: var(--cream); font: inherit; }
.chat-input input:focus { outline: none; border-color: var(--gold-600); }
.chat-input button { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--navy-900); display: grid; place-items: center; flex-shrink: 0; transition: transform .2s; }
.chat-input button:hover { transform: scale(1.08); }

/* =====================================================================
   PAGE HERO (páginas de línea: Personas / Empresas / ARL)
   ===================================================================== */
.page-hero { position: relative; padding: 9rem 0 3rem; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(194,160,121,0.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
}
.page-hero .columns { opacity: 0.35; }
.page-hero .wrap { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--cream-dim); margin-bottom: 1.4rem; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb span { opacity: 0.5; }
.page-hero h1 { font-family: var(--display); font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.4rem); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; max-width: 16ch; }
.page-hero h1 em { font-style: italic; color: var(--gold-500); }
.page-hero p { margin-top: 1.2rem; font-size: var(--t-lead); color: var(--cream-dim); max-width: 52ch; }
.page-hero .ph-stats { display: flex; gap: 2.2rem; margin-top: 2rem; flex-wrap: wrap; }
.page-hero .ph-stats b { font-family: var(--display); font-size: 1.7rem; color: var(--gold-500); display: block; line-height: 1; }
.page-hero .ph-stats span { font-size: 0.8rem; color: var(--cream-dim); }

/* barra sticky de ramos en página de línea */
.ramo-bar { position: sticky; top: 64px; z-index: 40; background: rgba(251,247,239,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(30,37,54,0.08); padding: 1rem 0; transition: box-shadow .3s; }
.ramo-bar.stuck { box-shadow: 0 10px 30px -18px rgba(13,18,30,0.4); }
.ramo-bar-inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.cat-page { background: var(--surface); color: var(--ink); padding-bottom: var(--section); min-height: 60vh; }
.cat-page .wrap { padding-top: 2.5rem; }
.ramo-group { margin-bottom: 3.5rem; scroll-margin-top: 140px; }
.ramo-group-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(30,37,54,0.1); }
.ramo-group-head h2 { font-family: var(--display); font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); font-weight: 500; }
.ramo-group-head .count { font-size: 0.85rem; color: var(--ink-soft); }
.empty-state { text-align: center; padding: 4rem 1rem; color: var(--ink-soft); }

/* =====================================================================
   SCROLL REVEAL
   ===================================================================== */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-d="1"] { transition-delay: .08s; }
[data-reveal][data-d="2"] { transition-delay: .16s; }
[data-reveal][data-d="3"] { transition-delay: .24s; }
[data-reveal][data-d="4"] { transition-delay: .32s; }

/* =====================================================================
   OVERHAUL — imagen real, video, profundidad y movimiento
   ===================================================================== */

/* ---- HERO con video de fondo ---- */
.hero-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; background: var(--navy-900); }
.hero-media video, .hero-media > img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,27,40,0.80), rgba(20,27,40,0.62) 38%, rgba(20,27,40,0.94)),
    linear-gradient(105deg, rgba(20,27,40,0.92) 30%, rgba(20,27,40,0.30) 70%),
    radial-gradient(900px 600px at 78% 22%, rgba(194,160,121,0.20), transparent 62%);
}
.hero-media .vignette { position: absolute; inset: 0; box-shadow: inset 0 0 220px 60px rgba(13,18,30,0.7); }

/* ---- imagen en tarjetas de línea ---- */
.line-card { isolation: isolate; }
.line-img { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.line-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transform: scale(1.02); transition: transform 1s var(--ease), opacity .5s; filter: saturate(0.9); }
.line-card:hover .line-img img { transform: scale(1.12); opacity: 0.62; }
.line-card .scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(20,27,40,0.30) 0%, rgba(20,27,40,0.55) 45%, rgba(20,27,40,0.95) 100%); }
.line-card h3, .line-card p, .line-card .chips, .line-card .line-link, .line-card .glow { position: relative; z-index: 2; }
.line-card .line-tag { z-index: 3; }

/* ---- imagen en page-hero ---- */
.page-hero .ph-media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.page-hero .ph-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.40; transform: scale(1.05); animation: kenburns 18s ease-out forwards; }
.page-hero .ph-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,27,40,0.78), rgba(20,27,40,0.92)), linear-gradient(100deg, rgba(20,27,40,0.92), transparent 70%); }
@keyframes kenburns { to { transform: scale(1.16); } }

/* ---- CONFIANZA: imagen + contadores ---- */
.trust-sec { position: relative; overflow: hidden; }
.trust-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.trust-figure { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lux); aspect-ratio: 4 / 3.4; }
.trust-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.trust-figure:hover img { transform: scale(1.06); }
.trust-figure .badge { position: absolute; left: 1.4rem; bottom: 1.4rem; right: 1.4rem; background: rgba(20,27,40,0.72); backdrop-filter: blur(10px); border: 1px solid var(--cream-faint); border-radius: var(--r-md); padding: 1rem 1.2rem; display: flex; gap: 0.9rem; align-items: center; }
.trust-figure .badge svg { width: 30px; color: var(--gold-500); flex-shrink: 0; }
.trust-figure .badge b { font-family: var(--display); font-size: 1rem; color: var(--cream); display: block; }
.trust-figure .badge span { font-size: 0.8rem; color: var(--cream-dim); }
.counters { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin-top: 2.2rem; }
.counter b { font-family: var(--display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.9rem); color: var(--gold-500); line-height: 1; display: block; letter-spacing: -0.02em; }
.counter span { font-size: 0.92rem; color: var(--ink-soft); display: block; margin-top: 0.4rem; }
.section:not(.section-light) .counter span { color: var(--cream-dim); }

/* ---- franja de respaldo (marquee) ---- */
.assurance { border-top: 1px solid var(--cream-faint); border-bottom: 1px solid var(--cream-faint); padding: 1.4rem 0; overflow: hidden; }
.assurance-track { display: flex; gap: 3.5rem; white-space: nowrap; width: max-content; animation: marquee 32s linear infinite; }
.assurance:hover .assurance-track { animation-play-state: paused; }
.assurance-item { display: inline-flex; align-items: center; gap: 0.7rem; color: var(--cream-dim); font-family: var(--display); font-size: 1.1rem; letter-spacing: 0.02em; }
.assurance-item svg { width: 18px; color: var(--gold-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- cita / testimonio ---- */
.quote-band { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.quote-band .qbg { position: absolute; inset: 0; z-index: 0; }
.quote-band .qbg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.32; }
.quote-band .qbg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(20,27,40,0.95) 35%, rgba(20,27,40,0.55)); }
.quote-band blockquote { position: relative; z-index: 2; max-width: 760px; font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.95rem); font-weight: 400; line-height: 1.32; }
.quote-band .mark { font-family: var(--display); font-size: 5rem; color: var(--gold-600); line-height: 0.5; display: block; height: 2.2rem; }
.quote-band cite { position: relative; z-index: 2; display: flex; align-items: center; gap: 0.9rem; margin-top: 2rem; font-style: normal; }
.quote-band cite .mono { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: var(--navy-900); display: grid; place-items: center; font-family: var(--display); font-weight: 600; }
.quote-band cite b { display: block; font-size: 0.95rem; }
.quote-band cite span { font-size: 0.82rem; color: var(--cream-dim); }

[data-parallax] { will-change: transform; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-card { max-width: 460px; }
  .pillars, .lines { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .wizard-wrap, .cta-grid, .foot-grid, .trust-grid { grid-template-columns: 1fr; }
  .wizard-aside { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .trust-figure { aspect-ratio: 16 / 9; }
}
@media (max-width: 680px) {
  .nav-menu { display: none; }
  .nav-cta .btn-gold { display: none; }      /* el CTA vive dentro del drawer en móvil */
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; font-size: 1.3rem; }
  .logo img { width: 38px; height: 38px; }
  .logo-txt b { font-size: 1.05rem; }
  .logo-txt span { font-size: 0.55rem; }
  .pillars, .lines, .steps, .form-row, .need-grid, .opt-grid, .counters { grid-template-columns: 1fr; }
  .hero { padding-top: 6rem; min-height: auto; padding-bottom: 4rem; }
  .hero-trust { flex-wrap: wrap; gap: 1.2rem; }
  .hero-card { padding: 1.4rem; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .ramo-bar { top: 60px; }
  .ramo-bar-inner { flex-direction: column; align-items: stretch; gap: 0.8rem; }
  .cat-search input { width: 100%; max-width: none; }
  .page-hero { padding: 7rem 0 2.5rem; }
  .section { padding-block: clamp(3.5rem, 2rem + 6vw, 6rem); }
  .quote-band cite, .cta-grid { gap: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* mobile drawer (anclado a la derecha, oculto sin generar overflow) */
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; width: min(86vw, 360px); z-index: 190;
  background: var(--navy-900); border-left: 1px solid var(--cream-faint); box-shadow: var(--shadow-lux);
  padding: 6rem 1.8rem 2rem; transform: translateX(100%); visibility: hidden;
  transition: transform .4s var(--ease), visibility .4s; overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 189; background: rgba(13,18,30,0.5); backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: .35s; }
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer a { display: block; font-family: var(--display); font-size: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--cream-faint); }
.drawer-close { position: absolute; top: 1.6rem; right: 1.6rem; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--cream-faint); display: grid; place-items: center; }

/* =====================================================================
   RESPONSIVE — AFINADO MÓVIL
   Bloque aditivo, al final del fichero a propósito: así gana en el cascade
   sin reescribir ninguna regla de escritorio. Nada de aquí aplica por
   encima de 1024px.
   ===================================================================== */

/* --- Tablet y móvil: el aside del wizard deja de desaparecer ----------
   .wizard-aside iba a display:none por debajo de 1024px, y con él se
   perdían los pasos (.wstep): el usuario veía una barra de progreso sin
   saber en qué paso estaba ni cuántos quedaban. Vuelve, pero como franja
   horizontal compacta en lugar de columna decorativa. */
@media (max-width: 1024px) {
  .wizard-aside { display: flex; flex-direction: row; align-items: center; padding: 1.15rem 1.3rem; }
  .wizard-aside > div { display: flex; align-items: center; gap: 1rem; width: 100%; }
  .wizard-aside h2 { display: none; }          /* el titular ya lo pone la sección */
  .wizard-aside .col-deco { display: none; }   /* la deco es solo de escritorio */
  .wizard-steps { margin-top: 0; display: flex; flex-direction: row; align-items: center; gap: 0.55rem; width: 100%; }
  .wstep { gap: 0.5rem; font-size: 0.84rem; }
}

/* --- Teléfono -------------------------------------------------------- */
@media (max-width: 680px) {
  /* Aire: el wizard gastaba 3rem de padding por lado; en 320px de pantalla
     eso se comía dos tercios del ancho útil. */
  .wizard-main { padding: 1.4rem; min-height: 0; }
  .wizard-progress { margin-bottom: 1.4rem; }
  .panel h3 { font-size: 1.35rem; }
  .prod-card { padding: 1.15rem; gap: 0.55rem; }
  .prod-card h4 { font-size: 1.1rem; }

  /* La bajada del logo caía a 8.8px: ilegible hasta como microtipografía de
     marca. En móvil se retira y manda el nombre, que aguanta solo. */
  .logo-txt span { display: none; }
  .logo-txt b { font-size: 1.1rem; }
  .logo { min-height: 44px; }

  /* Suelo de legibilidad: estos venían entre 11.5px y 11.8px. */
  .line-tag { font-size: 0.8rem; top: 1.2rem; left: 1.3rem; }
  .line-card .chips span { font-size: 0.8rem; }
  .need small { font-size: 0.8rem; }
  .chat-srcs a { font-size: 0.78rem; }
  .foot-bottom { font-size: 0.84rem; }

  /* Objetivos táctiles: 44px de alto mínimo en todo lo pulsable. */
  .wizard-back { min-height: 44px; display: inline-flex; align-items: center; padding-right: 0.5rem; }
  .ramo-pill { padding: 0.6rem 1rem; min-height: 44px; display: inline-flex; align-items: center; }
  .drawer a { min-height: 48px; display: flex; align-items: center; }
  /* Enlaces del pie: en una sola columna quedaban a 33px de alto, pegados
     unos a otros y muy fáciles de errar con el pulgar. */
  .foot-col a { min-height: 44px; display: flex; align-items: center; }
  .breadcrumb a { min-height: 44px; display: inline-flex; align-items: center; }

  /* Fichas del catálogo: etiqueta de ramo y badges venían a 11.5px. */
  .prod-card .ramo-lbl { font-size: 0.8rem; }
  .prod-card .meta .tag { font-size: 0.8rem; }
}

/* --- Móvil estrecho -------------------------------------------------- */
@media (max-width: 560px) {
  /* Solo el paso activo lleva etiqueta: cuatro números y una etiqueta entran
     de sobra en 320px. El font-size:0 colapsa el nodo de texto del .wstep sin
     tocar el número, que lleva su propio tamaño en .wstep .n. */
  .wstep { font-size: 0; gap: 0; }
  .wstep.active { font-size: 0.84rem; gap: 0.5rem; }
  .wizard-steps { justify-content: space-between; gap: 0.4rem; }

  .section { padding-block: 2.75rem; }

  /* El chat pasa a hoja inferior casi a pantalla completa. El alto usaba
     100vh, que en Safari móvil incluye la barra del navegador y recortaba el
     pie del panel; dvh mide el viewport real, con vh de reserva. */
  .chat-panel {
    inset: auto 0 0 0; width: 100%;
    height: 86vh; height: 86dvh;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    border-left: none; border-right: none; border-bottom: none;
    transform: translateY(100%); transform-origin: bottom center;
  }
  .chat-panel.open { transform: none; }
  .chat-x { width: 44px; height: 44px; display: grid; place-items: center; margin-left: auto; }
  .chat-input { padding: 0.9rem 1rem; }
  .chat-input button { width: 44px; height: 44px; }
}

/* --- Teléfonos pequeños ---------------------------------------------- */
@media (max-width: 400px) {
  .logo img { width: 36px; height: 36px; }
  .wizard-main { padding: 1.15rem; }
  .prod-card { padding: 1rem; }
  .opt { padding: 0.9rem; }
}
