﻿.avatar-wrapper {
    position: relative;
    width: 180px;
    height: 180px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .avatar-wrapper:hover {
        transform: scale(1.02);
    }

.avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    pointer-events: none;
}

.hidden-input-file {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 10;
}

.rz-textbox, .rz-textarea, .rz-dropdown {
    border-radius: 8px !important;
}

/* Mejora la legibilidad de los campos deshabilitados */
.rz-state-disabled {
    opacity: 0.8 !important;
    background-color: var(--rz-base-200) !important;
    color: var(--rz-text-secondary-color) !important;
}

/* Evita que los labels se vean muy pegados */
.rz-label {
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}


/* Control de la cabecera responsiva */
.header-responsive {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Permite que salte de línea si no cabe */
    gap: 1rem;
}

/* En pantallas pequeñas (móviles), ponemos uno sobre otro */
@media (max-width: 768px) {
    .header-responsive {
        flex-direction: column;
        align-items: flex-start; /* Alineado a la izquierda */
    }

    .edit-switch-container {
        width: 100%;
        justify-content: space-between; /* El switch a la derecha, texto a la izquierda */
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }

    /* Ajustamos el tamaño de la fuente del título en móvil */
    .header-responsive h3 {
        font-size: 1.5rem !important;
    }

    /* Ajuste del margen negativo del avatar para que no choque tanto */
    .rz-mt-n12 {
        margin-top: -40px !important;
    }
}