/* London Import · Radar Gastronómico — identidad London: azul #153765, blanco y dorado de Big Ben */
:root {
  --navy: #153765; --navy-2: #0f2a4f; --navy-3: #0a1f3b; --navy-l: #2a5591;
  --oro: #b08d57; --oro-l: #e3cfa6; --oro-d: #8a6a3b;
  --papel: #f6f4ef; --blanco: #fff; --tinta: #12213a; --gris: #5b6577; --gris-l: #8e97a6; --linea: #e4e0d6;
  --ok: #1f8a5b; --ok-l: #e3f3eb; --warn: #b7791f; --mal: #b42318; --wa: #128c4a;
  --r: 14px; --sh: 0 1px 2px rgba(18, 33, 58, .06), 0 8px 24px rgba(18, 33, 58, .06);
  --side: 248px;
  --f-t: 'Montserrat', system-ui, sans-serif; --f-b: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--papel); color: var(--tinta); font-family: var(--f-b); font-size: 15px; -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
i[data-i] { display: inline-flex; width: 18px; height: 18px; flex: none; }
i[data-i] svg { width: 100%; height: 100%; }
[hidden] { display: none !important; }
.g > *, .card, .lienzo-chart { min-width: 0; }

/* ── Gate ── */
.gate { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--navy-3); overflow: hidden; clip-path: inset(0); contain: paint; transition: opacity .7s ease, visibility .7s; }
.gate.fuera { opacity: 0; visibility: hidden; }
.gate__sweep { position: absolute; inset: -20%; background: conic-gradient(from 200deg at 50% 50%, transparent 0 20%, rgba(176, 141, 87, .22) 28%, transparent 36% 60%, rgba(42, 85, 145, .45) 70%, transparent 80%); animation: gira 14s linear infinite; filter: blur(30px); }
@keyframes gira { to { transform: rotate(360deg); } }
.gate__card { position: relative; width: min(420px, 92vw); text-align: center; color: #fff; padding: 2.2rem 1.6rem 1.6rem; }
.gate__logo { width: min(300px, 74vw); margin: 0 auto; color: #fff; }
.gate__logo svg, .side__logo svg { display: block; width: 100%; height: auto; }
.gate__t { font-family: var(--f-t); font-weight: 600; letter-spacing: .32em; text-transform: uppercase; font-size: .72rem; color: var(--oro-l); margin: 1.4rem 0 1.6rem; opacity: 0; animation: aparece .8s ease 2.2s forwards; }
@keyframes aparece { to { opacity: 1; } }
.gate__pin { display: flex; gap: .7rem; justify-content: center; opacity: 0; animation: aparece .6s ease 2.5s forwards; }
.gate__pin input { width: 54px; height: 62px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); color: #fff; text-align: center; font: 700 1.5rem var(--f-t); outline: none; transition: border-color .2s, background .2s; }
.gate__pin input:focus { border-color: var(--oro); background: rgba(176, 141, 87, .12); }
.gate__pin.mal { animation: sacude .4s; }
@keyframes sacude { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.gate__err { color: #ffb4a8; font-size: .8rem; min-height: 1.2em; margin: .7rem 0 0; }
.gate__boot { text-align: left; margin: .6rem auto 0; width: min(330px, 86vw); font-size: .8rem; color: rgba(255, 255, 255, .78); }
.gate__boot p { display: flex; justify-content: space-between; gap: .6rem; margin: .45rem 0; padding-bottom: .45rem; border-bottom: 1px solid rgba(255, 255, 255, .1); opacity: 0; transform: translateY(6px); transition: all .5s ease; }
.gate__boot p.on { opacity: 1; transform: none; }
.gate__boot b { font-family: var(--f-t); color: var(--oro-l); margin-left: auto; }
.gate__pie { margin: 1.6rem 0 0; font-size: .68rem; color: rgba(255, 255, 255, .5); line-height: 1.6; }
/* trazo del logo */
[data-trazo] path { stroke: currentColor; stroke-width: 2.4; fill-opacity: 0; animation: trazo 1.9s cubic-bezier(.6, 0, .2, 1) .2s forwards, relleno .8s ease 1.7s forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
@keyframes relleno { to { fill-opacity: 1; stroke-width: 0; } }

/* ── Layout ── */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; display: flex; flex-direction: column; padding: 1.4rem 1rem 1rem; z-index: 30; }
.side__logo { display: block; width: 168px; margin: 0 auto; color: #fff; }
.side__sub { text-align: center; margin: .55rem 0 1.6rem; font: 600 .62rem var(--f-t); letter-spacing: .3em; text-transform: uppercase; color: var(--oro-l); }
.side__nav { display: flex; flex-direction: column; gap: .2rem; }
.side__nav a { position: relative; display: flex; align-items: center; gap: .75rem; padding: .72rem .85rem; border-radius: 10px; text-decoration: none; font: 600 .86rem var(--f-t); color: rgba(255, 255, 255, .72); transition: background .2s, color .2s; }
.side__nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.side__nav a.on { background: rgba(255, 255, 255, .12); color: #fff; }
.side__nav a.on::before { content: ''; position: absolute; left: -1rem; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0; background: var(--oro); }
.side__foot { margin-top: auto; font-size: .68rem; line-height: 1.5; color: rgba(255, 255, 255, .5); }
.side__foot p { margin: .4rem 0 0; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .8rem; padding: .8rem 1.6rem; background: rgba(246, 244, 239, .86); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.top__menu { display: none; border: 0; background: none; color: var(--navy); padding: .4rem; }
.top__q { flex: 1; max-width: 520px; display: flex; align-items: center; gap: .55rem; padding: .62rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--linea); color: var(--gris); }
.top__q input { flex: 1; min-width: 0; border: 0; outline: 0; font: 500 .9rem var(--f-b); color: var(--tinta); background: none; }
.top__acts { margin-left: auto; display: flex; gap: .5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1rem; border-radius: 10px; border: 1px solid transparent; font: 600 .82rem var(--f-t); text-decoration: none; transition: transform .15s, background .2s, border-color .2s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn--p { background: var(--navy); color: #fff; }
.btn--p:hover { background: var(--navy-l); }
.btn--oro { background: var(--oro); color: #fff; }
.btn--oro:hover { background: var(--oro-d); }
.btn--ghost { background: #fff; color: var(--navy); border-color: var(--linea); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { filter: brightness(1.08); }
.btn--sm { padding: .45rem .7rem; font-size: .76rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.vista { flex: 1; padding: 1.6rem; min-width: 0; }
.honesto { margin: 0 1.6rem 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; background: #fff; border: 1px solid var(--linea); font-size: .72rem; line-height: 1.6; color: var(--gris); }
.honesto b { color: var(--tinta); }
.honesto span { display: block; margin-top: .4rem; color: var(--gris-l); }

/* ── Encabezado de vista ── */
.vh { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.vh__k { font: 700 .66rem var(--f-t); letter-spacing: .2em; text-transform: uppercase; color: var(--oro-d); }
.vh h1 { font: 800 clamp(1.45rem, 2.4vw, 2rem) var(--f-t); letter-spacing: -.02em; margin: .3rem 0 .3rem; color: var(--navy); }
.vh p { margin: 0; color: var(--gris); max-width: 680px; line-height: 1.55; }
.card { background: #fff; border: 1px solid var(--linea); border-radius: var(--r); box-shadow: var(--sh); padding: 1.2rem 1.3rem; }
.card h3 { font: 700 .95rem var(--f-t); margin: 0 0 .9rem; color: var(--navy); display: flex; align-items: center; gap: .5rem; }
.card h3 small { margin-left: auto; font: 500 .72rem var(--f-b); color: var(--gris-l); }
.g { display: grid; gap: 1rem; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .55rem; border-radius: 100px; font: 600 .68rem var(--f-b); background: #eef1f6; color: var(--navy); white-space: nowrap; }
.chip--oro { background: #f5ecdc; color: var(--oro-d); }
.chip--ok { background: var(--ok-l); color: var(--ok); }
.chip--mod { background: #f1f1f1; color: var(--gris); border: 1px dashed #c9c9c9; }
.chip--mal { background: #fdecea; color: var(--mal); }

/* ── Inicio ── */
.hero { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 1rem; align-items: stretch; margin-bottom: 1rem; }
.hero__txt { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 70%); color: #fff; border-radius: var(--r); padding: 1.8rem 1.8rem 1.6rem; position: relative; overflow: hidden; }
.hero__txt::after { content: ''; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(176, 141, 87, .35), transparent 70%); }
.hero__k { font: 700 .66rem var(--f-t); letter-spacing: .22em; text-transform: uppercase; color: var(--oro-l); }
.hero__h { font: 800 clamp(1.5rem, 2.6vw, 2.15rem) var(--f-t); line-height: 1.15; letter-spacing: -.02em; margin: .6rem 0 .8rem; }
.hero__h em { font-style: normal; color: var(--oro-l); }
.hero__p { color: rgba(255, 255, 255, .78); line-height: 1.6; margin: 0 0 1.2rem; max-width: 560px; }
.hero__btns { display: flex; gap: .6rem; flex-wrap: wrap; position: relative; z-index: 1; }
.hero__3d { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #fdfbf6, #ece5d6); border: 1px solid var(--linea); min-height: 300px; }
.hero__3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.hero__3d figcaption { position: absolute; left: 1rem; right: 1rem; bottom: .9rem; display: flex; justify-content: space-between; gap: .5rem; align-items: flex-end; font-size: .72rem; color: var(--gris); }
.hero__3d figcaption b { display: block; font: 700 .9rem var(--f-t); color: var(--navy); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1rem; }
.kpi { position: relative; overflow: hidden; }
.kpi__l { font: 600 .7rem var(--f-t); letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
.kpi__v { font: 800 2rem var(--f-t); color: var(--navy); margin: .35rem 0 .15rem; letter-spacing: -.02em; }
.kpi__s { font-size: .74rem; color: var(--gris-l); }
.kpi::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; width: var(--w, 0%); background: linear-gradient(90deg, var(--navy), var(--oro)); transition: width 1.2s cubic-bezier(.16, 1, .3, 1); }
.zonas { display: flex; flex-direction: column; gap: .7rem; }
.zona { display: grid; grid-template-columns: 130px 1fr 60px; gap: .7rem; align-items: center; font-size: .82rem; }
.zona b { font-family: var(--f-t); color: var(--navy); text-align: right; }
.barra { height: 10px; border-radius: 10px; background: #eef0f4; overflow: hidden; }
.barra i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, var(--navy-l), var(--navy)); transition: width 1.2s cubic-bezier(.16, 1, .3, 1); }
.op { display: flex; flex-direction: column; }
.op__i { display: grid; grid-template-columns: 44px 1fr auto; gap: .8rem; align-items: center; padding: .7rem .2rem; border-top: 1px solid var(--linea); cursor: pointer; transition: background .15s; border-radius: 8px; }
.op__i:first-child { border-top: 0; }
.op__i:hover { background: #f8f6f1; }
.score { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 800 .85rem var(--f-t); color: var(--navy); background: conic-gradient(var(--oro) calc(var(--s) * 1%), #eee 0); position: relative; }
.score::before { content: ''; position: absolute; inset: 4px; border-radius: 50%; background: #fff; }
.score span { position: relative; }
.op__n { font: 700 .9rem var(--f-t); color: var(--tinta); }
.op__m { font-size: .74rem; color: var(--gris); margin-top: .15rem; }
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; max-height: 320px; overflow: auto; }
.feed li { display: grid; grid-template-columns: 10px 1fr auto; gap: .7rem; align-items: start; padding: .55rem 0; border-top: 1px solid var(--linea); font-size: .8rem; animation: entra .5s ease both; }
.feed li:first-child { border-top: 0; }
.feed li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--oro); margin-top: .35rem; }
.feed time { color: var(--gris-l); font-size: .72rem; }
@keyframes entra { from { opacity: 0; transform: translateY(-6px); } }

/* ── Buscador ── */
.bus { display: grid; grid-template-columns: 270px 1fr; gap: 1rem; align-items: start; }
.filtros { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.f { margin-bottom: 1rem; }
.f__l { font: 700 .66rem var(--f-t); letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-bottom: .45rem; display: flex; justify-content: space-between; }
.f__ops { display: flex; flex-wrap: wrap; gap: .35rem; }
.f__ops button { padding: .38rem .62rem; border-radius: 100px; border: 1px solid var(--linea); background: #fff; font: 600 .74rem var(--f-b); color: var(--gris); transition: all .15s; }
.f__ops button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.f select, .f input[type=range] { width: 100%; }
.f select { padding: .5rem; border-radius: 8px; border: 1px solid var(--linea); font: 500 .82rem var(--f-b); background: #fff; }
.sw { display: flex; align-items: center; justify-content: space-between; gap: .6rem; font-size: .82rem; padding: .3rem 0; }
.sw input { width: 36px; height: 20px; appearance: none; border-radius: 20px; background: #d8dbe2; position: relative; cursor: pointer; transition: background .2s; flex: none; }
.sw input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sw input:checked { background: var(--navy); }
.sw input:checked::after { transform: translateX(16px); }
input[type=range] { accent-color: var(--navy); }
.res { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.res__bar { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.res__n { font: 800 1.35rem var(--f-t); color: var(--navy); }
.res__bar .btn:first-of-type { margin-left: auto; }
.mapa { height: 420px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--linea); box-shadow: var(--sh); background: #e8e6df; z-index: 1; }
.mapa--alto { height: 520px; }
.tabla-env { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--linea); background: #fff; box-shadow: var(--sh); }
table.t { width: 100%; border-collapse: collapse; font-size: .82rem; }
.t th { text-align: left; font: 700 .64rem var(--f-t); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); padding: .75rem .8rem; background: #faf9f5; border-bottom: 1px solid var(--linea); white-space: nowrap; }
.t td { padding: .7rem .8rem; border-bottom: 1px solid var(--linea); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr { cursor: pointer; transition: background .15s; }
.t tbody tr:hover { background: #f8f6f1; }
.t .n { font: 700 .86rem var(--f-t); color: var(--tinta); }
.t .s { font-size: .72rem; color: var(--gris); }
.estr { color: var(--oro); font-weight: 700; white-space: nowrap; }
.mas { display: flex; justify-content: center; padding: .8rem; }
.estado { display: inline-block; padding: .2rem .55rem; border-radius: 6px; font: 600 .68rem var(--f-b); white-space: nowrap; }
.e0 { background: #eef1f6; color: var(--gris); } .e1 { background: #e7eefb; color: #2a5591; } .e2 { background: #fff3dd; color: var(--warn); } .e3 { background: #f5ecdc; color: var(--oro-d); } .e4 { background: var(--ok-l); color: var(--ok); }

/* ── Ficha ── */
.velo { position: fixed; inset: 0; background: rgba(10, 31, 59, .38); opacity: 0; visibility: hidden; transition: all .3s; z-index: 60; }
.velo.on { opacity: 1; visibility: visible; }
.ficha { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--papel); z-index: 61; transform: translateX(100%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); overflow-y: auto; overflow-x: hidden; box-shadow: -20px 0 50px rgba(10, 31, 59, .2); }
.ficha.on { transform: none; }
.fi__top { position: relative; padding: 1.4rem 1.4rem 1.2rem; background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.fi__x { position: absolute; top: .9rem; right: .9rem; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; }
.fi__tipo { font: 700 .64rem var(--f-t); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-l); }
.fi__n { font: 800 1.4rem var(--f-t); margin: .35rem 2.5rem .4rem 0; line-height: 1.2; }
.fi__dir { font-size: .8rem; color: rgba(255, 255, 255, .72); display: flex; gap: .35rem; align-items: center; }
.fi__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .8rem; }
.fi__chips .chip { background: rgba(255, 255, 255, .12); color: #fff; }
.fi__acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; padding: 1rem 1.4rem; background: #fff; border-bottom: 1px solid var(--linea); }
.fi__acts .btn { flex-direction: column; gap: .3rem; padding: .7rem .3rem; font-size: .7rem; }
.fi__b { padding: 1.1rem 1.4rem; display: flex; flex-direction: column; gap: 1rem; }
.fi__sec h4 { font: 700 .68rem var(--f-t); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 0 0 .6rem; display: flex; gap: .4rem; align-items: center; }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.dato { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: .65rem .75rem; min-width: 0; }
.dato span { display: block; font-size: .66rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.dato b { display: block; font: 700 .95rem var(--f-t); color: var(--tinta); margin-top: .2rem; overflow-wrap: anywhere; }
.ofrecer { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.prod { background: #fff; border: 1px solid var(--linea); border-radius: 10px; padding: .55rem; text-align: center; min-width: 0; }
.prod img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #fff; }
.prod b { display: block; font: 700 .66rem var(--f-t); color: var(--oro-d); text-transform: uppercase; letter-spacing: .05em; margin-top: .3rem; }
.prod small { display: block; font-size: .68rem; color: var(--tinta); line-height: 1.3; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod em { display: block; font-style: normal; font: 700 .74rem var(--f-t); color: var(--navy); margin-top: .25rem; }
.visita { background: #fff; border: 1px solid var(--linea); border-radius: 12px; padding: .9rem; display: grid; gap: .6rem; }
.visita select, .visita textarea, .visita input { width: 100%; padding: .55rem .65rem; border-radius: 8px; border: 1px solid var(--linea); font: 500 .84rem var(--f-b); background: #fff; }
.visita textarea { resize: vertical; min-height: 60px; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.hist li { font-size: .78rem; padding: .55rem .7rem; border-radius: 8px; background: #fff; border: 1px solid var(--linea); }
.hist li b { color: var(--navy); }
.nota-mod { font-size: .7rem; color: var(--gris-l); margin: .3rem 0 0; }

/* ── Ruta ── */
.ruta { display: grid; grid-template-columns: 360px 1fr; gap: 1rem; align-items: start; }
.paradas { list-style: none; margin: 0; padding: 0; counter-reset: p; display: flex; flex-direction: column; gap: .5rem; }
.parada { counter-increment: p; display: grid; grid-template-columns: 30px 1fr auto; gap: .7rem; align-items: center; padding: .7rem; border-radius: 10px; border: 1px solid var(--linea); background: #fff; transition: all .3s; }
.parada::before { content: counter(p); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 700 .76rem var(--f-t); }
.parada.hecha { background: var(--ok-l); border-color: #bfe3cf; }
.parada.hecha::before { content: '✓'; background: var(--ok); }
.parada b { font: 700 .84rem var(--f-t); display: block; }
.parada small { font-size: .72rem; color: var(--gris); }
.ruta__res { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: .9rem 0; }
.mini { background: #faf9f5; border-radius: 10px; padding: .6rem .7rem; }
.mini span { display: block; font-size: .64rem; color: var(--gris); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.mini b { font: 800 1.15rem var(--f-t); color: var(--navy); }

/* ── Embudo ── */
.emb { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; align-items: start; }
.col { background: #efece4; border-radius: var(--r); padding: .7rem; min-width: 0; }
.col__h { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .7rem; font: 700 .78rem var(--f-t); color: var(--navy); }
.col__h b { font-size: 1.05rem; }
.col__l { display: flex; flex-direction: column; gap: .5rem; max-height: 520px; overflow: auto; }
.tj { background: #fff; border-radius: 10px; padding: .7rem; border: 1px solid var(--linea); cursor: pointer; transition: transform .15s, box-shadow .15s; }
.tj:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.tj b { display: block; font: 700 .8rem var(--f-t); }
.tj small { font-size: .7rem; color: var(--gris); }
.tj__a { display: flex; gap: .3rem; margin-top: .5rem; }
.embudo-v { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.embudo-v div { height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; color: #fff; border-radius: 6px; font: 700 .8rem var(--f-t); transition: width 1s cubic-bezier(.16, 1, .3, 1); min-width: 160px; }

/* ── Portafolio ── */
.cats { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.marcas { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.marca { cursor: pointer; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.marca:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18, 33, 58, .12); }
.marca__fotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-bottom: .8rem; }
.marca__fotos img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; }
.marca__n { font: 800 1.05rem var(--f-t); color: var(--navy); }
.marca__m { font-size: .74rem; color: var(--gris); margin: .2rem 0 .6rem; }
.marca__p { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: .74rem; padding-top: .6rem; border-top: 1px solid var(--linea); }
.marca__p b { font: 800 1.05rem var(--f-t); color: var(--oro-d); }

/* ── Simulador ── */
.sim { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.ctl { margin-bottom: 1.2rem; }
.ctl__l { display: flex; justify-content: space-between; font-size: .84rem; margin-bottom: .45rem; }
.ctl__l b { font: 800 1rem var(--f-t); color: var(--navy); }
.ctl input { width: 100%; }
.sim__res { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; border-radius: var(--r); padding: 1.6rem; display: flex; flex-direction: column; }
.sim__k { font: 700 .66rem var(--f-t); letter-spacing: .2em; text-transform: uppercase; color: var(--oro-l); }
.sim__v { font: 800 clamp(2rem, 4vw, 3rem) var(--f-t); margin: .4rem 0 .2rem; letter-spacing: -.02em; }
.sim__gs { font-size: .9rem; color: rgba(255, 255, 255, .72); }
.sim__f { margin: 1rem 0 0; line-height: 1.6; color: rgba(255, 255, 255, .85); font-size: .9rem; }
.sim__mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: auto; padding-top: 1rem; }
.sim__mini div { background: rgba(255, 255, 255, .08); border-radius: 10px; padding: .6rem .7rem; }
.sim__mini span { display: block; font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: rgba(255, 255, 255, .6); }
.sim__mini b { font: 800 1.1rem var(--f-t); }
.lienzo-chart { position: relative; height: 240px; }

/* ── Propuesta ── */
.prop { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.prop__precio { font: 800 2.6rem var(--f-t); color: var(--navy); letter-spacing: -.02em; }
.prop__gs { color: var(--gris); font-size: .9rem; }
.prop ul { margin: .8rem 0 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.prop li { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; line-height: 1.5; }
.prop li i { color: var(--ok); margin-top: .1rem; }

/* ── Wipe, modal, toast ── */
.wipe { position: fixed; inset: 0; z-index: 80; background: var(--navy); display: grid; place-items: center; transform: translateX(-100%); pointer-events: none; overflow: hidden; }
.wipe.in { animation: wipeIn .52s cubic-bezier(.7, 0, .3, 1) forwards; }
@keyframes wipeIn { 0% { transform: translateX(-100%); } 45%, 55% { transform: none; } 100% { transform: translateX(100%); } }
.wipe__emb { width: 54px; color: #fff; }
.wipe__emb svg { width: 100%; height: auto; display: block; }
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(10, 31, 59, .5); padding: 1rem; }
.modal__c { width: min(460px, 100%); background: #fff; border-radius: 16px; padding: 1.4rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .3); animation: entra .3s ease; }
.modal__c h3 { margin: 0 0 .6rem; font: 800 1.1rem var(--f-t); color: var(--navy); }
.wa-burbuja { background: #e7f8ee; border-radius: 12px 12px 12px 2px; padding: .8rem .9rem; font-size: .86rem; line-height: 1.55; margin: .8rem 0; white-space: pre-wrap; }
.modal__b { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1rem; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 220%); visibility: hidden; z-index: 95; background: var(--navy); color: #fff; padding: .75rem 1.1rem; border-radius: 12px; font: 600 .84rem var(--f-t); box-shadow: 0 14px 30px rgba(0, 0, 0, .25); transition: transform .4s cubic-bezier(.16, 1, .3, 1); max-width: 90vw; }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ── Leaflet ── */
.leaflet-container { font-family: var(--f-b); }
.leaflet-popup-content { margin: .7rem .8rem; font-size: .8rem; }
.leaflet-popup-content b { font-family: var(--f-t); color: var(--navy); }

/* ── Presentación guiada ── */
.guia { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.guia__lam { position: fixed; inset: 0; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%); color: #fff; display: grid; place-items: center; text-align: center; padding: 2rem; pointer-events: auto; animation: lam .6s ease both; }
@keyframes lam { from { opacity: 0; } }
.guia__lam .num { font: 700 .74rem var(--f-t); letter-spacing: .3em; color: var(--oro-l); }
.guia__lam h2 { font: 800 clamp(1.8rem, 4.5vw, 3.2rem); font-family: var(--f-t); margin: .6rem 0 .8rem; letter-spacing: -.02em; }
.guia__lam p { max-width: 620px; margin: 0 auto; color: rgba(255, 255, 255, .78); line-height: 1.65; font-size: 1.02rem; }
.guia__lam .ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: grid; place-items: center; background: rgba(176, 141, 87, .2); color: var(--oro-l); }
.guia__lam .ico i { width: 30px; height: 30px; }
.guia__lam .emb { width: 46px; margin: 0 auto 1.2rem; color: #fff; }
.guia__lam .emb svg { width: 100%; height: auto; display: block; }
.guia__agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; max-width: 760px; margin: 1.4rem auto 0; text-align: left; }
.guia__agenda div { padding: .6rem .8rem; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: .8rem; }
.guia__agenda b { color: var(--oro-l); margin-right: .4rem; }
.guia__foco { position: fixed; border-radius: 14px; box-shadow: 0 0 0 4px var(--oro), 0 0 0 9999px rgba(10, 31, 59, .45); transition: all .6s cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
.guia__txt { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(640px, 94vw); background: #fff; border-radius: 16px; padding: 1rem 1.2rem 1.1rem; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); pointer-events: auto; }
.guia__txt .k { font: 700 .62rem var(--f-t); letter-spacing: .16em; text-transform: uppercase; color: var(--oro-d); }
.guia__txt p { margin: .35rem 0 .7rem; font-size: .95rem; line-height: 1.55; color: var(--tinta); }
.guia__bar { height: 4px; border-radius: 4px; background: #eceae4; overflow: hidden; }
.guia__bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--oro)); }
.guia__ctl { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; font-size: .72rem; color: var(--gris); }
.guia__ctl button { border: 1px solid var(--linea); background: #fff; border-radius: 8px; padding: .3rem .6rem; font: 600 .72rem var(--f-t); color: var(--navy); }
.guia__ctl span { margin-left: auto; }
.guia__prog { position: fixed; top: 0; left: 0; height: 3px; background: var(--oro); z-index: 86; transition: width .6s ease; }

/* ── Responsive ── */
@media screen and (max-width: 1400px) { .bus { grid-template-columns: 250px 1fr; } }
@media screen and (max-width: 1180px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .hero, .sim, .prop { grid-template-columns: 1fr; }
  .g3 { grid-template-columns: 1fr 1fr; }
  .emb { grid-template-columns: repeat(3, 1fr); }
  .ruta { grid-template-columns: 1fr; }
}
@media screen and (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; transform: translateX(-100%); transition: transform .35s ease; z-index: 70; }
  .side.on { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
  .top__menu { display: inline-flex; }
  .top { padding: .7rem 1rem; }
  .top__acts .btn span { display: none; }
  .vista { padding: 1.1rem 1rem; }
  .honesto { margin: 0 1rem 1rem; }
  .bus { grid-template-columns: 1fr; }
  .filtros { position: static; max-height: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .emb { grid-template-columns: 1fr 1fr; }
  .mapa { height: 340px; }
  .mapa--alto { height: 380px; }
  .zona { grid-template-columns: 100px 1fr 46px; }
}
@media screen and (max-width: 390px) {
  .kpis { grid-template-columns: 1fr; }
  .emb { grid-template-columns: 1fr; }
  .fi__acts { grid-template-columns: repeat(2, 1fr); }
  .ofrecer { grid-template-columns: 1fr 1fr; }
  .ruta__res, .sim__mini { grid-template-columns: 1fr 1fr; }
  .gate__pin input { width: 48px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ajustes de ancho en celular */
html, body { overflow-x: clip; }
.top__q { min-width: 0; }
.ficha:not(.on) { visibility: hidden; transition: transform .45s cubic-bezier(.16, 1, .3, 1), visibility 0s .45s; }
@media screen and (max-width: 820px) { .top { gap: .5rem; } .top__acts { gap: .35rem; } .top__acts .btn { padding: .55rem .6rem; } }
