/* Filtros lateral responsive */
.filtros-lateral {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 80vw;
    max-width: 340px;
    background: #fff;
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 1.5rem 1rem 1rem 1rem;
    overflow-y: auto;
    display: block;
}
.filtros-lateral.abierto {
    transform: translateX(0);
}
.filtros-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.25);
    z-index: 1049;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.filtros-overlay.abierto {
    opacity: 1;
    pointer-events: auto;
}
body.no-scroll {
    overflow: hidden !important;
}
@media (min-width: 768px) {
    .filtros-lateral, .filtros-overlay {
        display: none !important;
    }
}
/* Espacio seguro inferior para evitar que la barra del sistema operativo oculte contenido */
.safe-bottom-padding {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}
.error {
    filter: drop-shadow(0px 0px 2px red);
}

button:active,
input[type=button]:active {
    -webkit-animation: jello-horizontal 0.9s both;
    animation: jello-horizontal 0.9s both;
}

.logo>img {
    width: 100%;
}

.scrollable-container {
    overflow-y: auto;
}

h2>a {
    margin: 0px 20px 0px 4px;
}

@media screen and (max-height: 600px), screen and (orientation: landscape) and (max-height: 600px) {
    .low-height-hide {
        display: none !important;
    }
    #activities-list {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    .logo {
        margin-bottom: 8px !important;
    }
    .logo h2 {
        font-size: 1.2em !important;
        margin-bottom: 0.5em !important;
    }
    .logo p {
        font-size: 0.95em !important;
        margin-bottom: 0.5em !important;
    }
    .accordion-item.mb-3 {
        margin-bottom: 0.5rem !important;
    }
    .accordion-body {
        padding: 0.5rem 0.5rem !important;
    }
    .list-group-item {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.95em !important;
    }
    .scrollable-container {
        padding: 0 !important;
        margin: 0 !important;
    }
}

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