#form_actividad {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

#form_actividad input[type="file"] {
    display: block;
    height: auto;
    margin-top: 10px;
}
/* respeta el atributo hidden (inputs auxiliares camara/galeria) */
#form_actividad input[type="file"][hidden] { display: none; }

.form-filtro {
    margin-bottom: 10px;
    margin-top: 0;
    margin-left: 15px;
}

/* --- Visibilidad: botones de camara solo en tactil (movil); en PC, inputs --- */
.FotoMovil { display: none; }
.FotoPC { display: block; }

@media (hover: none) and (pointer: coarse) {
    .FotoMovil { display: block; }
    .FotoPC { display: none; }
}

/* --- Botones camara / galeria --- */
.FotoBotones {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.BotonFoto {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: #35CB83;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.BotonFoto i { font-size: 1.05em; }

.BotonFoto.BotonFotoSec {
    background: #E0F7EA;
    color: #1B5E20;
}

.BotonFoto:active { transform: scale(0.98); }

/* --- Galeria de miniaturas (movil): 1a = principal, resto secundarias --- */
.FotoGaleria {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.FotoItem {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    background: #E0F7EA;
}

.FotoItem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.FotoBadge {
    position: absolute;
    bottom: 4px;
    left: 4px;
    background: #35CB83;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 6px;
}

.FotoItemQuitar {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}