/* Tamaño base mayor para que todo lo que usa rem (botones, badges, títulos,
   list-group, formularios...) escale a una lectura cómoda en móvil */
html {
    font-size: 20px;
}

/* Bootstrap reduce "small"/.small al 80% del padre; con un texto base ya grande
   eso lo volvía a dejar pequeño (fechas, nombres de parking, subtítulos...) */
small, .small {
    font-size: .95em;
}

html, body {
    min-height: 100%;
}

body {
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #f4f5f7;
}

.login-page {
    min-height: 100vh;
}

.app-header {
    height: 60px;
    background-color: #0d6efd;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.app-content {
    padding-bottom: 84px;
}

.app-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    padding-bottom: env(safe-area-inset-bottom);
    background-color: #fff;
    border-top: 1px solid #dee2e6;
    z-index: 1030;
}

.app-bottom-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #495057;
    text-decoration: none;
    font-size: 1rem;
}

.app-bottom-nav-item:active {
    color: #0d6efd;
}

/* Objetivos táctiles cómodos en móvil */
.btn, .form-control, .list-group-item {
    min-height: 48px;
}

.btn {
    padding-top: .5rem;
    padding-bottom: .5rem;
    font-size: 1rem;
}

.btn-sm {
    font-size: .9rem;
}

/* Modal propio (no depende del JS de Bootstrap, que en este proyecto no siempre está en v5) */
.app-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1080;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.app-modal-backdrop.show {
    display: flex;
}

.app-modal-box {
    background-color: #fff;
    border-radius: .5rem;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 1rem;
}

.app-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

#modalAyudaTexto {
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

#modalAyudaTexto img {
    max-width: 100%;
    height: auto;
}

#modalAyudaTexto > *:last-child {
    margin-bottom: 0;
}
