.profile-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 
}


.profile-section {
    background-color: #fef9ef; /* Cambiado de #ffffff a #fef9ef */
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin-bottom: 30px;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}


.profile-section:hover {
    border-color: #77BD43;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 30px;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    padding: 10px 15px;
    border-radius: 20px;
    transition: all 0.3s;
    display: inline-block;
    margin: 0;
}

.profile-info h3:hover {
    background-color: #77BD43;
    color: white;
    cursor: pointer;
}

.profile-image-container {
    display: flex;
    justify-content: flex-end;
}

.image-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f5f5f5;
    transition: all 0.3s;
}

.profile-img:hover {
    border-color: #77BD43;
}

.upload-btn {
    padding: 8px 20px;
    background-color: #77BD43;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
}

.upload-btn:hover {
    background-color: #5a9e2d;
    transform: scale(1.05);
}

.btn-update {
    padding: 10px 25px;
    background-color: #77BD43;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-update:hover {
    background-color: #5a9e2d;
    transform: scale(1.05);
}

.btn-cancel {
    padding: 10px 25px;
    background-color: #f5f5f5;
    color: #555;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
    transform: scale(1.05);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.input-with-label {
    position: relative;
    margin-bottom: 25px;
}

.input-with-label input {
    width: 100%;
    padding: 15px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s;
    background-color: #f9f9f9;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    color: #777;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.toggle-password:hover {
    color: #77BD43;
}

.input-with-label input[readonly] {
    background-color: #f0f0f0;
    color: #555;
    cursor: not-allowed;
}

.input-with-label label {
    position: absolute;
    top: 5px;
    left: 12px;
    font-size: 12px;
    color: #777;
    transition: all 0.3s;
    pointer-events: none;
}

.input-with-label input:focus + label,
.input-with-label input:not(:placeholder-shown) + label {
    top: 2px;
    left: 12px;
    font-size: 10px;
    color: #77BD43;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .profile-info {
        text-align: center;
    }
    
    .profile-image-container {
        justify-content: center;
    }
    
    .image-wrapper {
        flex-direction: column;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        justify-content: center;
    }
}
