/* App ciudadana móvil (PWA). Pantalla completa en teléfonos; dentro del marco en la landing /app. */
.m-body { background: var(--surface); min-height: 100vh; min-height: 100dvh; }
.m-shell { max-width: 520px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); position: relative; }
.m-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: rgba(245,247,251,.9); backdrop-filter: blur(12px); }
.m-top img { width: 34px; height: 34px; }
.m-top .t { flex: 1; min-width: 0; }
.m-top b { display: block; font-size: .98rem; line-height: 1.1; }
.m-top small { color: var(--muted); font-size: .72rem; }
.m-demo { font-size: .68rem; background: var(--ink); color: #dbe6fb; text-align: center; padding: 4px 8px; }
.m-demo b { color: var(--accent); }
.m-main { flex: 1; padding: 6px 16px 100px; }
.m-tabs { position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: 100%; max-width: 520px; z-index: 40; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -20px rgba(16,36,58,.35); }
.m-tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 600; color: var(--muted); padding: 6px 10px; border-radius: 12px; min-width: 58px; min-height: 48px; text-decoration: none !important; transition: color var(--t-fast), background var(--t-fast); }
.m-tabs a.on { color: var(--primary); background: var(--primary-50); }
.m-tabs a.on .icon { transform: translateY(-1px); }
.m-hero { border-radius: 22px; padding: 20px; color: #fff; background: radial-gradient(500px 200px at 100% 0%, rgba(241,198,68,.4), transparent 60%), linear-gradient(135deg, #1e3b64, var(--primary)); position: relative; overflow: hidden; box-shadow: 0 20px 40px -24px rgba(36,87,197,.8); }
.m-hero h1 { color: #fff; font-size: 1.45rem; margin: 4px 0 6px; }
.m-hero p { color: #dbe6fb; margin: 0; font-size: .9rem; }
.m-card { background: #fff; border-radius: 18px; padding: 14px; border: 1px solid var(--line); display: block; color: inherit; text-decoration: none !important; }
.m-card + .m-card { margin-top: 10px; }
.m-section { margin-top: 20px; }
.m-section h2 { font-size: 1rem; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.m-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.m-quick a { background: #fff; border-radius: 16px; padding: 12px 6px; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink); border: 1px solid var(--line); text-decoration: none !important; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.m-quick .pill-icon { width: 38px; height: 38px; }
.m-list a { display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); color: inherit; text-decoration: none !important; }
.m-list a + a { margin-top: 8px; }
.m-welcome { min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(28px + env(safe-area-inset-top)) 20px 28px; background: radial-gradient(420px 300px at 90% 0%, rgba(241,198,68,.35), transparent 60%), radial-gradient(500px 400px at 0% 100%, rgba(36,87,197,.25), transparent 60%), #f7f9fd; }
.m-welcome .logo { width: 88px; height: 88px; border-radius: 50%; background: #fff; box-shadow: var(--sh-3); animation: popIn 700ms var(--ease) both; }
.m-welcome h1 { font-size: 1.9rem; letter-spacing: -.03em; margin-top: 18px; }
.m-profile { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; cursor: pointer; font: inherit; color: inherit; transition: transform var(--t-fast); }
.m-profile:active { transform: scale(.98); }
.m-profile + .m-profile { margin-top: 8px; }
