/* Ventana para recortar la foto de perfil: marco redondo, arrastre y zoom. */
.recorte-overlay {
    position: fixed;
    inset: 0;
    z-index: 100002;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
}
.recorte-dialogo {
    position: relative;
    width: 100%;
    max-width: 360px;
    padding: 22px;
    border-radius: 14px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #1f1f1f);
    box-shadow: var(--shadow-lg, 0 12px 40px rgba(0, 0, 0, 0.25));
    text-align: center;
}
.recorte-cerrar {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    color: var(--text-muted, #8a8f98);
}
.recorte-titulo {
    margin: 0 0 4px;
    font-size: 1.1rem;
}
.recorte-ayuda,
.recorte-cargando {
    margin: 0 0 14px;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}
.recorte-cargando {
    padding: 28px 0;
}
.recorte-lienzo-wrap {
    position: relative;
    width: 300px;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}
.recorte-lienzo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    background: #000;
    cursor: grab;
    touch-action: none;
}
.recorte-lienzo:active {
    cursor: grabbing;
}
/* oscurece las esquinas y deja claro el circulo inscrito */
.recorte-mascara {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 0 calc(50% - 1px), rgba(0, 0, 0, 0.5) 50%);
}
/* botones para girar la foto en pasos de 90 grados */
.recorte-girar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 14px;
}
.recorte-girar button {
    font-size: 1.35rem;
    line-height: 1;
    padding: 4px 16px;
    cursor: pointer;
}
.recorte-zoom-fila {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 18px;
    font-size: 0.85rem;
    color: var(--text-muted, #6b7280);
}
.recorte-zoom {
    flex: 1;
}
.recorte-botones {
    display: flex;
    gap: 10px;
    justify-content: center;
}
