/**
 * Estilos del campo de subida con dropzone.
 *
 * @package BlueoonGraduacionUpload
 */

.bogu-graduacion-upload {
    margin: 1em 0 1.2em;
}

.bogu-graduacion-upload__label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6em;
}

.bogu-dropzone {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    padding: 1.25em 1em;
    border: 2px dashed #bbb;
    border-radius: 6px;
    background: #fafafa;
    text-align: center;
    cursor: pointer;
    touch-action: manipulation;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bogu-dropzone:hover,
.bogu-dropzone:focus {
    border-color: #888;
    background: #f3f3f3;
    outline: none;
}

.bogu-dropzone--dragover {
    border-color: #2271b1;
    background: #eef6fc;
}

.bogu-dropzone--has-file {
    cursor: default;
    border-style: solid;
    border-color: #c3c4c7;
    background: #fff;
}

.bogu-dropzone__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bogu-dropzone__idle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
    pointer-events: none;
}

.bogu-dropzone__icon {
    font-size: 1.75em;
    line-height: 1;
}

.bogu-dropzone__text {
    font-size: 0.95em;
    color: #444;
    line-height: 1.4;
    max-width: 280px;
}

.bogu-dropzone__text--desktop {
    display: none;
}

.bogu-dropzone__selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75em;
    width: 100%;
    pointer-events: none;
}

.bogu-dropzone__filename {
    font-weight: 600;
    color: #1d2327;
    word-break: break-all;
}

.bogu-dropzone__remove {
    pointer-events: auto;
    padding: 0.35em 0.85em;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #fff;
    color: #50575e;
    font-size: 0.88em;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.bogu-dropzone__remove:hover,
.bogu-dropzone__remove:focus {
    background: #f6f7f7;
    outline: none;
}

.bogu-graduacion-upload .description {
    margin: 0.5em 0 0;
    font-size: 0.92em;
    color: #666;
}

.bogu-graduacion-upload .bogu-graduacion-upload__privacy {
    font-size: 0.85em;
}

/* Desktop: mensaje de arrastrar; touch: mensaje de tocar */
@media (hover: hover) and (pointer: fine) {
    .bogu-dropzone__text--desktop {
        display: block;
    }

    .bogu-dropzone__text--touch {
        display: none;
    }
}

@media (min-width: 768px) {
    .bogu-dropzone {
        min-height: 140px;
    }
}
