/* ===========================================
   AID FOR AIDS – VERIFÍCAME CONTRATISTAS
   wp-content/themes/clean/web/verificame/verificame.css
   =========================================== */

.afa-validacion-shell {
    padding: 40px 15px;
    background: #f4f7fb;
}

.afa-validacion-wrapper {
    max-width: 860px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 45, 90, 0.18);
    overflow: hidden;
    font-family: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Encabezado */

.afa-validacion-header {
    background: linear-gradient(135deg, #003666, #0082cf);
    padding: 24px 30px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.afa-validacion-icon {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 2px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

.afa-validacion-titles h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.afa-validacion-titles p {
    margin: 4px 0 0;
    font-size: 13px;
    opacity: 0.9;
}

/* Cuerpo */

.afa-validacion-body {
    padding: 26px 28px 30px;
}

.afa-grid {
    display: grid;
    gap: 24px;
}

.afa-grid.admin-open {
    grid-template-columns: 1.1fr 1fr;
}

.afa-grid.admin-closed {
    grid-template-columns: 1fr;
    position: relative;
}

@media (max-width: 768px) {
    .afa-grid.admin-open,
    .afa-grid.admin-closed {
        grid-template-columns: 1fr;
    }
}

/* Toggle admin */

.afa-admin-toggle {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.afa-admin-toggle-btn {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-radius: 999px;
    padding: 7px 14px;
    background: #003259;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.afa-admin-toggle-btn .icon {
    font-size: 12px;
}

.afa-admin-column {
    transition: transform .25s ease, opacity .25s ease;
}

.afa-grid.admin-closed .afa-admin-column {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 360px;
    transform: translateX(120%);
    opacity: 0;
    pointer-events: none;
}

/* Tarjetas */

.afa-card {
    background: #f8fbff;
    border-radius: 18px;
    border: 1px solid #e1e9f3;
    padding: 22px 20px 20px;
}

.afa-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.afa-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #003259;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.afa-card-header span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8ba5c4;
}

/* Campos */

.afa-field-group {
    margin-bottom: 16px;
}

.afa-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #003259;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.afa-input,
.afa-select,
.afa-file-input {
    width: 100%;
    padding: 12px 13px;
    border-radius: 10px;
    border: 1px solid #c9d6ea;
    font-size: 14px;
    background: #ffffff;
    transition: border-color .16s ease, box-shadow .16s ease, transform .07s ease;
}

.afa-input:focus,
.afa-select:focus,
.afa-file-input:focus {
    border-color: #0082cf;
    box-shadow: 0 0 0 2px rgba(0,130,207,0.18);
    transform: translateY(-1px);
}

.afa-input[disabled],
.afa-select[disabled] {
    background: #eef2f7;
}

/* Botones */

.afa-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.afa-btn {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .07s ease, box-shadow .12s ease;
}

.afa-btn-primary {
    background: linear-gradient(135deg, #025993, #0082cf);
    color: #fff;
    box-shadow: 0 6px 16px rgba(0,90,150,0.35);
}

.afa-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0,80,140,0.45);
}

.afa-btn-secondary {
    background: #ffffff;
    border: 1px solid #d5dfef;
    color: #003259;
}

.afa-btn-secondary:hover {
    background: #f7faff;
}

.afa-btn-danger {
    background: linear-gradient(135deg, #fd5459, #ff7b80);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(200,60,60,0.35);
}

.afa-btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(180,40,40,0.45);
}

/* Alertas */

.afa-alert {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    gap: 8px;
    align-items: center;
}

.afa-alert-success {
    background: #e0f7f0;
    color: #1b5e20;
    border: 1px solid #8bd7a0;
}

.afa-alert-error {
    background: #ffe6e7;
    color: #b71c1c;
    border: 1px solid #ff9f57;
}

.afa-alert-dot {
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

/* Resultado verificación */

.afa-verif-result {
    margin-top: 22px;
    padding: 26px 24px;
    border-radius: 22px;
    border: 1px solid #b7e7c7;
    background: #ffffff;
    display: flex;
    gap: 20px;
    align-items: center;
    box-shadow: 0 10px 28px rgba(0, 80, 140, 0.08);
}

.afa-verif-result-success {
    border-color: #8bd7a0;
    background: #fbfffd;
}

.afa-verif-result-error {
    border-color: #ff9f57;
    background: #fffaf7;
}

/* Foto */

.afa-verif-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background: #e9f2fb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: #003666;
}

.afa-verif-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Info */

.afa-verif-info {
    line-height: 1.4;
}

.afa-verif-name {
    font-size: 20px;
    font-weight: 800;
    color: #003259;
    margin-bottom: 8px;
}

.afa-verif-role {
    font-size: 15px;
    color: #4b5d78;
    margin-bottom: 6px;
}

.afa-verif-doc {
    font-size: 15px;
    color: #5b6a85;
    margin-bottom: 14px;
}

.afa-verif-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #1b5e20;
    padding: 7px 18px;
    border-radius: 50px;
    background: #e7f7ec;
    border: 1px solid #9bd9aa;
}

.afa-verif-status-icon {
    background: #1b5e20;
    color: #ffffff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Responsive */

@media (max-width: 600px) {
    .afa-validacion-header {
        padding: 18px 18px;
    }

    .afa-validacion-titles h2 {
        font-size: 22px;
    }

    .afa-validacion-body {
        padding: 20px 18px 24px;
    }

    .afa-verif-result {
        flex-direction: column;
        align-items: flex-start;
    }

    .afa-verif-photo {
        margin-bottom: 8px;
    }
}
