
:root { --escala: 1; }

@media (min-width: 1920px) { :root { --escala: 1.15; } }
@media (min-width: 2560px) { :root { --escala: 1.5; } }
@media (min-width: 3200px) { :root { --escala: 2; } }

html:has(body.pagina-mapa) { --escala: 1; }

:root { --max-width: calc(1120px * var(--escala)); }

html {
    font-size: calc(100% * var(--escala));
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body { padding-top: calc(78px * var(--escala)); }

.nav-shell,
.site-footer {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
}

@media (pointer: coarse) {
    a, button, summary, label, select, [role="button"] {
        touch-action: manipulation;
    }

    .btn { min-height: 44px; }

    .nav-menu a { padding-block: 0.7rem; }

    .mapa-ficha-cerrar,
    .mapa-ruta-cerrar { width: 44px; height: 44px; }
    .mapa-ficha-cerrar { margin-bottom: -44px; }
    .mapa-zoom button { width: 48px; height: 48px; }
}

@media (hover: none) {
    .btn:hover { transform: none; }
}
