/* CASH Ecuador — pestañas (viajar, servicios, conducir, ofrecer, seguridad, nosotros, ayuda, contacto y legales).
   Cada pestaña abre con una portada nocturna y una escena viva propia; abajo, pasos con celular fijo, tarjetas y buscadores. */

/* ---------- portada de cada pestaña ---------- */
.ph { position: relative; margin-top: -77px; padding: calc(77px + clamp(36px, 6vw, 84px)) 0 clamp(56px, 7vw, 100px);
  background: linear-gradient(180deg, var(--night) 0%, #10264a 70%, var(--andes) 100%); color: #c7d3e6; overflow: hidden; isolation: isolate; }
.ph::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.ph-glow { position: absolute; inset: -20%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 22% 30%, rgba(14, 106, 68, .38), transparent 38%), radial-gradient(circle at 78% 68%, rgba(184, 148, 60, .2), transparent 42%);
  animation: ph-drift 18s ease-in-out infinite alternate; }
@keyframes ph-drift { to { transform: translate(4%, -3%) scale(1.06); } }
.ph-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.ph-solo .ph-grid { grid-template-columns: minmax(0, 1fr); }
.ph-title { color: #fff; font-size: clamp(36px, 4vw, 60px); max-width: 16ch; }
.ph-solo .ph-title { max-width: 20ch; }
.ph-lead { color: #c7d3e6; margin-top: 20px; }
.ph-cta { margin-top: 28px; }
.ph-scene { min-width: 0; }
.ph-hint { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 14px; font-weight: 600; color: #9fb1cb; }
.ph-hint span { color: var(--gold-hi); font-size: 10px; animation: sc-blink 1.6s ease-in-out infinite; }

/* título que sube palabra por palabra (sin JavaScript se ve quieto) */
.js .rise .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.js .rise .w > span { display: inline-block; animation: ph-rise 1s var(--ease) both; }
@keyframes ph-rise { from { transform: translateY(108%) rotate(4deg); } to { transform: none; } }

/* ---------- piezas comunes de las escenas ---------- */
.scene { position: relative; border-radius: 28px; padding: 18px; color: #dfe7f3; font-size: 15px; line-height: 1.4;
  background: linear-gradient(160deg, #13305c, #0b1c3a); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .07); }
.scene button { font-family: var(--font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.scene p, .scene ol, .scene ul { max-width: none; }
.scene svg { display: block; width: 100%; height: auto; }
.scene svg text { font-family: var(--font); }
.scene-cap { margin: 10px 2px 0; min-height: 1.4em; font-size: 14px; font-weight: 700; color: var(--mint); }
.map-stage { position: relative; min-width: 0; }
.map-svg { border-radius: 18px; background: #0d2143; }
.streets path { stroke: #1d3a66; stroke-width: 6; fill: none; }
.streets .av { stroke: #28497d; stroke-width: 11; }
.streets .park { fill: #15483b; stroke: none; }
.river { fill: none; stroke: #1c4d86; stroke-width: 10; opacity: .55; stroke-linecap: round; }
.route-base { fill: none; stroke: rgba(227, 194, 113, .18); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route { fill: none; stroke: var(--gold-hi); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(227, 194, 113, .7)); animation: sc-draw 2.4s var(--ease) .4s forwards; }
.route.trail { stroke: var(--mint); filter: drop-shadow(0 0 6px rgba(111, 220, 174, .7)); animation: none; }
html:not(.js) .route { stroke-dashoffset: 0; }
.pin-a circle { fill: var(--mint); } .pin-a .halo { fill: rgba(111, 220, 174, .3); }
.pin-b path { fill: var(--gold-hi); }
.pin-b .hole { fill: #0d2143; }
.halo, .me-halo, .car-halo { transform-box: fill-box; transform-origin: center; animation: sc-pulse 2.2s ease-out infinite; }
.halo { fill: rgba(111, 220, 174, .25); }
.me { fill: var(--mint); stroke: #0d2143; stroke-width: 3; }
.me-halo { fill: rgba(111, 220, 174, .18); }
.tw { fill: #fff; opacity: .5; animation: sc-twinkle 3.2s ease-in-out infinite; }
@keyframes sc-draw { to { stroke-dashoffset: 0; } }
@keyframes sc-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes sc-twinkle { 50% { opacity: .1; } }
@keyframes sc-blink { 50% { opacity: .3; } }
@keyframes sc-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes sc-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }

.scene-tabs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.scene-tabs button, .chips-dark button, .trades .chips button { min-height: 42px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: rgba(255, 255, 255, .07); color: #dfe7f3; border: 1px solid rgba(255, 255, 255, .16); transition: background .2s, color .2s, border-color .2s; cursor: pointer; font-family: var(--font); }
.scene-tabs button:hover, .chips-dark button:hover, .trades .chips button:hover { border-color: rgba(255, 255, 255, .4); }
.scene-tabs button[aria-pressed='true'], .chips-dark button[aria-pressed='true'], .trades .chips button[aria-pressed='true'] { background: var(--gold); color: var(--night); border-color: var(--gold); }
.hs-tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(111, 220, 174, .16); color: var(--mint); }
.pro-card .hs-tag { background: rgba(14, 106, 68, .1); color: var(--cash); }

/* ---------- servicios en casa: la casa abierta ---------- */
.house { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 16px; align-items: start; }
.house-svg { border-radius: 18px; background: linear-gradient(180deg, #0a1a36, #12305a); }
.room .bg { fill: #1b355e; transition: fill .6s; }
.room.on .bg { fill: #f3e7c9; }
.furn { fill: #2b4b7d; transition: fill .6s; } .furn2 { fill: #22406c; transition: fill .6s; }
.frame { fill: none; stroke: #43679f; stroke-width: 2; transition: stroke .6s; }
.pillow { fill: #3a5e94; }
.room.on .furn { fill: #3a5a8c; } .room.on .furn2 { fill: #2a4874; } .room.on .frame { stroke: #a88a46; }
.pipe { fill: none; stroke: #4a6fa8; stroke-width: 3; stroke-linecap: round; }
.room.on .pipe { stroke: #5b6f8e; }
.focus { fill: none; stroke: var(--gold-hi); stroke-width: 3; animation: hs-focus 1.6s ease-in-out infinite; }
@keyframes hs-focus { 50% { stroke-opacity: .35; } }
.drops circle { fill: #4aa3ff; opacity: 0; }
.broken .drops circle { animation: hs-drip 1.05s ease-in infinite; }
.broken .drops circle:nth-child(2) { animation-delay: .35s; } .broken .drops circle:nth-child(3) { animation-delay: .7s; }
@keyframes hs-drip { 0% { opacity: 0; transform: translateY(0); } 15% { opacity: 1; } 100% { opacity: .2; transform: translateY(26px); } }
.puddle { fill: #4aa3ff; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .6s, transform .6s; transform: scaleX(.3); }
.broken .puddle { opacity: .65; transform: none; }
.dirt { opacity: 0; transition: opacity .6s; }
.dirt ellipse { fill: #8a7550; opacity: .55; } .dirt path { fill: none; stroke: #6d5a3a; stroke-width: 2; }
.room-bed.broken .dirt { opacity: 1; }
.paint { fill: #8fe0bd; opacity: 0; transform-box: fill-box; transform-origin: left; transform: scaleX(0); }
.room-bed.fixed .paint { opacity: .32; transform: none; transition: transform 1.2s var(--ease), opacity .3s; }
.door rect { fill: #6a5134; }
.door .knob { fill: var(--gold-hi); }
.door { transform-box: fill-box; transform-origin: left; transition: transform .8s var(--ease); }
.room-living.fixed .door { transform: scaleX(.3); }
.lock { opacity: 0; transition: opacity .4s; }
.lock rect, .lock path { fill: none; stroke: #ff7b6b; stroke-width: 2.4; }
.room-living.broken .lock { opacity: 1; animation: sc-blink 1s ease-in-out infinite; }
.bulb { fill: #ffe9a8; transition: fill .4s; }
.glow { opacity: .55; transition: opacity .4s; }
.room-kitchen.on .glow { opacity: 1; }
.room-kitchen.broken .bulb { fill: #6b7a90; animation: hs-flicker 1.3s steps(1) infinite; }
.room-kitchen.broken .glow { animation: hs-flicker 1.3s steps(1) infinite; }
@keyframes hs-flicker { 0%, 40%, 60% { opacity: .15; } 20%, 50%, 80% { opacity: 1; } }
.sparks path { stroke: #ffcf4d; stroke-width: 2.2; stroke-linecap: round; opacity: 0; }
.room-kitchen.broken .sparks path { animation: hs-spark .45s ease-out infinite; }
.room-kitchen.broken .sparks path:nth-child(2) { animation-delay: .15s; } .room-kitchen.broken .sparks path:nth-child(3) { animation-delay: .3s; }
@keyframes hs-spark { 0% { opacity: 1; } 100% { opacity: 0; } }
.wk { opacity: 0; transition: opacity .5s, transform .9s var(--ease); }
.house.s5 .wk, .house.s6 .wk, .house.s7 .wk { opacity: 1; }
.wk-body { fill: var(--cash); } .wk-head { fill: #e8c49a; } .wk-hat { fill: var(--gold-hi); }
.wk-tool { stroke: #c7d3e6; stroke-width: 3; stroke-linecap: round; transform-box: fill-box; transform-origin: left bottom; }
.house.s6 .wk-tool { animation: hs-tool .35s ease-in-out infinite alternate; }
@keyframes hs-tool { to { transform: rotate(-35deg); } }
.house-svg .ok { opacity: 0; transition: opacity .4s; }
.house-svg .ok circle { fill: var(--cash); stroke: #fff; stroke-width: 2.5; }
.house-svg .ok path { fill: none; stroke: #fff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.house.s6 .ok, .house.s7 .ok { opacity: 1; }

.house-panel { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hs-req { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08);
  opacity: .35; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.hs-req.in { opacity: 1; transform: none; }
.hs-req b { display: block; margin: 7px 0 2px; font-size: 16px; color: #fff; }
.hs-req small { color: #9fb1cb; font-size: 12.5px; }
.hs-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hs-offers li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 14px;
  background: #fff; color: var(--andes); box-shadow: 0 10px 24px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translateX(24px);
  transition: opacity .5s, transform .5s var(--ease), outline-color .3s; outline: 3px solid transparent; outline-offset: -1px; }
.hs-offers li.in { opacity: 1; transform: none; }
.hs-offers li.pick { outline-color: var(--gold-hi); transform: scale(1.03); }
.hs-offers li.dim { opacity: .4; }
.hs-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e6edf7; font-size: 12.5px; font-weight: 800; }
.hs-who { min-width: 0; }
.hs-who b { display: block; font-size: 14px; line-height: 1.2; }
.hs-who small { color: var(--muted); font-size: 12px; }
.hs-pr { font-size: 16px; font-weight: 800; }
.hs-vault { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; font-size: 14px; font-weight: 700; color: #c7d3e6;
  background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .22); transition: background .4s, border-color .4s, color .4s; }
.hs-vault.held { background: rgba(184, 148, 60, .14); border-color: var(--gold); color: #fff; }
.hs-vault.free { background: rgba(111, 220, 174, .14); border-color: var(--mint); color: #fff; }
.hs-coin { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--night); font-weight: 800; }
.hs-vault.held .hs-coin { animation: hs-coin .7s var(--ease); }
.hs-vault.free .hs-coin { background: var(--mint); }
@keyframes hs-coin { from { transform: translateY(-34px) rotate(-200deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- viajar: el precio lo pones tú ---------- */
.price { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 16px; align-items: start; }
.car { transition: transform 1.3s var(--ease), opacity .4s; }
.car rect { fill: #e8eef8; }
.car-halo { fill: rgba(255, 255, 255, .08); }
.car-ok rect { fill: var(--mint); } .car-ok .car-halo { fill: rgba(111, 220, 174, .3); }
.car-counter rect { fill: var(--gold-hi); } .car-counter .car-halo { fill: rgba(227, 194, 113, .22); }
.car-none { opacity: .35; } .car-none .car-tag { display: none; }
.car-tag rect { fill: #0b1c3a; stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.car-ok .car-tag rect { fill: var(--cash); stroke: none; }
.car-tag text { fill: #fff; font-size: 10.5px; font-weight: 800; }
.price-panel { padding: 16px; border-radius: 20px; background: #fff; color: var(--andes); min-width: 0; }
.pp-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pp-top span { font-weight: 800; }
.pp-top small { color: var(--muted); font-size: 12.5px; }
.pp-ctrl { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; margin-top: 8px; }
.pp-ctrl button, .pc-price button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--andes);
  font-size: 24px; font-weight: 700; line-height: 1; transition: border-color .2s, background .2s, transform .15s; }
.pp-ctrl button:hover, .pc-price button:hover { border-color: var(--andes); }
.pp-ctrl button:active, .pc-price button:active { transform: scale(.92); background: var(--mist); }
.pp-price { text-align: center; font-size: clamp(36px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.pp-range { width: 100%; margin: 6px 0 0; accent-color: var(--gold); }
.pp-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 7px; }
.pp-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px;
  background: var(--mist); animation: sc-in .4s var(--ease); }
.pp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.pp-list li.ok .pp-dot { background: var(--cash); }
.pp-who { min-width: 0; }
.pp-who b { display: block; font-size: 14px; } .pp-who small { display: block; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-offer { text-align: right; } .pp-offer b { display: block; font-size: 15px; } .pp-offer small { font-size: 11.5px; font-weight: 700; color: #8a6d2f; }
.pp-list li.ok .pp-offer small { color: var(--cash); }
.pp-list .empty { display: block; color: var(--muted); font-size: 14px; background: none; }

/* ---------- conducir: pedidos que llegan ---------- */
.driver { display: grid; gap: 12px; }
.dv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dv-switch { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 16px 6px 6px; border-radius: 999px; font-size: 14px; font-weight: 800;
  background: rgba(111, 220, 174, .14); color: #fff; border: 1px solid rgba(111, 220, 174, .45); transition: background .3s, border-color .3s; }
.dv-switch .knob { width: 30px; height: 30px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(111, 220, 174, .2); transition: background .3s, box-shadow .3s; }
.dv-switch[aria-checked='false'] { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .2); }
.dv-switch[aria-checked='false'] .knob { background: #6b7a90; box-shadow: none; }
.dv-earn { display: grid; text-align: right; line-height: 1.15; }
.dv-earn small { font-size: 11.5px; color: #9fb1cb; }
.dv-earn b { font-size: 24px; color: var(--gold-hi); }
.dv-map svg { border-radius: 18px; background: #0d2143; transition: opacity .4s, filter .4s; }
.driver.off .dv-map svg { opacity: .4; filter: grayscale(1); }
.dv-path { fill: none; stroke: var(--gold-hi); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .03 .025; animation: dv-march 1.2s linear infinite; }
.dv-path.go { stroke: var(--mint); }
@keyframes dv-march { to { stroke-dashoffset: -.11; } }
.dv-pin circle { fill: var(--gold-hi); } .dv-pin .halo { fill: rgba(227, 194, 113, .3); }
.dv-pin.won circle { fill: var(--mint); }
.dv-card { padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--andes); animation: sc-in .5s var(--ease); }
.dv-card.missed { opacity: .75; }
.dv-head { display: flex; justify-content: space-between; align-items: center; }
.dv-kind { padding: 3px 10px; border-radius: 999px; background: var(--mist); font-size: 12px; font-weight: 800; }
.scene .dv-ring { width: 30px; transform: rotate(-90deg); }
.dv-ring circle { fill: none; stroke: var(--gold); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dv-ring.run circle { animation: dv-ring linear forwards; animation-duration: inherit; }
@keyframes dv-ring { to { stroke-dashoffset: 1; } }
.dv-who { margin: 8px 0 6px; font-size: 14px; color: var(--muted); } .dv-who b { font-size: 16px; color: var(--andes); }
.dv-route { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.dv-route li { position: relative; padding-left: 20px; font-size: 14.5px; font-weight: 700; }
.dv-route li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--cash); }
.dv-route li + li::before { background: var(--gold); }
.dv-meta { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.dv-price { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 12px; }
.dv-price small { color: var(--muted); font-size: 13px; } .dv-price b { font-size: 32px; letter-spacing: -.03em; }
.dv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dv-actions.chips { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
.dv-actions button { min-height: 48px; border-radius: 999px; font-size: 15px; font-weight: 800; border: 2px solid var(--line); background: #fff; color: var(--andes);
  transition: transform .15s, background .2s; }
.dv-actions button:active { transform: scale(.96); }
.dv-actions .go { background: var(--cash); border-color: var(--cash); color: #fff; }
.dv-actions.chips button { background: var(--gold-soft); border-color: var(--gold); }
.dv-note { margin: 0; padding: 11px 13px; border-radius: 12px; background: var(--mist); font-size: 14.5px; font-weight: 700; animation: sc-in .4s var(--ease); }
.dv-note.won { background: rgba(14, 106, 68, .1); color: var(--cash-deep); }
.dv-note.wait { animation: sc-blink 1.2s ease-in-out infinite; }
.dv-card.offline { background: rgba(255, 255, 255, .06); color: #c7d3e6; }
.dv-card.offline .dv-note { background: none; padding: 4px 0; }

/* ---------- seguridad: viaje acompañado ---------- */
.guard { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 14px; align-items: start; }
.shield-rings circle { fill: none; stroke: rgba(111, 220, 174, .35); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: gd-ring 3.6s ease-out infinite; }
.shield-rings circle:nth-child(2) { animation-delay: 1.2s; } .shield-rings circle:nth-child(3) { animation-delay: 2.4s; }
.guard.help .shield-rings circle, .guard.ask .shield-rings circle { stroke: rgba(255, 123, 107, .5); }
@keyframes gd-ring { 0% { transform: scale(.25); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.car-dot { fill: #fff; stroke: var(--cash); stroke-width: 3; }
.g-car .car-halo { fill: rgba(255, 255, 255, .18); }
.guard.stop .g-car .car-halo, .guard.ask .g-car .car-halo { fill: rgba(227, 194, 113, .5); }
.g-ask { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(290px, 92%); padding: 15px 16px; border-radius: 18px;
  background: #fff; color: var(--andes); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); animation: gd-pop .45s var(--ease); }
@keyframes gd-pop { from { opacity: 0; transform: translate(-50%, -40%) scale(.92); } }
.g-ask b { display: block; font-size: 19px; }
.g-ask span { display: block; margin: 4px 0 12px; font-size: 13.5px; color: var(--muted); }
.g-ask div { display: flex; gap: 8px; }
.g-ask button { flex: 1; min-height: 44px; border-radius: 999px; border: 0; font-size: 14px; font-weight: 800; color: #fff; }
.g-ask .ok { background: var(--cash); } .g-ask .sos { background: #c8463a; }
.g-sos { position: absolute; inset: 0 0 30px; border-radius: 18px; background: rgba(10, 24, 48, .93); display: grid; place-content: center; justify-items: center;
  gap: 8px; padding: 20px; text-align: center; color: #fff; animation: sc-in .4s var(--ease); }
.g-sos-btn { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #c8463a; font-size: 20px; font-weight: 800;
  box-shadow: 0 0 0 0 rgba(200, 70, 58, .6); animation: gd-sos 1.4s ease-out infinite; }
@keyframes gd-sos { to { box-shadow: 0 0 0 26px rgba(200, 70, 58, 0); } }
.g-sos span:last-child { font-size: 13.5px; color: #c7d3e6; max-width: 30ch; }
.guard-panel { display: grid; gap: 12px; align-content: start; min-width: 0; }
.gp-title { margin: 0; font-size: 13px; font-weight: 700; color: #9fb1cb; }
.gp-people, .gp-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.gp-people li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.gp-people .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--andes-2); color: #fff; font-size: 13px; font-weight: 800; }
.gp-people b { flex: 1; font-size: 14px; color: #fff; }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(111, 220, 174, .6); animation: gd-live 1.6s ease-out infinite; }
@keyframes gd-live { to { box-shadow: 0 0 0 9px rgba(111, 220, 174, 0); } }
.gp-checks li { position: relative; padding-left: 26px; font-size: 13.5px; font-weight: 700; color: #7f93b0; transition: color .4s; }
.gp-checks li::before { content: ''; position: absolute; left: 0; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 10px; font-weight: 900; color: var(--night); transition: background .4s, border-color .4s; }
.gp-checks li.on { color: #fff; }
.gp-checks li.on::before { content: '✓'; background: var(--mint); border-color: var(--mint); }
.bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-left: 6px; vertical-align: middle; }
.bars i { width: 3px; height: 4px; border-radius: 2px; background: #ff8a7a; animation: gd-bars .8s ease-in-out infinite alternate; }
.bars i:nth-child(2) { animation-delay: .2s; } .bars i:nth-child(3) { animation-delay: .4s; } .bars i:nth-child(4) { animation-delay: .1s; }
@keyframes gd-bars { to { height: 12px; } }

/* ---------- ofrecer servicios: el lado del profesional ---------- */
.scene.pro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 14px; align-items: start; }
.req-pin circle { fill: var(--gold-hi); } .req-pin .halo { fill: rgba(227, 194, 113, .25); }
.req-pin.main circle { fill: var(--mint); } .req-pin.main .halo { fill: rgba(111, 220, 174, .3); }
.pro-card { position: relative; margin: -56px 10px 0 auto; max-width: 280px; padding: 12px 14px; border-radius: 18px; background: #fff; color: var(--andes);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .7); }
.pc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rec { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; background: #c8463a; color: #fff; font-size: 11px; font-weight: 800; }
.rec::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: sc-blink 1s infinite; }
.pro-card > b { display: block; margin-top: 7px; font-size: 15.5px; }
.pro-card > small { color: var(--muted); font-size: 12.5px; }
.pc-price { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: 8px 0 4px; }
.pc-price button { width: 44px; height: 44px; font-size: 22px; }
.pc-price output { text-align: center; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.pc-state { margin: 0; font-size: 13px; font-weight: 800; color: var(--cash); }
.pro-panel { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pro-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.pro-steps li { position: relative; padding: 7px 10px 7px 32px; border-radius: 10px; font-size: 13.5px; font-weight: 700; color: #7f93b0; transition: background .4s, color .4s; }
.pro-steps li::before { content: ''; position: absolute; left: 10px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%; box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, .25); transition: background .4s, border-color .4s, box-shadow .4s; }
.pro-steps li.done { color: #c7d3e6; } .pro-steps li.done::before { background: var(--mint); border-color: var(--mint); }
.pro-steps li.now { background: rgba(255, 255, 255, .08); color: #fff; }
.pro-steps li.now::before { border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(227, 194, 113, .25); }
.pro-wallet { display: grid; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .06); transition: background .4s; }
.pro-wallet small { font-size: 12px; color: #9fb1cb; }
.pro-wallet b { font-size: 26px; color: #fff; }
.pro-wallet span { font-size: 13px; font-weight: 700; color: #c7d3e6; }
.pro-wallet.up { background: rgba(111, 220, 174, .14); } .pro-wallet.up b { color: var(--mint); animation: sc-pop .5s var(--ease); }

/* ---------- nosotros: noche andina ---------- */
.scene.andes { padding: 0; overflow: hidden; }
.andes .ly { transition: transform .5s ease-out; }
.andes .ly1 { transform: translate(calc(var(--px, 0) * -8px), calc(var(--py, 0) * -4px)); }
.andes .ly2 { transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -7px)); }
.andes .ly3 { transform: translate(calc(var(--px, 0) * -26px), calc(var(--py, 0) * -10px)); }
.andes .city { fill: #ffd98a; animation: sc-twinkle 2.6s ease-in-out infinite; }
.andes .road { fill: none; stroke: #081429; stroke-width: 7; stroke-linecap: round; }
.andes .head { fill: #fff6d0; filter: drop-shadow(0 0 4px #fff3c0); }
.andes .tail { fill: #ff6b5b; filter: drop-shadow(0 0 4px #ff6b5b); }
.andes-badge { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 13px; font-weight: 800; }

/* ---------- contacto: conversación con Ayuda ---------- */
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cash); color: #fff; font-weight: 800; }
.chat-head b { display: block; color: #fff; } .chat-head small { color: var(--mint); font-size: 12.5px; font-weight: 700; }
.chat-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }
.chat-list li { align-self: flex-start; max-width: 84%; padding: 10px 14px; border-radius: 18px 18px 18px 5px; background: #fff; color: var(--andes); font-size: 15px;
  animation: sc-in .4s var(--ease); }
.chat-list li.me { align-self: flex-end; border-radius: 18px 18px 5px 18px; background: var(--cash); color: #fff; }
.chat-list .typing { display: inline-flex; gap: 5px; padding: 13px 15px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb1cb; animation: ch-dot 1s ease-in-out infinite; }
.typing.me i { background: #d8f3e8; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ch-dot { 50% { transform: translateY(-4px); opacity: .5; } }

/* ---------- buscadores ---------- */
.search { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--muted);
  border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 5px rgba(184, 148, 60, .2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 500 17px var(--font); color: var(--andes); }
.search .ico { flex: none; }
.search-big { min-height: 64px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7); }
.search-big input { font-size: 18px; }
.ph-search { margin-top: 28px; max-width: 640px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- pasos con celular fijo ---------- */
.story { padding: clamp(64px, 8vw, 120px) 0; background: var(--paper); }
.story-grid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.story-side { position: sticky; top: 108px; display: grid; justify-items: center; gap: 18px; }
.story-phone { width: min(270px, 100%); }
.story-phone > img, .story-phone > video { position: absolute; inset: 10px; width: calc(100% - 20px); height: calc(100% - 20px); opacity: 0; transform: scale(1.04);
  transition: opacity .6s var(--ease), transform .8s var(--ease); }
.story-phone > .on { opacity: 1; transform: none; }
.story-count { display: flex; align-items: baseline; gap: 8px; }
.story-count b { font-size: 56px; line-height: 1; color: var(--andes); letter-spacing: -.04em; }
.story-count span { color: var(--muted); font-weight: 700; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-steps li { position: relative; min-height: 34vh; padding: 26px 0 26px 76px; scroll-margin-top: 100px; transition: opacity .5s; }
.story-steps li::before { content: ''; position: absolute; left: 23px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.story-steps li:first-child::before { top: 40px; } .story-steps li:last-child::before { bottom: auto; height: 40px; }
.story-n { position: absolute; left: 0; top: 24px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; z-index: 1;
  background: var(--mist); color: var(--andes); font-size: 18px; font-weight: 800; border: 4px solid var(--paper); transition: background .4s, color .4s, transform .4s var(--ease); }
.story-steps li.on .story-n { background: var(--gold); color: var(--night); transform: scale(1.12); }
.story-steps li.past .story-n { background: var(--cash); color: #fff; }
.story-steps h2 { font-size: clamp(26px, 2.8vw, 38px); margin: 6px 0 12px; }
.story-steps p { color: var(--muted); }
.js .story-steps li { opacity: .38; }
.js .story-steps li.on { opacity: 1; } .js .story-steps li.past { opacity: .6; }

/* ---------- tarjetas ---------- */
.cards-band { padding: clamp(64px, 8vw, 110px) 0; background: var(--mist); }
.cards-title { max-width: 18ch; margin-bottom: clamp(28px, 4vw, 48px); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.card { position: relative; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { box-shadow: 0 30px 60px -34px rgba(10, 24, 48, .45); }
.card-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px; background: var(--gold-soft); color: #8a6d2f; flex: none; }
.card:nth-child(3n + 2) .card-ico { background: rgba(14, 106, 68, .1); color: var(--cash); }
.card:nth-child(3n) .card-ico { background: #e4ecf8; color: var(--andes-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 16.5px; line-height: 1.55; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .card.wide { grid-column: span 2; } }
.company-band { padding-top: 0; }

/* ---------- oficios ---------- */
.trades { padding: clamp(64px, 8vw, 110px) 0; background: linear-gradient(180deg, var(--andes), var(--night)); color: #c7d3e6; }
.trades h2 { color: #fff; }
.trades .lead { color: #c7d3e6; margin-top: 14px; }
.trades-head { max-width: 860px; }
.trades .search { margin-top: 24px; max-width: 620px; }
.trades-count { min-height: 1.5em; margin: 20px 0 10px; font-size: 15px; font-weight: 700; color: var(--mint); }
.faq-band .trades-count { color: var(--muted); margin-top: 0; }
.trade-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.trade-group { padding: 18px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); animation: sc-in .4s var(--ease); }
.trade-group h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; color: #fff; }
.trade-group h3 .ico { color: var(--gold-hi); flex: none; }
.trade-group h3 small { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); color: var(--mint); font-size: 12px; }
.trade-group ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trade-group li { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: #e5ecf6; font-size: 14px; }
.trades .empty { color: #c7d3e6; }

/* ---------- ayuda ---------- */
.faq-band { padding: clamp(40px, 5vw, 70px) 0 clamp(64px, 8vw, 110px); background: var(--mist); }
.faq-cards { display: grid; gap: 12px; max-width: 920px; }
.faq.faq-cards details { padding: 16px 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; transition: box-shadow .3s; }
.faq-cards details[open] { box-shadow: 0 24px 50px -30px rgba(10, 24, 48, .4); }
.faq-cards summary { align-items: center; gap: 14px; }
.faq-cards summary .card-ico { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.faq-cards summary .q { flex: 1; }
.faq-cards details p { padding-left: 54px; }
.faq-cards .empty { color: var(--muted); }

/* ---------- celular y tableta ---------- */
@media (max-width: 1000px) {
  .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-title { max-width: 18ch; }
}
@media (max-width: 640px) {
  .scene { padding: 12px; border-radius: 22px; }
  .house, .price, .guard, .scene.pro { grid-template-columns: minmax(0, 1fr); }
  .pro-card { margin: -40px auto 0; }
  .story-grid { grid-template-columns: minmax(0, 1fr); }
  .story-side { display: none; }
  .story-steps li { min-height: 0; padding-left: 64px; }
  .js .story-steps li { opacity: 1; }
  .faq-cards details p { padding-left: 0; }
  .dv-price b { font-size: 28px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .story-grid { grid-template-columns: 220px minmax(0, 1fr); }
}

/* ---------- reducir movimiento ---------- */
@media (prefers-reduced-motion: reduce) {
  .ph-glow, .scene *, .rise .w > span, .ph-hint span { animation: none !important; transition: none !important; }
  .route { stroke-dashoffset: 0; }
}

/* ---------- portadas en 3D (escena a pantalla completa; el panel flota encima como vidrio) ---------- */
.ph3d { min-height: 100svh; display: flex; align-items: center; background: var(--night); }
.ph3d .ph-grid { grid-template-columns: minmax(0, 1fr) minmax(300px, 370px); width: 100%; }
.ph3d .ph-copy { max-width: 540px; position: relative; z-index: 2; }
.ph3d .ph-scene { position: relative; z-index: 2; }
.ph3d .ph-title { font-size: clamp(36px, 3.6vw, 56px); text-shadow: 0 4px 30px rgba(5, 12, 28, .6); }
.ph3d .ph-lead { text-shadow: 0 2px 16px rgba(5, 12, 28, .8); }
.ph-stage { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.ph-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.4s var(--ease); }
.ph3d.is-3d .ph-canvas { opacity: 1; }
.ph-stage::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 16, 34, .88) 0%, rgba(7, 16, 34, .55) 30%, rgba(7, 16, 34, 0) 52%),
              linear-gradient(0deg, rgba(10, 24, 48, .95) 0%, rgba(10, 24, 48, 0) 18%), linear-gradient(180deg, rgba(7, 16, 34, .6) 0%, rgba(7, 16, 34, 0) 16%); }
.ph-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.ph3d.is-3d .scene { background: rgba(10, 24, 48, .58); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-color: rgba(255, 255, 255, .14); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); }
.ph3d.is-3d .house, .ph3d.is-3d .price, .ph3d.is-3d .guard, .ph3d.is-3d .scene.pro { grid-template-columns: minmax(0, 1fr); }
.ph3d.is-3d .pro-card { margin: 0; max-width: none; }
.ph3d.is-3d .g-ask, .ph3d.is-3d .g-sos { position: relative; left: auto; top: auto; inset: auto; transform: none; width: auto; margin-top: 10px; animation: sc-in .4s var(--ease); }
.ph3d.is-3d .g-sos { background: rgba(10, 24, 48, .7); border-radius: 18px; }
.ph3d.is-3d .dv-map:empty, .ph3d.is-3d .map-stage:empty { display: none; }
.ph3d .scene.chat.is3d { height: 1px; padding: 0; border: 0; background: none; box-shadow: none; }
.ph3d .scene-cap { margin-top: 0; }
.ph3d.is-3d .house-stage { order: 9; }

/* etiquetas pegadas a la escena 3D */
.w-lbl { position: absolute; left: 0; top: 0; margin-top: -10px; padding: 7px 12px; border-radius: 999px; white-space: nowrap; opacity: 0;
  font: 700 13.5px/1.2 var(--font); color: #fff; background: rgba(10, 24, 48, .8); border: 1px solid rgba(255, 255, 255, .2);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .7); transition: opacity .35s; will-change: transform; }
.w-lbl b { color: var(--gold-hi); }
.w-lbl i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.w-lbl .dot-red { background: #ff6b5b; box-shadow: 0 0 0 0 rgba(255, 107, 91, .6); animation: gd-live 1.2s ease-out infinite; }
.w-lbl .dot-ok { background: var(--mint); }
.w-issue.ok { border-color: var(--mint); }
.w-coin { border-color: var(--gold); }
.w-price.ok { background: var(--cash); border-color: var(--mint); }
.w-price.counter { background: var(--gold); color: var(--night); border-color: var(--gold-hi); }
.w-req { border-color: var(--gold); }
.w-req.won { border-color: var(--mint); background: rgba(14, 106, 68, .85); }
.w-req.won b { color: #fff; }
.w-live { background: #c8463a; border-color: #ff8a7a; }
.w-live i { background: #fff; animation: sc-blink 1s infinite; }
.w-watch i { background: var(--mint); animation: gd-live 1.6s ease-out infinite; }
.w-place { background: none; border: 0; box-shadow: none; font-size: 15px; letter-spacing: .02em; color: rgba(255, 255, 255, .85); text-shadow: 0 2px 10px rgba(0, 0, 0, .9); }

@media (max-width: 1000px) {
  .ph3d { display: block; min-height: 0; }
  .ph3d .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .ph3d .ph-stage { position: relative; inset: auto; height: min(64vh, 560px); margin: 18px calc(-1 * var(--gutter)) 0; }
  .ph-stage::after { background: linear-gradient(180deg, rgba(10, 24, 48, .9) 0%, rgba(10, 24, 48, 0) 18%, rgba(10, 24, 48, 0) 80%, rgba(10, 24, 48, .95) 100%); }
  .ph3d .ph-scene { margin-top: -60px; }
  .ph3d.ph-ayuda .ph-stage, .ph3d.ph-nosotros .ph-stage { margin-bottom: 0; }
}
@media (max-width: 640px) { .w-lbl { font-size: 12px; padding: 6px 10px; } }

/* 3D: el panel va bajo el texto y la escena ocupa la derecha; lo que ya se ve en 3D no se repite en el panel */
@media (min-width: 1001px) {
  .ph3d .ph-grid { grid-template-columns: minmax(0, 540px); }
  .ph3d .ph-scene { max-width: 440px; margin-top: 26px; }
  .ph3d .ph-lead { font-size: 17.5px; }
  .ph3d .ph-cta { margin-top: 22px; }
}
.ph3d.is-3d .hs-req, .ph3d.is-3d .hs-offers, .ph3d.is-3d .pp-list, .ph3d.is-3d .gp-people, .ph3d.is-3d .gp-title { display: none; }
.ph3d.is-3d .pro-steps li:not(.now) { display: none; }
.ph3d.is-3d .pro-wallet { display: none; }
.ph3d.is-3d .scene { padding: 14px; }
.ph3d.is-3d .gp-checks { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.ph3d.is-3d .guard-panel { margin-top: 10px; }
.w-offer { display: grid; grid-template-columns: auto auto auto; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--andes); border: 2px solid transparent; transition: opacity .35s, border-color .3s, filter .3s; }
.w-offer .av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #e6edf7; font-size: 12px; font-weight: 800; }
.w-offer .nm b { display: block; color: var(--andes); font-size: 13.5px; }
.w-offer .nm small { color: var(--muted); font-size: 11.5px; }
.w-offer em { font-style: normal; font-weight: 800; font-size: 16px; color: var(--andes); }
.w-offer.pick { border-color: var(--gold-hi); box-shadow: 0 0 0 4px rgba(227, 194, 113, .3), 0 14px 30px -10px rgba(0, 0, 0, .7); }
.w-offer.dim { filter: opacity(.45); }

/* ---------- portada corporativa: teléfono 3D al lado del texto (lienzo transparente sobre el fondo de la página) ---------- */
.ph-side { min-height: 0; padding-bottom: clamp(40px, 5vw, 72px); }
.ph-side .ph-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; }
.ph-side .ph-copy { grid-column: 1; grid-row: 1; max-width: 560px; }
.ph-side .ph-scene { grid-column: 1; grid-row: 2; max-width: 520px; margin-top: 28px; }
.ph-side .ph-stage { grid-column: 2; grid-row: 1 / span 2; position: relative; inset: auto; height: clamp(520px, 72vh, 760px); z-index: 1; }
.ph-side .ph-stage::after { display: none; }
.ph-side .ph-canvas { opacity: 1; }
.ph-side .ph-layer { display: none; }
.ph-side .ph-glow { display: block; }
.ph-side.is-3d .scene { background: rgba(10, 24, 48, .6); border-color: rgba(255, 255, 255, .12); }
/* en la portada corporativa el panel muestra todo (mapa, lista) */
.ph-side.is-3d .hs-offers, .ph-side.is-3d .pp-list, .ph-side.is-3d .gp-people, .ph-side.is-3d .pro-wallet { display: grid; }
.ph-side.is-3d .hs-req, .ph-side.is-3d .gp-title { display: block; }
.ph-side.is-3d .gp-checks { grid-template-columns: minmax(0, 1fr); }
.ph-side.is-3d .pro-steps li:not(.now) { display: block; }
@media (min-width: 641px) { .ph-side.is-3d .house, .ph-side.is-3d .price, .ph-side.is-3d .guard, .ph-side.is-3d .scene.pro { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
@media (min-width: 641px) { .ph-side.is-3d .pro-card { margin: -56px 10px 0 auto; max-width: 280px; } }
.ph-side.is-3d .g-ask { position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: min(290px, 92%); margin: 0; }
.ph-side.is-3d .g-sos { position: absolute; inset: 0 0 30px; margin: 0; }
.ph-side.is-3d .house-stage { order: 0; }
.ph-side.is-3d .scene { padding: 18px; }
@media (max-width: 1000px) {
  .ph-side .ph-grid { grid-template-columns: minmax(0, 1fr); }
  .ph-side .ph-copy, .ph-side .ph-scene, .ph-side .ph-stage { grid-column: 1; grid-row: auto; }
  .ph-side .ph-stage { height: min(60vh, 520px); margin: 0 calc(-1 * var(--gutter)); }
  .ph-side .ph-scene { margin-top: 0; }
}
.ph-side .ph-grid { align-items: start; }
.ph-side .ph-stage { align-self: start; margin-top: -24px; height: clamp(520px, 70vh, 700px); }
@media (max-width: 1000px) { .ph-side .ph-stage { margin-top: 0; } }

/* ---------- ajustes de celular ---------- */
/* la franja inclinada es más ancha que la pantalla a propósito: se recorta aquí (clip no rompe el menú fijo ni el celular fijo de los pasos) */
main { overflow-x: clip; }
@media (max-width: 640px) {
  .ph { padding-top: calc(77px + 22px); }
  .ph-title { font-size: clamp(30px, 8.6vw, 38px); }
  .ph .ph-lead { font-size: 16.5px; line-height: 1.55; margin-top: 14px; }
  .ph .ph-cta, .ph .btn-row { margin-top: 20px; }
  .ph .btn { min-height: 50px; }
  .ph .hero-access { margin-top: 14px; }
  .ph-side .ph-stage { height: min(58vh, 440px); margin-top: 6px; }
  .ph3d.ph-full .ph-stage { height: min(52vh, 420px); }
  .ph-search { margin-top: 20px; }
  .search-big { min-height: 56px; }
  .pp-price { font-size: 38px; }
  .pro-wallet b { font-size: 24px; }
}

/* ---------- Flotas: el panel de seguimiento en pequeño ---------- */
.scene.fleet { display: grid; gap: 12px; }
.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13.5px; }
.fl-live { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-weight: 800; color: #fff; background: rgba(111, 220, 174, .14); border: 1px solid rgba(111, 220, 174, .45); }
.fl-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: fl-blink 1.4s ease-in-out infinite; }
@keyframes fl-blink { 50% { opacity: .25; } }
.fl-count { color: #9fb1cb; } .fl-count b { color: #fff; font-size: 16px; }
.fl-alert { margin-left: auto; padding: 5px 12px; border-radius: 999px; font-weight: 700; color: #9fb1cb; background: rgba(255, 255, 255, .06); transition: background .3s, color .3s; }
.fl-alert.on { color: #fff; background: #b3261e; animation: sc-in .35s var(--ease); }
.fl-map svg { border-radius: 18px; background: #0d2143; }
.fl-zone circle { fill: rgba(232, 201, 122, .1); stroke: var(--gold-hi); stroke-width: 1.5; stroke-dasharray: 5 4; }
.fl-zone text, .fl-car text { font-size: 10px; font-weight: 700; fill: #c9d6ea; paint-order: stroke; stroke: #0d2143; stroke-width: 3px; }
.fl-zone text { fill: var(--gold-hi); }
.fl-trail { fill: none; stroke: rgba(111, 220, 174, .45); stroke-width: 2.5; stroke-dasharray: 2 5; stroke-linecap: round; }
.fl-car { cursor: pointer; }
.fl-car path, .fl-car > circle:not(.ring) { fill: var(--mint); stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; transition: fill .3s; }
.fl-car.fast path { fill: #ff6b5e; } .fl-car.park > circle:not(.ring) { fill: var(--gold-hi); } .fl-car.off > circle:not(.ring) { fill: #7c8aa1; }
.fl-car .ring { fill: rgba(255, 255, 255, .1); stroke: #fff; stroke-width: 1.5; animation: sc-pulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.fl-car.sel text { fill: #fff; }
.fl-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.fl-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fl-list button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 46px; padding: 7px 12px; border-radius: 14px; text-align: left; color: #dfe7f3;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background .25s, border-color .25s; }
.fl-list button:hover { border-color: rgba(255, 255, 255, .35); }
.fl-list button[aria-pressed='true'] { background: rgba(232, 201, 122, .14); border-color: var(--gold-hi); }
.fl-list span { display: grid; line-height: 1.2; min-width: 0; } .fl-list b { font-size: 14px; color: #fff; }
.fl-list small { font-size: 12px; color: #9fb1cb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleet .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); }
.fleet .dot.fast { background: #ff6b5e; } .fleet .dot.park { background: var(--gold-hi); } .fleet .dot.off { background: #7c8aa1; }
.fl-card { padding: 14px 16px; border-radius: 20px; background: #fff; color: var(--andes); animation: sc-in .45s var(--ease); }
.fl-name { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0; }
.fl-name b { font-size: 18px; } .fl-name span { font-size: 12.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--mist); }
.fl-driver { margin: 2px 0 10px; font-size: 13px; color: #5b6880; }
.fl-card dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 10px; }
.fl-card dl div { padding: 8px 6px; border-radius: 12px; background: var(--mist); text-align: center; }
.fl-card dt { font-size: 11px; color: #5b6880; } .fl-card dd { margin: 0; font-size: 15px; font-weight: 800; }
.fl-card dd.bad { color: #b3261e; }
.fl-note { margin: 0; padding: 9px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 700; background: var(--mist); }
.fl-note.ok { background: rgba(14, 106, 68, .1); color: var(--cash-deep); } .fl-note.bad { background: rgba(179, 38, 30, .1); color: #b3261e; } .fl-note.off { color: #5b6880; }
.ph-side.is-3d .fl-list { display: grid; }
@media (max-width: 640px) { .fl-body { grid-template-columns: minmax(0, 1fr); } .fl-alert { margin-left: 0; } }

/* ---------- Flotas: vitrina del centro de control ---------- */
.fleet-show { position: relative; padding: 96px 0 104px; background: radial-gradient(1200px 520px at 78% 0%, #1b3a6b 0%, rgba(27, 58, 107, 0) 60%), var(--night); color: #c7d3e6; overflow: hidden; }
.fleet-show::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.fleet-show .wrap { position: relative; }
.fs-head { max-width: 760px; margin-bottom: 34px; }
.fs-head h2 { margin: 0 0 12px; color: #fff; font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.fs-head p { margin: 0; font-size: 18px; line-height: 1.55; color: #b5c3da; }
.fs-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.fs-tabs button { position: relative; overflow: hidden; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); color: #c7d3e6; font: 700 14.5px var(--font); cursor: pointer; transition: background .25s, border-color .25s, color .25s; }
.fs-tabs button:hover { border-color: rgba(255,255,255,.4); color: #fff; }
.fs-tabs button[aria-selected=true] { background: #fff; color: var(--andes); border-color: #fff; }
.fs-tabs button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.fs-tabs button.run i { animation: fs-fill var(--fs-ms) linear forwards; }
@keyframes fs-fill { to { width: 100%; } }
.fs-stage { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; align-items: center; }
.fs-browser { margin: 0; border-radius: 14px; background: #0c1a33; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 60px 120px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(201,162,74,.08); overflow: hidden; }
.fs-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #12223f; border-bottom: 1px solid rgba(255,255,255,.08); }
.fs-bar b { width: 10px; height: 10px; border-radius: 50%; background: #2c4470; }
.fs-bar span { margin-left: 12px; padding: 4px 14px; border-radius: 6px; background: rgba(255,255,255,.06); color: #8fa3c4; font-size: 12.5px; font-weight: 600; }
.fs-screen { position: relative; aspect-ratio: 1440 / 900; background: #f3f5f9; }
.fs-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; opacity: 0; transform: scale(1.012); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.fs-screen img.on { opacity: 1; transform: none; }
.fs-browser figcaption { padding: 16px 20px; font-size: 15.5px; line-height: 1.5; color: #dfe7f3; border-top: 1px solid rgba(255,255,255,.08); animation: sc-in .5s var(--ease); }
.fs-side { display: grid; gap: 14px; justify-items: center; }
.fs-phone { width: 100%; max-width: 230px; padding: 9px; border-radius: 36px; background: linear-gradient(160deg, #2b3e60, #0d1a31); border: 1px solid rgba(201,162,74,.45); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.fs-phone img { display: block; width: 100%; height: auto; border-radius: 28px; }
.fs-phone-cap { margin: 0; text-align: center; font-size: 14px; line-height: 1.45; color: #b5c3da; }
.fs-phone-cap strong { color: #fff; }
.fs-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 42px 0 0; padding: 0; list-style: none; }
.fs-facts li { padding: 20px 22px; border-radius: 14px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); display: grid; gap: 6px; }
.fs-facts strong { color: var(--gold-hi); font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.fs-facts small { margin-left: 6px; font-size: 16px; color: #c7d3e6; letter-spacing: 0; }
.fs-facts span { font-size: 15px; line-height: 1.5; color: #b5c3da; }
.fs-cta { margin-top: 34px; }
@media (max-width: 900px) { .fs-stage { grid-template-columns: minmax(0, 1fr); } .fs-side { grid-template-columns: 140px 1fr; justify-items: start; align-items: center; } .fs-phone { max-width: 140px; border-radius: 26px; } .fs-phone img { border-radius: 20px; } .fs-phone-cap { text-align: left; } }
@media (max-width: 640px) { .fleet-show { padding: 64px 0 72px; } .fs-facts { grid-template-columns: minmax(0, 1fr); } .fs-tabs button { flex: 1 1 calc(50% - 8px); padding: 0 10px; font-size: 13.5px; } .fs-bar span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fs-screen img, .fs-tabs button i { transition: none; animation: none !important; } }
