/* =========================================================
   FOTOGRAFÍAS DE PREREGISTRO
========================================================= */

.upload-box {
    padding: 22px;

    background: #f4f7f5;

    border: 1.5px dashed #cbd5cf;
    border-radius: 14px;

    text-align: center;
}

.upload-icon {
    margin-bottom: 6px;

    font-size: 30px;
}

.upload-box strong {
    display: block;

    margin-bottom: 5px;

    color: #0e2822;
}

.upload-box p {
    margin: 0 0 14px;

    color: #516059;

    font-size: .82rem;
}

.upload-box input[type="file"] {
    width: 100%;
}

.upload-note {
    margin-top: 9px;
}

.preview-imagenes {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(105px, 1fr)
        );

    gap: 10px;

    margin-top: 12px;
}

.preview-item {
    overflow: hidden;

    background: #fff;

    border: 1px solid #d8ded9;
    border-radius: 10px;
}

.preview-item img {
    display: block;

    width: 100%;
    height: 95px;

    object-fit: cover;
}

.preview-item span {
    display: block;

    overflow: hidden;

    padding: 6px 7px;

    color: #516059;

    font-size: .66rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   ADMINISTRACIÓN
========================================================= */

.admin-edit-card {
    max-width: 1000px;

    margin: 35px auto;
}

.admin-edit-header,
.admin-images-title {
    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;
}

.admin-edit-header {
    margin-bottom: 24px;
}

.admin-back {
    color: #173f38;

    font-weight: 600;

    text-decoration: none;
}

.admin-images-section {
    margin-top: 35px;
    padding-top: 28px;

    border-top: 1px solid #d8ded9;
}

.admin-images-title {
    align-items: center;

    margin-bottom: 18px;
}

.admin-images-title h2 {
    margin: 3px 0 0;
}

.images-count {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 52px;

    padding: 6px 10px;

    background: #eef3ef;

    border-radius: 999px;

    color: #173f38;

    font-weight: 700;
}

.admin-images-grid {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fill,
            minmax(180px, 1fr)
        );

    gap: 16px;
}

.admin-image-card {
    overflow: hidden;

    background: #fff;

    border: 1px solid #d8ded9;
    border-radius: 14px;

    box-shadow:
        0 8px 20px
        rgba(14, 40, 34, .06);
}

.admin-image-preview-button {
    display: block;

    width: 100%;
    height: 160px;

    padding: 0;

    border: 0;

    background: #eef3ef;

    cursor: pointer;
}

.admin-image-preview-button img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.admin-image-meta {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 8px;

    padding: 10px;
}

.admin-image-meta small {
    color: #7b8781;
}

.image-status {
    display: inline-flex;

    align-items: center;

    padding: 4px 9px;

    border-radius: 999px;

    font-size: .7rem;
    font-weight: 700;
}

.image-status.pendiente {
    background: #fff1c9;
    color: #725400;
}

.image-status.aprobada {
    background: #dceee7;
    color: #1b6547;
}

.image-status.rechazada {
    background: #f9dadd;
    color: #9d2638;
}

.image-actions {
    display: flex;

    gap: 7px;

    padding: 0 10px 12px;
}

.image-action {
    width: 38px;
    height: 38px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 9px;

    font-size: 18px;
    font-weight: 700;

    cursor: pointer;
}

.image-action.approve {
    background: #15945f;
    color: #fff;
}

.image-action.reject {
    background: #ffb900;
    color: #17211e;
}

.image-action.delete {
    background: #df3347;
    color: #fff;
}

.admin-images-help,
.admin-images-empty {
    margin-top: 14px;

    color: #516059;

    font-size: .8rem;
}

.admin-images-empty {
    padding: 24px;

    background: #f4f7f5;

    border-radius: 12px;

    text-align: center;
}


/* =========================================================
   MODAL ADMIN DE IMAGEN
========================================================= */

.admin-image-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(
            14,
            40,
            34,
            .78
        );
}

.admin-image-modal.open {
    display: flex;
}

.admin-image-modal-content {
    position: relative;

    width: min(900px, 95vw);

    padding: 14px;

    background: #fff;

    border-radius: 16px;
}

.admin-image-modal-content img {
    display: block;

    width: 100%;
    max-height: 82vh;

    object-fit: contain;

    border-radius: 10px;
}

.admin-image-modal-close {
    position: absolute;

    top: -12px;
    right: -12px;

    width: 38px;
    height: 38px;

    border: 0;
    border-radius: 50%;

    background: #ff6a3d;
    color: #fff;

    font-size: 24px;

    cursor: pointer;
}

@media (max-width: 650px) {
    .admin-edit-header,
    .admin-images-title {
        flex-direction: column;
    }

    .admin-images-grid {
        grid-template-columns: 1fr 1fr;
    }
}
