/* Inicio de sesión */
body.login { background: #fff; min-height: 100dvh; }
.escena { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); min-height: 100dvh; }

/* ---------- Lado ilustrado ---------- */
.arte {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% -10%, #1B4C93 0%, transparent 60%), linear-gradient(160deg, #0B2246 0%, #0E2A52 45%, #0A1D3B 100%);
  display: flex; flex-direction: column; justify-content: space-between; padding: 40px 48px;
}
.arte::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 10% 110%, rgba(242,106,27,.22), transparent 70%); }
.arte .cab { display: flex; align-items: center; gap: 12px; position: relative; z-index: 2; }
.arte .cab img { width: 44px; height: 44px; border-radius: 12px; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.arte .cab .palabra-marca { font-size: 19px; }
.arte .cab .palabra-marca .v { color: #fff; }
.arte .texto { position: relative; z-index: 2; max-width: 520px; }
.arte h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; line-height: 1.12; letter-spacing: -.025em; }
.arte h2 em { font-style: normal; color: #FFB27F; }
.arte .texto p { margin-top: 14px; color: #B9C7DD; font-size: 15px; max-width: 440px; }
.arte .puntos { display: flex; gap: 22px; margin-top: 26px; flex-wrap: wrap; }
.arte .puntos div { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #D5DEEC; font-weight: 600; }
.arte .puntos .ic { color: #FF9A5C; }

.plano { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; }
.plano .calle { stroke: rgba(255,255,255,.07); stroke-width: 1.2; fill: none; }
.plano .calle.av { stroke: rgba(255,255,255,.12); stroke-width: 2.4; }
.plano .manzana { fill: rgba(255,255,255,.025); }
.plano .ruta-base { stroke: rgba(255,255,255,.14); stroke-width: 5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plano .ruta { stroke: #F26A1B; stroke-width: 4; fill: none; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px rgba(242,106,27,.55)); }
.plano .parada-a circle:first-child { fill: #8E44C9; }
.plano .parada-b circle:first-child { fill: #F26A1B; }
.plano .parada circle.halo { fill: none; stroke: currentColor; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.plano .parada-a { color: #B07BE0; } .plano .parada-b { color: #FF9A5C; }
.plano .parada.viva circle.halo { animation: halo 2.2s ease-out infinite; }
.plano .parada text { fill: #fff; font: 800 11px var(--fuente); text-anchor: middle; dominant-baseline: central; }
.plano .parada { opacity: 0; transform-box: fill-box; transform-origin: center; }
.plano .parada.visible { animation: caer 520ms cubic-bezier(.2, 1.4, .4, 1) forwards; }
@keyframes caer { from { opacity: 0; transform: translateY(-14px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes halo { 0% { opacity: .7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }
.plano .vehiculo rect { fill: #fff; }
.plano .vehiculo path { stroke: #0E2A52; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }


/* ---------- App Android ---------- */
.app-android { display: flex; gap: 14px; align-items: flex-start; width: 100%; max-width: 380px; margin-top: 28px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #0E2A52, #16386B); color: #fff; text-decoration: none !important; box-shadow: 0 10px 28px rgba(14, 42, 82, .22);
  transition: transform var(--t-rapida), box-shadow var(--t-rapida); position: relative; overflow: hidden; }
.app-android::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,27,.35), transparent 70%); }
.app-android:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(14, 42, 82, .3); }
.app-android .app-ic { width: 46px; height: 46px; border-radius: 13px; background: var(--naranja); display: grid; place-items: center; flex: none; }
.app-android .app-ic .ic { width: 24px; height: 24px; color: #fff; }
.app-android .app-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; position: relative; z-index: 1; }
.app-android b { font-size: 15.5px; font-weight: 800; }
.app-android .app-txt > span { font-size: 12.5px; color: #C9D5E6; line-height: 1.45; }
.app-android em { font-style: normal; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; font-weight: 750; color: #FFB27F; }
.app-android em .ic { color: #FFB27F; }

/* ---------- Formulario ---------- */
.lado-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 28px 100px; background: #fff; position: relative; }
.formulario { width: 100%; max-width: 380px; }
.formulario .logo-movil { display: none; }
.paso { animation: pasoEntra 380ms cubic-bezier(.2, .8, .2, 1); }
.paso.sale { animation: pasoSale 200ms ease-in forwards; }
@keyframes pasoEntra { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@keyframes pasoSale { to { opacity: 0; transform: translateX(-14px); } }
.formulario h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.formulario .bajada { color: var(--texto-2); margin-top: 6px; font-size: 14.5px; }
.formulario form { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.campo-id { position: relative; }
.campo-id .entrada { height: 50px; font-size: 16px; padding-left: 44px; border-radius: 12px; letter-spacing: .02em; text-transform: uppercase; }
.campo-id .entrada::placeholder { text-transform: none; letter-spacing: 0; }
.campo-id .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--texto-3); }
.ficha-id { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--superficie-2); border: 1px solid var(--borde); font-weight: 700; font-size: 13px; margin-top: 14px; max-width: 100%; }
.ficha-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ficha-id button { border: 0; background: var(--superficie); border-radius: 999px; height: 26px; padding: 0 10px; font-size: 12px; font-weight: 700; color: var(--azul); cursor: pointer; box-shadow: var(--sombra-1); }
.mensaje { min-height: 20px; font-size: 13px; font-weight: 600; color: var(--rojo); text-align: center; }
.mensaje.ok { color: var(--verde); }
.enlace { background: none; border: 0; color: var(--azul); font-weight: 650; font-size: 13.5px; cursor: pointer; padding: 4px; }
.enlace:hover { text-decoration: underline; }
.ver-pin { display: flex; justify-content: center; }
.recientes { margin-top: 22px; }
.recientes .etiqueta { margin-bottom: 8px; display: block; }
.recientes .lista-r { display: flex; flex-direction: column; gap: 8px; }
.cuenta-r { display: flex; align-items: center; gap: 12px; width: 100%; border: 1px solid var(--borde); border-radius: 12px; background: #fff; padding: 9px 12px; cursor: pointer; text-align: left; transition: border-color var(--t-rapida), box-shadow var(--t-rapida); }
.cuenta-r:hover { border-color: var(--borde-2); box-shadow: var(--sombra-2); }
.cuenta-r .crece b { display: block; font-size: 13.5px; }
.cuenta-r .crece span { font-size: 12px; color: var(--texto-3); }
.cuenta-r .quitar-r { color: var(--texto-3); border-radius: 8px; padding: 4px; }
.cuenta-r .quitar-r:hover { background: var(--gris-suave); color: var(--texto); }
.pie-login { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-size: 12px; color: var(--texto-3); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 16px; }
.pie-login a { color: var(--texto-2); font-weight: 600; }
.reglas-pin { font-size: 12.5px; color: var(--texto-3); text-align: center; }
.etiqueta-pin { font-size: 12.5px; font-weight: 700; color: var(--texto-2); text-align: center; margin-bottom: 8px; }
.exito-login { text-align: center; padding: 30px 0; }
.exito-login .circulo { width: 72px; height: 72px; border-radius: 50%; background: var(--verde-suave); color: var(--verde); display: grid; place-items: center; margin: 0 auto 18px; animation: caer 500ms cubic-bezier(.2, 1.4, .4, 1); }
.exito-login .circulo .ic { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; animation: trazo 420ms 240ms ease-out forwards; }
@keyframes trazo { to { stroke-dashoffset: 0; } }
.btn-app { margin-top: 18px; }

@media (max-width: 980px) {
  .escena { grid-template-columns: 1fr; }
  .arte { min-height: 260px; padding: 22px 22px 26px; justify-content: flex-end; }
  .arte .texto p, .arte .puntos { display: none; }
  .arte h2 { font-size: 24px; }
  .arte .cab { position: absolute; top: 20px; left: 22px; }
  .lado-form { justify-content: flex-start; padding: 28px 20px 108px; }
}
@media (prefers-reduced-motion: reduce) { .plano .ruta { stroke-dasharray: none !important; } }
.app-android[hidden] { display: none; }
